mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 06:23:08 -08:00
dev(ciphers): change HashDomain and related structures to use EitherShakeOrBlake. Docu pending
This commit is contained in:
@@ -29,4 +29,13 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub type EitherShakeOrBlake = HashChoice<32, 32, anyhow::Error, SHAKE256Core<32, 32>, Blake2bCore>;
|
||||
pub type EitherShakeOrBlake = EitherHash<32, 32, anyhow::Error, SHAKE256Core<32, 32>, Blake2bCore>;
|
||||
|
||||
impl Clone for EitherShakeOrBlake {
|
||||
fn clone(&self) -> Self {
|
||||
match self {
|
||||
Self::Left(l) => Self::Left(l.clone()),
|
||||
Self::Right(r) => Self::Right(r.clone()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user