--- rsaref/source/md5.h 2018/04/24 16:37:52 1.1 +++ rsaref/source/md5.h 2018/04/24 16:38:03 1.1.1.2 @@ -1,7 +1,8 @@ /* MD5.H - header file for MD5C.C */ -/* Copyright (C) 1991, RSA Data Security, Inc. All rights reserved. +/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All + rights reserved. License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest @@ -22,13 +23,27 @@ documentation and/or software. */ +#ifndef _MD5_H_ +#define _MD5_H_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + /* MD5 context. */ typedef struct { - UINT4 state[4]; /* state (ABCD) */ - UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ - unsigned char buffer[64]; /* input buffer */ + UINT4 state[4]; /* state (ABCD) */ + UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ + unsigned char buffer[64]; /* input buffer */ } MD5_CTX; void MD5Init PROTO_LIST ((MD5_CTX *)); -void MD5Update PROTO_LIST ((MD5_CTX *, unsigned char *, unsigned int)); +void MD5Update PROTO_LIST + ((MD5_CTX *, unsigned char *, unsigned int)); void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *)); + +#ifdef __cplusplus +} +#endif + +#endif