crypto: arm64/aes-ccm - avoid by-ref argument for ce_aes_ccm_auth_data
authorArd Biesheuvel <ardb@kernel.org>
Fri, 27 Aug 2021 07:03:42 +0000 (09:03 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Sep 2021 03:05:11 +0000 (11:05 +0800)
commit898387e40cf538b7d1605e05d456699fe418a77f
tree884acdd98a51a7a0a4714ca1079234be7daaeebc
parent741691c44606b1903e674d12f3e4a4b68ade69ad
crypto: arm64/aes-ccm - avoid by-ref argument for ce_aes_ccm_auth_data

With the SIMD code path removed, we can clean up the CCM auth-only path
a bit further, by passing the 'macp' input buffer pointer by value,
rather than by reference, and taking the output value from the
function's return value.

This way, the compiler is no longer forced to allocate macp on the
stack. This is not expected to make any difference in practice, it just
makes for slightly cleaner code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-ce-ccm-core.S
arch/arm64/crypto/aes-ce-ccm-glue.c