From ae515e0b4c86dd3309f8897f9bd4e7fedcd4588f Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 16 May 2003 00:53:53 +0000 Subject: add CRYPTOPP_NO_VTABLE git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@69 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- safer.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'safer.h') diff --git a/safer.h b/safer.h index 4f0621e..943c1ce 100644 --- a/safer.h +++ b/safer.h @@ -13,7 +13,7 @@ NAMESPACE_BEGIN(CryptoPP) class SAFER { public: - class Base : public BlockCipher + class CRYPTOPP_NO_VTABLE Base : public BlockCipher { public: unsigned int GetAlignment() const {return 1;} @@ -25,13 +25,13 @@ public: static const byte log_tab[256]; }; - class Enc : public Base + class CRYPTOPP_NO_VTABLE Enc : public Base { public: void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const; }; - class Dec : public Base + class CRYPTOPP_NO_VTABLE Dec : public Base { public: void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const; @@ -47,13 +47,13 @@ struct SAFER_K_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 8, /// SAFER-K class SAFER_K : public SAFER_K_Info, public SAFER, public BlockCipherDocumentation { - class Enc : public BlockCipherBaseTemplate + class CRYPTOPP_NO_VTABLE Enc : public BlockCipherBaseTemplate { public: Enc() {strengthened = false;} }; - class Dec : public BlockCipherBaseTemplate + class CRYPTOPP_NO_VTABLE Dec : public BlockCipherBaseTemplate { public: Dec() {strengthened = false;} @@ -73,13 +73,13 @@ struct SAFER_SK_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 8, /// SAFER-SK class SAFER_SK : public SAFER_SK_Info, public SAFER, public BlockCipherDocumentation { - class Enc : public BlockCipherBaseTemplate + class CRYPTOPP_NO_VTABLE Enc : public BlockCipherBaseTemplate { public: Enc() {strengthened = true;} }; - class Dec : public BlockCipherBaseTemplate + class CRYPTOPP_NO_VTABLE Dec : public BlockCipherBaseTemplate { public: Dec() {strengthened = true;} -- cgit v1.2.1