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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [bsd_tcpip/] [current/] [include/] [sys/] [md5.h] - Blame information for rev 808

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

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

powered by: WebSVN 2.1.0

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