]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/evp/c_alld.c
New function EVP_CIPHER_free()
[thirdparty/openssl.git] / crypto / evp / c_alld.c
CommitLineData
aa6bb135 1/*
4bed94f0 2 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
af57d843 3 *
4a8b0c55 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
aa6bb135
RS
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
af57d843
DSH
8 */
9
10#include <stdio.h>
b39fc560 11#include "internal/cryptlib.h"
af57d843 12#include <openssl/evp.h>
176db6dc 13#include "internal/evp_int.h"
af57d843
DSH
14#include <openssl/pkcs12.h>
15#include <openssl/objects.h>
16
b3599dbb 17void openssl_add_all_digests_int(void)
0f113f3e 18{
cf1b7d96 19#ifndef OPENSSL_NO_MD4
0f113f3e 20 EVP_add_digest(EVP_md4());
3009458e 21#endif
cf1b7d96 22#ifndef OPENSSL_NO_MD5
0f113f3e
MC
23 EVP_add_digest(EVP_md5());
24 EVP_add_digest_alias(SN_md5, "ssl3-md5");
2f142ada 25 EVP_add_digest(EVP_md5_sha1());
af57d843 26#endif
0f113f3e
MC
27 EVP_add_digest(EVP_sha1());
28 EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
29 EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
cf1b7d96 30#if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES)
0f113f3e 31 EVP_add_digest(EVP_mdc2());
af57d843 32#endif
4b618848 33#ifndef OPENSSL_NO_RMD160
0f113f3e
MC
34 EVP_add_digest(EVP_ripemd160());
35 EVP_add_digest_alias(SN_ripemd160, "ripemd");
36 EVP_add_digest_alias(SN_ripemd160, "rmd160");
31c2ac1c 37#endif
0f113f3e
MC
38 EVP_add_digest(EVP_sha224());
39 EVP_add_digest(EVP_sha256());
0f113f3e
MC
40 EVP_add_digest(EVP_sha384());
41 EVP_add_digest(EVP_sha512());
4bed94f0
P
42 EVP_add_digest(EVP_sha512_224());
43 EVP_add_digest(EVP_sha512_256());
8b9afce5 44#ifndef OPENSSL_NO_WHIRLPOOL
0f113f3e 45 EVP_add_digest(EVP_whirlpool());
af57d843 46#endif
a0c3e4fa
JL
47#ifndef OPENSSL_NO_SM3
48 EVP_add_digest(EVP_sm3());
49#endif
2d0b4412 50#ifndef OPENSSL_NO_BLAKE2
208527a7
KR
51 EVP_add_digest(EVP_blake2b512());
52 EVP_add_digest(EVP_blake2s256());
e4adad92
AP
53#endif
54 EVP_add_digest(EVP_sha3_224());
55 EVP_add_digest(EVP_sha3_256());
56 EVP_add_digest(EVP_sha3_384());
57 EVP_add_digest(EVP_sha3_512());
e4adad92
AP
58 EVP_add_digest(EVP_shake128());
59 EVP_add_digest(EVP_shake256());
0f113f3e 60}