|
Botan 1.10.17
|
#include <ber_dec.h>
| Botan::BER_Decoder::BER_Decoder | ( | DataSource & | src | ) |
Definition at line 264 of file ber_dec.cpp.
References Botan::NO_OBJECT.
Referenced by BER_Decoder(), decode(), decode(), decode(), decode(), decode(), decode(), decode(), decode(), decode(), decode_and_check(), Botan::EAC1_1_gen_CVC< Derived >::decode_info(), decode_list(), decode_null(), decode_octet_string_bigint(), decode_optional(), decode_optional_string(), discard_remaining(), Botan::DL_Scheme_PrivateKey::DL_Scheme_PrivateKey(), Botan::DL_Scheme_PublicKey::DL_Scheme_PublicKey(), Botan::EC_Group::EC_Group(), Botan::EC_PrivateKey::EC_PrivateKey(), Botan::ECDSA_Signature::ECDSA_Signature(), end_cons(), Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(), Botan::IF_Scheme_PublicKey::IF_Scheme_PublicKey(), Botan::X509::load_key(), raw_bytes(), start_cons(), and verify_end().
| Botan::BER_Decoder::BER_Decoder | ( | const byte | data[], |
| size_t | length ) |
Definition at line 275 of file ber_dec.cpp.
References Botan::DataSource_Memory::DataSource_Memory(), and Botan::NO_OBJECT.
| Botan::BER_Decoder::BER_Decoder | ( | const MemoryRegion< byte > & | data | ) |
Definition at line 286 of file ber_dec.cpp.
References Botan::DataSource_Memory::DataSource_Memory(), and Botan::NO_OBJECT.
| Botan::BER_Decoder::BER_Decoder | ( | const BER_Decoder & | other | ) |
Definition at line 297 of file ber_dec.cpp.
References BER_Decoder(), and Botan::NO_OBJECT.
| Botan::BER_Decoder::~BER_Decoder | ( | ) |
Definition at line 313 of file ber_dec.cpp.
| BER_Decoder & Botan::BER_Decoder::decode | ( | bool & | out | ) |
Definition at line 344 of file ber_dec.cpp.
References BER_Decoder(), Botan::BOOLEAN, decode(), and Botan::UNIVERSAL.
Referenced by Botan::DL_Group::BER_decode(), Botan::PK_Verifier::check_signature(), decode(), decode(), decode(), decode(), decode(), decode_and_check(), Botan::AlgorithmIdentifier::decode_from(), Botan::AlternativeName::decode_from(), Botan::Attribute::decode_from(), Botan::CRL_Entry::decode_from(), Botan::Extensions::decode_from(), Botan::X509_DN::decode_from(), decode_list(), decode_octet_string_bigint(), decode_optional(), and decode_optional_string().
| BER_Decoder & Botan::BER_Decoder::decode | ( | bool & | out, |
| ASN1_Tag | type_tag, | ||
| ASN1_Tag | class_tag = CONTEXT_SPECIFIC ) |
Definition at line 376 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), BER_Decoder(), Botan::BER_Decoding_Error::BER_Decoding_Error(), get_next_object(), Botan::MemoryRegion< T >::size(), and Botan::BER_Object::value.
| BER_Decoder & Botan::BER_Decoder::decode | ( | class ASN1_Object & | obj | ) |
Definition at line 323 of file ber_dec.cpp.
References BER_Decoder(), and Botan::ASN1_Object::decode_from().
| BER_Decoder & Botan::BER_Decoder::decode | ( | class BigInt & | out | ) |
Definition at line 360 of file ber_dec.cpp.
References BER_Decoder(), decode(), Botan::INTEGER, and Botan::UNIVERSAL.
| BER_Decoder & Botan::BER_Decoder::decode | ( | class BigInt & | out, |
| ASN1_Tag | type_tag, | ||
| ASN1_Tag | class_tag = CONTEXT_SPECIFIC ) |
Definition at line 411 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), BER_Decoder(), Botan::BigInt::BigInt(), 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 > & | out, |
| ASN1_Tag | real_type ) |
Definition at line 444 of file ber_dec.cpp.
References BER_Decoder(), decode(), and Botan::UNIVERSAL.
| 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 452 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), Botan::BER_Bad_Tag::BER_Bad_Tag(), BER_Decoder(), Botan::BER_Decoding_Error::BER_Decoding_Error(), Botan::BIT_STRING, Botan::copy_mem(), Botan::MemoryRegion< T >::empty(), 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 | ( | size_t & | out | ) |
Definition at line 352 of file ber_dec.cpp.
References BER_Decoder(), decode(), Botan::INTEGER, and Botan::UNIVERSAL.
| BER_Decoder & Botan::BER_Decoder::decode | ( | size_t & | out, |
| ASN1_Tag | type_tag, | ||
| ASN1_Tag | class_tag = CONTEXT_SPECIFIC ) |
Definition at line 392 of file ber_dec.cpp.
References BER_Decoder(), Botan::BER_Decoding_Error::BER_Decoding_Error(), Botan::BigInt::bits(), Botan::BigInt::byte_at(), and decode().
|
inline |
Definition at line 62 of file ber_dec.h.
References BER_Decoder(), and decode().
| BER_Decoder & Botan::BER_Decoder::decode_list | ( | std::vector< T > & | out, |
| bool | clear_out = true ) |
Definition at line 125 of file ber_dec.h.
References BER_Decoder(), decode(), and more_items().
| BER_Decoder & Botan::BER_Decoder::decode_null | ( | ) |
Definition at line 332 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), BER_Decoder(), Botan::BER_Decoding_Error::BER_Decoding_Error(), 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 365 of file ber_dec.cpp.
References BER_Decoder(), decode(), Botan::BigInt::decode(), Botan::OCTET_STRING, and Botan::MemoryRegion< T >::size().
| 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 480 of file ber_dec.cpp.
References BER_Decoder(), 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 185 of file ber_dec.cpp.
References BER_Decoder().
Referenced by Botan::DL_Group::BER_decode().
| BER_Decoder & Botan::BER_Decoder::end_cons | ( | ) |
Definition at line 252 of file ber_dec.cpp.
References BER_Decoder(), Botan::Decoding_Error::Decoding_Error(), and Botan::Invalid_State::Invalid_State().
Referenced by Botan::AlgorithmIdentifier::decode_from(), Botan::Attribute::decode_from(), Botan::CRL_Entry::decode_from(), Botan::Extensions::decode_from(), and Botan::X509_DN::decode_from().
| BER_Object Botan::BER_Decoder::get_next_object | ( | ) |
Definition at line 196 of file ber_dec.cpp.
References Botan::BER_Decoding_Error::BER_Decoding_Error(), Botan::BER_Object::class_tag, Botan::EOC, get_next_object(), Botan::NO_OBJECT, Botan::MemoryRegion< T >::resize(), Botan::BER_Object::type_tag, Botan::UNIVERSAL, and Botan::BER_Object::value.
Referenced by Botan::BER::decode(), decode(), decode(), decode(), Botan::AlternativeName::decode_from(), Botan::ASN1_EAC_String::decode_from(), Botan::ASN1_String::decode_from(), Botan::EAC_Time::decode_from(), Botan::OID::decode_from(), Botan::X509_Time::decode_from(), decode_null(), decode_optional(), decode_optional_string(), Botan::EC_Group::EC_Group(), get_next_object(), and start_cons().
| bool Botan::BER_Decoder::more_items | ( | ) | const |
Definition at line 153 of file ber_dec.cpp.
References Botan::NO_OBJECT.
Referenced by Botan::PK_Verifier::check_signature(), Botan::AlternativeName::decode_from(), Botan::CRL_Entry::decode_from(), Botan::Extensions::decode_from(), Botan::X509_DN::decode_from(), and decode_list().
| void Botan::BER_Decoder::push_back | ( | const BER_Object & | obj | ) |
Definition at line 228 of file ber_dec.cpp.
References Botan::Invalid_State::Invalid_State(), and Botan::NO_OBJECT.
Referenced by decode_optional(), and decode_optional_string().
| BER_Decoder & Botan::BER_Decoder::raw_bytes | ( | MemoryRegion< byte > & | out | ) |
Definition at line 173 of file ber_dec.cpp.
References BER_Decoder(), Botan::MemoryRegion< T >::clear(), and Botan::MemoryRegion< T >::push_back().
Referenced by Botan::AlgorithmIdentifier::decode_from(), Botan::Attribute::decode_from(), and Botan::X509_DN::decode_from().
| BER_Decoder Botan::BER_Decoder::start_cons | ( | ASN1_Tag | type_tag, |
| ASN1_Tag | class_tag = UNIVERSAL ) |
Definition at line 238 of file ber_dec.cpp.
References Botan::BER_Object::assert_is_a(), BER_Decoder(), 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::AlgorithmIdentifier::decode_from(), Botan::AlternativeName::decode_from(), Botan::Attribute::decode_from(), Botan::CRL_Entry::decode_from(), Botan::Extensions::decode_from(), and Botan::X509_DN::decode_from().
| BER_Decoder & Botan::BER_Decoder::verify_end | ( | ) |
Definition at line 163 of file ber_dec.cpp.
References BER_Decoder(), Botan::Invalid_State::Invalid_State(), and Botan::NO_OBJECT.
Referenced by Botan::DL_Group::BER_decode(), Botan::AlternativeName::decode_from(), Botan::Extensions::decode_from(), and Botan::X509_DN::decode_from().