mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Add MBEDTLS_ERR_SHA256_BAD_INPUT_DATA to error.{h,c}
This commit is contained in:
parent
79e593f617
commit
9e76c0e77f
@ -860,6 +860,8 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
||||
#if defined(MBEDTLS_SHA256_C)
|
||||
if( use_ret == -(MBEDTLS_ERR_SHA256_HW_ACCEL_FAILED) )
|
||||
mbedtls_snprintf( buf, buflen, "SHA256 - SHA-256 hardware accelerator failed" );
|
||||
if( use_ret == -(MBEDTLS_ERR_SHA256_BAD_INPUT_DATA) )
|
||||
mbedtls_snprintf( buf, buflen, "SHA256 - Invalid input data" );
|
||||
#endif /* MBEDTLS_SHA256_C */
|
||||
|
||||
#if defined(MBEDTLS_SHA512_C)
|
||||
|
Loading…
x
Reference in New Issue
Block a user