Botan
1.10.16
|
#include <der_enc.h>
DER_Encoder & Botan::DER_Encoder::add_object | ( | ASN1_Tag | type_tag, |
ASN1_Tag | class_tag, | ||
const byte | rep[], | ||
size_t | length | ||
) |
Definition at line 346 of file der_enc.cpp.
References Botan::BER_Decoder::raw_bytes().
Referenced by Botan::ASN1_String::encode_into(), Botan::OID::encode_into(), Botan::EAC_Time::encode_into(), Botan::X509_Time::encode_into(), Botan::ASN1_EAC_String::encode_into(), and Botan::AlternativeName::has_items().
DER_Encoder & Botan::DER_Encoder::add_object | ( | ASN1_Tag | type_tag, |
ASN1_Tag | class_tag, | ||
const MemoryRegion< byte > & | rep | ||
) |
Definition at line 360 of file der_enc.cpp.
References Botan::MemoryRegion< T >::size().
DER_Encoder & Botan::DER_Encoder::add_object | ( | ASN1_Tag | type_tag, |
ASN1_Tag | class_tag, | ||
const std::string & | str | ||
) |
Definition at line 371 of file der_enc.cpp.
DER_Encoder & Botan::DER_Encoder::add_object | ( | ASN1_Tag | type_tag, |
ASN1_Tag | class_tag, | ||
byte | val | ||
) |
Definition at line 382 of file der_enc.cpp.
DER_Encoder & Botan::DER_Encoder::encode | ( | bool | b | ) |
Definition at line 209 of file der_enc.cpp.
References Botan::BOOLEAN, Botan::PEM_Code::encode(), and Botan::UNIVERSAL.
Referenced by Botan::X509::BER_encode(), Botan::X509_Object::BER_encode(), Botan::PKCS8::BER_encode(), Botan::Certificate_Req::Certificate_Req(), Botan::Cert_Extension::CRL_Number::copy(), Botan::ECDSA_Signature::DER_encode(), Botan::EC_Group::DER_encode(), Botan::DL_Group::DER_encode(), Botan::CMS_Encoder::digest(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::encode(), Botan::CRL_Entry::encode_into(), Botan::AlgorithmIdentifier::encode_into(), Botan::Attribute::encode_into(), Botan::Extensions::encode_into(), Botan::AlternativeName::encode_into(), Botan::CMS_Encoder::encrypt(), Botan::EAC1_1_ADO::get_car(), Botan::operator<(), Botan::IF_Scheme_PrivateKey::pkcs8_private_key(), Botan::DL_Scheme_PrivateKey::pkcs8_private_key(), Botan::EC_PrivateKey::pkcs8_private_key(), Botan::CMS_Encoder::sign(), Botan::Cert_Extension::Subject_Key_ID::Subject_Key_ID(), Botan::DL_Scheme_PublicKey::x509_subject_public_key(), and Botan::IF_Scheme_PublicKey::x509_subject_public_key().
DER_Encoder & Botan::DER_Encoder::encode | ( | size_t | s | ) |
Definition at line 217 of file der_enc.cpp.
DER_Encoder & Botan::DER_Encoder::encode | ( | const BigInt & | n | ) |
Definition at line 225 of file der_enc.cpp.
DER_Encoder & Botan::DER_Encoder::encode | ( | const MemoryRegion< byte > & | v, |
ASN1_Tag | real_type | ||
) |
Definition at line 233 of file der_enc.cpp.
References Botan::PEM_Code::encode(), Botan::MemoryRegion< T >::size(), and Botan::UNIVERSAL.
DER_Encoder & Botan::DER_Encoder::encode | ( | const byte | val[], |
size_t | len, | ||
ASN1_Tag | real_type | ||
) |
Definition at line 243 of file der_enc.cpp.
References Botan::PEM_Code::encode(), and Botan::UNIVERSAL.
DER_Encoder & Botan::DER_Encoder::encode | ( | bool | b, |
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 252 of file der_enc.cpp.
DER_Encoder & Botan::DER_Encoder::encode | ( | size_t | s, |
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 262 of file der_enc.cpp.
DER_Encoder & Botan::DER_Encoder::encode | ( | const BigInt & | n, |
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 271 of file der_enc.cpp.
DER_Encoder & Botan::DER_Encoder::encode | ( | const MemoryRegion< byte > & | v, |
ASN1_Tag | real_type, | ||
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 295 of file der_enc.cpp.
References Botan::PEM_Code::encode(), and Botan::MemoryRegion< T >::size().
DER_Encoder & Botan::DER_Encoder::encode | ( | const byte | v[], |
size_t | len, | ||
ASN1_Tag | real_type, | ||
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 306 of file der_enc.cpp.
References Botan::BIT_STRING, Botan::OCTET_STRING, and Botan::MemoryRegion< T >::push_back().
DER_Encoder & Botan::DER_Encoder::encode | ( | const ASN1_Object & | obj | ) |
Definition at line 337 of file der_enc.cpp.
References Botan::ASN1_Object::encode_into().
DER_Encoder & Botan::DER_Encoder::encode_if | ( | bool | pred, |
DER_Encoder & | enc | ||
) |
Definition at line 327 of file der_enc.cpp.
References get_contents(), and Botan::BER_Decoder::raw_bytes().
Referenced by Botan::Cert_Extension::Basic_Constraints::get_path_limit().
|
inline |
Definition at line 75 of file der_enc.h.
References Botan::PEM_Code::encode().
Referenced by Botan::Cert_Extension::Issuer_Alternative_Name::Issuer_Alternative_Name().
DER_Encoder & Botan::DER_Encoder::encode_null | ( | ) |
Definition at line 201 of file der_enc.cpp.
References Botan::NULL_TAG, and Botan::UNIVERSAL.
Referenced by Botan::EC_Group::DER_encode().
|
inline |
DER_Encoder & Botan::DER_Encoder::end_cons | ( | ) |
Definition at line 145 of file der_enc.cpp.
References Botan::BER_Decoder::raw_bytes().
Referenced by Botan::X509_Object::BER_encode(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::build_cert_body(), Botan::ECDSA_Signature::DER_encode(), Botan::EC_Group::DER_encode(), Botan::DL_Group::DER_encode(), Botan::CMS_Encoder::digest(), Botan::EAC1_1_ADO::EAC1_1_ADO(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::encode(), Botan::CRL_Entry::encode_into(), Botan::X509_DN::encode_into(), Botan::AlgorithmIdentifier::encode_into(), Botan::Attribute::encode_into(), Botan::AlternativeName::encode_into(), Botan::CMS_Encoder::encrypt(), Botan::EAC1_1_ADO::get_car(), Botan::Cert_Extension::Issuer_Alternative_Name::Issuer_Alternative_Name(), Botan::operator<(), Botan::IF_Scheme_PrivateKey::pkcs8_private_key(), Botan::EC_PrivateKey::pkcs8_private_key(), Botan::ASN1::put_in_sequence(), Botan::CMS_Encoder::sign(), Botan::Cert_Extension::Subject_Key_ID::Subject_Key_ID(), and Botan::IF_Scheme_PublicKey::x509_subject_public_key().
DER_Encoder & Botan::DER_Encoder::end_explicit | ( | ) |
Definition at line 172 of file der_enc.cpp.
References Botan::BER_Decoder::end_cons().
Referenced by Botan::AlternativeName::encode_into().
SecureVector< byte > Botan::DER_Encoder::get_contents | ( | ) |
Definition at line 122 of file der_enc.cpp.
References std::swap().
Referenced by Botan::X509_Object::BER_encode(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::build_cert_body(), Botan::Certificate_Req::Certificate_Req(), Botan::Cert_Extension::CRL_Number::copy(), Botan::ECDSA_Signature::DER_encode(), Botan::EC_Group::DER_encode(), Botan::DL_Group::DER_encode(), Botan::EAC1_1_ADO::EAC1_1_ADO(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::encode(), encode_if(), Botan::EAC1_1_ADO::get_car(), Botan::CMS_Encoder::get_contents(), Botan::Cert_Extension::Issuer_Alternative_Name::Issuer_Alternative_Name(), Botan::IF_Scheme_PrivateKey::pkcs8_private_key(), Botan::DL_Scheme_PrivateKey::pkcs8_private_key(), Botan::EC_PrivateKey::pkcs8_private_key(), Botan::ASN1::put_in_sequence(), Botan::Cert_Extension::Subject_Key_ID::Subject_Key_ID(), Botan::DL_Scheme_PublicKey::x509_subject_public_key(), and Botan::IF_Scheme_PublicKey::x509_subject_public_key().
DER_Encoder & Botan::DER_Encoder::raw_bytes | ( | const byte | val[], |
size_t | len | ||
) |
Definition at line 188 of file der_enc.cpp.
Referenced by Botan::X509_Object::BER_encode(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::build_cert_body(), Botan::CMS_Encoder::digest(), Botan::EAC1_1_ADO::EAC1_1_ADO(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::encode(), Botan::X509_DN::encode_into(), Botan::AlgorithmIdentifier::encode_into(), Botan::Attribute::encode_into(), Botan::CMS_Encoder::encrypt(), Botan::EAC1_1_ADO::get_car(), Botan::ASN1::put_in_sequence(), and Botan::CMS_Encoder::sign().
DER_Encoder & Botan::DER_Encoder::raw_bytes | ( | const MemoryRegion< byte > & | val | ) |
Definition at line 180 of file der_enc.cpp.
References Botan::BER_Decoder::raw_bytes(), and Botan::MemoryRegion< T >::size().
DER_Encoder & Botan::DER_Encoder::start_cons | ( | ASN1_Tag | type_tag, |
ASN1_Tag | class_tag = UNIVERSAL |
||
) |
Definition at line 135 of file der_enc.cpp.
Referenced by Botan::X509::BER_encode(), Botan::X509_Object::BER_encode(), Botan::PKCS8::BER_encode(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::build_cert_body(), Botan::CMS_Encoder::compress(), Botan::ECDSA_Signature::DER_encode(), Botan::EC_Group::DER_encode(), Botan::DL_Group::DER_encode(), Botan::CMS_Encoder::digest(), Botan::EAC1_1_ADO::EAC1_1_ADO(), Botan::EAC1_1_gen_CVC< EAC1_1_Req >::encode(), Botan::CRL_Entry::encode_into(), Botan::X509_DN::encode_into(), Botan::AlgorithmIdentifier::encode_into(), Botan::Attribute::encode_into(), Botan::Extensions::encode_into(), Botan::AlternativeName::encode_into(), Botan::CMS_Encoder::encrypt(), Botan::EAC1_1_ADO::get_car(), Botan::CMS_Encoder::get_contents(), Botan::Cert_Extension::Basic_Constraints::get_path_limit(), Botan::Cert_Extension::Issuer_Alternative_Name::Issuer_Alternative_Name(), Botan::operator<(), Botan::CMS_Encoder::PEM_contents(), Botan::IF_Scheme_PrivateKey::pkcs8_private_key(), Botan::EC_PrivateKey::pkcs8_private_key(), Botan::ASN1::put_in_sequence(), Botan::CMS_Encoder::sign(), Botan::Cert_Extension::Subject_Key_ID::Subject_Key_ID(), and Botan::IF_Scheme_PublicKey::x509_subject_public_key().
DER_Encoder & Botan::DER_Encoder::start_explicit | ( | u16bit | type_tag | ) |
Definition at line 159 of file der_enc.cpp.
References Botan::CONTEXT_SPECIFIC, Botan::SET, and Botan::BER_Decoder::start_cons().
Referenced by Botan::AlternativeName::encode_into(), and Botan::CMS_Encoder::encrypt().