8 #ifndef BOTAN_X509_PUBLIC_KEY_H__
9 #define BOTAN_X509_PUBLIC_KEY_H__
11 #include <botan/pk_keys.h>
12 #include <botan/alg_id.h>
13 #include <botan/data_src.h>
33 BOTAN_DLL std::vector<uint8_t>
BER_encode(
const Public_Key& key);
40 BOTAN_DLL std::string
PEM_encode(
const Public_Key& key);
47 BOTAN_DLL Public_Key*
load_key(DataSource& source);
49 #if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
55 BOTAN_DLL Public_Key*
load_key(
const std::string& filename);
63 BOTAN_DLL Public_Key*
load_key(
const std::vector<uint8_t>& enc);
70 BOTAN_DLL Public_Key*
copy_key(
const Public_Key& key);
std::vector< uint8_t > BER_encode(const Public_Key &key)
Public_Key * load_key(DataSource &source)
std::string PEM_encode(const Public_Key &key)
Public_Key * copy_key(const Public_Key &key)