mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
fix redundantassignment
This commit is contained in:
parent
f61ca64681
commit
2635ae43b7
1 changed files with 2 additions and 0 deletions
|
@ -337,6 +337,7 @@ static int CmdHFFidoRegister(const char *cmd) {
|
||||||
&buf[67], keyHandleLen, // keyHandle
|
&buf[67], keyHandleLen, // keyHandle
|
||||||
&buf[1], 65, // user public key
|
&buf[1], 65, // user public key
|
||||||
NULL, 0);
|
NULL, 0);
|
||||||
|
(void)res;
|
||||||
//PrintAndLogEx(NORMAL, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen));
|
//PrintAndLogEx(NORMAL, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen));
|
||||||
res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, public_key, xbuf, xbuflen, &buf[hashp], len - hashp, true);
|
res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, public_key, xbuf, xbuflen, &buf[hashp], len - hashp, true);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
@ -563,6 +564,7 @@ static int CmdHFFidoAuthenticate(const char *cmd) {
|
||||||
&buf[1], 4, // counter
|
&buf[1], 4, // counter
|
||||||
data, 32, // challenge parameter
|
data, 32, // challenge parameter
|
||||||
NULL, 0);
|
NULL, 0);
|
||||||
|
(void)res;
|
||||||
//PrintAndLogEx(NORMAL, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen));
|
//PrintAndLogEx(NORMAL, "--xbuf(%d)[%d]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen));
|
||||||
res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, public_key, xbuf, xbuflen, &buf[5], len - 5, true);
|
res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, public_key, xbuf, xbuflen, &buf[5], len - 5, true);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue