8 #ifndef BOTAN_PK_KEY_FACTORY_H__
9 #define BOTAN_PK_KEY_FACTORY_H__
11 #include <botan/pk_keys.h>
12 #include <botan/alg_id.h>
17 BOTAN_DLL std::unique_ptr<Public_Key>
19 const std::vector<uint8_t>& key_bits);
21 BOTAN_DLL std::unique_ptr<Private_Key>
23 const secure_vector<uint8_t>& key_bits);
33 BOTAN_DLL std::unique_ptr<Private_Key>
35 RandomNumberGenerator& rng,
36 const std::string& algo_params =
"");
std::unique_ptr< Public_Key > load_public_key(const AlgorithmIdentifier &alg_id, const std::vector< uint8_t > &key_bits)
std::unique_ptr< Private_Key > load_private_key(const AlgorithmIdentifier &alg_id, const secure_vector< uint8_t > &key_bits)
std::unique_ptr< Private_Key > create_private_key(const std::string &alg_name, RandomNumberGenerator &rng, const std::string ¶ms)