crypto: arm64/aes-blk - honour iv_out requirement in CBC and CTR modes
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 17 Jan 2017 13:46:29 +0000 (13:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 07:02:45 +0000 (08:02 +0100)
commit72bb4b5490851539dad5d6be5009f92499404c85
tree21e5434b7d8e6d91965dcbd362f49871ac8ef9ca
parentae7d33f53a56c432e2db994df25ed7b2c0410819
crypto: arm64/aes-blk - honour iv_out requirement in CBC and CTR modes

commit 11e3b725cfc282efe9d4a354153e99d86a16af08 upstream.

Update the ARMv8 Crypto Extensions and the plain NEON AES implementations
in CBC and CTR modes to return the next IV back to the skcipher API client.
This is necessary for chaining to work correctly.

Note that for CTR, this is only done if the request is a round multiple of
the block size, since otherwise, chaining is impossible anyway.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/crypto/aes-modes.S