![]() |
Adobe Source Libraries
1.43
|
Classes | |
class | sha< Traits > |
Typedefs | |
typedef traits_type::digest_type | digest_type |
typedef sha < implementation::sha1_traits_t > | sha1_t |
A bit-oriented implementation of the SHA-1 Secure Hash Algorithm. More... | |
typedef sha < implementation::sha224_traits_t > | sha224_t |
A bit-oriented implementation of the SHA-224 Secure Hash Algorithm. More... | |
typedef sha < implementation::sha256_traits_t > | sha256_t |
A bit-oriented implementation of the SHA-256 Secure Hash Algorithm. More... | |
typedef sha < implementation::sha384_traits_t > | sha384_t |
A bit-oriented implementation of the SHA-384 Secure Hash Algorithm. More... | |
typedef sha < implementation::sha512_traits_t > | sha512_t |
A bit-oriented implementation of the SHA-512 Secure Hash Algorithm. More... | |
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 () |
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) |
typedef traits_type::digest_type digest_type |
typedef sha<implementation::sha1_traits_t> sha1_t |
typedef sha<implementation::sha224_traits_t> sha224_t |
typedef sha<implementation::sha256_traits_t> sha256_t |
typedef sha<implementation::sha384_traits_t> sha384_t |
typedef sha<implementation::sha512_traits_t> sha512_t |
sha | ( | ) |
void update | ( | I | first, |
I | last | ||
) |
This routine can be called successively to digest a data over one or more steps.
sizeof(std::iterator_traits<I>::value_type)
must be 1first | first iterator over the range to digest |
last | last iterator over the range to digest |
sizeof(std::iterator_traits<I>::difference_type) * 8
bits. A workaround to the limitation is to call this routine multiple times. Even then, the total message length is limited to 2^64 bits. void update | ( | I | first, |
std::uint64_t | num_bits | ||
) |
This routine can be called successively to digest a data over one or more steps.
sizeof(std::iterator_traits<I>::value_type)
must be 1first | first iterator over the range to digest |
num_bits | number of bits to digest |
digest_type finalize | ( | ) |
|
static |
sizeof(std::iterator_traits<I>::value_type)
must be 1first | first iterator over the range to digest |
last | last iterator over the range to digest |
sizeof(std::iterator_traits<I>::difference_type) * 8
bits.
|
static |
sizeof(std::iterator_traits<I>::value_type)
must be 1first | first iterator over the range to digest |
num_bits | number of bits to digest |