mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix compilation error
This commit is contained in:
parent
ce3ca0e7d1
commit
37100a8a18
1 changed files with 10 additions and 5 deletions
|
@ -1620,24 +1620,29 @@ int vigik_verify(uint8_t *uid, uint8_t uidlen, uint8_t *signature, int signature
|
||||||
*/
|
*/
|
||||||
|
|
||||||
switch (lsb) {
|
switch (lsb) {
|
||||||
case 1:
|
case 1: {
|
||||||
mbedtls_mpi_sub_mpi(&res, &N, &sqr);
|
mbedtls_mpi_sub_mpi(&res, &N, &sqr);
|
||||||
break;
|
break;
|
||||||
case 4:
|
}
|
||||||
|
case 4: {
|
||||||
mbedtls_mpi_copy(&res, &sqr);
|
mbedtls_mpi_copy(&res, &sqr);
|
||||||
break;
|
break;
|
||||||
case 6:
|
}
|
||||||
|
case 6: {
|
||||||
mbedtls_mpi_mul_int(&res, &sqr, 2);
|
mbedtls_mpi_mul_int(&res, &sqr, 2);
|
||||||
break;
|
break;
|
||||||
case 7:
|
}
|
||||||
|
case 7: {
|
||||||
mbedtls_mpi foo2;
|
mbedtls_mpi foo2;
|
||||||
mbedtls_mpi_init(&foo2);
|
mbedtls_mpi_init(&foo2);
|
||||||
mbedtls_mpi_sub_mpi(&foo2, &N, &sqr);
|
mbedtls_mpi_sub_mpi(&foo2, &N, &sqr);
|
||||||
mbedtls_mpi_mul_int(&res, &foo2, 2);
|
mbedtls_mpi_mul_int(&res, &foo2, 2);
|
||||||
mbedtls_mpi_free(&foo2);
|
mbedtls_mpi_free(&foo2);
|
||||||
break;
|
break;
|
||||||
default:
|
}
|
||||||
|
default: {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "LSB............ " _GREEN_("%u"), lsb);
|
PrintAndLogEx(INFO, "LSB............ " _GREEN_("%u"), lsb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue