From d23a489940499bd6c634a1cb0a9875f094f8a850 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 01:24:12 +0000 Subject: various changes for 5.1 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@38 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- asn.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'asn.h') diff --git a/asn.h b/asn.h index ab51369..b3fba6a 100644 --- a/asn.h +++ b/asn.h @@ -236,13 +236,15 @@ public: virtual bool DEREncodeAlgorithmParameters(BufferedTransformation &bt) const {DEREncodeNull(bt); return false;} // see RFC 2459, section 7.3.1 // one of the following two should be overriden + //! decode subjectPublicKey part of subjectPublicKeyInfo, or privateKey part of privateKeyInfo, without the BIT STRING or OCTET STRING header virtual void BERDecodeKey(BufferedTransformation &bt) {assert(false);} virtual void BERDecodeKey2(BufferedTransformation &bt, bool parametersPresent, unsigned int size) {BERDecodeKey(bt);} + //! encode subjectPublicKey part of subjectPublicKeyInfo, or privateKey part of privateKeyInfo, without the BIT STRING or OCTET STRING header virtual void DEREncodeKey(BufferedTransformation &bt) const =0; }; -//! . +//! encodes/decodes subjectPublicKeyInfo class X509PublicKey : virtual public ASN1Key, public PublicKey { public: @@ -250,7 +252,7 @@ public: void DEREncode(BufferedTransformation &bt) const; }; -//! . +//! encodes/decodes privateKeyInfo class PKCS8PrivateKey : virtual public ASN1Key, public PrivateKey { public: -- cgit v1.2.1