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