32 U8* ret =
SHA256(
static_cast<const U8*
>(data), len, out);
34 HashBuffer bufferOut(out,
sizeof(out));
48 int ret =
SHA256_Update(&this->hash_handle,
static_cast<const U8*
>(data), len);
53 final(HashBuffer& buffer)
58 HashBuffer bufferOut(out,
sizeof(out));
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
static void hash(const void *data, const NATIVE_INT_TYPE len, HashBuffer &buffer)
void update(const void *const data, const NATIVE_INT_TYPE len)
void final(HashBuffer &buffer)
int SHA256_Final(unsigned char *md, SHA256_CTX *c)
int SHA256_Update(SHA256_CTX *c, const void *data, size_t len)
#define SHA256_DIGEST_LENGTH
unsigned char * SHA256(const unsigned char *d, size_t n, unsigned char *md)
int SHA256_Init(SHA256_CTX *c)