Password changer data structure.
More...
#include <pwdChangeMessage.hpp>
|
static bool | isValid (const unsigned char buffer[64]) |
| Check if the buffer is a valid message. More...
|
|
static bool | isValid (const unsigned char buffer[], std::size_t size) |
|
Password changer data structure.
Enumerator |
---|
PASSWORD_MAX_LENGTH |
|
PAYLOAD_LENGTH |
|
_Wolframe::AAAA::PasswordChangeMessage::PasswordChangeMessage |
( |
const std::string & |
pwd | ) |
|
_Wolframe::AAAA::PasswordChangeMessage::PasswordChangeMessage |
( |
const unsigned char |
msg[64] | ) |
|
_Wolframe::AAAA::PasswordChangeMessage::PasswordChangeMessage |
( |
| ) |
|
|
inline |
Empty message constructor
- Note
- that this is an invalid message
_Wolframe::AAAA::PasswordChangeMessage::~PasswordChangeMessage |
( |
| ) |
|
|
inline |
void _Wolframe::AAAA::PasswordChangeMessage::clear |
( |
| ) |
|
|
inline |
unsigned char* _Wolframe::AAAA::PasswordChangeMessage::data |
( |
| ) |
|
|
inline |
bool _Wolframe::AAAA::PasswordChangeMessage::fromBase64 |
( |
const std::string & |
msg, |
|
|
const unsigned char |
IV[16], |
|
|
const unsigned char |
key[32] |
|
) |
| |
Build the message from an encrypted base64 message.
static bool _Wolframe::AAAA::PasswordChangeMessage::isValid |
( |
const unsigned char |
buffer[64] | ) |
|
|
inlinestatic |
Check if the buffer is a valid message.
static bool _Wolframe::AAAA::PasswordChangeMessage::isValid |
( |
const unsigned char |
buffer[], |
|
|
std::size_t |
size |
|
) |
| |
|
static |
bool _Wolframe::AAAA::PasswordChangeMessage::isValid |
( |
| ) |
const |
|
inline |
Check if the message is valid.
std::string _Wolframe::AAAA::PasswordChangeMessage::password |
( |
| ) |
const |
|
inline |
std::size_t _Wolframe::AAAA::PasswordChangeMessage::size |
( |
| ) |
const |
|
inline |
std::string _Wolframe::AAAA::PasswordChangeMessage::toBase64 |
( |
const unsigned char |
IV[16], |
|
|
const unsigned char |
key[32] |
|
) |
| const |
Encrypt the message to a base64 string.
unsigned char _Wolframe::AAAA::PasswordChangeMessage::data[64] |
unsigned char _Wolframe::AAAA::PasswordChangeMessage::digest[MD5_DIGEST_SIZE] |
unsigned char _Wolframe::AAAA::PasswordChangeMessage::length |
union { ... } _Wolframe::AAAA::PasswordChangeMessage::m_message |
struct { ... } _Wolframe::AAAA::PasswordChangeMessage::parts |
The documentation for this class was generated from the following file: