]> git.proxmox.com Git - efi-boot-shim.git/blame - Cryptlib/OpenSSL/crypto/evp/c_alld.c
New upstream version 15+1533136590.3beb971
[efi-boot-shim.git] / Cryptlib / OpenSSL / crypto / evp / c_alld.c
CommitLineData
7bf7a6d0
MTL
1/*
2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3e575651 3 *
7bf7a6d0
MTL
4 * Licensed under the OpenSSL license (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
3e575651
SL
8 */
9
10#include <stdio.h>
7bf7a6d0 11#include "internal/cryptlib.h"
3e575651 12#include <openssl/evp.h>
7bf7a6d0 13#include <internal/evp_int.h>
3e575651
SL
14#include <openssl/pkcs12.h>
15#include <openssl/objects.h>
16
7bf7a6d0 17void openssl_add_all_digests_int(void)
d3819813 18{
3e575651 19#ifndef OPENSSL_NO_MD4
d3819813 20 EVP_add_digest(EVP_md4());
3e575651
SL
21#endif
22#ifndef OPENSSL_NO_MD5
d3819813 23 EVP_add_digest(EVP_md5());
d3819813 24 EVP_add_digest_alias(SN_md5, "ssl3-md5");
7bf7a6d0 25 EVP_add_digest(EVP_md5_sha1());
3e575651 26#endif
d3819813
MTL
27 EVP_add_digest(EVP_sha1());
28 EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
29 EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
3e575651 30#if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES)
d3819813 31 EVP_add_digest(EVP_mdc2());
3e575651 32#endif
7bf7a6d0 33#ifndef OPENSSL_NO_RMD160
d3819813
MTL
34 EVP_add_digest(EVP_ripemd160());
35 EVP_add_digest_alias(SN_ripemd160, "ripemd");
36 EVP_add_digest_alias(SN_ripemd160, "rmd160");
3e575651 37#endif
d3819813
MTL
38 EVP_add_digest(EVP_sha224());
39 EVP_add_digest(EVP_sha256());
d3819813
MTL
40 EVP_add_digest(EVP_sha384());
41 EVP_add_digest(EVP_sha512());
d3819813
MTL
42#ifndef OPENSSL_NO_WHIRLPOOL
43 EVP_add_digest(EVP_whirlpool());
3e575651 44#endif
7bf7a6d0
MTL
45#ifndef OPENSSL_NO_BLAKE2
46 EVP_add_digest(EVP_blake2b512());
47 EVP_add_digest(EVP_blake2s256());
48#endif
d3819813 49}