From ff3733ffefdbc7bee021bec424b0c20bd1c1e05f Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Wed, 19 Mar 2025 22:48:27 -0400 Subject: [PATCH] starting offset for ARC4 is 0; --- src/common/p25/Crypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/p25/Crypto.cpp b/src/common/p25/Crypto.cpp index 81653ea2..5cb1608a 100644 --- a/src/common/p25/Crypto.cpp +++ b/src/common/p25/Crypto.cpp @@ -222,7 +222,7 @@ void P25Crypto::cryptARC4_IMBE(uint8_t* imbe, DUID::E duid) if (m_keystream == nullptr) return; - uint32_t offset = 256U; + uint32_t offset = 0U; if (duid == DUID::LDU2) { offset += 101U; }