mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
rename fct
This commit is contained in:
parent
1a1ebcc330
commit
5039d69c6b
1 changed files with 2 additions and 2 deletions
|
@ -1057,7 +1057,7 @@ static int CmdHFiClassDecrypt(const char *Cmd) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void iClassEncryptBlkData(uint8_t *blk_data, uint8_t *key) {
|
static void iclass_encrypt_block_data(uint8_t *blk_data, uint8_t *key) {
|
||||||
uint8_t encrypted_data[16];
|
uint8_t encrypted_data[16];
|
||||||
uint8_t *encrypted = encrypted_data;
|
uint8_t *encrypted = encrypted_data;
|
||||||
mbedtls_des3_context ctx;
|
mbedtls_des3_context ctx;
|
||||||
|
@ -1118,7 +1118,7 @@ static int CmdHFiClassEncryptBlk(const char *Cmd) {
|
||||||
if (use_sc) {
|
if (use_sc) {
|
||||||
Encrypt(blk_data, blk_data);
|
Encrypt(blk_data, blk_data);
|
||||||
} else {
|
} else {
|
||||||
iClassEncryptBlkData(blk_data, key);
|
iclass_encrypt_block_data(blk_data, key);
|
||||||
}
|
}
|
||||||
PrintAndLogEx(SUCCESS, "encrypted block %s", sprint_hex(blk_data, 8));
|
PrintAndLogEx(SUCCESS, "encrypted block %s", sprint_hex(blk_data, 8));
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue