17 #ifndef RSAENCODERDECODER_HPP_
18 #define RSAENCODERDECODER_HPP_
23 #include <botan/rsa.h>
24 #include <botan/cipher_mode.h>
39 virtual std::string
encodeData(
const std::uint8_t *data, std::size_t size);
40 virtual std::string
decodeData(
const std::uint8_t *data, std::size_t size);
42 virtual bool verifySignature(
const std::uint8_t *data, std::size_t len,
const std::uint8_t *sig, std::size_t sigLen);
45 std::string cipherPipe(
const std::uint8_t *data, std::size_t size, Botan::Cipher_Dir dir);
48 Botan::AutoSeeded_RNG rng_;
49 std::unique_ptr<Botan::X509_PublicKey> pubKey_;
50 std::unique_ptr<Botan::PKCS8_PrivateKey> privKey_;
51 std::unique_ptr<Botan::X509_PublicKey> remoteKey_;
Botan::secure_vector< std::uint8_t > PublicKey
Botan::SymmetricKey SessionKey
virtual Signature signData(const std::uint8_t *data, std::size_t size)
Botan::secure_vector< std::uint8_t > Signature
virtual std::string decodeData(const std::uint8_t *data, std::size_t size)
virtual EncodedSessionKey getEncodedSessionKey()
RsaEncoderDecoder(const PublicKey &pubKey, const PrivateKey &privKey, const PublicKey &remoteKey, IKaaClientContext &context)
virtual std::string encodeData(const std::uint8_t *data, std::size_t size)
virtual bool verifySignature(const std::uint8_t *data, std::size_t len, const std::uint8_t *sig, std::size_t sigLen)
Botan::secure_vector< std::uint8_t > EncodedSessionKey