diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-04-15 22:59:58 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-04-15 22:59:58 +0000 |
commit | 9c4e83bd0dc50000ab945875cf1c4b71c2d9c5ee (patch) | |
tree | 9aa393b428b5ece5e9a77032efdceabe17a0ca4b /camellia.h | |
parent | d46c8971fdc342e17520589324c7e8db6765300a (diff) | |
download | cryptopp-9c4e83bd0dc50000ab945875cf1c4b71c2d9c5ee.tar.gz |
optimized Camellia and added defense against timing attacks
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@286 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'camellia.h')
-rw-r--r-- | camellia.h | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -3,8 +3,6 @@ #include "config.h" -#ifdef WORD64_AVAILABLE - /** \file */ @@ -30,16 +28,11 @@ class Camellia : public Camellia_Info, public BlockCipherDocumentation unsigned int BlockAlignment() const {return 8;} protected: - static word64 F(word64 X); - static void FLlayer(word64 *x, word64 K1, word64 K2); - static const byte s1[256]; - static const byte s2[256]; - static const byte s3[256]; - static const byte s4[256]; + static const word32 SP[4][256]; unsigned int m_rounds; - SecBlock<word64> m_key; + SecBlock<word32> m_key; }; public: @@ -53,5 +46,3 @@ typedef Camellia::Decryption CamelliaDecryption; NAMESPACE_END #endif - -#endif |