mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-06-07 02:21:55 +00:00
Merge pull request #3066 from aaronjamt/patch-1
[hf seos] Another minor bugfix
This commit is contained in:
@@ -926,6 +926,7 @@ static int seos_mutual_auth(uint8_t *adfOID, size_t adfoid_len, uint8_t *randomI
|
||||
|
||||
// ----------------- Encryption and MAC Generation -----------------
|
||||
uint8_t mac[8];
|
||||
memset(mac, 0x00, 8);
|
||||
uint8_t mutual_auth_enc[32];
|
||||
create_cryptogram(AES_key, mutual_auth_plain, mutual_auth_enc, sizeof(mutual_auth_plain), encryption_algorithm);
|
||||
create_cmac(MAC_key, mutual_auth_enc, mac, sizeof(mutual_auth_enc), sizeof(mac), encryption_algorithm);
|
||||
|
||||
Reference in New Issue
Block a user