diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 072f626b3..b0fb5a883 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3967,6 +3967,9 @@ static psa_status_t psa_key_agreement_internal( psa_crypto_generator_t *generato break; #endif /* MBEDTLS_ECDH_C */ default: + (void) private_key; + (void) peer_key; + (void) peer_key_length; return( PSA_ERROR_NOT_SUPPORTED ); } if( status != PSA_SUCCESS )