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 --- strciphr.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'strciphr.h') diff --git a/strciphr.h b/strciphr.h index 8b3c9aa..bef2f7e 100644 --- a/strciphr.h +++ b/strciphr.h @@ -35,7 +35,7 @@ NAMESPACE_BEGIN(CryptoPP) template -class AbstractPolicyHolder : public BASE +class CRYPTOPP_NO_VTABLE AbstractPolicyHolder : public BASE { public: typedef POLICY_INTERFACE PolicyInterface; @@ -55,7 +55,7 @@ protected: enum KeystreamOperation {WRITE_KEYSTREAM, XOR_KEYSTREAM, XOR_KEYSTREAM_INPLACE}; -struct AdditiveCipherAbstractPolicy +struct CRYPTOPP_NO_VTABLE AdditiveCipherAbstractPolicy { virtual unsigned int GetAlignment() const =0; virtual unsigned int GetBytesPerIteration() const =0; @@ -70,7 +70,7 @@ struct AdditiveCipherAbstractPolicy }; template -struct AdditiveCipherConcretePolicy : public BASE +struct CRYPTOPP_NO_VTABLE AdditiveCipherConcretePolicy : public BASE { typedef WT WordType; @@ -118,7 +118,7 @@ struct AdditiveCipherConcretePolicy : public BASE }; template > > -class AdditiveCipherTemplate : public BASE +class CRYPTOPP_NO_VTABLE AdditiveCipherTemplate : public BASE { public: byte GenerateByte(); @@ -146,7 +146,7 @@ protected: unsigned int m_leftOver; }; -struct CFB_CipherAbstractPolicy +struct CRYPTOPP_NO_VTABLE CFB_CipherAbstractPolicy { virtual unsigned int GetAlignment() const =0; virtual unsigned int GetBytesPerIteration() const =0; @@ -159,7 +159,7 @@ struct CFB_CipherAbstractPolicy }; template -struct CFB_CipherConcretePolicy : public BASE +struct CRYPTOPP_NO_VTABLE CFB_CipherConcretePolicy : public BASE { typedef WT WordType; @@ -211,7 +211,7 @@ struct CFB_CipherConcretePolicy : public BASE }; template -class CFB_CipherTemplate : public BASE +class CRYPTOPP_NO_VTABLE CFB_CipherTemplate : public BASE { public: void ProcessData(byte *outString, const byte *inString, unsigned int length); @@ -233,14 +233,14 @@ protected: }; template > -class CFB_EncryptionTemplate : public CFB_CipherTemplate +class CRYPTOPP_NO_VTABLE CFB_EncryptionTemplate : public CFB_CipherTemplate { bool IsForwardTransformation() const {return true;} void CombineMessageAndShiftRegister(byte *output, byte *reg, const byte *message, unsigned int length); }; template > -class CFB_DecryptionTemplate : public CFB_CipherTemplate +class CRYPTOPP_NO_VTABLE CFB_DecryptionTemplate : public CFB_CipherTemplate { bool IsForwardTransformation() const {return false;} void CombineMessageAndShiftRegister(byte *output, byte *reg, const byte *message, unsigned int length); -- cgit v1.2.1