mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
psa_crypto_cipher: add guard for unused variable
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@ -91,7 +91,10 @@ psa_status_t mbedtls_cipher_values_from_psa(
|
|||||||
mbedtls_cipher_id_t *cipher_id)
|
mbedtls_cipher_id_t *cipher_id)
|
||||||
{
|
{
|
||||||
mbedtls_cipher_id_t cipher_id_tmp;
|
mbedtls_cipher_id_t cipher_id_tmp;
|
||||||
|
/* Only DES modifies key_bits */
|
||||||
|
#if !defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_DES)
|
||||||
(void) key_bits;
|
(void) key_bits;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (PSA_ALG_IS_AEAD(alg)) {
|
if (PSA_ALG_IS_AEAD(alg)) {
|
||||||
alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg, 0);
|
alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg, 0);
|
||||||
|
Reference in New Issue
Block a user