|
Adobe Source Libraries 2.0.2
A collection of C++ libraries.
|
#include <sha.hpp>
Public Types | |
| typedef Traits | traits_type |
| 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.
| typedef Traits traits_type |
|
static |