diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-30 08:14:07 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-12-01 08:06:17 -0500 |
commit | 34bc085c839cef85e3e795b1cee29514f69c3081 (patch) | |
tree | ba6239d07314f1b3bbcef5f6a3fcc4f2a078b65b /include/crypto | |
parent | 81126d1a8bc23c72a13c05c4308dc6951afc3b45 (diff) |
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>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/internal/skcipher.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/internal/skcipher.h b/include/crypto/internal/skcipher.h index d55041f45899..8735979ed341 100644 --- a/include/crypto/internal/skcipher.h +++ b/include/crypto/internal/skcipher.h | |||
@@ -149,6 +149,10 @@ int skcipher_walk_async(struct skcipher_walk *walk, | |||
149 | struct skcipher_request *req); | 149 | struct skcipher_request *req); |
150 | int skcipher_walk_aead(struct skcipher_walk *walk, struct aead_request *req, | 150 | int skcipher_walk_aead(struct skcipher_walk *walk, struct aead_request *req, |
151 | bool atomic); | 151 | bool atomic); |
152 | int skcipher_walk_aead_encrypt(struct skcipher_walk *walk, | ||
153 | struct aead_request *req, bool atomic); | ||
154 | int skcipher_walk_aead_decrypt(struct skcipher_walk *walk, | ||
155 | struct aead_request *req, bool atomic); | ||
152 | void skcipher_walk_complete(struct skcipher_walk *walk, int err); | 156 | void skcipher_walk_complete(struct skcipher_walk *walk, int err); |
153 | 157 | ||
154 | static inline void ablkcipher_request_complete(struct ablkcipher_request *req, | 158 | static inline void ablkcipher_request_complete(struct ablkcipher_request *req, |