diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-11-29 16:05:33 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-30 15:01:44 +0300 |
commit | b3e1e0cbd9eeb2c9ba4053ce05287c24f2d997ba (patch) | |
tree | e4fccb59fc800ffa1f56b91c0ae4c1f7bde665c3 /arch/arm64/crypto/aes-glue.c | |
parent | 3cbf61fb9fe24c0c3a1591b65175f8c5b3ddaac2 (diff) | |
download | linux-b3e1e0cbd9eeb2c9ba4053ce05287c24f2d997ba.tar.xz |
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/aes-glue.c')
-rw-r--r-- | arch/arm64/crypto/aes-glue.c | 1 |
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]; |