1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03: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:
Paul Bakker
2014-02-06 15:55:25 +01:00
parent cd6d69a414
commit 2ceda57989
4 changed files with 25 additions and 3 deletions

View File

@ -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