From f05ea58bb369988a61438411539ea955e0adf8c2 Mon Sep 17 00:00:00 2001 From: weidai Date: Sun, 10 Dec 2006 02:12:23 +0000 Subject: port to GCC 4, reorganize implementations of SetKey --- cast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cast.h') diff --git a/cast.h b/cast.h index 36c74654..98bb5d6b 100644 --- a/cast.h +++ b/cast.h @@ -27,7 +27,7 @@ class CAST128 : public CAST128_Info, public BlockCipherDocumentation class CRYPTOPP_NO_VTABLE Base : public CAST, public BlockCipherImpl { public: - void UncheckedSetKey(CipherDir direction, const byte *userKey, unsigned int length); + void UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs ¶ms); protected: bool reduced; @@ -63,7 +63,7 @@ class CAST256 : public CAST256_Info, public BlockCipherDocumentation class CRYPTOPP_NO_VTABLE Base : public CAST, public BlockCipherImpl { public: - void UncheckedSetKey(CipherDir direction, const byte *userKey, unsigned int length = 8); + void UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs ¶ms); void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const; protected: -- cgit v1.2.1