20 #include <botan/botan.h>
25 #include <boost/scoped_array.hpp>
52 static KeyPair loadKeyPair(
const std::string& pubFileName,
const std::string& privFileName);
54 static void saveKeyPair(
const KeyPair& pair,
const std::string& pubFileName,
const std::string& privFileName);
61 static void readFile(
const std::string& fileName, boost::scoped_array<char>& buf, std::size_t& len);
64 Botan::AutoSeeded_RNG rng_;
static void savePublicKey(const PublicKey &key, const std::string &pubFileName)
SessionKey generateSessionKey(std::size_t length)
static KeyPair loadKeyPair(const std::string &pubFileName, const std::string &privFileName)
static PrivateKey loadPrivateKey(const std::string &fileName)
KeyPair generateKeyPair(std::size_t length)
Botan::SymmetricKey SessionKey
static PublicKey loadPublicKey(const std::string &fileName)
static void savePrivateKey(const PrivateKey &key, const std::string &privFileName)
Botan::MemoryVector< std::uint8_t > PublicKey
static void saveKeyPair(const KeyPair &pair, const std::string &pubFileName, const std::string &privFileName)