Botan 3.9.0
Crypto and TLS for C&
|
#include <asn1_obj.h>
Public Member Functions | |
ASN1_Object ()=default | |
ASN1_Object (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= (ASN1_Object &&)=default |
ASN1_Object & | operator= (const ASN1_Object &)=default |
virtual | ~ASN1_Object ()=default |
Basic ASN.1 Object Interface
Definition at line 96 of file asn1_obj.h.
|
default |
Referenced by ASN1_Object(), ASN1_Object(), operator=(), and operator=().
|
default |
References ASN1_Object().
|
default |
References ASN1_Object().
|
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 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(), Botan::PSS_Params::PSS_Params(), 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::ASBlocks::ASIdentifierChoice, Botan::Cert_Extension::ASBlocks::ASIdentifiers, Botan::Cert_Extension::ASBlocks::ASIdOrRange, Botan::Cert_Extension::CRL_Distribution_Points::Distribution_Point, Botan::Cert_Extension::IPAddressBlocks::IPAddressChoice< V >, Botan::Cert_Extension::IPAddressBlocks::IPAddressFamily, Botan::Cert_Extension::IPAddressBlocks::IPAddressOrRange< V >, Botan::Cert_Extension::TNAuthList::Entry, Botan::CRL_Entry, Botan::Extensions, Botan::GeneralName, Botan::GeneralSubtree, Botan::OCSP::CertID, Botan::OCSP::SingleResponse, Botan::OID, Botan::X509_DN, and Botan::X509_Object.
References BER_encode().
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::ASBlocks::ASIdentifierChoice, Botan::Cert_Extension::ASBlocks::ASIdentifiers, Botan::Cert_Extension::ASBlocks::ASIdOrRange, Botan::Cert_Extension::CRL_Distribution_Points::Distribution_Point, Botan::Cert_Extension::IPAddressBlocks::IPAddressChoice< V >, Botan::Cert_Extension::IPAddressBlocks::IPAddressFamily, Botan::Cert_Extension::IPAddressBlocks::IPAddressOrRange< V >, 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 |
References ASN1_Object().
|
default |
References ASN1_Object().