mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 10:00:47 -04:00
is_kdf_alg_supported: Adapt impl to new build flags for HKDF EXTRACT/EXPAND
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
221391b3d2
commit
b57a44bf9b
@ -5067,10 +5067,16 @@ psa_status_t psa_key_derivation_output_key( const psa_key_attributes_t *attribut
|
|||||||
#if defined(AT_LEAST_ONE_BUILTIN_KDF)
|
#if defined(AT_LEAST_ONE_BUILTIN_KDF)
|
||||||
static int is_kdf_alg_supported( psa_algorithm_t kdf_alg )
|
static int is_kdf_alg_supported( psa_algorithm_t kdf_alg )
|
||||||
{
|
{
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF) || \
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF)
|
||||||
defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT) || \
|
if( PSA_ALG_IS_HKDF( kdf_alg ) )
|
||||||
defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXPAND)
|
return( 1 );
|
||||||
if( PSA_ALG_IS_ANY_HKDF( kdf_alg ) )
|
#endif
|
||||||
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT)
|
||||||
|
if( PSA_ALG_IS_HKDF_EXTRACT( kdf_alg ) )
|
||||||
|
return( 1 );
|
||||||
|
#endif
|
||||||
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXPAND)
|
||||||
|
if( PSA_ALG_IS_HKDF_EXPAND( kdf_alg ) )
|
||||||
return( 1 );
|
return( 1 );
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF)
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user