Botan 3.6.1
Crypto and TLS for C&
|
#include <asn1_obj.h>
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_Object & | operator= (const ASN1_Object &)=default |
virtual | ~ASN1_Object ()=default |
Basic ASN.1 Object Interface
Definition at line 97 of file asn1_obj.h.
|
default |
|
default |
|
virtualdefault |
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.
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().
|
pure virtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implemented in Botan::AlgorithmIdentifier, Botan::AlternativeName, Botan::ASN1_String, Botan::ASN1_Time, Botan::Attribute, Botan::Cert_Extension::CRL_Distribution_Points::Distribution_Point, Botan::Cert_Extension::TNAuthList::Entry, Botan::CRL_Entry, Botan::Extensions, Botan::GeneralName, Botan::GeneralSubtree, Botan::OCSP::CertID, Botan::OCSP::SingleResponse, Botan::OID, Botan::PSS_Params, Botan::X509_DN, and Botan::X509_Object.
Referenced by Botan::BER_Decoder::decode().
|
pure virtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implemented in Botan::AlgorithmIdentifier, Botan::AlternativeName, Botan::ASN1_String, Botan::ASN1_Time, Botan::Attribute, Botan::Cert_Extension::CRL_Distribution_Points::Distribution_Point, Botan::Cert_Extension::TNAuthList::Entry, Botan::CRL_Entry, Botan::Extensions, Botan::GeneralName, Botan::GeneralSubtree, Botan::OCSP::CertID, Botan::OCSP::SingleResponse, Botan::OID, Botan::PSS_Params, Botan::X509_DN, and Botan::X509_Object.
Referenced by BER_encode(), and Botan::DER_Encoder::encode().
|
default |