diff options
author | lloyd <[email protected]> | 2010-06-16 01:21:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-06-16 01:21:33 +0000 |
commit | a87419f1304aa63b0b4e17f750f5dd2097cb8bf4 (patch) | |
tree | ae6c8b89d432394877e657b27b5b55fe8ef0cb4f /src/codec/openpgp/openpgp.h | |
parent | ecb574d32f4382326e94ad19e9d5baecc84a3c29 (diff) |
Remove some of the more extraneous namespaces
Diffstat (limited to 'src/codec/openpgp/openpgp.h')
-rw-r--r-- | src/codec/openpgp/openpgp.h | 53 |
1 files changed, 40 insertions, 13 deletions
diff --git a/src/codec/openpgp/openpgp.h b/src/codec/openpgp/openpgp.h index 7021d5675..1e2cf10f0 100644 --- a/src/codec/openpgp/openpgp.h +++ b/src/codec/openpgp/openpgp.h @@ -14,20 +14,47 @@ namespace Botan { -namespace OpenPGP { - -/* -* OpenPGP Base64 encoding/decoding +/** +* @param input the input data +* @param length length of input in bytes +* @param label the human-readable label +* @param headers a set of key/value pairs included in the header */ -BOTAN_DLL std::string encode(const byte[], u32bit, const std::string&, - const std::map<std::string, std::string>&); -BOTAN_DLL SecureVector<byte> decode(DataSource&, std::string&, - std::map<std::string, std::string>&); - -BOTAN_DLL std::string encode(const byte[], u32bit, const std::string&); -BOTAN_DLL SecureVector<byte> decode(DataSource&, std::string&); - -} +BOTAN_DLL std::string PGP_encode( + const byte input[], + u32bit length, + const std::string& label, + const std::map<std::string, std::string>& headers); + +/** +* @param input the input data +* @param length length of input in bytes +* @param label the human-readable label +*/ +BOTAN_DLL std::string PGP_encode( + const byte input[], + u32bit length, + const std::string& label); + +/** +* @param source the input source +* @param label is set to the human-readable label +* @param headers is set to any headers +* @return decoded output as raw binary +*/ +BOTAN_DLL SecureVector<byte> PGP_decode( + DataSource& source, + std::string& label, + std::map<std::string, std::string>& headers); + +/** +* @param source the input source +* @param label is set to the human-readable label +* @return decoded output as raw binary +*/ +BOTAN_DLL SecureVector<byte> PGP_decode( + DataSource& source, + std::string& label); } |