From b8b66fa4ad53aaf75ccecfe24491c04e2cbce58a Mon Sep 17 00:00:00 2001 From: Simon Wicky Date: Thu, 18 Apr 2024 13:48:08 +0200 Subject: [PATCH] rerandomize outfox's secret for each hop (#4544) --- nym-outfox/src/packet.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nym-outfox/src/packet.rs b/nym-outfox/src/packet.rs index 0b0208703b..720ed6071a 100644 --- a/nym-outfox/src/packet.rs +++ b/nym-outfox/src/packet.rs @@ -130,6 +130,7 @@ impl OutfoxPacket { // We know that we'll always get 4 nodes, so we can unwrap here let processing_node = nodes.last().unwrap(); let destination_node = nodes.first().unwrap(); + OsRng.fill_bytes(&mut secret_key); stage_params.encode_mix_layer( &mut buffer[range], &secret_key,