mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
refactoring
This commit is contained in:
parent
c3a4f4c7ed
commit
19060effb0
1 changed files with 1 additions and 3 deletions
|
@ -832,8 +832,8 @@ int mfTraceDecode(uint8_t *data_src, int len, bool wantSaveToEmlFile) {
|
|||
if (len ==4) {
|
||||
traceState = TRACE_IDLE;
|
||||
|
||||
at_enc = bytes_to_num(data, 4);
|
||||
if (!traceCrypto1) {
|
||||
at_enc = bytes_to_num(data, 4);
|
||||
|
||||
// decode key here)
|
||||
ks2 = ar_enc ^ prng_successor(nt, 64);
|
||||
|
@ -854,7 +854,6 @@ int mfTraceDecode(uint8_t *data_src, int len, bool wantSaveToEmlFile) {
|
|||
}
|
||||
} else {
|
||||
if (validate_prng_nonce(nt)) {
|
||||
at_enc = bytes_to_num(data, 4);
|
||||
|
||||
|
||||
|
||||
|
@ -863,7 +862,6 @@ int mfTraceDecode(uint8_t *data_src, int len, bool wantSaveToEmlFile) {
|
|||
traceState = TRACE_ERROR;
|
||||
} else {
|
||||
printf("key> hardnested not implemented!\n");
|
||||
at_enc = bytes_to_num(data, 4);
|
||||
|
||||
crypto1_destroy(traceCrypto1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue