1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Add parameter validation to SHA-1

This commit is contained in:
Andres Amaya Garcia
2018-12-09 19:12:19 +00:00
committed by Hanno Becker
parent af0c6cb9e0
commit f7c43b3145
3 changed files with 27 additions and 0 deletions

View File

@ -42,6 +42,7 @@
/* MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED is deprecated and should not be used. */
#define MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED -0x0035 /**< SHA-1 hardware accelerator failed */
#define MBEDTLS_ERR_SHA1_BAD_INPUT_DATA -0x0073 /**< Invalid input data. */
#ifdef __cplusplus
extern "C" {