| OLD | NEW |
| 1 /* crypto/evp/m_md5.c */ | 1 /* crypto/evp/m_md5.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 * copied and put under another distribution licence | 55 * copied and put under another distribution licence |
| 56 * [including the GNU Public Licence.] | 56 * [including the GNU Public Licence.] |
| 57 */ | 57 */ |
| 58 | 58 |
| 59 #include <stdio.h> | 59 #include <stdio.h> |
| 60 #include "cryptlib.h" | 60 #include "cryptlib.h" |
| 61 | 61 |
| 62 #ifndef OPENSSL_NO_MD5 | 62 #ifndef OPENSSL_NO_MD5 |
| 63 | 63 |
| 64 #include <openssl/evp.h> | 64 #include <openssl/evp.h> |
| 65 #include "evp_locl.h" | |
| 66 #include <openssl/objects.h> | 65 #include <openssl/objects.h> |
| 67 #include <openssl/x509.h> | 66 #include <openssl/x509.h> |
| 68 #include <openssl/md5.h> | 67 #include <openssl/md5.h> |
| 69 #ifndef OPENSSL_NO_RSA | 68 #ifndef OPENSSL_NO_RSA |
| 70 #include <openssl/rsa.h> | 69 #include <openssl/rsa.h> |
| 71 #endif | 70 #endif |
| 72 | 71 |
| 73 static int init(EVP_MD_CTX *ctx) | 72 static int init(EVP_MD_CTX *ctx) |
| 74 { return MD5_Init(ctx->md_data); } | 73 { return MD5_Init(ctx->md_data); } |
| 75 | 74 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 93 EVP_PKEY_RSA_method, | 92 EVP_PKEY_RSA_method, |
| 94 MD5_CBLOCK, | 93 MD5_CBLOCK, |
| 95 sizeof(EVP_MD *)+sizeof(MD5_CTX), | 94 sizeof(EVP_MD *)+sizeof(MD5_CTX), |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 const EVP_MD *EVP_md5(void) | 97 const EVP_MD *EVP_md5(void) |
| 99 { | 98 { |
| 100 return(&md5_md); | 99 return(&md5_md); |
| 101 } | 100 } |
| 102 #endif | 101 #endif |
| OLD | NEW |