mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Ability to force the Entropy module to use SHA-256 as its basis
By default the SHA-512 module is used if both are available. On some systems, SHA-256 is the better choice. Contributed by: Gergely Budai
This commit is contained in:
parent
cd6d69a414
commit
2ceda57989
4 changed files with 25 additions and 3 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if defined(POLARSSL_SHA512_C)
|
||||
#if defined(POLARSSL_SHA512_C) && !defined(POLARSSL_FORCE_ENTROPY_SHA256)
|
||||
#include "sha512.h"
|
||||
#define POLARSSL_ENTROPY_SHA512_ACCUMULATOR
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue