Skip to content

Commit

Permalink
Public Key Encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Nov 21, 2024
1 parent 47a8242 commit 49efbc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcrux-kem/src/kem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ impl X25519MlKem768Draft00PublicKey {
}

pub fn encode(&self) -> Vec<u8> {
let mut out = self.x25519.0.to_vec();
out.extend_from_slice(self.mlkem.as_ref());
let mut out = self.mlkem.as_ref().to_vec();
out.extend_from_slice(&self.x25519.0);
out
}
}
Expand Down

0 comments on commit 49efbc8

Please sign in to comment.