Botan
1.10.9
|
#include <ber_dec.h>
Botan::BER_Decoder::BER_Decoder | ( | DataSource & | src | ) |
Definition at line 258 of file ber_dec.cpp.
References Botan::BER_Object::class_tag, Botan::NO_OBJECT, and Botan::BER_Object::type_tag.
Referenced by decode_optional().
Botan::BER_Decoder::BER_Decoder | ( | const byte | data[], |
size_t | length | ||
) |
Definition at line 269 of file ber_dec.cpp.
References Botan::BER_Object::class_tag, Botan::NO_OBJECT, and Botan::BER_Object::type_tag.
Botan::BER_Decoder::BER_Decoder | ( | const MemoryRegion< byte > & | data | ) |
Definition at line 280 of file ber_dec.cpp.
References Botan::BER_Object::class_tag, Botan::NO_OBJECT, and Botan::BER_Object::type_tag.
Botan::BER_Decoder::BER_Decoder | ( | const BER_Decoder & | other | ) |
Definition at line 291 of file ber_dec.cpp.
References Botan::BER_Object::class_tag, Botan::NO_OBJECT, and Botan::BER_Object::type_tag.
Botan::BER_Decoder::~BER_Decoder | ( | ) |
Definition at line 307 of file ber_dec.cpp.
BER_Decoder & Botan::BER_Decoder::decode | ( | bool & | out | ) |
Definition at line 338 of file ber_dec.cpp.
References Botan::BOOLEAN, and Botan::UNIVERSAL.
Referenced by Botan::DL_Group::BER_decode(), Botan::PK_Verifier::check_signature(), decode(), Botan::CRL_Entry::decode_from(), Botan::X509_DN::decode_from(), Botan::AlgorithmIdentifier::decode_from(), Botan::Attribute::decode_from(), Botan::Extensions::decode_from(), Botan::AlternativeName::decode_from(), Botan::EAC1_1_gen_CVC< Derived >::decode_info(), decode_list(), decode_octet_string_bigint(), decode_optional(), decode_optional_string(), Botan::DL_Scheme_PrivateKey::DL_Scheme_PrivateKey(), Botan::DL_Scheme_PublicKey::DL_Scheme_PublicKey(), Botan::EC_Group::EC_Group(), Botan::ECDSA_Signature::ECDSA_Signature(), Botan::GOST_3410_PublicKey::GOST_3410_PublicKey(), Botan::IF_Scheme_PublicKey::IF_Scheme_PublicKey(), and Botan::X509::load_key().
BER_Decoder & Botan::BER_Decoder::decode | ( | size_t & | out | ) |
Definition at line 346 of file ber_dec.cpp.
References decode(), Botan::INTEGER, and Botan::UNIVERSAL.
BER_Decoder & Botan::BER_Decoder::decode | ( | class BigInt & | out | ) |
Definition at line 354 of file ber_dec.cpp.
References decode(), Botan::INTEGER, and Botan::UNIVERSAL.
BER_Decoder & Botan::BER_Decoder::decode | ( | MemoryRegion< byte > & | out, |
ASN1_Tag | real_type | ||
) |
Definition at line 438 of file ber_dec.cpp.
References decode(), and Botan::UNIVERSAL.
BER_Decoder & Botan::BER_Decoder::decode | ( | bool & | out, |
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 370 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), get_next_object(), Botan::MemoryRegion< T >::size(), and Botan::BER_Object::value.
BER_Decoder & Botan::BER_Decoder::decode | ( | size_t & | out, |
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 386 of file ber_dec.cpp.
References Botan::BigInt::bits(), Botan::BigInt::byte_at(), and decode().
BER_Decoder & Botan::BER_Decoder::decode | ( | class BigInt & | out, |
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 405 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), Botan::MemoryRegion< T >::empty(), Botan::BigInt::flip_sign(), get_next_object(), Botan::MemoryRegion< T >::size(), and Botan::BER_Object::value.
BER_Decoder & Botan::BER_Decoder::decode | ( | MemoryRegion< byte > & | buffer, |
ASN1_Tag | real_type, | ||
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag = CONTEXT_SPECIFIC |
||
) |
Definition at line 446 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), Botan::BIT_STRING, Botan::copy_mem(), get_next_object(), Botan::OCTET_STRING, Botan::MemoryRegion< T >::resize(), Botan::MemoryRegion< T >::size(), and Botan::BER_Object::value.
BER_Decoder & Botan::BER_Decoder::decode | ( | class ASN1_Object & | obj | ) |
Definition at line 317 of file ber_dec.cpp.
References Botan::ASN1_Object::decode_from().
|
inline |
Definition at line 62 of file ber_dec.h.
References Botan::PEM_Code::decode().
Referenced by Botan::EC_Group::EC_Group(), Botan::EC_PrivateKey::EC_PrivateKey(), and Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey().
BER_Decoder & Botan::BER_Decoder::decode_list | ( | std::vector< T > & | out, |
bool | clear_out = true |
||
) |
BER_Decoder & Botan::BER_Decoder::decode_null | ( | ) |
Definition at line 326 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), get_next_object(), Botan::NULL_TAG, Botan::MemoryRegion< T >::size(), Botan::UNIVERSAL, and Botan::BER_Object::value.
BER_Decoder & Botan::BER_Decoder::decode_octet_string_bigint | ( | class BigInt & | out | ) |
Definition at line 359 of file ber_dec.cpp.
References decode(), Botan::BigInt::decode(), Botan::OCTET_STRING, and Botan::MemoryRegion< T >::size().
Referenced by Botan::EC_Group::EC_Group().
BER_Decoder & Botan::BER_Decoder::decode_optional | ( | T & | out, |
ASN1_Tag | type_tag, | ||
ASN1_Tag | class_tag, | ||
const T & | default_value = T() |
||
) |
Definition at line 95 of file ber_dec.h.
References BER_Decoder(), Botan::BER_Object::class_tag, Botan::CONSTRUCTED, decode(), get_next_object(), push_back(), Botan::BER_Object::type_tag, and Botan::BER_Object::value.
Referenced by Botan::Extensions::decode_from().
BER_Decoder & Botan::BER_Decoder::decode_optional_string | ( | MemoryRegion< byte > & | out, |
ASN1_Tag | real_type, | ||
u16bit | type_no | ||
) |
Definition at line 472 of file ber_dec.cpp.
References Botan::BER_Object::class_tag, Botan::MemoryRegion< T >::clear(), Botan::CONTEXT_SPECIFIC, decode(), get_next_object(), push_back(), and Botan::BER_Object::type_tag.
BER_Decoder & Botan::BER_Decoder::discard_remaining | ( | ) |
Definition at line 182 of file ber_dec.cpp.
References Botan::DataSource::read_byte().
Referenced by Botan::DL_Group::BER_decode().
BER_Decoder & Botan::BER_Decoder::end_cons | ( | ) |
Definition at line 246 of file ber_dec.cpp.
References Botan::DataSource::end_of_data().
Referenced by Botan::CRL_Entry::decode_from(), Botan::X509_DN::decode_from(), Botan::AlgorithmIdentifier::decode_from(), Botan::Attribute::decode_from(), Botan::Extensions::decode_from(), Botan::EAC1_1_gen_CVC< Derived >::decode_info(), Botan::EC_Group::EC_Group(), Botan::ECDSA_Signature::ECDSA_Signature(), Botan::IF_Scheme_PublicKey::IF_Scheme_PublicKey(), and Botan::X509::load_key().
BER_Object Botan::BER_Decoder::get_next_object | ( | ) |
Definition at line 193 of file ber_dec.cpp.
References Botan::BER_Object::class_tag, Botan::EOC, Botan::NO_OBJECT, Botan::DataSource::read(), Botan::MemoryRegion< T >::resize(), Botan::BER_Object::type_tag, Botan::UNIVERSAL, and Botan::BER_Object::value.
Referenced by Botan::BER::decode(), decode(), Botan::ASN1_String::decode_from(), Botan::OID::decode_from(), Botan::EAC_Time::decode_from(), Botan::X509_Time::decode_from(), Botan::AlternativeName::decode_from(), Botan::ASN1_EAC_String::decode_from(), decode_null(), decode_optional(), decode_optional_string(), Botan::EC_Group::EC_Group(), and start_cons().
bool Botan::BER_Decoder::more_items | ( | ) | const |
Definition at line 150 of file ber_dec.cpp.
References Botan::DataSource::end_of_data(), Botan::NO_OBJECT, and Botan::BER_Object::type_tag.
Referenced by Botan::PK_Verifier::check_signature(), Botan::CRL_Entry::decode_from(), Botan::X509_DN::decode_from(), Botan::Extensions::decode_from(), Botan::AlternativeName::decode_from(), and decode_list().
void Botan::BER_Decoder::push_back | ( | const BER_Object & | obj | ) |
Definition at line 222 of file ber_dec.cpp.
References Botan::NO_OBJECT, and Botan::BER_Object::type_tag.
Referenced by decode_optional(), and decode_optional_string().
BER_Decoder & Botan::BER_Decoder::raw_bytes | ( | MemoryRegion< byte > & | out | ) |
Definition at line 170 of file ber_dec.cpp.
References Botan::MemoryRegion< T >::clear(), Botan::MemoryRegion< T >::push_back(), and Botan::DataSource::read_byte().
Referenced by Botan::X509_DN::decode_from(), Botan::AlgorithmIdentifier::decode_from(), Botan::Attribute::decode_from(), and Botan::EAC1_1_gen_CVC< Derived >::decode_info().
BER_Decoder Botan::BER_Decoder::start_cons | ( | ASN1_Tag | type_tag, |
ASN1_Tag | class_tag = UNIVERSAL |
||
) |
Definition at line 232 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), Botan::CONSTRUCTED, get_next_object(), Botan::MemoryRegion< T >::size(), and Botan::BER_Object::value.
Referenced by Botan::DL_Group::BER_decode(), Botan::PK_Verifier::check_signature(), Botan::CRL_Entry::decode_from(), Botan::X509_DN::decode_from(), Botan::AlgorithmIdentifier::decode_from(), Botan::Attribute::decode_from(), Botan::Extensions::decode_from(), Botan::AlternativeName::decode_from(), Botan::EAC1_1_gen_CVC< Derived >::decode_info(), Botan::EC_Group::EC_Group(), Botan::EC_PrivateKey::EC_PrivateKey(), Botan::ECDSA_Signature::ECDSA_Signature(), Botan::GOST_3410_PublicKey::GOST_3410_PublicKey(), Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(), Botan::IF_Scheme_PublicKey::IF_Scheme_PublicKey(), and Botan::X509::load_key().
BER_Decoder & Botan::BER_Decoder::verify_end | ( | ) |
Definition at line 160 of file ber_dec.cpp.
References Botan::DataSource::end_of_data(), Botan::NO_OBJECT, and Botan::BER_Object::type_tag.
Referenced by Botan::DL_Group::BER_decode(), Botan::X509_DN::decode_from(), Botan::Extensions::decode_from(), Botan::AlternativeName::decode_from(), Botan::EC_Group::EC_Group(), Botan::ECDSA_Signature::ECDSA_Signature(), Botan::IF_Scheme_PublicKey::IF_Scheme_PublicKey(), and Botan::X509::load_key().