From: Herbert Xu Subject: [0/19] Add IV generators and givcrypt Date: Tue, 11 Dec 2007 12:02:15 +0800 Message-ID: <20071211040215.GA10360@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Linux Crypto Mailing List Return-path: Received: from rhun.apana.org.au ([64.62.148.172]:1893 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751556AbXLKECS (ORCPT ); Mon, 10 Dec 2007 23:02:18 -0500 Received: from gondolin.me.apana.org.au ([192.168.0.6] ident=mail) by arnor.apana.org.au with esmtp (Exim 4.50 #1 (Debian)) id 1J1wK0-00061R-DY for ; Tue, 11 Dec 2007 15:02:16 +1100 Received: from herbert by gondolin.me.apana.org.au with local (Exim 3.36 #1 (Debian)) id 1J1wJz-0002hZ-00 for ; Tue, 11 Dec 2007 12:02:15 +0800 Content-Disposition: inline Sender: linux-crypto-owner@vger.kernel.org List-ID: Hi: This series of patches introduces IV generators which can be accessed through the givencrypt and givdecrypt operations on block ciphers and AEADs (other than crypto_blkcipher which should not be used for new code). The givencrypt operation is identical to encrypt except that the IV is generated by the algorithm instead of given by the user. Ditto for givdecrypt although it is only suitable for IV generators which are deterministic. It will be used by dm-crypt in future. Algorithms can either provide their own IV generator or (as most will do) use the default IV generators provided by the system. If no IV generator is specified by the system, then chainiv will be used for synchronous algorithms and eseqiv will be used for asynchronous algorithms. Counter mode algorithms (which include some stream ciphers) must choose something other than the default to ensure uniqueness for the IV. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt