diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-20 16:21:49 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-20 16:21:49 +0000 |
commit | f424a18112032cf61d2871a6b91a5af607c171ae (patch) | |
tree | 88fedc4e28941ceecda7026f0b06eba6271f91d5 /plugins/CryptoPP/crypto/haval.h | |
parent | bfe1bd0fc087be44c70904aee0fe4276643d206d (diff) |
CryptoPP:
changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/crypto/haval.h')
-rw-r--r-- | plugins/CryptoPP/crypto/haval.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/plugins/CryptoPP/crypto/haval.h b/plugins/CryptoPP/crypto/haval.h deleted file mode 100644 index 4cd6db382a..0000000000 --- a/plugins/CryptoPP/crypto/haval.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef CRYPTOPP_HAVAL_H
-#define CRYPTOPP_HAVAL_H
-
-#include "iterhash.h"
-
-NAMESPACE_BEGIN(CryptoPP)
-
-/// <a href="http://www.weidai.com/scan-mirror/md.html#HAVAL">HAVAL</a>
-/*! \warning HAVAL with 128-bit or 160-bit output is considered insecure, and should not be used
- unless you absolutely need it for compatibility. */
-class HAVAL : public IteratedHash<word32, LittleEndian, 128>
-{
-public:
- enum {HAVAL_VERSION = 1};
- CRYPTOPP_CONSTANT(DIGESTSIZE = 32)
-
- /// digestSize can be 16, 20, 24, 28, or 32 (Default=32)<br>
- /// pass can be 3, 4 or 5 (Default=3)
- HAVAL(unsigned int digestSize=DIGESTSIZE, unsigned int passes=3);
- void TruncatedFinal(byte *hash, size_t size);
- unsigned int DigestSize() const {return digestSize;}
-
- static const char * StaticAlgorithmName() {return "HAVAL";}
- std::string AlgorithmName() const {return std::string("HAVAL(") + IntToString(digestSize) + "," + IntToString(pass) + ")";}
-
-protected:
- static const unsigned int wi2[32], wi3[32], wi4[32], wi5[32];
- static const word32 mc2[32], mc3[32], mc4[32], mc5[32];
-
- void Init();
- void Tailor(unsigned int FPTLEN);
- void HashEndianCorrectedBlock(const word32 *in);
-
- const unsigned int digestSize, pass;
-};
-
-/// <a href="http://www.weidai.com/scan-mirror/md.html#HAVAL">HAVAL</a> with 3 passes
-class HAVAL3 : public HAVAL
-{
-public:
- HAVAL3(unsigned int digestSize=DIGESTSIZE) : HAVAL(digestSize, 3) {}
- static void Transform(word32 *buf, const word32 *in);
-};
-
-/// <a href="http://www.weidai.com/scan-mirror/md.html#HAVAL">HAVAL</a> with 4 passes
-class HAVAL4 : public HAVAL
-{
-public:
- HAVAL4(unsigned int digestSize=DIGESTSIZE) : HAVAL(digestSize, 4) {}
- static void Transform(word32 *buf, const word32 *in);
-};
-
-/// <a href="http://www.weidai.com/scan-mirror/md.html#HAVAL">HAVAL</a> with 5 passes
-class HAVAL5 : public HAVAL
-{
-public:
- HAVAL5(unsigned int digestSize=DIGESTSIZE) : HAVAL(digestSize, 5) {}
- static void Transform(word32 *buf, const word32 *in);
-};
-
-NAMESPACE_END
-
-#endif
|