Add Generic Static AMBE Keystream Support; #303

Adding a new method to allow a user to enter a generic keystream len and static keystream via a string that is loaded into a bit array to xor against ambe frames;

This method is intended to be used to allow
This commit is contained in:
lwvmobile
2025-08-22 14:02:09 -04:00
parent 24c1dd97df
commit a5151686ec
4 changed files with 101 additions and 8 deletions

View File

@@ -998,6 +998,10 @@ typedef struct
//anytone bp
int any_bp;
//generic ks
int straight_ks;
int straight_mod;
uint8_t static_ks_bits[2][882];
int static_ks_counter[2];
@@ -1632,6 +1636,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);
void straight_mod_xor_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);