blob: c5d61a85b9d08a928431acdf1e56150446566d1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* ISC license. */
#ifndef MD5_H
#define MD5_H
#include <skalibs/uint32.h>
typedef struct MD5Schedule MD5Schedule, *MD5Schedule_ref ;
struct MD5Schedule
{
uint32 buf[4] ;
uint32 bits[2] ;
unsigned char in[64] ;
} ;
#define MD5_INIT() { .buf = { 0x67452301UL, 0xefcdab89UL, 0x98badcfeUL, 0x10325476UL }, .bits = { 0, 0 }, .in = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" }
extern void md5_init (MD5Schedule *) ;
extern void md5_update (MD5Schedule *, char const *, unsigned int) ;
extern void md5_final (MD5Schedule *, char * /* 16 chars */) ;
#endif
|