mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-19 20:27:26 -05:00
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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user