]> 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)
commit6d0d26ceb4495c926754e5e2143718bc94aacd79
tree430936c4d6c4aa50c14d3d37c438c54f73a526fd
parentc5f8f39f6cc80d48420bd5b4fe24ff4d223b2d8e
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