psa: Fix unused variable warnings

Fix unused variable warnings when no AEAD
algorithm is enabled in the build.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2021-12-03 15:25:24 +01:00
parent c7a40bc9c2
commit 170067043f
2 changed files with 6 additions and 1 deletions

View File

@ -432,7 +432,9 @@ psa_status_t mbedtls_psa_aead_set_nonce(
else else
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */ #endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
{ {
( void ) operation;
( void ) nonce; ( void ) nonce;
( void ) nonce_length;
return ( PSA_ERROR_NOT_SUPPORTED ); return ( PSA_ERROR_NOT_SUPPORTED );
} }
@ -533,8 +535,10 @@ psa_status_t mbedtls_psa_aead_update(
else else
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */ #endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
{ {
( void ) operation;
( void ) input; ( void ) input;
( void ) input_length; ( void ) output;
( void ) output_size;
return ( PSA_ERROR_NOT_SUPPORTED ); return ( PSA_ERROR_NOT_SUPPORTED );
} }

View File

@ -1130,6 +1130,7 @@ psa_status_t psa_driver_wrapper_cipher_decrypt_setup(
default: default:
/* Key is declared with a lifetime not known to us */ /* Key is declared with a lifetime not known to us */
(void)status; (void)status;
(void)operation;
(void)key_buffer; (void)key_buffer;
(void)key_buffer_size; (void)key_buffer_size;
(void)alg; (void)alg;