|
digestpp 1.0
C++11 header-only message digest library
|
SHA3 Algorithm More...
Typedefs | |
| typedef hasher< detail::sha3_provider<> > | digestpp::sha3 |
| SHA-3 hash function. | |
| template<size_t N> | |
| using | digestpp::static_size::sha3 = hasher<detail::sha3_provider<N>> |
| SHA-3 hash function (static-size version) | |
SHA3 Algorithm
| typedef hasher<detail::sha3_provider<> > digestpp::sha3 |
SHA-3 hash function.
Winner of the NIST SHA-3 competition (2012), based on the Keccak algorithm. Designed by Guido Bertoni, Joan Daemen, Michaƫl Peeters, and Gilles Van Assche.
SHA-3 uses a completely different design (sponge construction) compared to SHA-1 and SHA-2. It provides an alternative to SHA-2 with different security properties and resistance to length-extension attacks.
Specified in FIPS 202 (2015). SHA-3 is not a replacement for SHA-2, but an alternative. SHA-2 remains secure and widely used; SHA-3 provides diversity.
| std::runtime_error | if the requested digest size is not supported |
| using digestpp::static_size::sha3 = hasher<detail::sha3_provider<N>> |
SHA-3 hash function (static-size version)
Variant of SHA-3 with output size specified as template parameter.