Remove dependency of ssl_cookie on SHA-224

Cookies are fully opaque so we can change the hash used at any time, it's not
part of the API.

The cookie module handles truncation, so it's simpler to always use SHA-256
rather than check if SHA-224 is available.
This commit is contained in:
Manuel Pégourié-Gonnard 2019-09-02 15:07:20 +02:00
parent 81ed9fb277
commit 7f2c3e4034

View file

@ -50,7 +50,7 @@
* with max 32 bytes of cookie for DTLS 1.0
*/
#if defined(MBEDTLS_SHA256_C)
#define COOKIE_MD MBEDTLS_MD_SHA224
#define COOKIE_MD MBEDTLS_MD_SHA256
#define COOKIE_MD_OUTLEN 32
#define COOKIE_HMAC_LEN 28
#elif defined(MBEDTLS_SHA512_C)