DMR: LFSR Function for Kirisun Encryption Methods; #319

Add LFSR to DMR Alg Refresh;

Full Link Control and SBLE Tweaks Regarding Kirisun Enc;
This commit is contained in:
lwvmobile
2025-10-11 21:02:59 -04:00
parent ac1c658870
commit eb24239c51
4 changed files with 101 additions and 15 deletions

View File

@@ -75,8 +75,10 @@ void dmr_flco (dsd_opts * opts, dsd_state * state, uint8_t lc_bits[], uint32_t C
//Kirisun
if (*IrrecoverableErrors == 0 && CRCCorrect == 1 && fid == 0x0A) //&& (so & 0x40) == 0x40
{
//disable late entry for DMRA, Flag 3 for future checks
opts->dmr_le = 3;
//disable late entry for DMRA, Flag 3 if encrypted, 0 if not
if (so & 0x40)
opts->dmr_le = 3;
else opts->dmr_le = 0;
}
//read ahead a little to get this for the xpt flag