add some debug

This commit is contained in:
merlokk 2018-12-28 19:25:19 +02:00
parent 05814fbe75
commit 44343d806f

View file

@ -109,11 +109,15 @@ printf("--roca:%d\n", i);
MBEDTLS_MPI_CHK( mbedtls_mpi_read_string(&g_one, 10, "1") );
MBEDTLS_MPI_CHK( mbedtls_mpi_add_int(&t_prime, &t_prime, g_primes[i]) );
print_mpi("--t_prime:", 10, &t_prime);
MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi(&t_temp, &t_modulus, &t_prime) );
print_mpi("--t_temp:", 10, &t_temp);
MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l(&g_one, mpi_get_uint(&t_temp)) );
print_mpi("--g_one:", 10, &g_one);
print_mpi("--g_prints:", 10, &g_prints[i]);
if (bitand_is_zero(&t_temp, &g_prints[i])) {
PrintAndLogEx(FAILED, "No fingerprint found\n");
ret = false;