1*280d8c66SLionel Sambuc /* $NetBSD: sha512.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 "SHA512" 11*280d8c66SLionel Sambuc #define HASHLEN 128 12*280d8c66SLionel Sambuc 13*280d8c66SLionel Sambuc #define MD5Filter SHA512_Filter 14*280d8c66SLionel Sambuc #define MD5String SHA512_String 15*280d8c66SLionel Sambuc #define MD5TestSuite SHA512_TestSuite 16*280d8c66SLionel Sambuc #define MD5TimeTrial SHA512_TimeTrial 17*280d8c66SLionel Sambuc 18*280d8c66SLionel Sambuc #define MD5Data SHA512_Data 19*280d8c66SLionel Sambuc #define MD5Init SHA512_Init 20*280d8c66SLionel Sambuc #define MD5Update SHA512_Update 21*280d8c66SLionel Sambuc #define MD5End SHA512_End 22*280d8c66SLionel Sambuc 23*280d8c66SLionel Sambuc #define MD5_CTX SHA512_CTX 24*280d8c66SLionel Sambuc 25*280d8c66SLionel Sambuc #include "md5.c" 26