chg, prints

This commit is contained in:
iceman1001 2020-05-29 10:23:14 +02:00
commit 529b33b234

View file

@ -143,8 +143,6 @@ cleanup:
} }
int roca_self_test(void) { int roca_self_test(void) {
int ret = 0;
PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "");
PrintAndLogEx(INFO, "ROCA check vulnerability tests"); PrintAndLogEx(INFO, "ROCA check vulnerability tests");
@ -154,7 +152,7 @@ int roca_self_test(void) {
"\x27\x83\x30\xd3\xf4\x71\xa2\x53\x8f\xa6\x67\x80\x2e\xd2\xa3\xc4"\ "\x27\x83\x30\xd3\xf4\x71\xa2\x53\x8f\xa6\x67\x80\x2e\xd2\xa3\xc4"\
"\x4a\x8b\x7d\xea\x82\x6e\x88\x8d\x0a\xa3\x41\xfd\x66\x4f\x7f\xa7"; "\x4a\x8b\x7d\xea\x82\x6e\x88\x8d\x0a\xa3\x41\xfd\x66\x4f\x7f\xa7";
int ret = 0;
if (emv_rocacheck(keyp, 64, false)) { if (emv_rocacheck(keyp, 64, false)) {
PrintAndLogEx(SUCCESS, "Weak modulus [ %s ]", _GREEN_("PASS")); PrintAndLogEx(SUCCESS, "Weak modulus [ %s ]", _GREEN_("PASS"));
} else { } else {
@ -174,6 +172,5 @@ int roca_self_test(void) {
} else { } else {
PrintAndLogEx(SUCCESS, "Strong modulus [ %s ]", _GREEN_("PASS")); PrintAndLogEx(SUCCESS, "Strong modulus [ %s ]", _GREEN_("PASS"));
} }
return ret; return ret;
} }