Rename hash selection enum to KeyedHash, restructure traits

This commit is contained in:
Jan Winkelmann (keks)
2025-02-24 12:42:49 +01:00
parent b94ddd980d
commit 32ae8f7051
12 changed files with 144 additions and 136 deletions

View File

@@ -0,0 +1,20 @@
pub mod keyed_hash_blake2b {
use crate::primitives::keyed_hash::*;
pub const KEY_LEN: usize = 32;
pub const OUT_LEN: usize = 32;
pub trait KeyedHashBlake2b: KeyedHash<KEY_LEN, OUT_LEN> {}
}
pub mod keyed_hash_shake256 {
use crate::primitives::keyed_hash::*;
pub const KEY_LEN: usize = 32;
pub const OUT_LEN: usize = 32;
pub trait KeyedHashShake256: KeyedHash<KEY_LEN, OUT_LEN> {}
}
pub use keyed_hash_blake2b::KeyedHashBlake2b;
pub use keyed_hash_shake256::KeyedHashShake256;