Fix definition of MBEDTLS_SHA256_VALIDATE[_RET] in sha256.c

This commit is contained in:
Hanno Becker 2018-12-18 14:58:32 +00:00
parent 36beb04fd5
commit 230b4f4159

View File

@ -75,8 +75,8 @@ do { \
#endif #endif
#define MBEDTLS_SHA256_VALIDATE_RET(cond) \ #define MBEDTLS_SHA256_VALIDATE_RET(cond) \
MBEDTLS_VALIDATE_RET( MBEDTLS_ERR_SHA256_BAD_INPUT_DATA, cond ) MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_SHA256_BAD_INPUT_DATA )
#define MBEDTLS_SHA256_VALIDATE(cond) MBEDTLS_VALIDATE( cond ) #define MBEDTLS_SHA256_VALIDATE(cond) MBEDTLS_INTERNAL_VALIDATE( cond )
void mbedtls_sha256_init( mbedtls_sha256_context *ctx ) void mbedtls_sha256_init( mbedtls_sha256_context *ctx )
{ {