[#SHA1]
= SHA1
:mrdocs:

Compute the SHA&hyphen;1 digest of `n` bytes at `d` in one shot&period;

== Synopsis

Declared in `&lt;openssl&sol;sha&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char*
SHA1(
    unsigned char const* d,
    size&lowbar;t n,
    unsigned char* md);
----

== Return Value

Pointer to the digest bytes (`md,` or the static buffer when `md` is NULL), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *d*
| Input message bytes&period;
| *n*
| Number of bytes at `d&period;`
| *md*
| Output buffer of at least SHA&lowbar;DIGEST&lowbar;LENGTH bytes, or NULL to use a static buffer (not thread&hyphen;safe)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
