--- rsaref/source/md2.h 2018/04/24 16:37:52 1.1.1.1 +++ rsaref/source/md2.h 2018/04/24 16:38:02 1.1.1.2 @@ -1,7 +1,8 @@ /* MD2.H - header file for MD2C.C */ -/* Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. +/* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All + rights reserved. License to copy and use this software is granted for non-commercial Internet Privacy-Enhanced Mail provided that it is @@ -18,13 +19,27 @@ documentation and/or software. */ +#ifndef _MD2_H_ +#define _MD2_H_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { - unsigned char state[16]; /* state */ - unsigned char checksum[16]; /* checksum */ - unsigned int count; /* number of bytes, modulo 16 */ - unsigned char buffer[16]; /* input buffer */ + unsigned char state[16]; /* state */ + unsigned char checksum[16]; /* checksum */ + unsigned int count; /* number of bytes, modulo 16 */ + unsigned char buffer[16]; /* input buffer */ } MD2_CTX; void MD2Init PROTO_LIST ((MD2_CTX *)); -void MD2Update PROTO_LIST ((MD2_CTX *, unsigned char *, unsigned int)); +void MD2Update PROTO_LIST + ((MD2_CTX *, unsigned char *, unsigned int)); void MD2Final PROTO_LIST ((unsigned char [16], MD2_CTX *)); + +#ifdef __cplusplus +} +#endif + +#endif