Merge pull request #1180 from adadnc/master

Fixes error in key size check in 'hf mfu info' for EV1/NTAG
This commit is contained in:
Iceman 2021-02-08 04:47:00 +01:00 committed by GitHub
commit d405103812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1102,7 +1102,7 @@ static int CmdHF14AMfUInfo(const char *Cmd) {
CLIParserFree(ctx); CLIParserFree(ctx);
if (ak_len) { if (ak_len) {
if (ak_len != 16 && ak_len != 8) { if (ak_len != 16 && ak_len != 4) {
PrintAndLogEx(WARNING, "ERROR: Key is incorrect length\n"); PrintAndLogEx(WARNING, "ERROR: Key is incorrect length\n");
return PM3_EINVARG; return PM3_EINVARG;
} }