|
digestpp 1.0
C++11 header-only message digest library
|
SHA2 Algorithm More...
Typedefs | |
| typedef hasher< detail::sha2_provider< uint64_t > > | digestpp::sha512 |
| SHA-512 hash function. | |
| typedef hasher< detail::sha2_provider< uint64_t, 384 > > | digestpp::sha384 |
| SHA-384 hash function. | |
| typedef hasher< detail::sha2_provider< uint32_t, 256 > > | digestpp::sha256 |
| SHA-256 hash function. | |
| typedef hasher< detail::sha2_provider< uint32_t, 224 > > | digestpp::sha224 |
| SHA-224 hash function. | |
| template<size_t N> | |
| using | digestpp::static_size::sha512 = hasher<detail::sha2_provider<uint64_t, N>> |
| SHA-512 hash function (static-size version) | |
SHA2 Algorithm
| typedef hasher<detail::sha2_provider<uint32_t, 224> > digestpp::sha224 |
SHA-224 hash function.
Member of the SHA-2 family, widely used cryptographic hash function. Designed by the NSA and published by NIST in 2001 as part of FIPS 180-2.
SHA-224 is SHA-256 with different initial values and truncated output. It uses the same algorithm and has similar performance characteristics. Designed to provide 112-bit security level.
SHA-224 uses 32-bit operations and is optimized for 32-bit platforms. On 64-bit systems, SHA-512/224 may offer better performance.
Specified in FIPS 180-4.
| typedef hasher<detail::sha2_provider<uint32_t, 256> > digestpp::sha256 |
SHA-256 hash function.
Member of the SHA-2 family, widely used cryptographic hash function. Designed by the NSA and published by NIST in 2001 as part of FIPS 180-2.
SHA-256 uses 32-bit operations and is optimized for 32-bit platforms. On 64-bit systems, SHA-512/256 may offer better performance.
Specified in FIPS 180-4.
| typedef hasher<detail::sha2_provider<uint64_t, 384> > digestpp::sha384 |
SHA-384 hash function.
Member of the SHA-2 family, widely used cryptographic hash function. Designed by the NSA and published by NIST in 2001 as part of FIPS 180-2.
Uses 64-bit operations and is optimized for 64-bit platforms.
SHA-384 is SHA-512 with different initial values and truncated to 384 bits. It provides 192-bit security level.
Specified in FIPS 180-4. Good balance between security and performance for 64-bit systems.
| typedef hasher<detail::sha2_provider<uint64_t> > digestpp::sha512 |
SHA-512 hash function.
Member of the SHA-2 family, widely used cryptographic hash function. Designed by the NSA and published by NIST in 2001 as part of FIPS 180-2.
64-bit variant of SHA-2 family, providing high security and performance on 64-bit platforms.
SHA-512 can produce outputs from 8 to 512 bits. Truncated variants (SHA-512/t) provide outputs different from other SHA-2 functions of the same length. For example: SHA-512/256 ≠ SHA-256 (different algorithm, different output).
Specified in FIPS 180-4.
SHA-512/256 is recommended over SHA-256 on 64-bit systems for better performance. Full SHA-512 (512-bit output) provides the highest security in SHA-2 family.
| std::runtime_error | if the requested digest size is not divisible by 8 (full bytes), or is not within the supported range |
| using digestpp::static_size::sha512 = hasher<detail::sha2_provider<uint64_t, N>> |
SHA-512 hash function (static-size version)
Variant of SHA-512 with output size specified as template parameter.