RustCrypto / hashes

Collection of cryptographic hash functions written in pure Rust
1.89k stars 256 forks source link

sha2: RISC-V scalar crypto extension support #614

Closed newpavlov closed 3 months ago

newpavlov commented 3 months ago

The support is Nightly-only and requires to enable the sha2_backend configuration flag with a value equal to riscv-zknh or riscv-zknh-compact.

The resulting assembly and binary size of the compress function (not counting the statics with round constants):