fix: more warnings.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user