From 37100a8a1820f3d46dbea8f06328d76284203ce4 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 4 Dec 2022 15:15:24 +0100 Subject: [PATCH] fix compilation error --- client/src/mifare/mifarehost.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/client/src/mifare/mifarehost.c b/client/src/mifare/mifarehost.c index da2782102..0bd63831b 100644 --- a/client/src/mifare/mifarehost.c +++ b/client/src/mifare/mifarehost.c @@ -1620,24 +1620,29 @@ int vigik_verify(uint8_t *uid, uint8_t uidlen, uint8_t *signature, int signature */ switch (lsb) { - case 1: + case 1: { mbedtls_mpi_sub_mpi(&res, &N, &sqr); break; - case 4: + } + case 4: { mbedtls_mpi_copy(&res, &sqr); break; - case 6: + } + case 6: { mbedtls_mpi_mul_int(&res, &sqr, 2); break; - case 7: + } + case 7: { mbedtls_mpi foo2; mbedtls_mpi_init(&foo2); mbedtls_mpi_sub_mpi(&foo2, &N, &sqr); mbedtls_mpi_mul_int(&res, &foo2, 2); mbedtls_mpi_free(&foo2); break; - default: + } + default: { break; + } } PrintAndLogEx(INFO, "LSB............ " _GREEN_("%u"), lsb);