mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
swap arrays
This commit is contained in:
parent
b7be78a8fb
commit
62031e640c
1 changed files with 1 additions and 1 deletions
|
@ -870,7 +870,7 @@ void mifare_cypher_single_block(desfirekey_t key, uint8_t *data, uint8_t *ivect,
|
||||||
mbedtls_aes_context actx;
|
mbedtls_aes_context actx;
|
||||||
mbedtls_aes_init(&actx);
|
mbedtls_aes_init(&actx);
|
||||||
mbedtls_aes_setkey_dec(&actx, key->data, 128);
|
mbedtls_aes_setkey_dec(&actx, key->data, 128);
|
||||||
mbedtls_aes_crypt_ecb(&actx, MBEDTLS_AES_DECRYPT, edata, data);
|
mbedtls_aes_crypt_ecb(&actx, MBEDTLS_AES_DECRYPT, data, edata);
|
||||||
mbedtls_aes_free(&actx);
|
mbedtls_aes_free(&actx);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue