Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
SHA3_Final< T_DigestSize > Class Template Reference

#include <sha3.h>

Inheritance diagram for SHA3_Final< T_DigestSize >:
[legend]
Collaboration diagram for SHA3_Final< T_DigestSize >:
[legend]

Public Member Functions

 SHA3_Final ()
 Construct a SHA3-X message digest. More...
 
unsigned int BlockSize () const
 Provides the block size of the compression function. More...
 
- Public Member Functions inherited from SHA3
 SHA3 (unsigned int digestSize)
 Construct a SHA3. More...
 
unsigned int DigestSize () const
 Provides the digest size of the hash. More...
 
std::string AlgorithmName () const
 Provides the name of this algorithm. More...
 
CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName ()
 
unsigned int OptimalDataAlignment () const
 Provides input and output data alignment for optimal performance. More...
 
void Update (const byte *input, size_t length)
 Updates a hash with additional input. More...
 
void Restart ()
 Restart the hash. More...
 
void TruncatedFinal (byte *hash, size_t size)
 Computes the hash of the current message. More...
 
- Public Member Functions inherited from HashTransformation
virtual ~HashTransformation ()
 
HashTransformationRef ()
 Provides a reference to this object. More...
 
virtual byteCreateUpdateSpace (size_t &size)
 Request space which can be written into by the caller. More...
 
virtual void Final (byte *digest)
 Computes the hash of the current message. More...
 
unsigned int TagSize () const
 Provides the tag size of the hash. More...
 
virtual unsigned int OptimalBlockSize () const
 Provides the input block size most efficient for this hash. More...
 
virtual void CalculateDigest (byte *digest, const byte *input, size_t length)
 Updates the hash with additional input and computes the hash of the current message. More...
 
virtual bool Verify (const byte *digest)
 Verifies the hash of the current message. More...
 
virtual bool VerifyDigest (const byte *digest, const byte *input, size_t length)
 Updates the hash with additional input and verifies the hash of the current message. More...
 
virtual void CalculateTruncatedDigest (byte *digest, size_t digestSize, const byte *input, size_t length)
 Updates the hash with additional input and computes the hash of the current message. More...
 
virtual bool TruncatedVerify (const byte *digest, size_t digestLength)
 Verifies the hash of the current message. More...
 
virtual bool VerifyTruncatedDigest (const byte *digest, size_t digestLength, const byte *input, size_t length)
 Updates the hash with additional input and verifies the hash of the current message. More...
 
- Public Member Functions inherited from Algorithm
virtual ~Algorithm ()
 
 Algorithm (bool checkSelfTestStatus=true)
 Interface for all crypto algorithms. More...
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()
 
virtual ClonableClone () const
 Copies this object. More...
 

Static Public Member Functions

static std::string StaticAlgorithmName ()
 

Private Member Functions

 CRYPTOPP_COMPILE_ASSERT (BLOCKSIZE< 200)
 
 CRYPTOPP_COMPILE_ASSERT (BLOCKSIZE >(int) T_DigestSize)
 

Additional Inherited Members

- Protected Member Functions inherited from SHA3
unsigned int r () const
 
- Protected Member Functions inherited from HashTransformation
void ThrowIfInvalidTruncatedSize (size_t size) const
 Validates a truncated digest size. More...
 
- Protected Attributes inherited from SHA3
FixedSizeSecBlock< word64, 25 > m_state
 
unsigned int m_digestSize
 
unsigned int m_counter
 

Detailed Description

template<unsigned int T_DigestSize>
class SHA3_Final< T_DigestSize >

Definition at line 59 of file sha3.h.

Constructor & Destructor Documentation

template<unsigned int T_DigestSize>
SHA3_Final< T_DigestSize >::SHA3_Final ( )
inline

Construct a SHA3-X message digest.

Definition at line 66 of file sha3.h.

Member Function Documentation

template<unsigned int T_DigestSize>
unsigned int SHA3_Final< T_DigestSize >::BlockSize ( ) const
inlinevirtual

Provides the block size of the compression function.

Returns
the block size of the compression function, in bytes

BlockSize() will return 0 if the hash is not block based. For example, SHA3 is a recursive hash (not an iterative hash), and it does not have a block size.

Reimplemented from HashTransformation.

Definition at line 68 of file sha3.h.

Here is the call graph for this function:

template<unsigned int T_DigestSize>
SHA3_Final< T_DigestSize >::CRYPTOPP_COMPILE_ASSERT ( )
private

Here is the caller graph for this function:

template<unsigned int T_DigestSize>
SHA3_Final< T_DigestSize >::CRYPTOPP_COMPILE_ASSERT ( BLOCKSIZE  ,
(int)  T_DigestSize 
)
private
template<unsigned int T_DigestSize>
static std::string SHA3_Final< T_DigestSize >::StaticAlgorithmName ( )
inlinestatic

Definition at line 67 of file sha3.h.

Here is the call graph for this function:


The documentation for this class was generated from the following file: