mirror of https://github.com/wolfSSL/wolfssl
add comments for SHA1 function
This commit is contained in:
parent
479b7e5ca8
commit
a18c1abc13
11
src/ssl.c
11
src/ssl.c
|
@ -28708,6 +28708,17 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
|
|||
defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(HAVE_POCO_LIB) \
|
||||
|| defined(WOLFSSL_HAPROXY) || defined(OPENSSL_EXTRA)
|
||||
|
||||
/* One shot SHA1 hash of message.
|
||||
*
|
||||
* d message to hash
|
||||
* n size of d buffer
|
||||
* md buffer to hold digest. Should be SHA_DIGEST_SIZE.
|
||||
*
|
||||
* Note: if md is null then a static buffer of SHA_DIGEST_SIZE is used.
|
||||
* When the static buffer is used this function is not thread safe.
|
||||
*
|
||||
* Returns a pointer to the message digest on success and NULL on failure.
|
||||
*/
|
||||
unsigned char *wolfSSL_SHA1(const unsigned char *d, size_t n, unsigned char *md)
|
||||
{
|
||||
static byte dig[SHA_DIGEST_SIZE];
|
||||
|
|
Loading…
Reference in New Issue