From 793cfd227fa7a58d81b63dfa23950e84fd95ce5f Mon Sep 17 00:00:00 2001 From: David Niehues <7667041+DavidNiehues@users.noreply.github.com> Date: Tue, 11 Feb 2025 17:34:42 +0100 Subject: [PATCH] dev(ciphers): provide EitherShakeOrBlake for 32 bytes KEY_LEN and 32 bytes of HASH_LEN based on SHAKE256 and the incorrect blake2b-hmac --- ciphers/src/subtle/either_hash.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ciphers/src/subtle/either_hash.rs b/ciphers/src/subtle/either_hash.rs index 9e21e5b..02245ff 100644 --- a/ciphers/src/subtle/either_hash.rs +++ b/ciphers/src/subtle/either_hash.rs @@ -28,3 +28,5 @@ where } } } + +pub type EitherShakeOrBlake = HashChoice<32, 32, anyhow::Error, SHAKE256Core<32, 32>, Blake2bCore>;