mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 19:59:34 +08:00
add some debug
This commit is contained in:
parent
05814fbe75
commit
44343d806f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue