|
Botan 3.12.0
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 197 of file asn1_obj.cpp.
References BOTAN_ASSERT_EQUAL, Botan::Constructed, maybe_BER(), Botan::DataSource::peek_byte(), Botan::DataSource::read_byte(), Botan::Sequence, and Botan::Stream_IO_Error::Stream_IO_Error().
Referenced by Botan::X509_Object::load_data(), Botan::X509::load_key(), and maybe_BER().
| std::vector< uint8_t > Botan::ASN1::put_in_sequence | ( | const std::vector< uint8_t > & | contents | ) |
Definition at line 177 of file asn1_obj.cpp.
References put_in_sequence().
Referenced by Botan::GeneralName::binary_name(), botan_x509_crl_view_binary_values(), put_in_sequence(), 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 181 of file asn1_obj.cpp.
References Botan::DER_Encoder::DER_Encoder(), and put_in_sequence().
| std::string Botan::ASN1::to_string | ( | const BER_Object & | obj | ) |
Definition at line 190 of file asn1_obj.cpp.
References Botan::bytes_to_string(), Botan::BER_Object::data(), and to_string().
Referenced by Botan::AlternativeName::decode_from(), Botan::ASN1_String::decode_from(), Botan::ASN1_Time::decode_from(), Botan::GeneralName::decode_from(), and to_string().