Botan 3.6.1
Crypto and TLS for C&
pkcs8.cpp File Reference
#include <botan/pkcs8.h>
#include <botan/asn1_obj.h>
#include <botan/ber_dec.h>
#include <botan/der_enc.h>
#include <botan/pem.h>
#include <botan/pk_algs.h>
#include <botan/rng.h>
#include <botan/internal/fmt.h>
#include <botan/internal/scan_name.h>

Go to the source code of this file.

Namespaces

namespace  Botan
 
namespace  Botan::PKCS8
 

Functions

std::vector< uint8_t > Botan::PKCS8::BER_encode (const Private_Key &key, RandomNumberGenerator &rng, std::string_view pass, std::chrono::milliseconds msec, std::string_view pbe_algo)
 
std::vector< uint8_t > Botan::PKCS8::BER_encode_encrypted_pbkdf_iter (const Private_Key &key, RandomNumberGenerator &rng, std::string_view pass, size_t pbkdf_iterations, std::string_view cipher, std::string_view pbkdf_hash)
 
std::vector< uint8_t > Botan::PKCS8::BER_encode_encrypted_pbkdf_msec (const Private_Key &key, RandomNumberGenerator &rng, std::string_view pass, std::chrono::milliseconds pbkdf_msec, size_t *pbkdf_iterations, std::string_view cipher, std::string_view pbkdf_hash)
 
std::unique_ptr< Private_KeyBotan::PKCS8::load_key (DataSource &source)
 
std::unique_ptr< Private_KeyBotan::PKCS8::load_key (DataSource &source, const std::function< std::string()> &get_pass)
 
std::unique_ptr< Private_KeyBotan::PKCS8::load_key (DataSource &source, std::string_view pass)
 
std::unique_ptr< Private_KeyBotan::PKCS8::load_key (std::span< const uint8_t > source)
 
std::unique_ptr< Private_KeyBotan::PKCS8::load_key (std::span< const uint8_t > source, const std::function< std::string()> &get_passphrase)
 
std::unique_ptr< Private_KeyBotan::PKCS8::load_key (std::span< const uint8_t > source, std::string_view pass)
 
std::string Botan::PKCS8::PEM_encode (const Private_Key &key)
 
std::string Botan::PKCS8::PEM_encode (const Private_Key &key, RandomNumberGenerator &rng, std::string_view pass, std::chrono::milliseconds msec, std::string_view pbe_algo)
 
std::string Botan::PKCS8::PEM_encode_encrypted_pbkdf_iter (const Private_Key &key, RandomNumberGenerator &rng, std::string_view pass, size_t pbkdf_iterations, std::string_view cipher, std::string_view pbkdf_hash)
 
std::string Botan::PKCS8::PEM_encode_encrypted_pbkdf_msec (const Private_Key &key, RandomNumberGenerator &rng, std::string_view pass, std::chrono::milliseconds pbkdf_msec, size_t *pbkdf_iterations, std::string_view cipher, std::string_view pbkdf_hash)