From 30e9097985656920f01a72efc1088caa2b8d41b3 Mon Sep 17 00:00:00 2001 From: bertagaz Date: Tue, 14 Jun 2011 15:26:19 +0200 Subject: Imported Upstream version 0.5.29 --- embeddedcryptopp/tiger.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 embeddedcryptopp/tiger.h (limited to 'embeddedcryptopp/tiger.h') diff --git a/embeddedcryptopp/tiger.h b/embeddedcryptopp/tiger.h new file mode 100644 index 0000000..5f6e941 --- /dev/null +++ b/embeddedcryptopp/tiger.h @@ -0,0 +1,24 @@ +#ifndef CRYPTOPP_TIGER_H +#define CRYPTOPP_TIGER_H + +#include "config.h" +#include "iterhash.h" + +NAMESPACE_BEGIN(CryptoPP) + +/// Tiger +class Tiger : public IteratedHashWithStaticTransform +{ +public: + static void InitState(HashWordType *state); + static void Transform(word64 *digest, const word64 *data); + void TruncatedFinal(byte *hash, size_t size); + static const char * StaticAlgorithmName() {return "Tiger";} + +protected: + static const word64 table[4*256+3]; +}; + +NAMESPACE_END + +#endif -- cgit v1.2.3