diff options
author | lloyd <[email protected]> | 2010-06-15 23:36:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-06-15 23:36:36 +0000 |
commit | 696672d6a5d971386d7db293553228687ab6b2d6 (patch) | |
tree | 5431fe8130ba63523684909876312d2e9dbf9601 | |
parent | 49c18ab9131cd1a36e5e90bbfc18ef3f33361d50 (diff) |
Don't allow access to key_schedule, just the members
-rw-r--r-- | src/block/idea/idea.h | 4 | ||||
-rw-r--r-- | src/block/noekeon/noekeon.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/block/idea/idea.h b/src/block/idea/idea.h index be1417a36..e9ccf366d 100644 --- a/src/block/idea/idea.h +++ b/src/block/idea/idea.h @@ -26,8 +26,10 @@ class BOTAN_DLL IDEA : public BlockCipher BlockCipher* clone() const { return new IDEA; } IDEA() : BlockCipher(8, 16) {} - protected: + private: void key_schedule(const byte[], u32bit); + + protected: // for IDEA_SSE2 SecureVector<u16bit, 52> EK, DK; }; diff --git a/src/block/noekeon/noekeon.h b/src/block/noekeon/noekeon.h index 5b04a135d..f1175f529 100644 --- a/src/block/noekeon/noekeon.h +++ b/src/block/noekeon/noekeon.h @@ -26,9 +26,9 @@ class BOTAN_DLL Noekeon : public BlockCipher BlockCipher* clone() const { return new Noekeon; } Noekeon() : BlockCipher(16, 16) {} - protected: + private: void key_schedule(const byte[], u32bit); - + protected: // for access by SIMD subclass static const byte RC[17]; SecureVector<u32bit, 4> EK, DK; |