From ae1e36fbb5c5e334e677ff52f18eb9d197d68e3b Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:55:54 +0200 Subject: [PATCH] use be for nonce bytes --- src/voice/udp/handle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/voice/udp/handle.rs b/src/voice/udp/handle.rs index 516ad7d..822384d 100644 --- a/src/voice/udp/handle.rs +++ b/src/voice/udp/handle.rs @@ -151,8 +151,8 @@ impl UdpHandle { data_lock.last_udp_encryption_nonce = Some(nonce); drop(data_lock); - // TODO: Is le correct? This is not documented anywhere - let mut bytes = nonce.to_le_bytes().to_vec(); + // TODO: Is big endian correct? This is not documented anywhere + let mut bytes = nonce.to_be_bytes().to_vec(); // This is 4 bytes, it has to be a different size, appends 0s while bytes.len() < 24 {