mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
Move the aes_encrypt_zvkned() and aes_decrypt_zvkned() assembly functions into lib/crypto/, wire them up to the AES library API, and remove the "aes-riscv64-zvkned" crypto_cipher algorithm. To make this possible, change the prototypes of these functions to take (rndkeys, key_len) instead of a pointer to crypto_aes_ctx, and change the RISC-V AES-XTS code to implement tweak encryption using the AES library instead of directly calling aes_encrypt_zvkned(). The result is that both the AES library and crypto_cipher APIs use RISC-V's AES instructions, whereas previously only crypto_cipher did (and it wasn't enabled by default, which this commit fixes as well). Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20260112192035.10427-15-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| aes-riscv64-zvkned.S | ||
| aes.h | ||
| chacha-riscv64-zvkb.S | ||
| chacha.h | ||
| poly1305-riscv.pl | ||
| poly1305.h | ||
| sha256-riscv64-zvknha_or_zvknhb-zvkb.S | ||
| sha256.h | ||
| sha512-riscv64-zvknhb-zvkb.S | ||
| sha512.h | ||