Skip to content

Commit

Permalink
Rename PSA_ECC_CURVE_SECP_R1 macro
Browse files Browse the repository at this point in the history
In mbedtls 3.0.0, the ECC Family Macros are renamed according to
PSA Spec. This commit updates the ECC macro used.

Signed-off-by: Gowtham Suresh Kumar <[email protected]>
  • Loading branch information
gowthamsk-arm committed Jan 17, 2023
1 parent 58c12b6 commit 78bb6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/c-tests/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int main()
PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_PERSISTENCE_DEFAULT, (psa_key_location_t)0x000001));
psa_set_key_usage_flags(&key_pair_attributes, PSA_KEY_USAGE_SIGN_HASH | PSA_KEY_USAGE_VERIFY_HASH);
psa_set_key_algorithm(&key_pair_attributes, alg);
psa_set_key_type(&key_pair_attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_CURVE_SECP_R1));
psa_set_key_type(&key_pair_attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1));
psa_set_key_bits(&key_pair_attributes, 256U);

status = psa_generate_key(&key_pair_attributes, &key_pair_handle);
Expand Down

0 comments on commit 78bb6ea

Please sign in to comment.