SSS - S3 Toolkit 0.9.6
S3 client library and applications
Loading...
Searching...
No Matches
sha256.cpp File Reference

Implementation of SHA256 algorithm. More...

#include "sha256.h"
#include "utility.h"
#include <cassert>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
+ Include dependency graph for sha256.cpp:

Functions

void sha256::sha256_stream (uint32_t hash[8], const uint8_t data[], uint64_t length)
 Compute SHA256 hash, updating hash value at every invocation.
 
void sha256::sha256 (const uint8_t data[], size_t length, uint32_t hash[8])
 Return SHA256 hash.
 
void sha256::sha256_next (const uint8_t data[], uint32_t length, uint32_t hash[8], size_t total_length, uint8_t *tmpbuf)
 Compute SHA256 hash of chunks of data, using preallocated temporary buffer to store padded data.
 
void sha256::print_hash (uint32_t hash[8])
 Print SHA256 hash to standard output.
 

Detailed Description

Implementation of SHA256 algorithm.