From 9d65f0ef129c5f8a8b4714e02551a729cb3ae335 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Fri, 7 Apr 2023 08:53:17 +0200 Subject: [PATCH] pk_wrap: simplify prototype of eckey_check_pair_psa() Signed-off-by: Valerio Setti --- library/pk_wrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/pk_wrap.c b/library/pk_wrap.c index 45d743f51..a5eb46595 100644 --- a/library/pk_wrap.c +++ b/library/pk_wrap.c @@ -1104,7 +1104,8 @@ cleanup: * - write the raw content of public key "pub" to a local buffer * - compare the two buffers */ -static int eckey_check_pair_psa(const void *pub, const void *prv) +static int eckey_check_pair_psa(const mbedtls_ecp_keypair *pub, + const mbedtls_ecp_keypair *prv) { psa_status_t status; psa_key_attributes_t key_attr = PSA_KEY_ATTRIBUTES_INIT; @@ -1172,8 +1173,7 @@ static int eckey_check_pair(const void *pub, const void *prv, #if defined(MBEDTLS_USE_PSA_CRYPTO) (void) f_rng; (void) p_rng; - return eckey_check_pair_psa((const mbedtls_ecp_keypair *) pub, - (const mbedtls_ecp_keypair *) prv); + return eckey_check_pair_psa(pub, prv); #else /* MBEDTLS_USE_PSA_CRYPTO */ return mbedtls_ecp_check_pub_priv((const mbedtls_ecp_keypair *) pub, (const mbedtls_ecp_keypair *) prv,