Crypto++  6.1
Free C++ class library of cryptographic schemes
whrlpool.h
Go to the documentation of this file.
1 // whrlpool.h - originally modified by Kevin Springle from Paulo Barreto and Vincent Rijmen's
2 // public domain code, whirlpool.c. Updated to Whirlpool version 3.0, optimized
3 // and SSE version added by WD. All modifications are placed in the public domain.
4 
5 #ifndef CRYPTOPP_WHIRLPOOL_H
6 #define CRYPTOPP_WHIRLPOOL_H
7 
8 /// \file whrlpool.h
9 /// \brief Classes for the Whirlpool message digest
10 /// \details Crypto++ provides version 3.0 of the Whirlpool algorithm.
11 /// This version of the algorithm was submitted for ISO standardization.
12 
13 #include "config.h"
14 #include "iterhash.h"
15 
16 NAMESPACE_BEGIN(CryptoPP)
17 
18 /// \brief Whirlpool message digest
19 /// \details Crypto++ provides version 3.0 of the Whirlpool algorithm.
20 /// This version of the algorithm was submitted for ISO standardization.
21 /// \since Crypto++ 5.2
22 /// \sa <a href="http://www.cryptopp.com/wiki/Whirlpool">Whirlpool</a>
24 {
25 public:
26  static void InitState(HashWordType *state);
27  static void Transform(word64 *digest, const word64 *data);
28  void TruncatedFinal(byte *hash, size_t size);
29  CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "Whirlpool";}
30 };
31 
32 NAMESPACE_END
33 
34 #endif
Iterated hash with a static transformation function.
Definition: iterhash.h:160
Converts an enumeration to a type suitable for use as a template parameter.
Definition: cryptlib.h:132
Library configuration file.
Whirlpool message digest.
Definition: whrlpool.h:23
Crypto++ library namespace.