Botan 3.6.1
Crypto and TLS for C&
|
Functions | |
bool | maybe_BER (DataSource &source) |
std::vector< uint8_t > | put_in_sequence (const std::vector< uint8_t > &contents) |
std::vector< uint8_t > | put_in_sequence (const uint8_t bits[], size_t len) |
std::string | to_string (const BER_Object &obj) |
bool Botan::ASN1::maybe_BER | ( | DataSource & | src | ) |
Heuristics tests; is this object possibly BER?
src | a data source that will be peeked at but not modified |
Definition at line 192 of file asn1_obj.cpp.
References BOTAN_ASSERT_EQUAL, Botan::Constructed, Botan::DataSource::peek_byte(), Botan::DataSource::read_byte(), and Botan::Sequence.
Referenced by Botan::X509_Object::load_data(), and Botan::X509::load_key().
std::vector< uint8_t > Botan::ASN1::put_in_sequence | ( | const std::vector< uint8_t > & | contents | ) |
Definition at line 172 of file asn1_obj.cpp.
References put_in_sequence().
Referenced by put_in_sequence(), Botan::X509_Object::tbs_data(), and Botan::OCSP::Response::verify_signature().
std::vector< uint8_t > Botan::ASN1::put_in_sequence | ( | const uint8_t | bits[], |
size_t | len ) |
Definition at line 176 of file asn1_obj.cpp.
References Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::raw_bytes(), and Botan::DER_Encoder::start_sequence().
std::string Botan::ASN1::to_string | ( | const BER_Object & | obj | ) |
Definition at line 185 of file asn1_obj.cpp.
References Botan::BER_Object::bits(), Botan::cast_uint8_ptr_to_char(), and Botan::BER_Object::length().
Referenced by Botan::AlternativeName::decode_from(), Botan::ASN1_String::decode_from(), Botan::ASN1_Time::decode_from(), and Botan::GeneralName::decode_from().