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

Name

Description

md

Output buffer of at least SHA_DIGEST_LENGTH (20) bytes.

c

Context previously updated with SHA1_Update().

Created with MrDocs