Skip to content

Commit 4273d74

Browse files
committed
feat: add SHA-256 and SHA-512 wrapper implementations
Implements Hasher, HasherExt, and ElementHasher traits for SHA2 hash functions. Includes NIST test vectors and property-based tests. Closes #689
1 parent ec9ba2a commit 4273d74

File tree

4 files changed

+664
-0
lines changed

4 files changed

+664
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 0.20.0 (TBD)
22

3+
- Added SHA-256 and SHA-512 hash function wrappers ([#692](https://github.com/0xMiden/crypto/pull/692)).
34
- Added `+ Sync` bound to `StorageError` and `LargeSmtError` ([#680](https://github.com/0xMiden/crypto/pull/680)).
45
-
56
## 0.19.2 (2025-12-04)

miden-crypto/src/hash/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ pub mod blake;
88
/// Keccak hash function.
99
pub mod keccak;
1010

11+
/// SHA-2 hash functions (SHA-256 and SHA-512).
12+
pub mod sha2;
13+
1114
/// Poseidon2 hash function.
1215
pub mod poseidon2 {
1316
pub use super::algebraic_sponge::poseidon2::Poseidon2;

0 commit comments

Comments
 (0)