Cipherpack v1.2.0-dirty
A Cryprographic Stream Processor
|
Public Member Functions | |
LoggingCipherpackListener (const bool verbose_) noexcept | |
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 cipherpack::PackHeader &header) noexcept override |
User notification of successful completion. More... | |
void | notifyError (const bool decrypt_mode, const cipherpack::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 cipherpack::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 |
Public Member Functions inherited from cipherpack::CipherpackListener | |
~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 |
Public Attributes | |
jau::relaxed_atomic_uint64 | count_content |
jau::relaxed_atomic_int | count_end |
jau::relaxed_atomic_int | count_error |
jau::relaxed_atomic_int | count_header |
jau::relaxed_atomic_int | count_progress |
Additional Inherited Members | |
Public Types inherited from cipherpack::CipherpackListener | |
enum class | content_type : uint8_t { header = 0 , message = 1 } |
Static Public Member Functions inherited from cipherpack::CipherpackListener | |
static std::string | java_class () noexcept |
Definition at line 22 of file commandline.cpp.
|
inlinenoexcept |
Definition at line 32 of file commandline.cpp.
|
inlineoverridevirtualnoexcept |
User notification about an error via text message and preliminary PackHeader.
This message will be send without a subsequent notifyHeader() or notifyEnd() to indicate an error and hence aborts processing.
decrypt_mode | true if sender is decrypting, otherwise sender is encrypting |
header | the preliminary PackHeader |
msg | the error message |
Reimplemented from cipherpack::CipherpackListener.
Definition at line 38 of file commandline.cpp.
|
inlineoverridevirtualnoexcept |
User notification of preliminary PackHeader w/o optional hash of the plaintext message.
decrypt_mode | true if sender is decrypting, otherwise sender is encrypting |
header | the preliminary PackHeader |
Reimplemented from cipherpack::CipherpackListener.
Definition at line 44 of file commandline.cpp.
|
inlineoverridevirtualnoexcept |
User notification about content streaming progress.
In case contentProcessed() gets called, notifyProgress() is called thereafter.
decrypt_mode | true if sender is decrypting, otherwise sender is encrypting |
plaintext_size | the plaintext message size, zero if not determined yet |
bytes_processed | the number of unencrypted bytes processed |
Reimplemented from cipherpack::CipherpackListener.
Definition at line 54 of file commandline.cpp.
|
inlineoverridevirtualnoexcept |
User notification of successful completion.
decrypt_mode | true if sender is decrypting, otherwise sender is encrypting |
header | the final PackHeader |
Reimplemented from cipherpack::CipherpackListener.
Definition at line 62 of file commandline.cpp.
|
inlineoverridevirtualnoexcept |
User provided information whether process shall send the processed content via contentProcessed() or not.
decrypt_mode | true if sender is decrypting, otherwise sender is encrypting |
Reimplemented from cipherpack::CipherpackListener.
Definition at line 71 of file commandline.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.
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 |
Reimplemented from cipherpack::CipherpackListener.
Definition at line 76 of file commandline.cpp.
|
inlineoverridenoexcept |
Definition at line 84 of file commandline.cpp.
jau::relaxed_atomic_int LoggingCipherpackListener::count_error |
Definition at line 26 of file commandline.cpp.
jau::relaxed_atomic_int LoggingCipherpackListener::count_header |
Definition at line 27 of file commandline.cpp.
jau::relaxed_atomic_int LoggingCipherpackListener::count_progress |
Definition at line 28 of file commandline.cpp.
jau::relaxed_atomic_int LoggingCipherpackListener::count_end |
Definition at line 29 of file commandline.cpp.
jau::relaxed_atomic_uint64 LoggingCipherpackListener::count_content |
Definition at line 30 of file commandline.cpp.