22 #include "sha2_internal.h"
23 #include "hashsum_template.h"
33 bool Add(
const unsigned char *inbuf,
unsigned long long len) = 0;
41 unsigned char Sum[32];
44 bool Add(
const unsigned char *inbuf,
unsigned long long len)
48 SHA256_Update(&ctx, inbuf, len);
51 using SummationImplementation::Add;
56 SHA256_Final(Sum, &ctx);
73 unsigned char Sum[64];
76 bool Add(
const unsigned char *inbuf,
unsigned long long len)
80 SHA512_Update(&ctx, inbuf, len);
83 using SummationImplementation::Add;
88 SHA512_Final(Sum, &ctx);