Loading [MathJax]/extensions/tex2jax.js
SSS - S3 Toolkit 0.9.6
S3 client library and applications
All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
sha256.h File Reference

declaration of SHA256 hash functions. More...

#include "utility.h"
#include <cstdint>
#include <cstdlib>
+ Include dependency graph for sha256.h:
+ This graph shows which files directly or indirectly include this file:

Functions

void sha256::init_hash (uint32_t hash[8])
 Initialize SHA256 hash.
 
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::sha256_stream (uint32_t hash[8], const uint8_t data[], uint64_t length)
 Compute SHA256 hash, updating hash value at every invocation.
 
void sha256::to_little (uint32_t hash[8])
 Convert hash value to little endian.
 
void sha256::hash_to_text (uint32_t hash[8], char *text)
 Convert SHA256 hash to text.
 
void sha256::print_hash (uint32_t hash[8])
 Print SHA256 hash to standard output.
 

Detailed Description

declaration of SHA256 hash functions.