mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
add hint
This commit is contained in:
parent
35a3064799
commit
a8f583af4d
1 changed files with 2 additions and 0 deletions
|
@ -619,6 +619,8 @@ int DesfireEV2CalcCMAC(DesfireContext *ctx, uint8_t cmd, uint8_t *data, size_t d
|
||||||
return aes_cmac8(NULL, ctx->sessionKeyMAC, mdata, mac, mdatalen);
|
return aes_cmac8(NULL, ctx->sessionKeyMAC, mdata, mac, mdatalen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://www.nxp.com/docs/en/data-sheet/MF2DLHX0.pdf
|
||||||
|
// page 42
|
||||||
void DesfireGenTransSessionKey(uint8_t *key, uint32_t trCntr, uint8_t *uid, bool forMAC, uint8_t *sessionkey) {
|
void DesfireGenTransSessionKey(uint8_t *key, uint32_t trCntr, uint8_t *uid, bool forMAC, uint8_t *sessionkey) {
|
||||||
uint8_t xiv[CRYPTO_AES_BLOCK_SIZE] = {0};
|
uint8_t xiv[CRYPTO_AES_BLOCK_SIZE] = {0};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue