summaryrefslogtreecommitdiff
path: root/usr.bin/cksum/sha1.c
blob: 221a6e050ff6b0da0606731d151c790b8aac7dac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*	$NetBSD: sha1.c,v 1.1 2001/03/20 18:46:27 atatat Exp $	*/

#include <sha1.h>	/* this hash type */
#include <md5.h>	/* the hash we're replacing */

#define HASHTYPE	"SHA1"
#define HASHLEN		40

#define MD5Filter	SHA1Filter
#define MD5String	SHA1String
#define MD5TestSuite	SHA1TestSuite
#define MD5TimeTrial	SHA1TimeTrial

#define MD5Data		SHA1Data
#define MD5Init		SHA1Init
#define MD5Update	SHA1Update
#define MD5End		SHA1End

#define MD5_CTX		SHA1_CTX

#include "md5.c"