dev(rosenpass): adapt protocol identifier for protocol version v 0.2 to be backwards compatible with current main branch

This commit is contained in:
David Niehues
2025-04-05 17:09:25 +02:00
parent 954162b61f
commit 8f519b042d

View File

@@ -115,7 +115,7 @@ pub fn protocol(hash_choice: KeyedHash) -> Result<HashDomain> {
KeyedHash::KeyedShake256(_) => HashDomain::zero(hash_choice)
.mix("Rosenpass v1 mceliece460896 Kyber512 ChaChaPoly1305 SHAKE256".as_bytes()),
KeyedHash::IncorrectHmacBlake2b(_) => HashDomain::zero(hash_choice)
.mix("Rosenpass v1 mceliece460896 Kyber512 ChaChaPoly1305 Blake2b".as_bytes()),
.mix("Rosenpass v1 mceliece460896 Kyber512 ChaChaPoly1305 BLAKE2s".as_bytes()),
}
}