Skip to content

Commit

Permalink
Fix incorrect use of mbedtls_platform_zeroize() in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Cosgrove <[email protected]>
  • Loading branch information
tom-cosgrove-arm committed Sep 1, 2023
1 parent 43210b5 commit f7829b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/suites/test_suite_pkwrite.function
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void pk_write_public_from_private(char *priv_key_file, char *pub_key_file)
pub_key_raw, pub_key_len);

#if defined(MBEDTLS_USE_PSA_CRYPTO)
mbedtls_platform_zeroize(derived_key_raw, sizeof(derived_key_raw));
mbedtls_platform_zeroize(derived_key_raw, derived_key_len);

TEST_EQUAL(mbedtls_pk_wrap_as_opaque(&priv_key, &opaque_key_id,
PSA_ALG_NONE), 0);
Expand Down

0 comments on commit f7829b0

Please sign in to comment.