mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 11:12:20 +01:00
KCAPI ECC: initialize mp_ints
Was not initializing mp_ints and it is needed now.
This commit is contained in:
@@ -6211,9 +6211,10 @@ int wc_ecc_init_ex(ecc_key* key, void* heap, int devId)
|
||||
|
||||
#if defined(WOLFSSL_ATECC508A) || defined(WOLFSSL_ATECC608A)
|
||||
key->slot = ATECC_INVALID_SLOT;
|
||||
#elif defined(WOLFSSL_KCAPI_ECC)
|
||||
key->handle = NULL;
|
||||
#else
|
||||
#if defined(WOLFSSL_KCAPI_ECC)
|
||||
key->handle = NULL;
|
||||
#endif
|
||||
#ifdef ALT_ECC_SIZE
|
||||
key->pubkey.x = (mp_int*)&key->pubkey.xyz[0];
|
||||
key->pubkey.y = (mp_int*)&key->pubkey.xyz[1];
|
||||
|
||||
Reference in New Issue
Block a user