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:
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user