crypto: aead - Add common IV generation code
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 06:37:30 +0000 (14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 May 2015 03:23:17 +0000 (11:23 +0800)
commit6350449fbf269aa78281b08852e64d5a4845df96
treeb5314b2259c776c5ce7c2eb85c69760cb424a9a6
parentb455eb80f17471797ba9cb904fe86af1df35f073
crypto: aead - Add common IV generation code

This patch adds some common IV generation code currently duplicated
by seqiv and echainiv.  For example, the setkey and setauthsize
functions are completely identical.

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