25#if (CRYPTOPP_BOOL_X32) || (CRYPTOPP_BOOL_X64)
26# define CRYPTOPP_ENABLE_64BIT_SSE 1
41 virtual ~LSH256_Base() {}
48 void Update(
const byte *input,
size_t size);
54 LSH256_Base(
unsigned int algType,
unsigned int digestSize)
55 : m_digestSize(digestSize) { m_state[80] = algType; }
141 virtual ~LSH512_Base() {}
148 void Update(
const byte *input,
size_t size);
154 LSH512_Base(
unsigned int algType,
unsigned int digestSize)
155 : m_digestSize(digestSize) { m_state[80] = algType; }
Fixed size stack-based SecBlock.
static const int BLOCKSIZE
Block size, in bytes.
static const int DIGESTSIZE
Digest size, in bytes.
static std::string StaticAlgorithmName()
The algorithm's name.
LSH224()
Construct a LSH-224.
std::string AlgorithmName() const
Provides the name of this algorithm.
void TruncatedFinal(byte *hash, size_t size)
Computes the hash of the current message.
static const int BLOCKSIZE
Block size, in bytes.
std::string AlgorithmProvider() const
Retrieve the provider of this algorithm.
void Update(const byte *input, size_t size)
Updates a hash with additional input.
unsigned int OptimalDataAlignment() const
Provides input and output data alignment for optimal performance.
void Restart()
Restart the hash.
unsigned int BlockSize() const
Provides the block size of the compression function.
unsigned int DigestSize() const
Provides the digest size of the hash.
static const int BLOCKSIZE
Block size, in bytes.
static const int DIGESTSIZE
Digest size, in bytes.
static std::string StaticAlgorithmName()
The algorithm's name.
LSH256()
Construct a LSH-256.
std::string AlgorithmName() const
Provides the name of this algorithm.
LSH384()
Construct a LSH-384.
static const int DIGESTSIZE
Digest size, in bytes.
static const int BLOCKSIZE
Block size, in bytes.
std::string AlgorithmName() const
Provides the name of this algorithm.
static std::string StaticAlgorithmName()
The algorithm's name.
static const int BLOCKSIZE
Block size, in bytes.
std::string AlgorithmName() const
Provides the name of this algorithm.
LSH512_256()
Construct a LSH-512-256.
static std::string StaticAlgorithmName()
The algorithm's name.
static const int DIGESTSIZE
Digest size, in bytes.
static const int BLOCKSIZE
Block size, in bytes.
unsigned int OptimalDataAlignment() const
Provides input and output data alignment for optimal performance.
void Restart()
Restart the hash.
unsigned int DigestSize() const
Provides the digest size of the hash.
std::string AlgorithmProvider() const
Retrieve the provider of this algorithm.
void TruncatedFinal(byte *hash, size_t size)
Computes the hash of the current message.
void Update(const byte *input, size_t size)
Updates a hash with additional input.
unsigned int BlockSize() const
Provides the block size of the compression function.
LSH512()
Construct a LSH-512.
std::string AlgorithmName() const
Provides the name of this algorithm.
static std::string StaticAlgorithmName()
The algorithm's name.
static const int BLOCKSIZE
Block size, in bytes.
static const int DIGESTSIZE
Digest size, in bytes.
unsigned int word32
32-bit unsigned datatype
Abstract base classes that provide a uniform interface to this library.
unsigned int GetAlignmentOf()
Returns the minimum alignment requirements of a type.
Crypto++ library namespace.
Classes and functions for secure memory allocations.