rerandomize outfox's secret for each hop (#4544)

This commit is contained in:
Simon Wicky
2024-04-18 13:48:08 +02:00
committed by GitHub
parent ba59022160
commit b8b66fa4ad
+1
View File
@@ -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,