no printf

This commit is contained in:
iceman1001 2020-08-29 14:21:09 +02:00
parent da3e5dff82
commit 43803947c3

View file

@ -71,7 +71,8 @@ static mbedtls_mpi_uint mpi_get_uint(const mbedtls_mpi *X) {
if (X->n == 1 && X->s > 0) { if (X->n == 1 && X->s > 0) {
return X->p[0]; return X->p[0];
} }
printf("ZERRRRO!!!\n");
PrintAndLogEx(WARNING, "ZERRRRO!!!\n");
return 0; return 0;
} }
@ -82,7 +83,7 @@ static void print_mpi(const char *msg, int radix, const mbedtls_mpi *X) {
size_t len = 0; size_t len = 0;
mbedtls_mpi_write_string(X, radix, Xchar, sizeof(Xchar), &len); mbedtls_mpi_write_string(X, radix, Xchar, sizeof(Xchar), &len);
printf("%s[%zu] %s\n", msg, len, Xchar); PrintAndLogEx(INFO, "%s[%zu] %s\n", msg, len, Xchar);
} }
*/ */
bool emv_rocacheck(const unsigned char *buf, size_t buflen, bool verbose) { bool emv_rocacheck(const unsigned char *buf, size_t buflen, bool verbose) {