feat: re-export winter-crypto Hasher, Digest & ElementHasher

This commit introduces the re-export of the listed primitives.

They will be used inside Miden to report the security level of the
picked primitive, as well as other functionality.

closes #72
This commit is contained in:
Victor Lopez
2023-02-22 11:12:17 +01:00
parent e94b0c70a9
commit 35b255b5eb
6 changed files with 15 additions and 5 deletions

View File

@@ -78,6 +78,7 @@ impl<const N: usize> Digest for Blake3Digest<N> {
// ================================================================================================
/// 256-bit output blake3 hasher.
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct Blake3_256;
impl Hasher for Blake3_256 {
@@ -141,6 +142,7 @@ impl Blake3_256 {
// ================================================================================================
/// 192-bit output blake3 hasher.
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct Blake3_192;
impl Hasher for Blake3_192 {
@@ -204,6 +206,7 @@ impl Blake3_192 {
// ================================================================================================
/// 160-bit output blake3 hasher.
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct Blake3_160;
impl Hasher for Blake3_160 {