Add missing MD dependency for pkcs5_pbkdf2_hmac

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2022-08-31 19:10:42 -04:00
parent 11265d78bb
commit f000471c66
2 changed files with 5 additions and 1 deletions

View file

@ -90,6 +90,7 @@ int mbedtls_pkcs5_pbkdf2_hmac_ext( mbedtls_md_type_t md_type,
unsigned int iteration_count,
uint32_t key_length, unsigned char *output );
#if defined(MBEDTLS_MD_C)
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
/**
* \brief PKCS#5 PBKDF2 using HMAC
@ -113,6 +114,7 @@ int MBEDTLS_DEPRECATED mbedtls_pkcs5_pbkdf2_hmac( mbedtls_md_context_t *ctx,
unsigned int iteration_count,
uint32_t key_length, unsigned char *output );
#endif /* !MBEDTLS_DEPRECATED_REMOVED */
#endif /* MBEDTLS_MD_C */
#if defined(MBEDTLS_SELF_TEST)
/**

View file

@ -208,6 +208,7 @@ exit:
}
#endif /* MBEDTLS_ASN1_PARSE_C */
#if defined(MBEDTLS_MD_C)
#if defined(MBEDTLS_DEPRECATED_REMOVED)
static
#endif
@ -292,6 +293,7 @@ cleanup:
return( ret );
}
#endif /* MBEDTLS_MD_C */
int mbedtls_pkcs5_pbkdf2_hmac_ext( mbedtls_md_type_t md_alg,
const unsigned char *password,
@ -418,7 +420,7 @@ cleanup:
ret = MBEDTLS_ERR_ERROR_GENERIC_ERROR;
return ( ret );
#endif
#endif /* !MBEDTLS_MD_C */
}
#if defined(MBEDTLS_SELF_TEST)