Coverage Report

Created: 2026-02-14 07:20

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/openssl34/crypto/evp/c_alld.c
Line
Count
Source
1
/*
2
 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
3
 *
4
 * Licensed under the Apache License 2.0 (the "License").  You may not use
5
 * this file except in compliance with the License.  You can obtain a copy
6
 * in the file LICENSE in the source distribution or at
7
 * https://www.openssl.org/source/license.html
8
 */
9
10
#include <stdio.h>
11
#include "internal/cryptlib.h"
12
#include <openssl/evp.h>
13
#include "crypto/evp.h"
14
#include <openssl/pkcs12.h>
15
#include <openssl/objects.h>
16
17
void openssl_add_all_digests_int(void)
18
165
{
19
165
#ifndef OPENSSL_NO_MD4
20
165
    EVP_add_digest(EVP_md4());
21
165
#endif
22
165
#ifndef OPENSSL_NO_MD5
23
165
    EVP_add_digest(EVP_md5());
24
165
    EVP_add_digest_alias(SN_md5, "ssl3-md5");
25
165
    EVP_add_digest(EVP_md5_sha1());
26
165
#endif
27
165
    EVP_add_digest(EVP_sha1());
28
165
    EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
29
165
    EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
30
165
#if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES)
31
165
    EVP_add_digest(EVP_mdc2());
32
165
#endif
33
165
#ifndef OPENSSL_NO_RMD160
34
165
    EVP_add_digest(EVP_ripemd160());
35
165
    EVP_add_digest_alias(SN_ripemd160, "ripemd");
36
165
    EVP_add_digest_alias(SN_ripemd160, "rmd160");
37
165
#endif
38
165
    EVP_add_digest(EVP_sha224());
39
165
    EVP_add_digest(EVP_sha256());
40
165
    EVP_add_digest(EVP_sha384());
41
165
    EVP_add_digest(EVP_sha512());
42
165
    EVP_add_digest(EVP_sha512_224());
43
165
    EVP_add_digest(EVP_sha512_256());
44
165
#ifndef OPENSSL_NO_WHIRLPOOL
45
165
    EVP_add_digest(EVP_whirlpool());
46
165
#endif
47
165
#ifndef OPENSSL_NO_SM3
48
165
    EVP_add_digest(EVP_sm3());
49
165
#endif
50
165
#ifndef OPENSSL_NO_BLAKE2
51
165
    EVP_add_digest(EVP_blake2b512());
52
165
    EVP_add_digest(EVP_blake2s256());
53
165
#endif
54
165
    EVP_add_digest(EVP_sha3_224());
55
165
    EVP_add_digest(EVP_sha3_256());
56
165
    EVP_add_digest(EVP_sha3_384());
57
165
    EVP_add_digest(EVP_sha3_512());
58
165
    EVP_add_digest(EVP_shake128());
59
165
    EVP_add_digest(EVP_shake256());
60
165
}