Skip to content

Commit

Permalink
core/pta/remote_attestation: update for libmbedtls API changes in #6151
Browse files Browse the repository at this point in the history
Updated calls to crypto_bignum_free in sign.c to pass the address of the
bignum variables, as required by the libmbedtls API changes introduced
in PR #6151.

Signed-off-by: Yuichi Sugiyama <[email protected]>
  • Loading branch information
mmxsrup committed Oct 9, 2024
1 parent d0e5060 commit 0748646
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/pta/remote_attestation/sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ TEE_Result generate_key(void) {
void free_keypair(void) {
assert(key && key->d && key->x && key->y);

crypto_bignum_free(key->d);
crypto_bignum_free(key->x);
crypto_bignum_free(key->y);
crypto_bignum_free(&key->d);
crypto_bignum_free(&key->x);
crypto_bignum_free(&key->y);

memset(key, 0, sizeof(*key));
free(key);
Expand All @@ -187,8 +187,8 @@ void free_keypair(void) {
void free_pubkey(void) {
assert(pubkey && pubkey->x && pubkey->y);

crypto_bignum_free(pubkey->x);
crypto_bignum_free(pubkey->y);
crypto_bignum_free(&pubkey->x);
crypto_bignum_free(&pubkey->y);

memset(pubkey, 0, sizeof(*pubkey));
free(pubkey);
Expand Down

0 comments on commit 0748646

Please sign in to comment.