From 5cc689a821b86ca249d613ee58d621ab3e1748ac Mon Sep 17 00:00:00 2001 From: Darryl Green Date: Tue, 24 Jul 2018 15:34:10 +0100 Subject: [PATCH] Add handling for (sometimes) unused parameters --- library/psa_crypto.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 210fa5ff4..94f6b1776 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -2164,6 +2164,12 @@ psa_status_t psa_asymmetric_encrypt( psa_key_slot_t key, key_slot_t *slot; psa_status_t status; + (void) input; + (void) input_length; + (void) salt; + (void) output; + (void) output_size; + *output_length = 0; if( ! PSA_ALG_IS_RSA_OAEP( alg ) && salt_length != 0 ) @@ -2238,6 +2244,12 @@ psa_status_t psa_asymmetric_decrypt( psa_key_slot_t key, key_slot_t *slot; psa_status_t status; + (void) input; + (void) input_length; + (void) salt; + (void) output; + (void) output_size; + *output_length = 0; if( ! PSA_ALG_IS_RSA_OAEP( alg ) && salt_length != 0 )