summaryrefslogtreecommitdiff
path: root/cast.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-04-07 11:41:00 -0400
committerJeffrey Walton <noloader@gmail.com>2018-04-07 11:41:00 -0400
commit71e9fece8795d6bc23e629b6ee00fa96f9d1d2f6 (patch)
tree020fe9a1464f1166e867a96cf2cb907756d1b11f /cast.h
parent11e076003a1a47a285c563735adc1ff474ec8153 (diff)
downloadcryptopp-git-71e9fece8795d6bc23e629b6ee00fa96f9d1d2f6.tar.gz
Make CAST temporaries class members
Diffstat (limited to 'cast.h')
-rw-r--r--cast.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cast.h b/cast.h
index 08ac2951..c0ac3347 100644
--- a/cast.h
+++ b/cast.h
@@ -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: