xref: /minix3/usr.bin/cksum/sha384.c (revision 280d8c668e345d10165c0bc44fab3c7d7657dd05)
1*280d8c66SLionel Sambuc /* $NetBSD: sha384.c,v 1.3 2006/10/30 20:22:54 christos Exp $ */
2*280d8c66SLionel Sambuc 
3*280d8c66SLionel Sambuc #if HAVE_NBTOOL_CONFIG_H
4*280d8c66SLionel Sambuc #include "nbtool_config.h"
5*280d8c66SLionel Sambuc #endif
6*280d8c66SLionel Sambuc 
7*280d8c66SLionel Sambuc #include <sha2.h>	/* this hash type */
8*280d8c66SLionel Sambuc #include <md5.h>	/* the hash we're replacing */
9*280d8c66SLionel Sambuc 
10*280d8c66SLionel Sambuc #define HASHTYPE	"SHA384"
11*280d8c66SLionel Sambuc #define HASHLEN		96
12*280d8c66SLionel Sambuc 
13*280d8c66SLionel Sambuc #define MD5Filter	SHA384_Filter
14*280d8c66SLionel Sambuc #define MD5String	SHA384_String
15*280d8c66SLionel Sambuc #define MD5TestSuite	SHA384_TestSuite
16*280d8c66SLionel Sambuc #define MD5TimeTrial	SHA384_TimeTrial
17*280d8c66SLionel Sambuc 
18*280d8c66SLionel Sambuc #define MD5Data		SHA384_Data
19*280d8c66SLionel Sambuc #define MD5Init		SHA384_Init
20*280d8c66SLionel Sambuc #define MD5Update	SHA384_Update
21*280d8c66SLionel Sambuc #define MD5End		SHA384_End
22*280d8c66SLionel Sambuc 
23*280d8c66SLionel Sambuc #define MD5_CTX		SHA384_CTX
24*280d8c66SLionel Sambuc 
25*280d8c66SLionel Sambuc #include "md5.c"
26