20 #include <botan/botan.h>
25 #include <boost/scoped_array.hpp>
61 static KeyPair loadKeyPair(
const std::string& pubFileName,
const std::string& privFileName);
63 static void saveKeyPair(
const KeyPair& pair,
const std::string& pubFileName,
const std::string& privFileName);
70 static void readFile(
const std::string& fileName, boost::scoped_array<char>& buf, std::size_t& len);
73 Botan::AutoSeeded_RNG rng_;
Botan::secure_vector< std::uint8_t > PublicKey
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)
bool checkKeyPair(const KeyPair &keys)
Botan::SymmetricKey SessionKey
static PublicKey loadPublicKey(const std::string &fileName)
static void savePrivateKey(const PrivateKey &key, const std::string &privFileName)
static void saveKeyPair(const KeyPair &pair, const std::string &pubFileName, const std::string &privFileName)