crypto: arm64/aes-ce-ctr - fix skcipher conversion
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 29 Nov 2016 13:05:33 +0000 (13:05 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 Nov 2016 12:01:44 +0000 (20:01 +0800)
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>
arch/arm64/crypto/aes-glue.c

index 5c43b92..4e3f8ad 100644 (file)
@@ -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];