summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md2/md2.h
diff options
context:
space:
mode:
authordjm <>2008-09-06 12:17:54 +0000
committerdjm <>2008-09-06 12:17:54 +0000
commit38ce604e3cc97706b876b0525ddff0121115456d (patch)
tree7ccc28afe1789ea3dbedf72365f955d5b8e105b5 /src/lib/libcrypto/md2/md2.h
parent12867252827c8efaa8ddd1fa3b3d6e321e2bcdef (diff)
downloadopenbsd-38ce604e3cc97706b876b0525ddff0121115456d.tar.gz
openbsd-38ce604e3cc97706b876b0525ddff0121115456d.tar.bz2
openbsd-38ce604e3cc97706b876b0525ddff0121115456d.zip
resolve conflicts
Diffstat (limited to 'src/lib/libcrypto/md2/md2.h')
-rw-r--r--src/lib/libcrypto/md2/md2.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libcrypto/md2/md2.h b/src/lib/libcrypto/md2/md2.h
index d0ef9da08e..a46120e7d4 100644
--- a/src/lib/libcrypto/md2/md2.h
+++ b/src/lib/libcrypto/md2/md2.h
@@ -59,13 +59,14 @@
59#ifndef HEADER_MD2_H 59#ifndef HEADER_MD2_H
60#define HEADER_MD2_H 60#define HEADER_MD2_H
61 61
62#include <openssl/opensslconf.h> /* OPENSSL_NO_MD2, MD2_INT */
62#ifdef OPENSSL_NO_MD2 63#ifdef OPENSSL_NO_MD2
63#error MD2 is disabled. 64#error MD2 is disabled.
64#endif 65#endif
66#include <stddef.h>
65 67
66#define MD2_DIGEST_LENGTH 16 68#define MD2_DIGEST_LENGTH 16
67#define MD2_BLOCK 16 69#define MD2_BLOCK 16
68#include <openssl/opensslconf.h> /* MD2_INT */
69 70
70#ifdef __cplusplus 71#ifdef __cplusplus
71extern "C" { 72extern "C" {
@@ -73,20 +74,17 @@ extern "C" {
73 74
74typedef struct MD2state_st 75typedef struct MD2state_st
75 { 76 {
76 int num; 77 unsigned int num;
77 unsigned char data[MD2_BLOCK]; 78 unsigned char data[MD2_BLOCK];
78 MD2_INT cksm[MD2_BLOCK]; 79 MD2_INT cksm[MD2_BLOCK];
79 MD2_INT state[MD2_BLOCK]; 80 MD2_INT state[MD2_BLOCK];
80 } MD2_CTX; 81 } MD2_CTX;
81 82
82const char *MD2_options(void); 83const char *MD2_options(void);
83#ifdef OPENSSL_FIPS
84int private_MD2_Init(MD2_CTX *c);
85#endif
86int MD2_Init(MD2_CTX *c); 84int MD2_Init(MD2_CTX *c);
87int MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); 85int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len);
88int MD2_Final(unsigned char *md, MD2_CTX *c); 86int MD2_Final(unsigned char *md, MD2_CTX *c);
89unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md); 87unsigned char *MD2(const unsigned char *d, size_t n,unsigned char *md);
90#ifdef __cplusplus 88#ifdef __cplusplus
91} 89}
92#endif 90#endif