DMR: Hytera Over the Air Encryption (Signalling Encryption) Support; #373

DMR: Fix Hytera PDU Decryption to operate at Block Level; (Fixes confirmed data); #372

DMR: Hytera Enhanced RC4 allows variable len output for OTA, PDU or Voice;

DMR: Fix Segfault in RS12,9 encoder function where freeing static memory caused a crash;

Misc Code tweaks to accomodate new features;
This commit is contained in:
lwvmobile
2026-11-06 21:22:38 -05:00
parent 587181f4de
commit bfa4891965
15 changed files with 1825 additions and 261 deletions

View File

@@ -813,7 +813,7 @@ processMbeFrame (dsd_opts * opts, dsd_state * state, char imbe_fr[8][23], char a
if(state->payload_algid == 0x02)
{
n = 0;
hytera_enhanced_rc4_setup(opts, state, state->R, state->payload_mi);
hytera_enhanced_rc4_setup(opts, state, state->R, state->payload_mi, 135);
}
if (state->payload_algid >= 0x31 && state->payload_algid <= 0x3A)
{
@@ -1313,7 +1313,7 @@ processMbeFrame (dsd_opts * opts, dsd_state * state, char imbe_fr[8][23], char a
if(state->payload_algidR == 0x02)
{
n = 0;
hytera_enhanced_rc4_setup(opts, state, state->RR, state->payload_miR);
hytera_enhanced_rc4_setup(opts, state, state->RR, state->payload_miR, 135);
}
if (state->payload_algidR >= 0x31 && state->payload_algidR <= 0x3A)
{