summaryrefslogtreecommitdiff
path: root/asn.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-24 17:17:32 -0500
committerGitHub <noreply@github.com>2018-12-24 17:17:32 -0500
commitd62674b56145b6988cd0a9d8a658dff7cb6d8ec8 (patch)
treea30dc4f20697961ba0f347da15a112e38d88cfab /asn.h
parent2ba3c1fc73ff490fa335ae649f3ab42e762369f8 (diff)
downloadcryptopp-git-d62674b56145b6988cd0a9d8a658dff7cb6d8ec8.tar.gz
Add ed25519 (GH #764, PR #767)
Add ed25519
Diffstat (limited to 'asn.h')
-rw-r--r--asn.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/asn.h b/asn.h
index 30620f5d..2eb6404d 100644
--- a/asn.h
+++ b/asn.h
@@ -201,6 +201,10 @@ public:
/// </pre>
void BERDecodeAndCheck(BufferedTransformation &bt) const;
+ bool Empty() const {
+ return m_values.empty();
+ }
+
const std::vector<word32>& GetValues() const {
return m_values;
}
@@ -413,7 +417,7 @@ public:
virtual void DEREncodePublicKey(BufferedTransformation &bt) const =0;
};
-/// \brief Encodes and decodesprivateKeyInfo
+/// \brief Encodes and Decodes privateKeyInfo
class CRYPTOPP_DLL PKCS8PrivateKey : public ASN1CryptoMaterial<PrivateKey>
{
public: