Pajdeg
0.2.2
Pajdeg
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
pd_md5.h
1
//
2
// pd_md5.h
3
//
4
// Source: https://www.ietf.org/rfc/rfc1321.txt
5
//
6
7
/*
8
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
9
rights reserved.
10
11
License to copy and use this software is granted provided that it
12
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
13
Algorithm" in all material mentioning or referencing this software
14
or this function.
15
16
License is also granted to make and use derivative works provided
17
that such works are identified as "derived from the RSA Data
18
Security, Inc. MD5 Message-Digest Algorithm" in all material
19
mentioning or referencing the derived work.
20
21
RSA Data Security, Inc. makes no representations concerning either
22
the merchantability of this software or the suitability of this
23
software for any particular purpose. It is provided "as is"
24
without express or implied warranty of any kind.
25
26
These notices must be retained in any copies of any part of this
27
documentation and/or software.
28
*/
29
30
#ifndef INCLUDED_PD_MD5
31
#define INCLUDED_PD_MD5
32
33
#include "
PDDefines.h
"
34
35
#ifdef PD_SUPPORT_CRYPTO
36
37
#include <sys/types.h>
38
39
/* MD5 context. */
40
typedef
struct
pd_md5_ctx
pd_md5_ctx
;
41
struct
pd_md5_ctx
{
42
u_int32_t
state
[4];
43
u_int32_t
count
[2];
44
unsigned
char
buffer
[64];
45
};
46
47
extern
void
pd_md5_init(
pd_md5_ctx
*ctx);
48
extern
void
pd_md5_update(
pd_md5_ctx
*ctx,
unsigned
char
*data, u_int32_t len);
49
extern
void
pd_md5_final(
unsigned
char
*md,
pd_md5_ctx
*ctx);
50
51
extern
void
pd_md5(
unsigned
char
*data, u_int32_t len,
unsigned
char
*result);
52
53
#endif
54
55
#endif
pd_md5_ctx::state
u_int32_t state[4]
state (ABCD)
Definition:
pd_md5.h:42
pd_md5_ctx::buffer
unsigned char buffer[64]
input buffer
Definition:
pd_md5.h:44
pd_md5_ctx::count
u_int32_t count[2]
number of bits, modulo 2^64 (lsb first)
Definition:
pd_md5.h:43
pd_md5_ctx
Definition:
pd_md5.h:41
PDDefines.h
Definitions for the Pajdeg interface.
Generated on Thu Jan 22 2015 16:48:59 for Pajdeg by
1.8.9.1