diff --git a/crypto/ciphersuite/README.md b/crypto/ciphersuite/README.md index 175987d0..2e8e460e 100644 --- a/crypto/ciphersuite/README.md +++ b/crypto/ciphersuite/README.md @@ -1,4 +1,4 @@ -c# Ciphersuite +# Ciphersuite Ciphersuites for elliptic curves premised on ff/group. diff --git a/crypto/dkg/src/encryption.rs b/crypto/dkg/src/encryption.rs index 2e76f1e8..08a56fe9 100644 --- a/crypto/dkg/src/encryption.rs +++ b/crypto/dkg/src/encryption.rs @@ -123,7 +123,7 @@ impl Encryption { fn cipher(&self, participant: Id, encrypt: bool) -> ChaCha20 { // Ideally, we'd box this transcript with ZAlloc, yet that's only possible on nightly // TODO: https://github.com/serai-dex/serai/issues/151 - let mut transcript = RecommendedTranscript::new(b"DKG Encryption v0"); + let mut transcript = RecommendedTranscript::new(b"DKG Encryption v0.2"); transcript.domain_separate(self.dst); let other = self.enc_keys[&participant]; diff --git a/crypto/dkg/src/frost.rs b/crypto/dkg/src/frost.rs index 9fd2dea4..8bcd6bea 100644 --- a/crypto/dkg/src/frost.rs +++ b/crypto/dkg/src/frost.rs @@ -27,7 +27,7 @@ use crate::{ #[allow(non_snake_case)] fn challenge(context: &str, l: u16, R: &[u8], Am: &[u8]) -> C::F { - let mut transcript = RecommendedTranscript::new(b"DKG FROST v0"); + let mut transcript = RecommendedTranscript::new(b"DKG FROST v0.2"); transcript.domain_separate(b"Schnorr Proof of Knowledge"); transcript.append_message(b"context", context.as_bytes()); transcript.append_message(b"participant", l.to_le_bytes()); diff --git a/crypto/dkg/src/promote.rs b/crypto/dkg/src/promote.rs index b0fad364..ded73b16 100644 --- a/crypto/dkg/src/promote.rs +++ b/crypto/dkg/src/promote.rs @@ -28,7 +28,7 @@ pub trait CiphersuitePromote { } fn transcript(key: G, i: u16) -> RecommendedTranscript { - let mut transcript = RecommendedTranscript::new(b"DKG Generator Promotion v0"); + let mut transcript = RecommendedTranscript::new(b"DKG Generator Promotion v0.2"); transcript.append_message(b"group_key", key.to_bytes()); transcript.append_message(b"participant", i.to_be_bytes()); transcript