esp_crypto_sha1() function
Calculate sha1 sum esp-tls abstraction for crypto sha1 API, calculates the sha1 sum(digest) of the data provided in input which is of ilen size and returns a 20 char sha1 sum
Syntax
int esp_crypto_sha1(const unsigned char *input,
size_t ilen,
unsigned char output[20]);
Arguments
ilen
Length of Input array
output
calculated sha1 sum
Return value
mbedtls stack:- - MBEDTLS_ERR_SHA1_BAD_INPUT_DATA on BAD INPUT. - 0 on success. wolfssl stack:- - -1 on failure. - 0 on success.
esp_crypto_sha1() is called by 1 function and calls 1 function:
![]()
esp_crypto_sha1()
esp_crypto_sha1():
![]()
esp_crypto_sha1()