Skip to content

Commit

Permalink
Merge pull request #6253 from JacobBarthelmeh/CAAM
Browse files Browse the repository at this point in the history
resolve warning about uninitialized variable
  • Loading branch information
dgarske authored Mar 31, 2023
2 parents 35611ca + f7d3ce7 commit 753ad4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wolfcrypt/src/port/caam/wolfcaam_fsl_nxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ int wc_CAAM_EccSign(const byte* in, int inlen, byte* out, word32* outlen,
word32 sSz = MAX_ECC_BYTES;
int keySz;
word32 ecdsel;
word32 enc;
word32 enc = 0;
status_t status;
caam_handle_t hndl;

Expand Down Expand Up @@ -464,6 +464,9 @@ int wc_CAAM_EccSign(const byte* in, int inlen, byte* out, word32* outlen,
case CAAM_BLACK_KEY_ECB:
enc = CAAM_PKHA_ENC_PRI_AESECB;
break;
default:
WOLFSSL_MSG("unknown/unsupported key type");
return BAD_FUNC_ARG;
}

if ((wc_ptr_t)in % CAAM_BUFFER_ALIGN) {
Expand Down

0 comments on commit 753ad4c

Please sign in to comment.