From 814f0c5fb1e8c47aa7e27c8216e98a6393a8c56e Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 28 Sep 2021 14:41:22 +0100 Subject: [PATCH] Remove check for lack of supported ciphers Add comment explaining (currently) empty function. Signed-off-by: Paul Elliott --- library/psa_crypto_aead.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/library/psa_crypto_aead.c b/library/psa_crypto_aead.c index bc37a043e..a72865c04 100644 --- a/library/psa_crypto_aead.c +++ b/library/psa_crypto_aead.c @@ -446,20 +446,12 @@ psa_status_t mbedtls_psa_aead_set_lengths( size_t ad_length, size_t plaintext_length ) { - + /* Nothing here yet, work is currently done in PSA Core, however support + * for CCM will require this function. */ ( void ) operation; ( void ) ad_length; ( void ) plaintext_length; -#if !defined(MBEDTLS_PSA_BUILTIN_ALG_GCM) && \ - !defined(MBEDTLS_PSA_BUILTIN_ALG_CCM) && \ - !defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305) - { - return ( PSA_ERROR_NOT_SUPPORTED ); - } -#endif /* !MBEDTLS_PSA_BUILTIN_ALG_GCM && !MBEDTLS_PSA_BUILTIN_ALG_CCM && - !MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305) */ - return ( PSA_SUCCESS ); }