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/pubkey_enums.h>
14 #include <botan/pipe.h>
29 BOTAN_DLL MemoryVector<byte>
BER_encode(
const Public_Key& key);
36 BOTAN_DLL std::string
PEM_encode(
const Public_Key& key);
43 BOTAN_DLL Public_Key*
load_key(DataSource& source);
50 BOTAN_DLL Public_Key*
load_key(
const std::string& filename);
57 BOTAN_DLL Public_Key*
load_key(
const MemoryRegion<byte>& enc);
64 BOTAN_DLL Public_Key*
copy_key(
const Public_Key& key);
86 BOTAN_DEPRECATED(
"Use PEM_encode or BER_encode")
Public_Key * load_key(DataSource &source)
MemoryVector< byte > BER_encode(const Public_Key &key)
Key_Constraints find_constraints(const Public_Key &pub_key, Key_Constraints limits)
void encode(const Public_Key &key, Pipe &pipe, X509_Encoding encoding=PEM)
std::string PEM_encode(const Public_Key &key)
Public_Key * copy_key(const Public_Key &key)