target/riscv: Use accelerated helper for AES64KS1I
commit7d496bb50233d861032fb22b4fae050b246c9197
authorArd Biesheuvel <ardb@kernel.org>
Thu, 31 Aug 2023 15:41:18 +0000 (31 17:41 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 11 Sep 2023 01:45:55 +0000 (11 11:45 +1000)
tree973a221a6ce081775b44db46e657edfe8000de2d
parentbb0a45e931967488949d293faa5ff4f4561fbdd4
target/riscv: Use accelerated helper for AES64KS1I

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.henderson@linaro.org>
Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20230831154118.138727-1-ardb@kernel.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/crypto_helper.c