Add BSWAP4/BSWAP8 routines for riscv64 with Zbb
authorHenry Brausen <henry.brausen@vrull.eu>
Fri, 28 Jan 2022 08:57:54 +0000 (01:57 -0700)
committerPauli <pauli@openssl.org>
Thu, 19 May 2022 06:32:49 +0000 (16:32 +1000)
commite4fd3fc379d76d9cd33ea6699268485606447737
tree8bf4b4c6089ce67f51825874c719f3ff76bfd797
parent999376dcf33986c468361ede16fa9de409dc4e2e
Add BSWAP4/BSWAP8 routines for riscv64 with Zbb

These routines make use of the rev8 instruction in the Zbb extension
to accelerate byte-swapping when OpenSSL is built specifically for
a machine that supports Zbb.

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)
include/crypto/modes.h