summaryrefslogtreecommitdiff
path: root/usr.bin/cksum/sha256.c
blob: 6ceff734dd810d847b767a5c6712496f5b3e59ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* $NetBSD: sha256.c,v 1.2 2005/08/25 09:51:23 tron Exp $ */

#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif

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

#define HASHTYPE	"SHA256"
#define HASHLEN		64

#define MD5Filter	SHA256_Filter
#define MD5String	SHA256_String
#define MD5TestSuite	SHA256_TestSuite
#define MD5TimeTrial	SHA256_TimeTrial

#define MD5Data		SHA256_Data
#define MD5Init		SHA256_Init
#define MD5Update	SHA256_Update
#define MD5End		SHA256_End

#define MD5_CTX		SHA256_CTX

#include "md5.c"