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 --- elgamal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'elgamal.h') diff --git a/elgamal.h b/elgamal.h index 65446c5..6835784 100644 --- a/elgamal.h +++ b/elgamal.h @@ -6,7 +6,7 @@ NAMESPACE_BEGIN(CryptoPP) -class ElGamalBase : public DL_KeyAgreementAlgorithm_DH, +class CRYPTOPP_NO_VTABLE ElGamalBase : public DL_KeyAgreementAlgorithm_DH, public DL_KeyDerivationAlgorithm, public DL_SymmetricEncryptionAlgorithm { @@ -75,7 +75,7 @@ public: }; template -class ElGamalObjectImpl : public DL_ObjectImplBase, public ElGamalBase +class CRYPTOPP_NO_VTABLE ElGamalObjectImpl : public DL_ObjectImplBase, public ElGamalBase { public: unsigned int FixedMaxPlaintextLength() const {return MaxPlaintextLength(FixedCiphertextLength());} @@ -106,14 +106,14 @@ struct ElGamal static const char * StaticAlgorithmName() {return "ElgamalEnc/Crypto++Padding";} - class EncryptorImpl : public ElGamalObjectImpl, SchemeOptions, SchemeOptions::PublicKey>, public PublicKeyCopier + class CRYPTOPP_NO_VTABLE EncryptorImpl : public ElGamalObjectImpl, SchemeOptions, SchemeOptions::PublicKey>, public PublicKeyCopier { public: void CopyKeyInto(SchemeOptions::PublicKey &key) const {key = GetKey();} }; - class DecryptorImpl : public ElGamalObjectImpl, SchemeOptions, SchemeOptions::PrivateKey>, public PrivateKeyCopier + class CRYPTOPP_NO_VTABLE DecryptorImpl : public ElGamalObjectImpl, SchemeOptions, SchemeOptions::PrivateKey>, public PrivateKeyCopier { public: void CopyKeyInto(SchemeOptions::PublicKey &key) const -- cgit v1.2.1