1*280d8c66SLionel Sambuc /* $NetBSD: sha256.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 "SHA256" 11*280d8c66SLionel Sambuc #define HASHLEN 64 12*280d8c66SLionel Sambuc 13*280d8c66SLionel Sambuc #define MD5Filter SHA256_Filter 14*280d8c66SLionel Sambuc #define MD5String SHA256_String 15*280d8c66SLionel Sambuc #define MD5TestSuite SHA256_TestSuite 16*280d8c66SLionel Sambuc #define MD5TimeTrial SHA256_TimeTrial 17*280d8c66SLionel Sambuc 18*280d8c66SLionel Sambuc #define MD5Data SHA256_Data 19*280d8c66SLionel Sambuc #define MD5Init SHA256_Init 20*280d8c66SLionel Sambuc #define MD5Update SHA256_Update 21*280d8c66SLionel Sambuc #define MD5End SHA256_End 22*280d8c66SLionel Sambuc 23*280d8c66SLionel Sambuc #define MD5_CTX SHA256_CTX 24*280d8c66SLionel Sambuc 25*280d8c66SLionel Sambuc #include "md5.c" 26