Compute the SHA‐512 digest of n bytes at d in one shot.

Synopsis

Declared in <openssl/sha.h>

unsigned char*
SHA512(
    unsigned char const* d,
    size_t n,
    unsigned char* md);

Return Value

Pointer to the digest bytes, or NULL on error.

Parameters

Name

Description

d

Input message bytes.

n

Number of bytes at d.

md

Output buffer of at least SHA512_DIGEST_LENGTH bytes, or NULL for a static buffer (not thread‐safe).

Created with MrDocs