mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
ecc.c, logging.c: local value shadows global
This commit is contained in:
committed by
Jacob Barthelmeh
parent
32bf163633
commit
8ae1b7823e
@@ -4073,6 +4073,26 @@ int wc_ecc_verify_hash(const byte* sig, word32 siglen, const byte* hash,
|
||||
return ECC_BAD_ARG_E;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (key->asyncDev.marker == WOLFSSL_ASYNC_MARKER_ECC) {
|
||||
#ifdef HAVE_CAVIUM
|
||||
/* TODO: Not implemented */
|
||||
#else
|
||||
AsyncCryptTestDev* testDev = &key->asyncDev.dev;
|
||||
if (testDev->type == ASYNC_TEST_NONE) {
|
||||
testDev->type = ASYNC_TEST_ECC_VERIFY;
|
||||
testDev->eccVerify.in = sig;
|
||||
testDev->eccVerify.inSz = siglen;
|
||||
testDev->eccVerify.out = hash;
|
||||
testDev->eccVerify.outSz = hashlen;
|
||||
testDev->eccVerify.stat = state;
|
||||
testDev->eccVerify.key = key;
|
||||
return WC_PENDING_E;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
switch(key->state) {
|
||||
case ECC_STATE_NONE:
|
||||
case ECC_STATE_VERIFY_DECODE:
|
||||
|
Reference in New Issue
Block a user