Compute the SHA-1 digest of n bytes at d in one shot.
Declared in <openssl/sha.h>
unsigned char*
SHA1(
unsigned char const* d,
size_t n,
unsigned char* md);
Pointer to the digest bytes (md, or the static buffer when md is NULL), or NULL on error.
| Name | Description |
|---|---|
| d | Input message bytes. |
| n | Number of bytes at d. |
| md | Output buffer of at least SHA_DIGEST_LENGTH bytes, or NULL to use a static buffer (not thread-safe). |