#include <BaseBufferedRemoteTransport.h>
|
virtual int | encryptData (const uint8_t *plainText, int bytesIn, const uint8_t *buffer, size_t buffLen)=0 |
|
virtual int | decryptData (const uint8_t *encoded, int bytesIn, const uint8_t *buffer, size_t buffLen)=0 |
|
An implementation of this class can both encrypt and decrypt data on behalf of a BaseBufferedTagValTransport instance.
◆ encryptData()
virtual int tcremote::EncryptionHandler::encryptData |
( |
const uint8_t * |
plainText, |
|
|
int |
bytesIn, |
|
|
const uint8_t * |
buffer, |
|
|
size_t |
buffLen |
|
) |
| |
|
pure virtual |
Encrypt plain text data into encrypted format into the buffer
- Parameters
-
plainText | the plain bytes to encrypt |
bytesIn | the number of bytes to encrypt |
buffer | the output encrypted message |
buffLen | the buffer maximum length |
- Returns
- the number of bytes encrypted or 0 if it fails.
◆ decryptData()
virtual int tcremote::EncryptionHandler::decryptData |
( |
const uint8_t * |
encoded, |
|
|
int |
bytesIn, |
|
|
const uint8_t * |
buffer, |
|
|
size_t |
buffLen |
|
) |
| |
|
pure virtual |
Decrypt data from the wire into plain text and store the output into the buffer
- Parameters
-
encoded | the encoded data to decrypt |
bytesIn | the number of encoded bytes to decrypt |
buffer | the buffer to output plaintext to |
buffLen | the size of the buffer |
- Returns
- the number of bytes returned, or 0 if it fails.
The documentation for this class was generated from the following file: