diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-04-07 11:41:00 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-04-07 11:41:00 -0400 |
commit | 71e9fece8795d6bc23e629b6ee00fa96f9d1d2f6 (patch) | |
tree | 020fe9a1464f1166e867a96cf2cb907756d1b11f /cast.h | |
parent | 11e076003a1a47a285c563735adc1ff474ec8153 (diff) | |
download | cryptopp-git-71e9fece8795d6bc23e629b6ee00fa96f9d1d2f6.tar.gz |
Make CAST temporaries class members
Diffstat (limited to 'cast.h')
-rw-r--r-- | cast.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -41,6 +41,7 @@ class CAST128 : public CAST128_Info, public BlockCipherDocumentation protected:
bool reduced;
FixedSizeSecBlock<word32, 32> K;
+ mutable FixedSizeSecBlock<word32, 3> m_t;
};
/// \brief CAST128 block cipher encryption operation
@@ -88,6 +89,8 @@ class CAST256 : public CAST256_Info, public BlockCipherDocumentation static void Omega(int i, word32 kappa[8]);
FixedSizeSecBlock<word32, 8*12> K;
+ mutable FixedSizeSecBlock<word32, 8> kappa;
+ mutable FixedSizeSecBlock<word32, 3> m_t;
};
public:
|