OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [netinet/] [ip_rmd160.h] - Blame information for rev 219

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      include/netinet/rmd160.h
4
//
5
//      
6
//
7
//==========================================================================
8
//####BSDCOPYRIGHTBEGIN####
9
//
10
// -------------------------------------------
11
//
12
// Portions of this software may have been derived from OpenBSD or other sources,
13
// and are covered by the appropriate copyright disclaimers included herein.
14
//
15
// -------------------------------------------
16
//
17
//####BSDCOPYRIGHTEND####
18
//==========================================================================
19
//#####DESCRIPTIONBEGIN####
20
//
21
// Author(s):    gthomas
22
// Contributors: gthomas
23
// Date:         2000-01-10
24
// Purpose:      
25
// Description:  
26
//              
27
//
28
//####DESCRIPTIONEND####
29
//
30
//==========================================================================
31
 
32
 
33
/*      $OpenBSD: ip_rmd160.h,v 1.3 1999/02/17 18:10:08 deraadt Exp $   */
34
 
35
/*
36
 *      FILE:     rmd160.h
37
 *
38
 *      CONTENTS: Header file for a sample C-implementation of the
39
 *                RIPEMD-160 hash-function.
40
 *      TARGET:   any computer with an ANSI C compiler
41
 *
42
 *      AUTHOR:   Antoon Bosselaers, ESAT-COSIC
43
 *      DATE:     1 March 1996
44
 *      VERSION:  1.0
45
 *
46
 *      Copyright (c) Katholieke Universiteit Leuven
47
 *      1996, All Rights Reserved
48
 *
49
 */
50
 
51
#ifndef  _NETINET_RMD160_H      /* make sure this file is read only once */
52
#define  _NETINET_RMD160_H
53
 
54
typedef struct {
55
        u_int32_t state[5];     /* state (ABCDE) */
56
        u_int32_t length[2];    /* number of bits */
57
        u_char    bbuffer[64];  /* overflow buffer */
58
        u_int32_t buflen;       /* number of chars in bbuffer */
59
} RMD160_CTX;
60
 
61
void RMD160Init __P((RMD160_CTX *context));
62
void RMD160Transform __P((u_int32_t state[5], const u_int32_t block[16]));
63
void RMD160Update __P((RMD160_CTX *context, const u_char *data, u_int nbytes));
64
void RMD160Final __P((u_char digest[20], RMD160_CTX *context));
65
char *RMD160End __P((RMD160_CTX *, char *));
66
char *RMD160File __P((char *, char *));
67
char *RMD160Data __P((const u_char *, size_t, char *));
68
 
69
#endif  /* _NETINET_RMD160_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.