DMR: Add 16-bit Anytone BP Support; #303

Reset static_ks_counter as various places in code;

Remove the static_ks_counter reset from KWD SCR link control and tweak SO bits;

Fix Forced KS application to work in both slots;

Allow Static Wav File or Per Call Wav File in SDRTrunk MBE format playback; #298

Same as above for .amb, .dmb, and .imb format playback;

Update Usage and Docs;
This commit is contained in:
lwvmobile
2025-08-20 23:12:57 -04:00
parent 6f171620dc
commit 24c1dd97df
9 changed files with 184 additions and 76 deletions

View File

@@ -994,6 +994,10 @@ typedef struct
//kenwood scrambler on DMR with forced application
int ken_sc;
//anytone bp
int any_bp;
uint8_t static_ks_bits[2][882];
int static_ks_counter[2];
@@ -1627,6 +1631,7 @@ void tyt_ap_pc4_keystream_creation(dsd_state * state, char * input);
//Misc Other Encryption Modes
void ken_dmr_scrambler_keystream_creation(dsd_state * state, char * input);
void anytone_bp_keystream_creation(dsd_state * state, char * input);
//Hytera Enhanced
void hytera_enhanced_rc4_setup(dsd_opts * opts, dsd_state * state, unsigned long long int key_value, unsigned long long int mi_value);