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