| OLD | NEW |
| 1 /* crypto/rand/rand_lcl.h */ | 1 /* crypto/rand/rand_lcl.h */ |
| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 #define MD_DIGEST_LENGTH MDC2_DIGEST_LENGTH | 147 #define MD_DIGEST_LENGTH MDC2_DIGEST_LENGTH |
| 148 #define MD_Init(a) EVP_DigestInit_ex(a,EVP_mdc2(), NULL) | 148 #define MD_Init(a) EVP_DigestInit_ex(a,EVP_mdc2(), NULL) |
| 149 #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_mdc2(), NULL) | 149 #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_mdc2(), NULL) |
| 150 #elif defined(USE_MD2_RAND) | 150 #elif defined(USE_MD2_RAND) |
| 151 #include <openssl/md2.h> | 151 #include <openssl/md2.h> |
| 152 #define MD_DIGEST_LENGTH MD2_DIGEST_LENGTH | 152 #define MD_DIGEST_LENGTH MD2_DIGEST_LENGTH |
| 153 #define MD_Init(a) EVP_DigestInit_ex(a,EVP_md2(), NULL) | 153 #define MD_Init(a) EVP_DigestInit_ex(a,EVP_md2(), NULL) |
| 154 #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_md2(), NULL) | 154 #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_md2(), NULL) |
| 155 #endif | 155 #endif |
| 156 | 156 |
| 157 #ifndef OPENSSL_NO_ENGINE | |
| 158 void int_RAND_set_callbacks( | |
| 159 int (*set_rand_func)(const RAND_METHOD *meth, | |
| 160 const RAND_METHOD **pmeth), | |
| 161 const RAND_METHOD *(*get_rand_func) | |
| 162 (const RAND_METHOD **pmeth)); | |
| 163 int eng_RAND_set_rand_method(const RAND_METHOD *meth, | |
| 164 const RAND_METHOD **pmeth); | |
| 165 const RAND_METHOD *eng_RAND_get_rand_method(const RAND_METHOD **pmeth); | |
| 166 #endif | |
| 167 | |
| 168 | 157 |
| 169 #endif | 158 #endif |
| OLD | NEW |