Crypto++
5.6.4
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
12 #ifndef CRYPTOPP_KECCAK_H
13 #define CRYPTOPP_KECCAK_H
50 Keccak(
unsigned int digestSize) : m_digestSize(digestSize) {Restart();}
55 void Update(
const byte *input,
size_t length);
57 void TruncatedFinal(
byte *hash,
size_t size);
60 inline unsigned int r()
const {
return 200 - 2 * m_digestSize;}
63 unsigned int m_digestSize, m_counter;
72 CRYPTOPP_CONSTANT(DIGESTSIZE = 28)
76 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "Keccak-224";}
85 CRYPTOPP_CONSTANT(DIGESTSIZE = 32)
89 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "Keccak-256";}
98 CRYPTOPP_CONSTANT(DIGESTSIZE = 48)
102 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "Keccak-384";}
111 CRYPTOPP_CONSTANT(DIGESTSIZE = 64)
115 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "Keccak-512";}
unsigned int OptimalDataAlignment() const
Provides input and output data alignment for optimal performance.
Classes and functions for secure memory allocations.
Keccak-224 message digest.
Keccak(unsigned int digestSize)
Construct a Keccak.
Keccak-384 message digest.
Keccak message digest base class.
std::string IntToString(T value, unsigned int base=10)
Converts a value to a string.
unsigned int DigestSize() const
Provides the digest size of the hash.
Keccak-256 message digest.
Crypto++ library namespace.
Keccak-512 message digest.
std::string AlgorithmName() const
Provides the name of this algorithm.
Abstract base classes that provide a uniform interface to this library.