mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-06 04:40:55 -08:00
fix dos test: hardcode use of shake in seal_cookie
This commit is contained in:
@@ -3236,7 +3236,7 @@ where
|
||||
/// This is called inside [Self::seal] and does not need to be called again separately.
|
||||
pub fn seal_cookie(&mut self, peer: PeerPtr, srv: &CryptoServer) -> Result<()> {
|
||||
if let Some(cookie_key) = &peer.cv().get(srv) {
|
||||
let cookie = hash_domains::cookie(peer.get(srv).protocol_version.keyed_hash())?
|
||||
let cookie = hash_domains::cookie(KeyedHash::keyed_shake256())?
|
||||
.mix(cookie_key.value.secret())?
|
||||
.mix(&self.as_bytes()[span_of!(Self, msg_type..cookie)])?;
|
||||
self.cookie
|
||||
|
||||
Reference in New Issue
Block a user