Annotation of src/include/rmd160.h, Revision 1.2
1.2 ! niklas 1: /* $OpenBSD$ */
! 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 */
30: u_int32_t buffer[16]; /* input buffer */
31: } RMD160_CTX;
32:
33: /********************************************************************/
34:
35: /* function prototypes */
36:
37: void RMD160Init __P((RMD160_CTX *context));
38: void RMD160Transform __P((u_int32_t state[5], const u_int32_t block[16]));
39: void RMD160Update __P((RMD160_CTX *context, const u_char *data, u_int nbytes));
40: void RMD160Final __P((u_char digest[20], RMD160_CTX *context));
41: char *RMD160End __P((RMD160_CTX *, char *));
42: char *RMD160File __P((char *, char *));
43: char *RMD160Data __P((const u_char *, size_t, char *));
44:
45: #endif /* _RMD160_H */
46:
47: /*********************** end of file rmd160.h ***********************/