]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: skcipher - Add separate walker for AEAD decryption
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 Nov 2016 13:14:07 +0000 (21:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 1 Dec 2016 13:06:17 +0000 (21:06 +0800)
commit34bc085c839cef85e3e795b1cee29514f69c3081
treeba6239d07314f1b3bbcef5f6a3fcc4f2a078b65b
parent81126d1a8bc23c72a13c05c4308dc6951afc3b45
crypto: skcipher - Add separate walker for AEAD decryption

The AEAD decrypt interface includes the authentication tag in
req->cryptlen.  Therefore we need to exlucde that when doing
a walk over it.

This patch adds separate walker functions for AEAD encryption
and decryption.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
crypto/skcipher.c
include/crypto/internal/skcipher.h