openssl/crypto/sha
Phoebe Chen a1668660a7 riscv: Code optimization for SHA-256.
Keep SHA-256 constant values in registers to save the loading time.

Move the constant loading for sha256 into a separate subroutine.
By creating a dedicated sub routine for loading sha256 constants, the
code can be made more modular and easier to modify in the future.

Relaxing the SHA256 constraint, zvknhb also supports SHA256.

Simplify the H and mask initialization flows.

Signed-off-by: Phoebe Chen <phoebe.chen@sifive.com>

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21923)
2023-10-26 15:55:50 +01:00
..
asm riscv: Code optimization for SHA-256. 2023-10-26 15:55:50 +01:00
build.info riscv: Code optimization for SHA-256. 2023-10-26 15:55:50 +01:00
keccak1600.c
sha1_one.c
sha1dgst.c
sha3.c
sha256.c crypto: sha256: Add mechanism to keep C code as fallback for SHA256_ASM 2023-10-26 15:55:49 +01:00
sha512.c crypto: sha512: Add mechanism to keep C code as fallback for SHA512_ASM 2023-10-26 15:55:49 +01:00
sha_local.h
sha_ppc.c
sha_riscv.c riscv: Code optimization for SHA-256. 2023-10-26 15:55:50 +01:00