![]() |
Adobe Source Libraries
1.43
|
Public Types | |
typedef traits_type::digest_type | digest_type |
Public Member Functions | |
sha () | |
template<typename I > | |
void | update (I first, I last) |
template<typename I > | |
void | update (I first, std::uint64_t num_bits) |
digest_type | finalize () |
std::string | to_string (bool spaces=false) |
Static Public Member Functions | |
template<typename I > | |
static digest_type | digest (I first, I last) |
template<typename I > | |
static digest_type | digest (I first, std::uint64_t num_bits) |
static std::string | to_string (const typename traits_type::digest_type &digest, bool spaces=false) |
Generic engine implementation for SHA-*.
Given the similarity of behavior between the SHA-* class of algorithms, the core functionality has been encapsulated in this class.
Users of the class can either call one of the one-shot sha::digest routines or instantiate the class and call sha::update repeatedly, then retrieve the digest with sha::finalize.
|
static |
std::string to_string | ( | bool | spaces = false | ) |