mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-12 09:26:51 +00:00
Cite #151 in the dkg TODOs
This commit is contained in:
parent
bec92c10ad
commit
4edba7eb7a
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ impl<Id: Eq + Hash, C: Ciphersuite> Encryption<Id, C> {
|
|||
|
||||
fn cipher(&self, participant: Id, encrypt: bool) -> ChaCha20 {
|
||||
// Ideally, we'd box this transcript with ZAlloc, yet that's only possible on nightly
|
||||
// TODO
|
||||
// TODO: https://github.com/serai-dex/serai/issues/151
|
||||
let mut transcript = RecommendedTranscript::new(b"DKG Encryption v0");
|
||||
transcript.domain_separate(self.dst);
|
||||
|
||||
|
@ -154,7 +154,7 @@ impl<Id: Eq + Hash, C: Ciphersuite> Encryption<Id, C> {
|
|||
zeroize(challenge.as_mut());
|
||||
|
||||
// Same commentary as the transcript regarding ZAlloc
|
||||
// TODO
|
||||
// TODO: https://github.com/serai-dex/serai/issues/151
|
||||
let res = ChaCha20::new(&key, &iv);
|
||||
zeroize(key.as_mut());
|
||||
zeroize(iv.as_mut());
|
||||
|
|
Loading…
Reference in a new issue