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)
commit30e4c010aefdbb81b2aaf64758850432eb289f47
tree430936c4d6c4aa50c14d3d37c438c54f73a526fd
parent445a8e0df3ef80f3696014187a463d6c0772331b
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