crypto: arm/aes-ce - update IV after partial final CTR block
authorEric Biggers <ebiggers@google.com>
Thu, 14 Feb 2019 08:03:55 +0000 (00:03 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:27 +0000 (12:47 +0800)
commit511306b2d075e3cb1e5dd805bffcf4041535f2b5
treee46eb87d12257c17b38b9ee25fa7ea3478e6d87e
parentfa5fd3afc7e64473bd9d417726c046b322ec0696
crypto: arm/aes-ce - update IV after partial final CTR block

Make the arm ctr-aes-ce algorithm update the IV buffer to contain the
next counter after processing a partial final block, rather than leave
it as the last counter.  This makes ctr-aes-ce pass the updated AES-CTR
tests.  This change also makes the code match the arm64 version in
arch/arm64/crypto/aes-modes.S more closely.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/aes-ce-core.S