Botan
1.10.9
|
Functions | |
bool | maybe_BER (DataSource &source) |
SecureVector< byte > | put_in_sequence (const MemoryRegion< byte > &contents) |
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 55 of file asn1_int.cpp.
References Botan::CONSTRUCTED, Botan::DataSource::peek_byte(), and Botan::SEQUENCE.
Referenced by Botan::CMS_Decoder::CMS_Decoder(), and Botan::X509::load_key().
SecureVector< byte > Botan::ASN1::put_in_sequence | ( | const MemoryRegion< byte > & | contents | ) |
Definition at line 34 of file asn1_int.cpp.
References Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::get_contents(), Botan::DER_Encoder::raw_bytes(), Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
Referenced by Botan::X509_Object::tbs_data().
std::string Botan::ASN1::to_string | ( | const BER_Object & | obj | ) |
Definition at line 46 of file asn1_int.cpp.
References Botan::MemoryRegion< T >::size(), and Botan::BER_Object::value.
Referenced by Botan::ASN1_String::decode_from(), Botan::X509_Time::decode_from(), Botan::AlternativeName::decode_from(), and Botan::ASN1_EAC_String::decode_from().