mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-19 20:27:26 -05:00
YOLO:
Congratulations for clicking this link, you are now reading this description; Add DES-OFB Decryption Support for P25, NXDN, DMR (Tested); Add DES-XL Decryption Support for P25p1 (Tested); Add AES-OFB Decryption Support for P25, DMR (Tested); NXDN(untested); Add P25p1 PDU Decryption Support; (Untested)(Known Modes); Add Remaining (AES, DES) DMR PDU Decryption Support (Known DMRA Modes)(Untested); Decrypt Tytera 16-bit BP (works depending on model); Add AES Keys example csv file for import; Probably a few bugs that'll need to be massaged out now with all the code additions for several years of stashed code;
This commit is contained in:
@@ -432,6 +432,10 @@ void nxdn_frame (dsd_opts * opts, dsd_state * state)
|
||||
}
|
||||
}
|
||||
|
||||
//correct the bit counter if NXDN96 Data Frames (or double FACCH1 steal)
|
||||
if (state->nxdn_cipher_type == 0x2 || state->nxdn_cipher_type == 0x3)
|
||||
state->bit_counterL += (49*4);
|
||||
|
||||
}
|
||||
|
||||
if (voice && facch == 1) //facch steal 1 -- before voice
|
||||
@@ -453,6 +457,10 @@ void nxdn_frame (dsd_opts * opts, dsd_state * state)
|
||||
LFSRN(ambe_temp, ambe_d, state);
|
||||
}
|
||||
}
|
||||
|
||||
//correct the bit counter if FACCH1 steal)
|
||||
if (state->nxdn_cipher_type == 0x2 || state->nxdn_cipher_type == 0x3)
|
||||
state->bit_counterL += 49*2;
|
||||
}
|
||||
|
||||
if (lich == 0x20 || lich == 0x21 || lich == 0x61 || lich == 0x40 || lich == 0x41) state->nxdn_sacch_non_superframe = TRUE;
|
||||
@@ -525,6 +533,10 @@ void nxdn_frame (dsd_opts * opts, dsd_state * state)
|
||||
LFSRN(ambe_temp, ambe_d, state);
|
||||
}
|
||||
}
|
||||
|
||||
//correct the bit counter if FACCH1 steal)
|
||||
if (state->nxdn_cipher_type == 0x2 || state->nxdn_cipher_type == 0x3)
|
||||
state->bit_counterL += 49*2;
|
||||
}
|
||||
|
||||
if (opts->payload == 1 && !voice) fprintf (stderr, "\n");
|
||||
|
||||
Reference in New Issue
Block a user