diff options
| author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-11-29 13:05:33 +0000 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-30 20:01:44 +0800 |
| commit | b3e1e0cbd9eeb2c9ba4053ce05287c24f2d997ba (patch) | |
| tree | e4fccb59fc800ffa1f56b91c0ae4c1f7bde665c3 | |
| parent | 3cbf61fb9fe24c0c3a1591b65175f8c5b3ddaac2 (diff) | |
| download | net-b3e1e0cbd9eeb2c9ba4053ce05287c24f2d997ba.tar.gz | |
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>
| -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 5c43b92b371407..4e3f8adb179397 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]; |
