1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Replace MBEDTLS_MD_CAN_SHA512 with PSA_WANT_ALG_SHA_512

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei
2024-06-13 12:53:54 +02:00
parent ab0af45d11
commit c15ef93aa5
28 changed files with 380 additions and 380 deletions

View File

@ -292,7 +292,7 @@ static int send_cb(void *ctx, unsigned char const *buf, size_t len)
#endif
uint16_t ssl_sig_algs_for_test[] = {
#if defined(MBEDTLS_MD_CAN_SHA512)
#if defined(PSA_WANT_ALG_SHA_512)
MBEDTLS_SSL_SIG_ALG(MBEDTLS_SSL_HASH_SHA512)
#endif
#if defined(PSA_WANT_ALG_SHA_384)

View File

@ -115,7 +115,7 @@ int rng_seed(rng_context_t *rng, int reproducible, const char *pers)
#elif defined(MBEDTLS_HMAC_DRBG_C)
#if defined(PSA_WANT_ALG_SHA_256)
const mbedtls_md_type_t md_type = MBEDTLS_MD_SHA256;
#elif defined(MBEDTLS_MD_CAN_SHA512)
#elif defined(PSA_WANT_ALG_SHA_512)
const mbedtls_md_type_t md_type = MBEDTLS_MD_SHA512;
#else
#error "No message digest available for HMAC_DRBG"

View File

@ -21,7 +21,7 @@
#elif defined(MBEDTLS_ENTROPY_C) && defined(MBEDTLS_CTR_DRBG_C)
#define HAVE_RNG
#elif defined(MBEDTLS_ENTROPY_C) && defined(MBEDTLS_HMAC_DRBG_C) && \
(defined(PSA_WANT_ALG_SHA_256) || defined(MBEDTLS_MD_CAN_SHA512))
(defined(PSA_WANT_ALG_SHA_256) || defined(PSA_WANT_ALG_SHA_512))
#define HAVE_RNG
#endif