mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fix: more warnings.
This commit is contained in:
parent
526f50aa9d
commit
25292eab2e
2 changed files with 10 additions and 10 deletions
|
@ -766,7 +766,7 @@ int CmdHFiClassDecrypt(const char *Cmd) {
|
|||
hdr->csn[4],hdr->csn[5],hdr->csn[6],hdr->csn[7]);
|
||||
|
||||
// tripledes
|
||||
mbedtls_des3_context ctx = { 0 };
|
||||
mbedtls_des3_context ctx;
|
||||
mbedtls_des3_set2key_dec( &ctx, key);
|
||||
|
||||
uint8_t enc_dump[8] = {0};
|
||||
|
@ -797,7 +797,7 @@ static int iClassEncryptBlkData(uint8_t *blkData) {
|
|||
PrintAndLogEx(SUCCESS, "decryption file found");
|
||||
uint8_t encryptedData[16];
|
||||
uint8_t *encrypted = encryptedData;
|
||||
mbedtls_des3_context ctx = { 0 };
|
||||
mbedtls_des3_context ctx;
|
||||
mbedtls_des3_set2key_enc( &ctx, key);
|
||||
|
||||
mbedtls_des3_crypt_ecb(&ctx, blkData,encrypted);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue