#include <session.hpp>
◆ Session() [1/3]
Kazv::Session::Session |
( |
| ) |
|
|
explicit |
◆ Session() [2/3]
Kazv::Session::Session |
( |
const Session & |
that | ) |
|
◆ Session() [3/3]
Kazv::Session::Session |
( |
Session && |
that | ) |
|
◆ ~Session()
Kazv::Session::~Session |
( |
| ) |
|
|
default |
◆ decrypt()
MaybeString Kazv::Session::decrypt |
( |
int |
type, |
|
|
std::string |
message |
|
) |
| |
◆ encryptRandomSize()
std::size_t Kazv::Session::encryptRandomSize |
( |
| ) |
const |
- Returns
- The size of random data needed for the next encryption.
◆ encryptWithRandom()
std::pair< int, std::string > Kazv::Session::encryptWithRandom |
( |
RandomData |
random, |
|
|
std::string |
plainText |
|
) |
| |
Encrypt plainText.
- Parameters
-
random | The random data needed for the encryption. Must be of at least size encryptRandomSize() . |
plainText | The plain text to encrypt. |
- Returns
- A pair containing the type and encrypted message string.
◆ matches()
bool Kazv::Session::matches |
( |
std::string |
message | ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ valid()
bool Kazv::Session::valid |
( |
| ) |
const |
◆ Crypto
◆ CryptoPrivate
◆ from_json
◆ SessionPrivate
◆ to_json
The documentation for this class was generated from the following files: