]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4cc6007ce1c6a862d126c1625e64f2feec860ee0
treee46eb87d12257c17b38b9ee25fa7ea3478e6d87e
parent68b787f2bfe5a6eee17b0eedfd8b532199b666eb
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