diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-19 18:23:58 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-19 18:23:58 -0400 |
commit | fea35d829ea2a7c9a1d874132d72a8cfc184d9b3 (patch) | |
tree | d285a336ae0f17a0c584d42a904d471831700eb0 /chachapoly.h | |
parent | 8fcf3667ec97874d56bdc8d2bfa1db465d2946fa (diff) | |
download | cryptopp-git-fea35d829ea2a7c9a1d874132d72a8cfc184d9b3.tar.gz |
Fix ChaCha20Poly1305 on Windows
Diffstat (limited to 'chachapoly.h')
-rw-r--r-- | chachapoly.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chachapoly.h b/chachapoly.h index 6f445fe0..6084f96c 100644 --- a/chachapoly.h +++ b/chachapoly.h @@ -26,7 +26,7 @@ NAMESPACE_BEGIN(CryptoPP) /// \brief ChaCha20Poly1305 cipher base implementation
/// \details Base implementation of the AuthenticatedSymmetricCipher interface
/// \since Crypto++ 8.1
-class CRYPTOPP_NO_VTABLE ChaCha20Poly1305_Base : public AuthenticatedSymmetricCipherBase
+class ChaCha20Poly1305_Base : public AuthenticatedSymmetricCipherBase
{
public:
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName()
@@ -130,7 +130,7 @@ private: /// for IETF Protocols</A>.
/// \since Crypto++ 8.1
template <bool T_IsEncryption>
-class CRYPTOPP_NO_VTABLE ChaCha20Poly1305_Final : public ChaCha20Poly1305_Base
+class ChaCha20Poly1305_Final : public ChaCha20Poly1305_Base
{
public:
virtual ~ChaCha20Poly1305_Final() {}
@@ -174,7 +174,7 @@ struct ChaCha20Poly1305 : public AuthenticatedSymmetricCipherDocumentation /// \brief XChaCha20Poly1305 cipher base implementation
/// \details Base implementation of the AuthenticatedSymmetricCipher interface
/// \since Crypto++ 8.1
-class CRYPTOPP_NO_VTABLE XChaCha20Poly1305_Base : public AuthenticatedSymmetricCipherBase
+class XChaCha20Poly1305_Base : public AuthenticatedSymmetricCipherBase
{
public:
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName()
@@ -258,12 +258,12 @@ protected: void AuthenticateLastConfidentialBlock();
void AuthenticateLastFooterBlock(byte *mac, size_t macSize);
- virtual const MessageAuthenticationCode & GetMAC() const = 0;
- virtual MessageAuthenticationCode & AccessMAC() = 0;
-
// See comments in chachapoly.cpp
void RekeyCipherAndMac(const byte *userKey, size_t userKeyLength, const NameValuePairs ¶ms);
+ virtual const MessageAuthenticationCode & GetMAC() const = 0;
+ virtual MessageAuthenticationCode & AccessMAC() = 0;
+
private:
SecByteBlock m_userKey;
};
@@ -278,7 +278,7 @@ private: /// for IETF Protocols</A>.
/// \since Crypto++ 8.1
template <bool T_IsEncryption>
-class CRYPTOPP_NO_VTABLE XChaCha20Poly1305_Final : public XChaCha20Poly1305_Base
+class XChaCha20Poly1305_Final : public XChaCha20Poly1305_Base
{
public:
virtual ~XChaCha20Poly1305_Final() {}
|