MD5

Compute the MD5 digest of n bytes at d in one shot (deprecated; prefer EVP_Digest).

Synopsis

Declared in <openssl/md5.h>

[[deprecated]]
unsigned char*
MD5(
    unsigned char const* d,
    size_t n,
    unsigned char* md);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Pointer to the digest bytes (md, or the static buffer when md is NULL).

Parameters

NameDescription
dInput message bytes.
nLength of d in bytes.
mdOutput buffer for the 16-byte digest, or NULL to use a static buffer.