commit | f7c43b3145b2952a0bc0e5fe4584df4bf47fe67e | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Sun Dec 09 19:12:19 2018 +0000 |
committer | Hanno Becker <hanno.becker@arm.com> | Tue Dec 18 11:37:28 2018 +0000 |
tree | d2de87f203d4e02b96277e960a82c45ac1fd3dc2 | |
parent | af0c6cb9e0ad58b61b7ceae4cfe1994ce3612311 [diff] |
Add parameter validation to SHA-1
diff --git a/include/mbedtls/sha1.h b/include/mbedtls/sha1.h index bcaeab5..96da3fe 100644 --- a/include/mbedtls/sha1.h +++ b/include/mbedtls/sha1.h
@@ -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" {