diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2020-11-17 16:32:13 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-11-27 09:13:40 +0300 |
commit | 97b70180b7f97224762b63f211305a8052d07960 (patch) | |
tree | aebcfef38a6a111998052fe206bbf288202c8b8b /samples/vfio-mdev | |
parent | ad00d41b47e6c86f4da61b9812b81cd4cd74be64 (diff) | |
download | linux-97b70180b7f97224762b63f211305a8052d07960.tar.xz |
crypto: aegis128/neon - move final tag check to SIMD domain
Instead of calculating the tag and returning it to the caller on
decryption, use a SIMD compare and min across vector to perform
the comparison. This is slightly more efficient, and removes the
need on the caller's part to wipe the tag from memory if the
decryption failed.
While at it, switch to unsigned int when passing cryptlen and
assoclen - we don't support input sizes where it matters anyway.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Ondrej Mosnacek <omosnacek@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'samples/vfio-mdev')
0 files changed, 0 insertions, 0 deletions