]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] aead: Add givcrypt operations
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Dec 2007 08:18:01 +0000 (16:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:49 +0000 (08:16 +1100)
commitdecc11cd7ea633d8cbf786abe3ffbfb09eec8cc2
treebe4a96ae7f7f8a6b42bf01cc7a61cb4b5938ab50
parentd284f63321cc4a779192c3acb7b4fd394a125ac9
[CRYPTO] aead: Add givcrypt operations

This patch adds the underlying givcrypt operations for aead and associated
support elements.  The rationale is identical to that of the skcipher
givcrypt operations, i.e., sometimes only the algorithm knows how the
IV should be generated.

A new request type aead_givcrypt_request is added which contains an
embedded aead_request structure with two new elements to support this
operation.  The new elements are seq and giv.  The seq field should
contain a strictly increasing 64-bit integer which may be used by
certain IV generators as an input value.  The giv field will be used
to store the generated IV.  It does not need to obey the alignment
requirements of the algorithm because it's not used during the operation.

The existing iv field must still be available as it will be used to store
intermediate IVs and the output IV if chaining is desired.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aead.c
include/crypto/aead.h [new file with mode: 0644]
include/linux/crypto.h