summaryrefslogtreecommitdiff
path: root/arch/riscv/crypto/sha256-riscv64-glue.c
diff options
context:
space:
mode:
authorJerry Shih <jerry.shih@sifive.com>2024-01-22 03:19:17 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2024-01-23 04:55:20 +0300
commit600a3853dfa007935220b3489e2be5ab8950b4b4 (patch)
tree2d4aba768f3342fd722b5812d01d7b553bb6f5d2 /arch/riscv/crypto/sha256-riscv64-glue.c
parentbb54668837a073f18e173dd7be63f9ef5ee9f7ac (diff)
downloadlinux-600a3853dfa007935220b3489e2be5ab8950b4b4.tar.xz
crypto: riscv - add vector crypto accelerated GHASH
Add an implementation of GHASH using the zvkg extension. The assembly code is derived from OpenSSL code (openssl/openssl#21923) that was dual-licensed so that it could be reused in the kernel. Nevertheless, the assembly has been significantly reworked for integration with the kernel, for example by using a regular .S file instead of the so-called perlasm, using the assembler instead of bare '.inst', reducing code duplication, and eliminating unnecessary endianness conversions. Co-developed-by: Christoph Müllner <christoph.muellner@vrull.eu> Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu> Co-developed-by: Heiko Stuebner <heiko.stuebner@vrull.eu> Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu> Signed-off-by: Jerry Shih <jerry.shih@sifive.com> Co-developed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Link: https://lore.kernel.org/r/20240122002024.27477-7-ebiggers@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/crypto/sha256-riscv64-glue.c')
0 files changed, 0 insertions, 0 deletions