aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/crypto
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-11-29 13:05:33 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-30 20:01:44 +0800
commitb3e1e0cbd9eeb2c9ba4053ce05287c24f2d997ba (patch)
treee4fccb59fc800ffa1f56b91c0ae4c1f7bde665c3 /arch/arm64/crypto
parentcrypto: skcipher - fix crash in skcipher_walk_aead() (diff)
downloadlinux-dev-b3e1e0cbd9eeb2c9ba4053ce05287c24f2d997ba.tar.xz
linux-dev-b3e1e0cbd9eeb2c9ba4053ce05287c24f2d997ba.zip
crypto: arm64/aes-ce-ctr - fix skcipher conversion
Fix a missing statement that got lost in the skcipher conversion of the CTR transform. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64/crypto')
-rw-r--r--arch/arm64/crypto/aes-glue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/crypto/aes-glue.c b/arch/arm64/crypto/aes-glue.c
index 5c43b92b3714..4e3f8adb1793 100644
--- a/arch/arm64/crypto/aes-glue.c
+++ b/arch/arm64/crypto/aes-glue.c
@@ -206,6 +206,7 @@ static int ctr_encrypt(struct skcipher_request *req)
(u8 *)ctx->key_enc, rounds, blocks, walk.iv,
first);
err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE);
+ first = 0;
}
if (walk.nbytes) {
u8 __aligned(8) tail[AES_BLOCK_SIZE];