Skip to content

Commit

Permalink
Cosmetic change to carry the meaning of the ASCII art in the authors'…
Browse files Browse the repository at this point in the history
… drafts. We all love Star Wars!
  • Loading branch information
codespree committed Oct 19, 2024
1 parent 80dbb3d commit 9f580b7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/kem/xwing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,17 @@ impl XWingKemManager {
}

fn combiner(&self, ss_m: &[u8], ss_x: &[u8], ct_x: &[u8], pk_x: &[u8]) -> Result<Vec<u8>> {
let xwing_label = b"\\.//^\\";
/*
* The XWing KEM uses the following label as the equivalent of a domain
* separator string for composite KEMs. The label is defined as:
*
* \./
* /^\
*
*/
let xw1 = b"\\./";
let xw2 = b"/^\\";
let xwing_label = [&xw1[..], &xw2[..]].concat();
let mut info = xwing_label.to_vec();
info.extend_from_slice(ss_m);
info.extend_from_slice(ss_x);
Expand Down

0 comments on commit 9f580b7

Please sign in to comment.