Skip to content

Commit

Permalink
Fix for silabs_ecc_export_public to set the type (curve).
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Jul 6, 2023
1 parent 500b66e commit caa0e5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wolfcrypt/src/port/silabs/silabs_ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ int silabs_ecc_export_public(ecc_key* key, sl_se_key_descriptor_t* seKey)
return ret;

key->type = ECC_PUBLICKEY;
key->key.type = seKey->type;
key->key.size = key->dp->size;
key->key.storage.method = SL_SE_KEY_STORAGE_EXTERNAL_PLAINTEXT;
key->key.flags = (SL_SE_KEY_FLAG_ASYMMETRIC_BUFFER_HAS_PUBLIC_KEY);
Expand Down

0 comments on commit caa0e5a

Please sign in to comment.