add a specific check function for static nonces (used in 'hf mf nested') (#911)

* add a specific check function for static nonces in 'hf mf nested'
* uses a fixed nr_enc and does all the crypto operations on client
* for all possible keys calculate par_enc and ar_enc and send them to device
* CHANGELOG update
This commit is contained in:
pwpiwi 2020-03-16 13:32:00 +01:00 committed by GitHub
parent bedae7768c
commit aa8ff592ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 308 additions and 232 deletions

View file

@ -19,6 +19,9 @@
#define MF_MAD1_SECTOR 0x00
#define MF_MAD2_SECTOR 0x10
// Fixed encrypted nonce used for nested attack with fixed nonce tags
#define NESTED_FIXED_NR_ENC {0x70, 0x69, 0x77, 0x69}
//-----------------------------------------------------------------------------
// ISO 14443A
//-----------------------------------------------------------------------------