Whitespace check-in
parent
a1b3d31c11
commit
be4b3e0ddb
4
shake.h
4
shake.h
|
|
@ -41,7 +41,7 @@ public:
|
||||||
void TruncatedFinal(byte *hash, size_t size);
|
void TruncatedFinal(byte *hash, size_t size);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
inline unsigned int r() const {return BlockSize();}
|
inline unsigned int r() const {return BlockSize();}
|
||||||
|
|
||||||
FixedSizeSecBlock<word64, 25> m_state;
|
FixedSizeSecBlock<word64, 25> m_state;
|
||||||
unsigned int m_digestSize, m_counter;
|
unsigned int m_digestSize, m_counter;
|
||||||
|
|
@ -56,7 +56,7 @@ class SHAKE_Final : public SHAKE
|
||||||
public:
|
public:
|
||||||
CRYPTOPP_CONSTANT(DIGESTSIZE = (T_Strength == 128 ? 32 : 64))
|
CRYPTOPP_CONSTANT(DIGESTSIZE = (T_Strength == 128 ? 32 : 64))
|
||||||
CRYPTOPP_CONSTANT(BLOCKSIZE = (T_Strength == 128 ? 1344/8 : 1088/8))
|
CRYPTOPP_CONSTANT(BLOCKSIZE = (T_Strength == 128 ? 1344/8 : 1088/8))
|
||||||
static std::string StaticAlgorithmName() { return "SHAKE" + IntToString(T_Strength); }
|
static std::string StaticAlgorithmName() { return "SHAKE" + IntToString(T_Strength); }
|
||||||
|
|
||||||
/// \brief Construct a SHAKE-X message digest
|
/// \brief Construct a SHAKE-X message digest
|
||||||
SHAKE_Final() : SHAKE(DIGESTSIZE) {}
|
SHAKE_Final() : SHAKE(DIGESTSIZE) {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue