Botan 1.10.17
pem.h
Go to the documentation of this file.
1/*
2* PEM Encoding/Decoding
3* (C) 1999-2007 Jack Lloyd
4*
5* Distributed under the terms of the Botan license
6*/
7
8#ifndef BOTAN_PEM_H__
9#define BOTAN_PEM_H__
10
11#include <botan/data_src.h>
12
13namespace Botan {
14
15namespace PEM_Code {
16
17/*
18* PEM Encoding/Decoding
19*/
20BOTAN_DLL std::string encode(const byte[], size_t,
21 const std::string&, size_t = 64);
22BOTAN_DLL std::string encode(const MemoryRegion<byte>&,
23 const std::string&, size_t = 64);
24
25BOTAN_DLL SecureVector<byte> decode(DataSource&, std::string&);
26BOTAN_DLL SecureVector<byte> decode_check_label(DataSource&,
27 const std::string&);
28BOTAN_DLL bool matches(DataSource&, const std::string& = "",
29 size_t search_range = 4096);
30
31}
32
33}
34
35#endif
std::string encode(const byte der[], size_t length, const std::string &label, size_t width)
Definition pem.cpp:19
SecureVector< byte > decode_check_label(DataSource &source, const std::string &label_want)
Definition pem.cpp:42
bool matches(DataSource &source, const std::string &extra, size_t search_range)
Definition pem.cpp:116
SecureVector< byte > decode(DataSource &source, std::string &label)
Definition pem.cpp:56