]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add AES implementation in generic riscv64 asm
authorHenry Brausen <henry.brausen@vrull.eu>
Fri, 28 Jan 2022 08:13:04 +0000 (01:13 -0700)
committerPauli <pauli@openssl.org>
Thu, 19 May 2022 06:32:49 +0000 (16:32 +1000)
commitb3504b600c028a00f36cdbfedc928a48df9818ff
treeac4885d461554f0dfe9204527a51dca20969d68c
parentec26144288fd6dce6dd76bd9e2b192b495033723
Add AES implementation in generic riscv64 asm

This implementation is based on the four-table approach, along the same
lines as the non-constant-time implementation in aes_core.c The
implementation is in perlasm.

Utility functions are defined to automatically stack/unstack registers
as needed for prologues and epilogues. See riscv-elf-psabi-doc at
https://github.com/riscv-non-isa/riscv-elf-psabi-doc/ for ABI details.

Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Signed-off-by: Henry Brausen <henry.brausen@vrull.eu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17640)
crypto/aes/asm/aes-riscv64.pl [new file with mode: 0644]
crypto/aes/build.info