Don't Apply Keystream when Silence or Zero DMR AMBE Frames; #319

This is primarily a fix for those CCR Radios that use the static silence frame and doesn't encrypt it either at the start of, or end of TX;

The Zeroes Fix (000D2C00000000) is for Anytone or TXI who has a load of zeroes starting, or ending a TX, or during the TXI window on certain VC-F frames;
This commit is contained in:
lwvmobile
2025-10-31 08:06:39 -04:00
parent fa47d0321b
commit f8521fda99
2 changed files with 204 additions and 114 deletions

View File

@@ -74,14 +74,6 @@ void MD2II_end(unsigned char h4[n1])
for (i = 0; i < n1global; i++) h4[i] = h1[i];
}
// /* Convert 64-bit integer to bytes (big-endian) */
// static void u64_to_bytes_be(uint64_t val, unsigned char *out)
// {
// for (int i = 0; i < 8; i++) {
// out[i] = (unsigned char)((val >> (56 - 8 * i)) & 0xFF);
// }
// }
void print_hex(const unsigned char *buf, int len)
{
for (int i = 0; i < len; i++)