2016-05-17 19:38:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
2000-02-04 14:01:38 +00:00
|
|
|
*
|
2016-05-17 19:38:09 +00:00
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
2000-02-04 14:01:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-05-14 14:56:48 +00:00
|
|
|
#include "internal/cryptlib.h"
|
2000-02-04 14:01:38 +00:00
|
|
|
#include <openssl/evp.h>
|
2016-02-08 16:43:03 +00:00
|
|
|
#include <internal/evp_int.h>
|
2000-02-04 14:01:38 +00:00
|
|
|
#include <openssl/pkcs12.h>
|
|
|
|
#include <openssl/objects.h>
|
|
|
|
|
2016-04-12 11:20:16 +00:00
|
|
|
void openssl_add_all_digests_int(void)
|
2015-01-22 03:40:55 +00:00
|
|
|
{
|
2001-02-19 16:06:34 +00:00
|
|
|
#ifndef OPENSSL_NO_MD4
|
2015-01-22 03:40:55 +00:00
|
|
|
EVP_add_digest(EVP_md4());
|
2000-08-14 14:05:53 +00:00
|
|
|
#endif
|
2001-02-19 16:06:34 +00:00
|
|
|
#ifndef OPENSSL_NO_MD5
|
2015-01-22 03:40:55 +00:00
|
|
|
EVP_add_digest(EVP_md5());
|
|
|
|
EVP_add_digest_alias(SN_md5, "ssl3-md5");
|
2014-11-20 13:28:48 +00:00
|
|
|
EVP_add_digest(EVP_md5_sha1());
|
2000-02-04 14:01:38 +00:00
|
|
|
#endif
|
2015-01-22 03:40:55 +00:00
|
|
|
EVP_add_digest(EVP_sha1());
|
|
|
|
EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
|
|
|
|
EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
|
2001-02-19 16:06:34 +00:00
|
|
|
#if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES)
|
2015-01-22 03:40:55 +00:00
|
|
|
EVP_add_digest(EVP_mdc2());
|
2000-02-04 14:01:38 +00:00
|
|
|
#endif
|
2015-01-14 20:57:28 +00:00
|
|
|
#ifndef OPENSSL_NO_RMD160
|
2015-01-22 03:40:55 +00:00
|
|
|
EVP_add_digest(EVP_ripemd160());
|
|
|
|
EVP_add_digest_alias(SN_ripemd160, "ripemd");
|
|
|
|
EVP_add_digest_alias(SN_ripemd160, "rmd160");
|
2004-05-31 13:14:08 +00:00
|
|
|
#endif
|
2015-01-22 03:40:55 +00:00
|
|
|
EVP_add_digest(EVP_sha224());
|
|
|
|
EVP_add_digest(EVP_sha256());
|
|
|
|
EVP_add_digest(EVP_sha384());
|
|
|
|
EVP_add_digest(EVP_sha512());
|
2005-11-30 20:57:23 +00:00
|
|
|
#ifndef OPENSSL_NO_WHIRLPOOL
|
2015-01-22 03:40:55 +00:00
|
|
|
EVP_add_digest(EVP_whirlpool());
|
2000-02-04 14:01:38 +00:00
|
|
|
#endif
|
2016-03-09 22:08:31 +00:00
|
|
|
#ifndef OPENSSL_NO_BLAKE2
|
2016-03-09 23:49:55 +00:00
|
|
|
EVP_add_digest(EVP_blake2b512());
|
|
|
|
EVP_add_digest(EVP_blake2s256());
|
2017-07-16 21:41:51 +00:00
|
|
|
#endif
|
|
|
|
EVP_add_digest(EVP_sha3_224());
|
|
|
|
EVP_add_digest(EVP_sha3_256());
|
|
|
|
EVP_add_digest(EVP_sha3_384());
|
|
|
|
EVP_add_digest(EVP_sha3_512());
|
|
|
|
EVP_add_digest(EVP_shake128());
|
|
|
|
EVP_add_digest(EVP_shake256());
|
2015-01-22 03:40:55 +00:00
|
|
|
}
|