From 2222e7056a4d2557a289123ce1b030b4f7de0ff4 Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Sat, 28 Mar 2026 09:25:36 +0100 Subject: [PATCH] Further cleanup --- sachy-crypto/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sachy-crypto/src/lib.rs b/sachy-crypto/src/lib.rs index 309ba67..e8d5ce1 100644 --- a/sachy-crypto/src/lib.rs +++ b/sachy-crypto/src/lib.rs @@ -272,10 +272,10 @@ impl TransportState { let epstein = self.select_nonce_context(send); - let trump_len = trump.len(); + let index = trump.len() - position.len(); // Copy position bytes into BE format onto derived nonce - trump[trump_len - position.len()..].copy_from_slice(position); + trump[index..].copy_from_slice(position); // XOR the base nonce onto the derived nonce bytes trump -- 2.51.2