ASN1Object Class Reference

Interface for encoding and decoding ASN1 objects. More...

Inheritance diagram for ASN1Object:
ASN1CryptoMaterial< BASE > ASN1CryptoMaterial< DL_GroupParameters< Integer > > ASN1CryptoMaterial< PrivateKey > ASN1CryptoMaterial< PublicKey > Integer DL_GroupParameters_IntegerBased PKCS8PrivateKey ESIGNFunction X509PublicKey DL_GroupParametersImpl< DL_GroupPrecomputation_LUC, DL_BasePrecomputation_LUC, DL_GroupParameters_IntegerBased > DL_GroupParametersImpl< GROUP_PRECOMP, BASE_PRECOMP, DL_GroupParameters_IntegerBased > DL_GroupParametersImpl< ModExpPrecomputation, DL_FixedBasePrecomputationImpl< typenameModExpPrecomputation::Element >, DL_GroupParameters_IntegerBased > DL_KeyImpl< PKCS8PrivateKey, DL_GroupParameters_EC< EC > > DL_KeyImpl< PKCS8PrivateKey, GP > InvertibleRSAFunction InvertibleESIGNFunction DL_KeyImpl< X509PublicKey, DL_GroupParameters_EC< EC > > DL_KeyImpl< X509PublicKey, GP > RSAFunction

List of all members.

Public Member Functions

virtual void BERDecode (BufferedTransformation &bt)=0
 Decode this object from a BufferedTransformation.
virtual void DEREncode (BufferedTransformation &bt) const =0
 Encode this object into a BufferedTransformation.
virtual void BEREncode (BufferedTransformation &bt) const
 Encode this object into a BufferedTransformation.

Detailed Description

Interface for encoding and decoding ASN1 objects.

Each class that derives from ASN1Object should provide a serialization format that controls subobject layout. Most of the time the serialization format is taken from a standard, like P1363 or an RFC.

Definition at line 2630 of file cryptlib.h.


Member Function Documentation

virtual void ASN1Object::BERDecode ( BufferedTransformation bt  )  [pure virtual]

Decode this object from a BufferedTransformation.

Parameters:
bt BufferedTransformation object

Uses Basic Encoding Rules (BER)

Implemented in X509PublicKey, PKCS8PrivateKey, ESIGNFunction, InvertibleESIGNFunction, DL_GroupParameters_IntegerBased, Integer, and InvertibleRSAFunction.

virtual void ASN1Object::DEREncode ( BufferedTransformation bt  )  const [pure virtual]

Encode this object into a BufferedTransformation.

Parameters:
bt BufferedTransformation object

Uses Distinguished Encoding Rules (DER)

Implemented in X509PublicKey, PKCS8PrivateKey, ESIGNFunction, InvertibleESIGNFunction, DL_GroupParameters_IntegerBased, Integer, and InvertibleRSAFunction.

virtual void ASN1Object::BEREncode ( BufferedTransformation bt  )  const [inline, virtual]

Encode this object into a BufferedTransformation.

Parameters:
bt BufferedTransformation object

Uses Basic Encoding Rules (BER).

This may be useful if DEREncode() would be too inefficient.

Definition at line 2649 of file cryptlib.h.


The documentation for this class was generated from the following file:

Generated on 24 Mar 2016 for Crypto++ by  doxygen 1.6.1