Skip to content

Commit ed2e230

Browse files
committed
se050: initialize keyId to abide compilers
1 parent fff6f3f commit ed2e230

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/port/nxp/se050_port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ int se050_ecc_create_key(struct ecc_key* key, int curve_id, int keySize)
26002600
sss_key_store_t host_keystore;
26012601
uint8_t derBuf[SE050_ECC_DER_MAX];
26022602
size_t derSz = sizeof(derBuf);
2603-
word32 keyId;
2603+
word32 keyId = 0;
26042604
int keySizeBits;
26052605
sss_cipher_type_t curveType;
26062606
int keyCreated = 0;
@@ -2694,7 +2694,7 @@ int se050_ecc_shared_secret(ecc_key* private_key, ecc_key* public_key,
26942694
sss_object_t ref_public_key;
26952695
sss_object_t deriveKey;
26962696
sss_derive_key_t ctx_derive_key;
2697-
word32 keyId;
2697+
word32 keyId = 0;
26982698
int keySize;
26992699
int keySizeBits;
27002700
sss_cipher_type_t curveType;

0 commit comments

Comments
 (0)