summaryrefslogtreecommitdiff
path: root/asn.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-08 17:34:15 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-08 17:34:15 -0400
commita20192a0cedbec8fa30341fcba25becfb87877b9 (patch)
treeddc895fb04dae16024d7a6d82634246f304dd045 /asn.h
parentcf137c34525781da247615887e734f1ed2c2c266 (diff)
downloadcryptopp-git-a20192a0cedbec8fa30341fcba25becfb87877b9.tar.gz
Updated documentation
Diffstat (limited to 'asn.h')
-rw-r--r--asn.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/asn.h b/asn.h
index 3be4aac9..41d518bb 100644
--- a/asn.h
+++ b/asn.h
@@ -379,13 +379,15 @@ public:
{BERDecode(bt);}
};
-//! encodes/decodes subjectPublicKeyInfo
+//! \brief Encodes and decodes subjectPublicKeyInfo
class CRYPTOPP_DLL X509PublicKey : public ASN1CryptoMaterial<PublicKey>
{
public:
void BERDecode(BufferedTransformation &bt);
void DEREncode(BufferedTransformation &bt) const;
+ //! \brief Retrieves the OID of the algorithm
+ //! \returns OID of the algorithm
virtual OID GetAlgorithmID() const =0;
virtual bool BERDecodeAlgorithmParameters(BufferedTransformation &bt)
{BERDecodeNull(bt); return false;}
@@ -398,13 +400,15 @@ public:
virtual void DEREncodePublicKey(BufferedTransformation &bt) const =0;
};
-//! encodes/decodes privateKeyInfo
+//! \brief Encodes and decodesprivateKeyInfo
class CRYPTOPP_DLL PKCS8PrivateKey : public ASN1CryptoMaterial<PrivateKey>
{
public:
void BERDecode(BufferedTransformation &bt);
void DEREncode(BufferedTransformation &bt) const;
+ //! \brief Retrieves the OID of the algorithm
+ //! \returns OID of the algorithm
virtual OID GetAlgorithmID() const =0;
virtual bool BERDecodeAlgorithmParameters(BufferedTransformation &bt)
{BERDecodeNull(bt); return false;}