mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 13:20:30 +00:00
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:
parent
c7a40bc9c2
commit
170067043f
@ -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 );
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user