SHA1_Final

Finalize a SHA-1 digest into md and clear c (deprecated; prefer EVP_DigestFinal_ex).

Synopsis

Declared in <openssl/sha.h>

[[deprecated]]
int
SHA1_Final(
    unsigned char* md,
    SHA_CTX* c);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
mdOutput buffer of at least SHA_DIGEST_LENGTH (20) bytes.
cContext previously updated with SHA1_Update().