| OLD | NEW |
| 1 /* crypto/evp/c_alld.c */ | 1 /* crypto/evp/c_alld.c */ |
| 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
| 6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
| 7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
| 8 * | 8 * |
| 9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
| 10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 EVP_add_digest(EVP_md5()); | 71 EVP_add_digest(EVP_md5()); |
| 72 EVP_add_digest_alias(SN_md5,"ssl2-md5"); | 72 EVP_add_digest_alias(SN_md5,"ssl2-md5"); |
| 73 EVP_add_digest_alias(SN_md5,"ssl3-md5"); | 73 EVP_add_digest_alias(SN_md5,"ssl3-md5"); |
| 74 #endif | 74 #endif |
| 75 #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA0) | 75 #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA0) |
| 76 EVP_add_digest(EVP_sha()); | 76 EVP_add_digest(EVP_sha()); |
| 77 #ifndef OPENSSL_NO_DSA | 77 #ifndef OPENSSL_NO_DSA |
| 78 EVP_add_digest(EVP_dss()); | 78 EVP_add_digest(EVP_dss()); |
| 79 #endif | 79 #endif |
| 80 #endif | 80 #endif |
| 81 #ifndef OPENSSL_NO_SHA | 81 #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) |
| 82 EVP_add_digest(EVP_sha1()); | 82 EVP_add_digest(EVP_sha1()); |
| 83 EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); | 83 EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); |
| 84 EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); | 84 EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); |
| 85 #ifndef OPENSSL_NO_DSA | 85 #ifndef OPENSSL_NO_DSA |
| 86 EVP_add_digest(EVP_dss1()); | 86 EVP_add_digest(EVP_dss1()); |
| 87 EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); | 87 EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); |
| 88 EVP_add_digest_alias(SN_dsaWithSHA1,"DSS1"); | 88 EVP_add_digest_alias(SN_dsaWithSHA1,"DSS1"); |
| 89 EVP_add_digest_alias(SN_dsaWithSHA1,"dss1"); | 89 EVP_add_digest_alias(SN_dsaWithSHA1,"dss1"); |
| 90 #endif | 90 #endif |
| 91 #ifndef OPENSSL_NO_ECDSA | 91 #ifndef OPENSSL_NO_ECDSA |
| 92 EVP_add_digest(EVP_ecdsa()); | 92 EVP_add_digest(EVP_ecdsa()); |
| 93 #endif | 93 #endif |
| 94 #endif | 94 #endif |
| 95 #if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES) | 95 #if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES) |
| 96 EVP_add_digest(EVP_mdc2()); | 96 EVP_add_digest(EVP_mdc2()); |
| 97 #endif | 97 #endif |
| 98 #ifndef OPENSSL_NO_RIPEMD | 98 #ifndef OPENSSL_NO_RIPEMD |
| 99 EVP_add_digest(EVP_ripemd160()); | 99 EVP_add_digest(EVP_ripemd160()); |
| 100 EVP_add_digest_alias(SN_ripemd160,"ripemd"); | 100 EVP_add_digest_alias(SN_ripemd160,"ripemd"); |
| 101 EVP_add_digest_alias(SN_ripemd160,"rmd160"); | 101 EVP_add_digest_alias(SN_ripemd160,"rmd160"); |
| 102 #endif | 102 #endif |
| 103 #ifndef OPENSSL_NO_SHA256 | 103 #ifndef OPENSSL_NO_SHA256 |
| 104 EVP_add_digest(EVP_sha224()); | 104 EVP_add_digest(EVP_sha224()); |
| 105 EVP_add_digest(EVP_sha256()); | 105 EVP_add_digest(EVP_sha256()); |
| 106 #endif | 106 #endif |
| 107 #ifndef OPENSSL_NO_SHA512 | 107 #ifndef OPENSSL_NO_SHA512 |
| 108 EVP_add_digest(EVP_sha384()); | 108 EVP_add_digest(EVP_sha384()); |
| 109 EVP_add_digest(EVP_sha512()); | 109 EVP_add_digest(EVP_sha512()); |
| 110 #endif | 110 #endif |
| 111 #ifndef OPENSSL_NO_WHIRLPOOL |
| 112 EVP_add_digest(EVP_whirlpool()); |
| 113 #endif |
| 111 } | 114 } |
| OLD | NEW |