summaryrefslogtreecommitdiff
path: root/xed25519.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-20 13:55:16 -0400
committerJeffrey Walton <noloader@gmail.com>2021-03-20 13:55:16 -0400
commitcbc58242cfeb2a78797beb502076dadaf7f5fe02 (patch)
tree88d3c4f2d07a5aee9b6cd872a0478024d12664f4 /xed25519.h
parent44f71792f55f7fbc56c97724d210ae6630033656 (diff)
downloadcryptopp-git-cbc58242cfeb2a78797beb502076dadaf7f5fe02.tar.gz
Add missing virtual dtors
Diffstat (limited to 'xed25519.h')
-rw-r--r--xed25519.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xed25519.h b/xed25519.h
index 6e5c7acb..36905e7b 100644
--- a/xed25519.h
+++ b/xed25519.h
@@ -366,6 +366,8 @@ struct ed25519PrivateKey : public PKCS8PrivateKey
/// concatenation of <tt>r || s</tt>.
CRYPTOPP_CONSTANT(SIGNATURE_LENGTH = 64);
+ virtual ~ed25519PrivateKey() {}
+
// CryptoMaterial
bool Validate(RandomNumberGenerator &rng, unsigned int level) const;
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const;
@@ -629,6 +631,8 @@ struct ed25519PublicKey : public X509PublicKey
CRYPTOPP_CONSTANT(PUBLIC_KEYLENGTH = 32);
typedef Integer Element;
+ virtual ~ed25519PublicKey() {}
+
OID GetAlgorithmID() const {
return m_oid.Empty() ? ASN1::Ed25519() : m_oid;
}