From 70cc51ed7a8f4c671f55b7e14ed821ea8cdfba9b Mon Sep 17 00:00:00 2001 From: Karolin Varner Date: Tue, 3 Oct 2023 18:43:34 +0200 Subject: [PATCH] fix: Swap auth and biscuit fields in RespHello Issue: #68 (https://github.com/rosenpass/rosenpass/issues/68#issuecomment-1563655004) --- rosenpass/src/msgs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rosenpass/src/msgs.rs b/rosenpass/src/msgs.rs index 9108f1b..1d1dce8 100644 --- a/rosenpass/src/msgs.rs +++ b/rosenpass/src/msgs.rs @@ -291,10 +291,10 @@ data_lense! { RespHello := ecti: EphemeralKEM::CT_LEN, /// Classic McEliece Ciphertext scti: StaticKEM::CT_LEN, - /// Empty encrypted message (just an auth tag) - auth: sodium::AEAD_TAG_LEN, /// Responders handshake state in encrypted form - biscuit: BISCUIT_CT_LEN + biscuit: BISCUIT_CT_LEN, + /// Empty encrypted message (just an auth tag) + auth: sodium::AEAD_TAG_LEN } data_lense! { InitConf :=