25#if (CRYPTOPP_BOOL_X32) || (CRYPTOPP_BOOL_X64)
26# define CRYPTOPP_ENABLE_64BIT_SSE 1
29NAMESPACE_BEGIN(CryptoPP)
43 unsigned int BlockSize()
const {
return BLOCKSIZE; }
48 void Update(
const byte *input,
size_t size);
49 void TruncatedFinal(
byte *hash,
size_t size);
51 std::string AlgorithmProvider()
const;
54 LSH256_Base(
unsigned int algType,
unsigned int digestSize)
55 : m_digestSize(digestSize) { m_state[80] = algType; }
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.
CRYPTOPP_CONSTANT(DIGESTSIZE=28)
Digest size, in bytes.
CRYPTOPP_CONSTANT(BLOCKSIZE=LSH256_Base::BLOCKSIZE)
Block 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.
LSH-224 and LSH-256 hash base class.
CRYPTOPP_CONSTANT(BLOCKSIZE=128)
Block size, in bytes.
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
CRYPTOPP_CONSTANT(BLOCKSIZE=LSH256_Base::BLOCKSIZE)
Block 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.
CRYPTOPP_CONSTANT(DIGESTSIZE=32)
Digest size, in bytes.
LSH384()
Construct a LSH-384.
CRYPTOPP_CONSTANT(BLOCKSIZE=LSH512_Base::BLOCKSIZE)
Block size, in bytes.
CRYPTOPP_CONSTANT(DIGESTSIZE=48)
Digest size, in bytes.
std::string AlgorithmName() const
Provides the name of this algorithm.
static std::string StaticAlgorithmName()
The algorithm's name.
LSH-512-256 hash function.
CRYPTOPP_CONSTANT(BLOCKSIZE=LSH512_Base::BLOCKSIZE)
Block size, in bytes.
CRYPTOPP_CONSTANT(DIGESTSIZE=32)
Digest 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.
LSH-384 and LSH-512 hash base class.
unsigned int OptimalDataAlignment() const
Provides input and output data alignment for optimal performance.
void Restart()
Restart the hash.
unsigned int DigestSize() const
CRYPTOPP_CONSTANT(BLOCKSIZE=256)
Block size, in bytes.
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.
std::string AlgorithmProvider() const
Retrieve the provider of this algorithm.
unsigned int BlockSize() const
Provides the block size of the compression function.
CRYPTOPP_CONSTANT(BLOCKSIZE=LSH512_Base::BLOCKSIZE)
Block size, in bytes.
LSH512()
Construct a LSH-512.
std::string AlgorithmName() const
Provides the name of this algorithm.
static std::string StaticAlgorithmName()
The algorithm's name.
CRYPTOPP_CONSTANT(DIGESTSIZE=64)
Digest size, in bytes.
unsigned int word32
32-bit unsigned datatype
Abstract base classes that provide a uniform interface to this library.
Classes and functions for secure memory allocations.