From 19a5a70cc89d7f0c5da040f87a3fd2e1fc1445dc Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 28 Apr 2020 13:36:24 +0200 Subject: [PATCH] cppchecker fix, now use res --- client/src/fido/fidocore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/fido/fidocore.c b/client/src/fido/fidocore.c index 1a680ed88..6ee6557fb 100644 --- a/client/src/fido/fidocore.c +++ b/client/src/fido/fidocore.c @@ -383,7 +383,8 @@ static int FIDO2CheckSignature(json_t *root, uint8_t *publickey, uint8_t *sign, authData, authDataLen, // rpIdHash[32] + flags[1] + signCount[4] clientDataHash, 32, // Hash of the serialized client data. "$.ClientDataHash" from json NULL, 0); - //PrintAndLogEx(NORMAL, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen)); + PrintAndLogEx(DEBUG, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen)); + res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, publickey, xbuf, xbuflen, sign, signLen, true); if (res) { if (res == MBEDTLS_ERR_ECP_VERIFY_FAILED) {