On 31/8/23 17:41, Ard Biesheuvel wrote:
Use the accelerated SubBytes/ShiftRows/AddRoundKey AES helper to
implement the first half of the key schedule derivation. This does not
actually involve shifting rows, so clone the same value into all four
columns of the AES vector to counter that operation.
Cc: Richard Henderson <richard.hender...@linaro.org>
Cc: Philippe Mathieu-Daudé <phi...@linaro.org>
Cc: Palmer Dabbelt <pal...@dabbelt.com>
Cc: Alistair Francis <alistair.fran...@wdc.com>
Signed-off-by: Ard Biesheuvel <a...@kernel.org>
---
v2: assign round constant to elements 0 and 1 only
target/riscv/crypto_helper.c | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>