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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [bsd_tcpip/] [v2_0/] [include/] [sys/] [md5.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      include/sys/md5.h
4
//
5
//==========================================================================
6
//####BSDCOPYRIGHTBEGIN####
7
//
8
// -------------------------------------------
9
//
10
// Portions of this software may have been derived from OpenBSD, 
11
// FreeBSD or other sources, and are covered by the appropriate
12
// copyright disclaimers included herein.
13
//
14
// Portions created by Red Hat are
15
// Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
16
//
17
// -------------------------------------------
18
//
19
//####BSDCOPYRIGHTEND####
20
//==========================================================================
21
 
22
/* MD5.H - header file for MD5C.C
23
 * $FreeBSD: src/sys/sys/md5.h,v 1.13 1999/12/29 04:24:44 peter Exp $
24
 */
25
 
26
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
27
rights reserved.
28
 
29
License to copy and use this software is granted provided that it
30
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
31
Algorithm" in all material mentioning or referencing this software
32
or this function.
33
 
34
License is also granted to make and use derivative works provided
35
that such works are identified as "derived from the RSA Data
36
Security, Inc. MD5 Message-Digest Algorithm" in all material
37
mentioning or referencing the derived work.
38
 
39
RSA Data Security, Inc. makes no representations concerning either
40
the merchantability of this software or the suitability of this
41
software for any particular purpose. It is provided "as is"
42
without express or implied warranty of any kind.
43
 
44
These notices must be retained in any copies of any part of this
45
documentation and/or software.
46
 */
47
 
48
#ifndef _SYS_MD5_H_
49
#define _SYS_MD5_H_
50
/* MD5 context. */
51
typedef struct MD5Context {
52
  u_int32_t state[4];   /* state (ABCD) */
53
  u_int32_t count[2];   /* number of bits, modulo 2^64 (lsb first) */
54
  unsigned char buffer[64];     /* input buffer */
55
} MD5_CTX;
56
 
57
#include <sys/param.h>
58
 
59
__BEGIN_DECLS
60
void   MD5Init (MD5_CTX *);
61
void   MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
62
void   MD5Pad (MD5_CTX *);
63
void   MD5Final (unsigned char [16], MD5_CTX *);
64
char * MD5End(MD5_CTX *, char *);
65
char * MD5File(const char *, char *);
66
char * MD5Data(const unsigned char *, unsigned int, char *);
67
#ifdef _KERNEL
68
void MD5Transform __P((u_int32_t [4], const unsigned char [64]));
69
#endif
70
__END_DECLS
71
#endif /* _SYS_MD5_H_ */

powered by: WebSVN 2.1.0

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