libressl-EVP_sha13
Legacy message digest algorithms
Usage
Crypto Library (libcrypto, -lcrypto)
#include <openssl/evp.h>
const EVP_MD *
EVP_sha1(void);
const EVP_MD *
EVP_md5(void);
const EVP_MD *
EVP_md5_sha1(void);
const EVP_MD *
EVP_md4(void);
Overview
The following message digest algorithms are cryptographically broken. None of them should be used in new code unless there is no way around it.
EVP_sha1() implements the SHA-1 algorithm and produces 160 bits of output from a given input. Examples of protocols and software still requiring it include OCSP, DNS, and the git version control system.
EVP_md5() implements the MD5 algorithm and produces 128 bits of output from a given input. It is still occasionally used when no security is required but a fast hash algorithm is beneficial.
EVP_md5_sha1() produces concatenated MD5 and SHA-1 message digests. Do not use this except where it is required for the historic SSLv3 protocol.
EVP_md4() implements the MD4 algorithm and produces 128 bits of output from a given input. It has been marked as “historic” by the Internet Engineering Task Force since 2011.
Return values
These functions return pointers to static EVP_MD objects implementing the hash functions.