summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mdc2/mdc2.h
diff options
context:
space:
mode:
authorbeck <>2002-05-15 02:29:21 +0000
committerbeck <>2002-05-15 02:29:21 +0000
commitb64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9 (patch)
treefa27cf82a1250b64ed3bf5f4a18c7354d470bbcc /src/lib/libcrypto/mdc2/mdc2.h
parente471e1ea98d673597b182ea85f29e30c97cd08b5 (diff)
downloadopenbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.gz
openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.bz2
openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.zip
OpenSSL 0.9.7 stable 2002 05 08 merge
Diffstat (limited to 'src/lib/libcrypto/mdc2/mdc2.h')
-rw-r--r--src/lib/libcrypto/mdc2/mdc2.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/mdc2/mdc2.h b/src/lib/libcrypto/mdc2/mdc2.h
index 5da8da72f5..793a8a0f13 100644
--- a/src/lib/libcrypto/mdc2/mdc2.h
+++ b/src/lib/libcrypto/mdc2/mdc2.h
@@ -65,7 +65,7 @@
65extern "C" { 65extern "C" {
66#endif 66#endif
67 67
68#ifdef NO_MDC2 68#ifdef OPENSSL_NO_MDC2
69#error MDC2 is disabled. 69#error MDC2 is disabled.
70#endif 70#endif
71 71
@@ -76,14 +76,14 @@ typedef struct mdc2_ctx_st
76 { 76 {
77 int num; 77 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 83
84void MDC2_Init(MDC2_CTX *c); 84int MDC2_Init(MDC2_CTX *c);
85void MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len); 85int MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len);
86void MDC2_Final(unsigned char *md, MDC2_CTX *c); 86int MDC2_Final(unsigned char *md, MDC2_CTX *c);
87unsigned char *MDC2(const unsigned char *d, unsigned long n, 87unsigned char *MDC2(const unsigned char *d, unsigned long n,
88 unsigned char *md); 88 unsigned char *md);
89 89