|
| WrappingCipherpackListener (CipherpackListenerRef parent_) |
|
| ~WrappingCipherpackListener () noexcept override=default |
|
bool | contentProcessed (const bool decrypt_mode, const content_type ctype, cipherpack::secure_vector< uint8_t > &data, const bool is_final) noexcept override |
| User callback to receive the actual processed content, either the generated cipherpack or plaintext content depending on decrypt_mode. More...
|
|
bool | getSendContent (const bool decrypt_mode) const noexcept override |
| User provided information whether process shall send the processed content via contentProcessed() or not. More...
|
|
void | notifyEnd (const bool decrypt_mode, const PackHeader &header) noexcept override |
| User notification of successful completion. More...
|
|
void | notifyError (const bool decrypt_mode, const PackHeader &header, const std::string &msg) noexcept override |
| User notification about an error via text message and preliminary PackHeader. More...
|
|
bool | notifyHeader (const bool decrypt_mode, const PackHeader &header) noexcept override |
| User notification of preliminary PackHeader w/o optional hash of the plaintext message. More...
|
|
bool | notifyProgress (const bool decrypt_mode, const uint64_t plaintext_size, const uint64_t bytes_processed) noexcept override |
| User notification about content streaming progress. More...
|
|
std::string | toString () const noexcept override |
|
| ~CipherpackListener () noexcept override |
|
virtual bool | contentProcessed (const bool decrypt_mode, const content_type ctype, cipherpack::secure_vector< uint8_t > &data, const bool is_final) noexcept |
| User callback to receive the actual processed content, either the generated cipherpack or plaintext content depending on decrypt_mode. More...
|
|
std::string | get_java_class () const noexcept override |
|
virtual bool | getSendContent (const bool decrypt_mode) const noexcept |
| User provided information whether process shall send the processed content via contentProcessed() or not. More...
|
|
virtual void | notifyEnd (const bool decrypt_mode, const PackHeader &header) noexcept |
| User notification of successful completion. More...
|
|
virtual void | notifyError (const bool decrypt_mode, const PackHeader &header, const std::string &msg) noexcept |
| User notification about an error via text message and preliminary PackHeader. More...
|
|
virtual bool | notifyHeader (const bool decrypt_mode, const PackHeader &header) noexcept |
| User notification of preliminary PackHeader w/o optional hash of the plaintext message. More...
|
|
virtual bool | notifyProgress (const bool decrypt_mode, const uint64_t plaintext_size, const uint64_t bytes_processed) noexcept |
| User notification about content streaming progress. More...
|
|
bool | operator!= (const CipherpackListener &rhs) const noexcept |
|
virtual bool | operator== (const CipherpackListener &rhs) const noexcept |
| Default comparison operator, merely testing for same memory reference. More...
|
|
std::string | toString () const noexcept override |
|
Definition at line 76 of file crypto1.cpp.
|
inlineoverridevirtualnoexcept |
User callback to receive the actual processed content, either the generated cipherpack or plaintext content depending on decrypt_mode.
This callback is only enabled if getSendContent() returns true.
In case contentProcessed() gets called, notifyProgress() is called thereafter.
- Parameters
-
decrypt_mode | true if sender is decrypting, otherwise sender is encrypting |
ctype | content_type of passed data. Always content_type::message if decrypt_mode is true. |
data | the processed content, either the generated cipherpack or plaintext content depending on decrypt_mode. |
is_final | true if this is the last content call, otherwise false |
- Returns
- true to continue processing (default), false to abort.
- See also
- getSendContent()
Reimplemented from cipherpack::CipherpackListener.
Definition at line 103 of file crypto1.cpp.