mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Keep string syntax in color macros
This commit is contained in:
parent
48124f89b4
commit
da6cdf014b
24 changed files with 144 additions and 144 deletions
|
@ -158,10 +158,10 @@ int roca_self_test(void)
|
|||
|
||||
|
||||
if (emv_rocacheck(keyp, 64, false)) {
|
||||
PrintAndLogEx(SUCCESS, "Weak modulus [ %s]", _GREEN_(PASS));
|
||||
PrintAndLogEx(SUCCESS, "Weak modulus [ %s]", _GREEN_("PASS"));
|
||||
} else {
|
||||
ret++;
|
||||
PrintAndLogEx(FAILED, "Weak modulus [ %s]", _RED_(FAIL));
|
||||
PrintAndLogEx(FAILED, "Weak modulus [ %s]", _RED_("FAIL"));
|
||||
}
|
||||
|
||||
// negative
|
||||
|
@ -172,9 +172,9 @@ int roca_self_test(void)
|
|||
|
||||
if (emv_rocacheck(keyn, 64, false)) {
|
||||
ret++;
|
||||
PrintAndLogEx(FAILED, "Strong modulus [ %s]", _RED_(FAIL));
|
||||
PrintAndLogEx(FAILED, "Strong modulus [ %s]", _RED_("FAIL"));
|
||||
} else {
|
||||
PrintAndLogEx(SUCCESS, "Strong modulus [ %s]", _GREEN_(PASS));
|
||||
PrintAndLogEx(SUCCESS, "Strong modulus [ %s]", _GREEN_("PASS"));
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -98,9 +98,9 @@ int ExecuteCryptoTests(bool verbose)
|
|||
PrintAndLog("\n--------------------------");
|
||||
|
||||
if (TestFail)
|
||||
PrintAndLogEx(FAILED, "\tTest(s) [ %s ]", _RED_(FAIL));
|
||||
PrintAndLogEx(FAILED, "\tTest(s) [ %s ]", _RED_("FAIL"));
|
||||
else
|
||||
PrintAndLogEx(SUCCESS, "\tTest(s) [ %s ]", _GREEN_(OK));
|
||||
PrintAndLogEx(SUCCESS, "\tTest(s) [ %s ]", _GREEN_("OK"));
|
||||
|
||||
return TestFail;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue