mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
resolve warning about uninitialized variable
This commit is contained in:
@@ -405,7 +405,7 @@ int wc_CAAM_EccSign(const byte* in, int inlen, byte* out, word32* outlen,
|
|||||||
word32 sSz = MAX_ECC_BYTES;
|
word32 sSz = MAX_ECC_BYTES;
|
||||||
int keySz;
|
int keySz;
|
||||||
word32 ecdsel;
|
word32 ecdsel;
|
||||||
word32 enc;
|
word32 enc = 0;
|
||||||
status_t status;
|
status_t status;
|
||||||
caam_handle_t hndl;
|
caam_handle_t hndl;
|
||||||
|
|
||||||
@@ -464,6 +464,9 @@ int wc_CAAM_EccSign(const byte* in, int inlen, byte* out, word32* outlen,
|
|||||||
case CAAM_BLACK_KEY_ECB:
|
case CAAM_BLACK_KEY_ECB:
|
||||||
enc = CAAM_PKHA_ENC_PRI_AESECB;
|
enc = CAAM_PKHA_ENC_PRI_AESECB;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
WOLFSSL_MSG("unknown/unsupported key type");
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((wc_ptr_t)in % CAAM_BUFFER_ALIGN) {
|
if ((wc_ptr_t)in % CAAM_BUFFER_ALIGN) {
|
||||||
|
Reference in New Issue
Block a user