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
13 namespace Botan {
14
15 namespace PEM_Code {
16
17 /*
18 * PEM Encoding/Decoding
19 */
20 BOTAN_DLL std::string encode(const byte[], size_t,
21 const std::string&, size_t = 64);
22 BOTAN_DLL std::string encode(const MemoryRegion<byte>&,
23 const std::string&, size_t = 64);
24
25 BOTAN_DLL SecureVector<byte> decode(DataSource&, std::string&);
26 BOTAN_DLL SecureVector<byte> decode_check_label(DataSource&,
27 const std::string&);
28 BOTAN_DLL bool matches(DataSource&, const std::string& = "",
29 size_t search_range = 4096);
30
31 }
32
33 }
34
35 #endif
Botan::byte
unsigned char byte
Definition: types.h:22
Botan::PEM_Code::decode
SecureVector< byte > decode(DataSource &source, std::string &label)
Definition: pem.cpp:56
Botan
Definition: algo_base.h:14
Botan::PEM_Code::matches
bool matches(DataSource &source, const std::string &extra, size_t search_range)
Definition: pem.cpp:116
Botan::PEM_Code::encode
std::string encode(const byte der[], size_t length, const std::string &label, size_t width)
Definition: pem.cpp:19
Botan::PEM_Code::decode_check_label
SecureVector< byte > decode_check_label(DataSource &source, const std::string &label_want)
Definition: pem.cpp:42