client-cpp  0.6.1
kaa::RsaEncoderDecoder Class Reference

#include <RsaEncoderDecoder.hpp>

+ Inheritance diagram for kaa::RsaEncoderDecoder:
+ Collaboration diagram for kaa::RsaEncoderDecoder:

Public Member Functions

 RsaEncoderDecoder (const Botan::MemoryVector< std::uint8_t > &pubKey, const std::string &privKey, const Botan::MemoryVector< std::uint8_t > &remoteKey)
 
 ~RsaEncoderDecoder ()
 
Botan::SecureVector< std::uint8_t > getEncodedSessionKey ()
 
std::string encodeData (const std::uint8_t *data, std::size_t size)
 
std::string decodeData (const std::uint8_t *data, std::size_t size)
 
Botan::SecureVector< std::uint8_t > signData (const std::uint8_t *data, std::size_t size)
 
bool verifySignature (const std::uint8_t *data, std::size_t len, const std::uint8_t *sig, std::size_t sigLen)
 
- Public Member Functions inherited from kaa::IEncoderDecoder
virtual ~IEncoderDecoder ()
 

Detailed Description

Definition at line 28 of file RsaEncoderDecoder.hpp.

Constructor & Destructor Documentation

kaa::RsaEncoderDecoder::RsaEncoderDecoder ( const Botan::MemoryVector< std::uint8_t > &  pubKey,
const std::string &  privKey,
const Botan::MemoryVector< std::uint8_t > &  remoteKey 
)
kaa::RsaEncoderDecoder::~RsaEncoderDecoder ( )
inline

Definition at line 33 of file RsaEncoderDecoder.hpp.

Member Function Documentation

std::string kaa::RsaEncoderDecoder::decodeData ( const std::uint8_t *  data,
std::size_t  size 
)
virtual

Implements kaa::IEncoderDecoder.

std::string kaa::RsaEncoderDecoder::encodeData ( const std::uint8_t *  data,
std::size_t  size 
)
virtual

Implements kaa::IEncoderDecoder.

Botan::SecureVector<std::uint8_t> kaa::RsaEncoderDecoder::getEncodedSessionKey ( )
virtual

Implements kaa::IEncoderDecoder.

Botan::SecureVector<std::uint8_t> kaa::RsaEncoderDecoder::signData ( const std::uint8_t *  data,
std::size_t  size 
)
virtual

Implements kaa::IEncoderDecoder.

bool kaa::RsaEncoderDecoder::verifySignature ( const std::uint8_t *  data,
std::size_t  len,
const std::uint8_t *  sig,
std::size_t  sigLen 
)
virtual

Implements kaa::IEncoderDecoder.


The documentation for this class was generated from the following file: