diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-01-18 18:06:37 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-01-26 09:39:32 +0100 |
commit | f691d444f9a9094a5a89bb618495f2bfa9309f32 (patch) | |
tree | 98de7d739a918db6af9b1b24d91733b11c09c114 /drivers/crypto/hisilicon | |
parent | crypto: arm64/aes-ccm - Merge encrypt and decrypt tail handling (diff) | |
download | linux-f691d444f9a9094a5a89bb618495f2bfa9309f32.tar.xz linux-f691d444f9a9094a5a89bb618495f2bfa9309f32.zip |
crypto: arm64/aes-ccm - Merge finalization into en/decrypt asm helpers
The C glue code already infers whether or not the current iteration is
the final one, by comparing walk.nbytes with walk.total. This means we
can easily inform the asm helpers of this as well, by conditionally
passing a pointer to the original IV, which is used in the finalization
of the MAC. This removes the need for a separate call into the asm code
to perform the finalization.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon')
0 files changed, 0 insertions, 0 deletions