|
| | DecryptorStream (std::string *tag_out, const std::string *expected_tag, SyncStream *consumer) |
| |
| ssize_t | write (const void *data, size_t len) override |
| | Main entry point to the data consumption.
|
| |
| int | finalize (int status) override |
| | Called once after all data has been written to close the stream and release resources.
|
| |
| | WrappedStream (SyncStream *delegate) |
| |
| void | set_delegate (SyncStream *delegate) |
| | Overrides the target where to send the incoming data onwards.
|
| |
| int | finalize (int status) override |
| | Called once after all data has been written to close the stream and release resources.
|
| |
| ssize_t | write_all (const void *data, size_t len) |
| | Repeatedly writes until all data has been consumed or an error occurs.
|
| |
|
| static const uint8_t * | to_8 (const void *d) |
| | Converts a void pointer to an equivalent byte pointer.
|
| |
| static uint8_t * | to_8 (void *d) |
| | Converts a void pointer to an equivalent byte pointer.
|
| |
| std::unique_ptr< SyncStream > | delegate_ |
| | Where to write the data to.
|
| |
Definition at line 279 of file CC32xxAes.hxx.
◆ DecryptorStream()
| CCMHelper::DecryptorStream::DecryptorStream |
( |
std::string * |
tag_out, |
|
|
const std::string * |
expected_tag, |
|
|
SyncStream * |
consumer |
|
) |
| |
|
inline |
◆ finalize()
| int CCMHelper::DecryptorStream::finalize |
( |
int |
status | ) |
|
|
inlineoverridevirtual |
Called once after all data has been written to close the stream and release resources.
Return 0 on success, <0 on failure.
- Parameters
-
| status | is an error code seen by wrapping streams. Default 0 (OK), if negative, streams might want to roll back their changes. |
Reimplemented from SyncStream.
Definition at line 309 of file CC32xxAes.hxx.
◆ write()
| ssize_t CCMHelper::DecryptorStream::write |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
Main entry point to the data consumption.
- Parameters
-
| data | is the pointer to a block of data to consume. |
| len | is the number of bytes to consume. |
- Returns
- 0 if the stream is completed/EOF (not consuming data anymore); negative value if there is an error; or the number of bytes consumed from the stream.
Implements SyncStream.
Definition at line 290 of file CC32xxAes.hxx.
◆ expectedTag_
| const std::string* CCMHelper::DecryptorStream::expectedTag_ |
|
private |
◆ tagOut_
| std::string* CCMHelper::DecryptorStream::tagOut_ |
|
private |
The documentation for this class was generated from the following file: