mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 14:33:37 -08:00
dev(ciphers): remove keyed hash module
This commit is contained in:
committed by
Jan Winkelmann (keks)
parent
38f371e3d7
commit
6f71767529
@@ -134,9 +134,6 @@ impl SecretHashDomain {
|
|||||||
.keyed_hash_to(k.try_into()?, d)
|
.keyed_hash_to(k.try_into()?, d)
|
||||||
.to(new_secret_key.secret_mut())?;
|
.to(new_secret_key.secret_mut())?;
|
||||||
let mut r = SecretHashDomain(new_secret_key, hash_choice);
|
let mut r = SecretHashDomain(new_secret_key, hash_choice);
|
||||||
KeyedHash::incorrect_hmac_blake2b()
|
|
||||||
.keyed_hash_to(k.try_into()?, d)
|
|
||||||
.to(r.0.secret_mut())?;
|
|
||||||
Ok(r)
|
Ok(r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ pub mod subtle;
|
|||||||
|
|
||||||
/// All keyed primitives in this crate use 32 byte keys
|
/// All keyed primitives in this crate use 32 byte keys
|
||||||
pub const KEY_LEN: usize = 32;
|
pub const KEY_LEN: usize = 32;
|
||||||
const_assert!(KEY_LEN == Aead::KEY_LEN);
|
|
||||||
const_assert!(KEY_LEN == XAead::KEY_LEN);
|
|
||||||
const_assert!(KEY_LEN == hash_domain::KEY_LEN);
|
const_assert!(KEY_LEN == hash_domain::KEY_LEN);
|
||||||
|
|
||||||
/// Keyed hashing
|
/// Keyed hashing
|
||||||
|
|||||||
Reference in New Issue
Block a user