1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Entropy collector and CTR-DRBG now also work on SHA-256 if SHA-512 not available

This commit is contained in:
Paul Bakker
2013-08-27 15:06:26 +02:00
parent 0a20171d52
commit fb08fd2e23
6 changed files with 65 additions and 5 deletions

View File

@ -439,7 +439,9 @@ struct _ssl_handshake_params
md5_context fin_md5;
sha1_context fin_sha1;
sha256_context fin_sha256;
#if defined(POLARSSL_SHA512_C)
sha512_context fin_sha512;
#endif
void (*update_checksum)(ssl_context *, const unsigned char *, size_t);
void (*calc_verify)(ssl_context *, unsigned char *);