Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
548 B

  1. #ifndef CRYPTOPP_WHIRLPOOL_H
  2. #define CRYPTOPP_WHIRLPOOL_H
  3. #include "config.h"
  4. #include "iterhash.h"
  5. NAMESPACE_BEGIN(CryptoPP)
  6. //! <a href="http://www.cryptolounge.org/wiki/Whirlpool">Whirlpool</a>
  7. class Whirlpool : public IteratedHashWithStaticTransform<word64, BigEndian, 64, 64, Whirlpool>
  8. {
  9. public:
  10. static void InitState(HashWordType *state);
  11. static void Transform(word64 *digest, const word64 *data);
  12. void TruncatedFinal(byte *hash, size_t size);
  13. static const char * StaticAlgorithmName() {return "Whirlpool";}
  14. };
  15. NAMESPACE_END
  16. #endif