Botan
1.10.9
|
Functions | |
SecureVector< byte > | decode (DataSource &source, std::string &label) |
SecureVector< byte > | decode_check_label (DataSource &source, const std::string &label_want) |
std::string | encode (const byte der[], size_t length, const std::string &label, size_t width) |
std::string | encode (const MemoryRegion< byte > &data, const std::string &label, size_t width) |
bool | matches (DataSource &source, const std::string &extra, size_t search_range) |
BOTAN_DLL SecureVector< byte > Botan::PEM_Code::decode | ( | DataSource & | source, |
std::string & | label | ||
) |
Definition at line 56 of file pem.cpp.
References Botan::Pipe::end_msg(), Botan::Pipe::read_all(), Botan::DataSource::read_byte(), Botan::Pipe::start_msg(), and Botan::Pipe::write().
Referenced by Botan::BER_Decoder::decode_and_check(), decode_check_label(), Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(), and Botan::DL_Group::PEM_decode().
BOTAN_DLL SecureVector< byte > Botan::PEM_Code::decode_check_label | ( | DataSource & | source, |
const std::string & | label_want | ||
) |
Definition at line 42 of file pem.cpp.
References decode().
Referenced by Botan::CMS_Decoder::CMS_Decoder(), Botan::CryptoBox::decrypt(), Botan::EC_Group::EC_Group(), Botan::X509::load_key(), and Botan::PKCS10_Request::raw_public_key().
BOTAN_DLL std::string Botan::PEM_Code::encode | ( | const byte | der[], |
size_t | length, | ||
const std::string & | label, | ||
size_t | width | ||
) |
Definition at line 19 of file pem.cpp.
References Botan::Pipe::process_msg(), and Botan::Pipe::read_all_as_string().
Referenced by Botan::CMS_Encoder::compress(), Botan::X942_PRF::derive(), encode(), Botan::DER_Encoder::encode_list(), Botan::DER_Encoder::encode_optional(), Botan::CryptoBox::encrypt(), Botan::CMS_Encoder::get_contents(), Botan::X509_CA::make_cert(), Botan::CMS_Encoder::PEM_contents(), Botan::X509::PEM_encode(), Botan::DL_Group::PEM_encode(), Botan::EC_Group::PEM_encode(), Botan::X509_Object::PEM_encode(), and Botan::PKCS8::PEM_encode().
BOTAN_DLL std::string Botan::PEM_Code::encode | ( | const MemoryRegion< byte > & | data, |
const std::string & | label, | ||
size_t | width | ||
) |
Definition at line 33 of file pem.cpp.
References encode(), and Botan::MemoryRegion< T >::size().
BOTAN_DLL bool Botan::PEM_Code::matches | ( | DataSource & | source, |
const std::string & | extra, | ||
size_t | search_range | ||
) |
Definition at line 116 of file pem.cpp.
References Botan::DataSource::peek(), and Botan::MemoryRegion< T >::size().
Referenced by Botan::CMS_Decoder::CMS_Decoder(), Botan::create_alt_name(), and Botan::X509::load_key().