| OLD | NEW |
| 1 /* crypto/mdc2/mdc2.h */ | 1 /* crypto/mdc2/mdc2.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #define MDC2_DIGEST_LENGTH 16 | 73 #define MDC2_DIGEST_LENGTH 16 |
| 74 | 74 |
| 75 typedef struct mdc2_ctx_st | 75 typedef struct mdc2_ctx_st |
| 76 { | 76 { |
| 77 unsigned int num; | 77 unsigned int num; |
| 78 unsigned char data[MDC2_BLOCK]; | 78 unsigned char data[MDC2_BLOCK]; |
| 79 DES_cblock h,hh; | 79 DES_cblock h,hh; |
| 80 int pad_type; /* either 1 or 2, default 1 */ | 80 int pad_type; /* either 1 or 2, default 1 */ |
| 81 } MDC2_CTX; | 81 } MDC2_CTX; |
| 82 | 82 |
| 83 #ifdef OPENSSL_FIPS | 83 |
| 84 int private_MDC2_Init(MDC2_CTX *c); | |
| 85 #endif | |
| 86 int MDC2_Init(MDC2_CTX *c); | 84 int MDC2_Init(MDC2_CTX *c); |
| 87 int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len); | 85 int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len); |
| 88 int MDC2_Final(unsigned char *md, MDC2_CTX *c); | 86 int MDC2_Final(unsigned char *md, MDC2_CTX *c); |
| 89 unsigned char *MDC2(const unsigned char *d, size_t n, | 87 unsigned char *MDC2(const unsigned char *d, size_t n, |
| 90 unsigned char *md); | 88 unsigned char *md); |
| 91 | 89 |
| 92 #ifdef __cplusplus | 90 #ifdef __cplusplus |
| 93 } | 91 } |
| 94 #endif | 92 #endif |
| 95 | 93 |
| 96 #endif | 94 #endif |
| 97 | 95 |
| OLD | NEW |