Botan 3.6.1
Crypto and TLS for C&
Botan::ASN1_Object Class Referenceabstract

#include <asn1_obj.h>

Inheritance diagram for Botan::ASN1_Object:
Botan::ASN1_String Botan::ASN1_Time Botan::AlgorithmIdentifier Botan::AlternativeName Botan::Attribute Botan::CRL_Entry Botan::Cert_Extension::CRL_Distribution_Points::Distribution_Point Botan::Cert_Extension::TNAuthList::Entry Botan::Extensions Botan::GeneralName Botan::GeneralSubtree Botan::OCSP::CertID Botan::OCSP::SingleResponse Botan::OID Botan::PSS_Params Botan::X509_DN Botan::X509_Object

Public Member Functions

 ASN1_Object ()=default
 
 ASN1_Object (const ASN1_Object &)=default
 
std::vector< uint8_t > BER_encode () const
 
virtual void decode_from (BER_Decoder &from)=0
 
virtual void encode_into (DER_Encoder &to) const =0
 
ASN1_Objectoperator= (const ASN1_Object &)=default
 
virtual ~ASN1_Object ()=default
 

Detailed Description

Basic ASN.1 Object Interface

Definition at line 97 of file asn1_obj.h.

Constructor & Destructor Documentation

◆ ASN1_Object() [1/2]

Botan::ASN1_Object::ASN1_Object ( )
default

◆ ASN1_Object() [2/2]

Botan::ASN1_Object::ASN1_Object ( const ASN1_Object & )
default

◆ ~ASN1_Object()

virtual Botan::ASN1_Object::~ASN1_Object ( )
virtualdefault

Member Function Documentation

◆ BER_encode()

std::vector< uint8_t > Botan::ASN1_Object::BER_encode ( ) const

Return the encoding of this object. This is a convenience method when just one object needs to be serialized. Use DER_Encoder for complicated encodings.

Definition at line 19 of file asn1_obj.cpp.

19 {
20 std::vector<uint8_t> output;
21 DER_Encoder der(output);
22 this->encode_into(der);
23 return output;
24}
virtual void encode_into(DER_Encoder &to) const =0

References encode_into().

Referenced by Botan::PSS_Params::decode_from(), Botan::Certificate_Store_In_SQL::find_all_certs(), Botan::Certificate_Store_In_SQL::find_cert(), Botan::X509_Certificate::fingerprint(), Botan::Certificate_Store_In_SQL::insert_cert(), Botan::X509_Object::PEM_encode(), and Botan::Certificate_Store_In_SQL::revoke_cert().

◆ decode_from()

◆ encode_into()

◆ operator=()

ASN1_Object & Botan::ASN1_Object::operator= ( const ASN1_Object & )
default

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