ze-filter
(ze-filter-0.8.0-develop-180218)
zeMD5.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3
* Copyright (C) 2000, 2001 Internet Software Consortium.
4
*
5
* Permission to use, copy, modify, and distribute this software for any
6
* purpose with or without fee is hereby granted, provided that the above
7
* copyright notice and this permission notice appear in all copies.
8
*
9
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
* PERFORMANCE OF THIS SOFTWARE.
16
*/
17
18
/* $Id: md5.h,v 1.8.206.1 2004/03/06 08:14:43 marka Exp $ */
19
20
/*
21
* This is the header file for the MD5 message-digest algorithm.
22
* The algorithm is due to Ron Rivest. This code was
23
* written by Colin Plumb in 1993, no copyright is claimed.
24
* This code is in the public domain; do with it what you wish.
25
*
26
* Equivalent code is available from RSA Data Security, Inc.
27
* This code has been tested against that, and is equivalent,
28
* except that you don't need to include two pages of legalese
29
* with every copy.
30
*
31
* To compute the message digest of a chunk of bytes, declare an
32
* MD5Context structure, pass it to MD5Init, call MD5Update as
33
* needed on buffers full of bytes, and then call MD5Final, which
34
* will fill a supplied 16-byte array with the digest.
35
*
36
* Changed so as no longer to depend on Colin Plumb's `usual.h'
37
* header definitions; now uses stuff from dpkg's config.h
38
* - Ian Jackson <ijackson@nyx.cs.du.edu>.
39
* Still in the public domain.
40
*/
41
42
#ifndef __ZE_MD5_H
43
#define __ZE_MD5_H 1
44
45
#define ZE_MD5_DIGESTLENGTH 16
46
47
typedef
struct
48
{
49
uint32_t
buf[4];
50
uint32_t
bytes[2];
51
uint32_t
in[16];
52
}
ZEMD5_T
;
53
54
void
zeMD5_Init
(
ZEMD5_T
*ctx);
55
56
void
zeMD5_Invalidate
(
ZEMD5_T
*ctx);
57
58
void
zeMD5_Update
(
ZEMD5_T
*ctx,
const
unsigned
char
*buf,
59
unsigned
int
len);
60
61
void
zeMD5_Final
(
ZEMD5_T
* ctx,
unsigned
char
*digest);
62
63
#endif
/* __ZE_MD5_H */
zeMD5_Final
void zeMD5_Final(ZEMD5_T *ctx, unsigned char *digest)
Definition:
zeMD5.c:226
zeMD5_Invalidate
void zeMD5_Invalidate(ZEMD5_T *ctx)
Definition:
zeMD5.c:73
ZEMD5_T
Definition:
zeMD5.h:47
zeMD5_Update
void zeMD5_Update(ZEMD5_T *ctx, const unsigned char *buf, unsigned int len)
Definition:
zeMD5.c:184
zeMD5_Init
void zeMD5_Init(ZEMD5_T *ctx)
Definition:
zeMD5.c:61
uint32_t
long uint32_t
Definition:
ze-sys.h:489
libze
include
zeMD5.h
Generated by
1.8.13