[BACK]Return to md2.h CVS log [TXT][DIR] Up to [local] / src / include

Annotation of src/include/md2.h, Revision 1.1

1.1     ! niklas      1: /* MD2.H - header file for MD2C.C
        !             2:  * $OpenBSD$
        !             3:  */
        !             4:
        !             5: /* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
        !             6:    rights reserved.
        !             7:
        !             8:    License to copy and use this software is granted for
        !             9:    non-commercial Internet Privacy-Enhanced Mail provided that it is
        !            10:    identified as the "RSA Data Security, Inc. MD2 Message Digest
        !            11:    Algorithm" in all material mentioning or referencing this software
        !            12:    or this function.
        !            13:
        !            14:    RSA Data Security, Inc. makes no representations concerning either
        !            15:    the merchantability of this software or the suitability of this
        !            16:    software for any particular purpose. It is provided "as is"
        !            17:    without express or implied warranty of any kind.
        !            18:
        !            19:    These notices must be retained in any copies of any part of this
        !            20:    documentation and/or software.
        !            21:  */
        !            22:
        !            23: #ifndef _MD2_H_
        !            24: #define _MD2_H_
        !            25:
        !            26: typedef struct MD2Context {
        !            27:   unsigned char state[16];     /* state */
        !            28:   unsigned char checksum[16];  /* checksum */
        !            29:   unsigned int count;          /* number of bytes, modulo 16 */
        !            30:   unsigned char buffer[16];    /* input buffer */
        !            31: } MD2_CTX;
        !            32:
        !            33: void   MD2Init(MD2_CTX *);
        !            34: void   MD2Update(MD2_CTX *, const unsigned char *, unsigned int);
        !            35: void   MD2Final(unsigned char [16], MD2_CTX *);
        !            36: char * MD2End(MD2_CTX *, char *);
        !            37: char * MD2File(char *, char *);
        !            38: char * MD2Data(const unsigned char *, unsigned int, char *);
        !            39:
        !            40: #endif /* _MD2_H_ */