fix data crypt - output error. We have 8 bytes.
This commit is contained in:
1 parent
fd88967443
commit
a0efcb2686
3 files changed
+32
-1
No files matched your search
@@ -3681,7 +3681,7 @@ static int CmdCryptography(const char *Cmd) {
|
||||
if ((type & 0x02) == 0x02) {
|
||||
// If we will calculate a MAC
|
||||
aes_cmac8(iv, key, dati, dato, datilen);
|
||||
PrintAndLogEx(INFO, "AES CMAC... " _YELLOW_("%s"), sprint_hex_inrow(dato, datilen));
|
||||
PrintAndLogEx(INFO, "AES CMAC... " _YELLOW_("%s"), sprint_hex_inrow(dato, 8));
|
||||
} else {
|
||||
if (keylen == 32) {
|
||||
aes256_encode(iv, key, dati, dato, datilen);
|
||||
|
||||
Reference in new issue
Block a user