Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion wolfcrypt/src/ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10735,7 +10735,10 @@ int wc_ecc_import_x963_ex2(const byte* in, word32 inLen, ecc_key* key,
XMEMCPY(key->pubkey_raw, (byte*)in, inLen);
}
#elif defined(WOLFSSL_KCAPI_ECC)
XMEMCPY(key->pubkey_raw, (byte*)in, inLen);
if (inLen <= (word32)sizeof(key->pubkey_raw))
XMEMCPY(key->pubkey_raw, (byte*)in, inLen);
else
err = BAD_FUNC_ARG;
Comment thread
JacobBarthelmeh marked this conversation as resolved.
Comment thread
JacobBarthelmeh marked this conversation as resolved.
#endif

if (err == MP_OKAY) {
Expand Down
Loading