From 9f580b7bf64ad5b29ac49206e23a3e49bd19f374 Mon Sep 17 00:00:00 2001 From: Varun Chatterji Date: Sat, 19 Oct 2024 22:08:56 +0800 Subject: [PATCH] Cosmetic change to carry the meaning of the ASCII art in the authors' drafts. We all love Star Wars! --- src/kem/xwing.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/kem/xwing.rs b/src/kem/xwing.rs index de1d94c..947a6f5 100644 --- a/src/kem/xwing.rs +++ b/src/kem/xwing.rs @@ -43,7 +43,17 @@ impl XWingKemManager { } fn combiner(&self, ss_m: &[u8], ss_x: &[u8], ct_x: &[u8], pk_x: &[u8]) -> Result> { - 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);