]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aead - Add crypto_aead_alg_ivsize/maxauthsize
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2015 08:30:48 +0000 (16:30 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 May 2015 10:41:25 +0000 (18:41 +0800)
commit931d3736ba2a7a27f88a70be6b401405d76181cc
tree430936c4d6c4aa50c14d3d37c438c54f73a526fd
parent85c21556218b1467dc800927a1fc8b10b2cae702
crypto: aead - Add crypto_aead_alg_ivsize/maxauthsize

AEAD algorithm implementors need to figure out a given algorithm's
IV size and maximum authentication size.  During the transition
this is difficult to do as an algorithm could be new style or old
style.

This patch creates two helpers to make this easier.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aead.c
include/crypto/aead.h
include/crypto/internal/aead.h