Skip to content

Commit

Permalink
Merge branch 'dev' into eddsa-fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
laurencelundblade authored Aug 8, 2023
2 parents 06c0164 + 59002f9 commit 4cf2789
Show file tree
Hide file tree
Showing 30 changed files with 1,466 additions and 570 deletions.
7 changes: 7 additions & 0 deletions crypto_adapters/t_cose_openssl_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,3 +2527,10 @@ t_cose_crypto_export_ec2_key(struct t_cose_key key_handle,

return T_COSE_SUCCESS;
}


void
t_cose_crypto_free_ec_key(struct t_cose_key key_handle)
{
EVP_PKEY_free(key_handle.key.ptr);
}
8 changes: 8 additions & 0 deletions crypto_adapters/t_cose_psa_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ t_cose_crypto_sign_restart(bool started,

if(!crypto_context) {
return_value = T_COSE_ERR_FAIL;
goto Done;
}
psa_crypto_context = (struct t_cose_psa_crypto_context *)crypto_context;

Expand Down Expand Up @@ -1573,3 +1574,10 @@ t_cose_crypto_export_ec2_key(struct t_cose_key key_handle,

return T_COSE_SUCCESS;
}


void
t_cose_crypto_free_ec_key(struct t_cose_key key_handle)
{
psa_destroy_key((psa_key_id_t)key_handle.key.handle);
}
7 changes: 7 additions & 0 deletions crypto_adapters/t_cose_test_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,3 +706,10 @@ t_cose_crypto_ecdh(struct t_cose_key private_key,
return T_COSE_ERR_FAIL;

}


void
t_cose_crypto_free_ec_key(struct t_cose_key key_handle)
{
(void)key_handle;
}
Loading

0 comments on commit 4cf2789

Please sign in to comment.