Crypto++ 8.9
Free C++ class library of cryptographic schemes
Public Member Functions | List of all members
ASN1CryptoMaterial< BASE > Class Template Reference

Encode and decode ASN.1 objects with additional information. More...

#include <asn.h>

+ Inheritance diagram for ASN1CryptoMaterial< BASE >:

Public Member Functions

void Save (BufferedTransformation &bt) const
 DER encode ASN.1 object.
 
void Load (BufferedTransformation &bt)
 BER decode ASN.1 object.
 
- Public Member Functions inherited from ASN1Object
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

template<class BASE>
class ASN1CryptoMaterial< BASE >

Encode and decode ASN.1 objects with additional information.

Template Parameters
BASEbase class or type

Encodes and decodes public keys, private keys and group parameters with OID identifying the algorithm or scheme.

Definition at line 684 of file asn.h.

Member Function Documentation

◆ Save()

template<class BASE >
void ASN1CryptoMaterial< BASE >::Save ( BufferedTransformation & bt) const
inline

DER encode ASN.1 object.

Parameters
btBufferedTransformation object

Save() will write the OID associated with algorithm or scheme. In the case of public and private keys, this function writes the subjectPublicKeyInfo and privateKeyInfo parts.

Reimplemented in InvertibleESIGNFunction, InvertibleRSAFunction, x25519, ed25519PrivateKey, and ed25519PublicKey.

Definition at line 692 of file asn.h.

◆ Load()

template<class BASE >
void ASN1CryptoMaterial< BASE >::Load ( BufferedTransformation & bt)
inline

BER decode ASN.1 object.

Parameters
btBufferedTransformation object

Reimplemented in InvertibleESIGNFunction, InvertibleRSAFunction, x25519, ed25519PrivateKey, and ed25519PublicKey.

Definition at line 697 of file asn.h.


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