diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 14:19:43 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 14:19:43 +0000 |
commit | 7aff1e4cb053394db57c2814d5fe1e6493e0cc75 (patch) | |
tree | c8585e44049b37e4da152495c954242204c2c38d /cryptopp/crypto/idea.h | |
parent | 6f3d69266933ef120d229e0daf2da164b77214d0 (diff) |
Project folders rename part 2
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@214 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'cryptopp/crypto/idea.h')
-rw-r--r-- | cryptopp/crypto/idea.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/cryptopp/crypto/idea.h b/cryptopp/crypto/idea.h deleted file mode 100644 index 2b97ee5..0000000 --- a/cryptopp/crypto/idea.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef CRYPTOPP_IDEA_H
-#define CRYPTOPP_IDEA_H
-
-/** \file
-*/
-
-#include "seckey.h"
-#include "secblock.h"
-
-NAMESPACE_BEGIN(CryptoPP)
-
-//! _
-struct IDEA_Info : public FixedBlockSize<8>, public FixedKeyLength<16>, public FixedRounds<8>
-{
- static const char *StaticAlgorithmName() {return "IDEA";}
-};
-
-/// <a href="http://www.weidai.com/scan-mirror/cs.html#IDEA">IDEA</a>
-class IDEA : public IDEA_Info, public BlockCipherDocumentation
-{
-public: // made public for internal purposes
-#ifdef CRYPTOPP_NATIVE_DWORD_AVAILABLE
- typedef word Word;
-#else
- typedef hword Word;
-#endif
-
-private:
- class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl<IDEA_Info>
- {
- public:
- unsigned int GetAlignment() const {return 2;}
- void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
-
- void UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs ¶ms);
-
- private:
- void EnKey(const byte *);
- void DeKey();
- FixedSizeSecBlock<Word, 6*ROUNDS+4> m_key;
-
- #ifdef IDEA_LARGECACHE
- static inline void LookupMUL(word &a, word b);
- void LookupKeyLogs();
- static void BuildLogTables();
- static bool tablesBuilt;
- static word16 log[0x10000], antilog[0x10000];
- #endif
- };
-
-public:
- typedef BlockCipherFinal<ENCRYPTION, Base> Encryption;
- typedef BlockCipherFinal<DECRYPTION, Base> Decryption;
-};
-
-typedef IDEA::Encryption IDEAEncryption;
-typedef IDEA::Decryption IDEADecryption;
-
-NAMESPACE_END
-
-#endif
|