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

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

1.1     ! millert     1: /********************************************************************\
        !             2:  *
        !             3:  *      FILE:     rmd160.h
        !             4:  *
        !             5:  *      CONTENTS: Header file for a sample C-implementation of the
        !             6:  *                RIPEMD-160 hash-function.
        !             7:  *      TARGET:   any computer with an ANSI C compiler
        !             8:  *
        !             9:  *      AUTHOR:   Antoon Bosselaers, ESAT-COSIC
        !            10:  *      DATE:     1 March 1996
        !            11:  *      VERSION:  1.0
        !            12:  *
        !            13:  *      Copyright (c) Katholieke Universiteit Leuven
        !            14:  *      1996, All Rights Reserved
        !            15:  *
        !            16: \********************************************************************/
        !            17:
        !            18: #ifndef  _RMD160_H     /* make sure this file is read only once */
        !            19: #define  _RMD160_H
        !            20:
        !            21: /********************************************************************/
        !            22:
        !            23: /* structure definitions */
        !            24:
        !            25: typedef struct {
        !            26:        u_int32_t state[5];     /* state (ABCDE) */
        !            27:        u_int32_t length[2];    /* number of bits */
        !            28:        u_int32_t buffer[16];   /* input buffer */
        !            29: } RMD160_CTX;
        !            30:
        !            31: /********************************************************************/
        !            32:
        !            33: /* function prototypes */
        !            34:
        !            35: void RMD160Init __P((RMD160_CTX *context));
        !            36: void RMD160Transform __P((u_int32_t state[5], const u_int32_t block[16]));
        !            37: void RMD160Update __P((RMD160_CTX *context, const u_char *data, u_int nbytes));
        !            38: void RMD160Final __P((u_char digest[20], RMD160_CTX *context));
        !            39: char *RMD160End __P((RMD160_CTX *, char *));
        !            40: char *RMD160File __P((char *, char *));
        !            41: char *RMD160Data __P((const u_char *, size_t, char *));
        !            42:
        !            43: #endif  /* _RMD160_H */
        !            44:
        !            45: /*********************** end of file rmd160.h ***********************/