diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-09-27 15:43:04 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-09-30 09:42:10 -0700 |
| commit | 7e58d75b7cc73faf73e6793940f591257caeae68 (patch) | |
| tree | 1ef321d46b9c0d0383026f03d5f7aecbfa78711f /tools/perf/scripts/python | |
| parent | 4ce884395f42fceac5cb5380d7e4a53c956103a9 (diff) | |
| download | linux-7e58d75b7cc73faf73e6793940f591257caeae68.tar.gz linux-7e58d75b7cc73faf73e6793940f591257caeae68.zip | |
lib/crypto: x86/aes-ctr: Migrate AVX-optimized code into library
Migrate aes-ctr-avx-x86_64.S into lib/crypto/, wiring it up to the CTR
and XCTR library functions instead of the crypto_skcipher API. It still
remains available through crypto_skcipher via crypto/aes.c.
Some slight adjustments to the assembly code were needed:
- Take 'struct aes_enckey' instead of 'struct crypto_aes_ctx'.
- Upgrade the length argument from 32-bit to 64-bit so that it's
compatible with the library's use of size_t (at least assuming no
lengths over S64_MAX, which seems quite safe to assume...)
- Remove the CFI stubs, as the functions are now called directly.
- Adjust the argument order to match the caller. Not strictly required,
but it's easiest to handle this now when changing the function
prototypes anyway and adding the new glue code.
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/20260927224418.109759-14-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
