Botan  2.6.0
Crypto and TLS for C++11
Classes | Namespaces | Functions
pkcs8.h File Reference
#include <botan/pk_keys.h>
#include <botan/exceptn.h>
#include <botan/secmem.h>
#include <functional>
#include <chrono>
#include <memory>

Go to the source code of this file.

Classes

class  Botan::PKCS8_Exception
 

Namespaces

 Botan
 
 Botan::PKCS8
 

Functions

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