|
Cipherpack v1.3.0-3-ga29431a
A Cryprographic Stream Processor
|
Cipherpack header less encrypted keys or signatures as described in Cipherpack Data Stream. More...
#include <cipherpack.hpp>
Public Member Functions | |
| PackHeader () | |
| default ctor, denoting an invalid package header. | |
| PackHeader (const jau::fraction_timespec &ts_creation) | |
| ctor, denoting an invalid package header. | |
| PackHeader (const std::string &_target_path, const uint64_t &_plaintext_size, const jau::fraction_timespec &_ts_creation, const std::string &_subject, const std::string &_pversion, const std::string &_pversion_parent, const CryptoConfig &_crypto_cfg, const std::vector< uint8_t > &_sender_fingerprint, const std::vector< std::vector< uint8_t > > &_recevr_fingerprints, const ssize_t _used_recevr_key_idx, const bool _valid) | |
| Complete ctor, denoting a complete package header, see Cipherpack Data Stream. | |
| constexpr const jau::fraction_timespec & | creation_time () const noexcept |
| Returns the creation time since Unix epoch, see Cipherpack Data Stream. | |
| constexpr const CryptoConfig & | crypto_config () const noexcept |
| bool | isValid () const noexcept |
| const std::vector< uint8_t > & | plaintext_hash () const noexcept |
| Return optional hash value of the plaintext message, produced for convenience and not wired. | |
| const std::string & | plaintext_hash_algo () const noexcept |
| Return optional hash algorithm for the plaintext message, produced for convenience and not wired. | |
| uint64_t | plaintext_size () const noexcept |
| Returns the plaintext message size in bytes, zero if not determined yet. | |
| constexpr const std::string & | plaintext_version () const noexcept |
| Returns version of this plaintext message, user semantic, see Cipherpack Data Stream. | |
| constexpr const std::string & | plaintext_version_parent () const noexcept |
| Returns version of this plaintext message's preceding message, user semantic, see Cipherpack Data Stream. | |
| const std::vector< std::vector< uint8_t > > & | receiver_fingerprints () const noexcept |
| Return the list of receiver's public-keys fingerprints used to encrypt the symmetric-key, see Cipherpack Data Stream. | |
| ssize_t | receiver_key_index () const noexcept |
| Return the index of the matching receiver's public-key fingerprint used to decrypt the symmetric-key, see Cipherpack Data Stream. | |
| const std::vector< uint8_t > & | sender_fingerprint () const noexcept |
| Return the sender's public-key fingerprint used to sign, see Cipherpack Data Stream. | |
| void | set_plaintext_hash (const std::string &algo, const std::vector< uint8_t > &hash) noexcept |
| Set optional hash-algo and -value of the plaintext messages, produced for convenience and not wired. | |
| void | set_plaintext_size (const uint64_t v) noexcept |
| void | setValid (const bool v) |
| constexpr const std::string & | subject () const noexcept |
| Returns the designated subject of message, see Cipherpack Data Stream. | |
| const std::string & | target_path () const noexcept |
| Returns the designated target path for this plaintext message, see Cipherpack Data Stream. | |
| std::string | to_string (const bool show_crypto_algos=false, const bool force_all_fingerprints=false) const noexcept |
| Return a string representation. | |
Cipherpack header less encrypted keys or signatures as described in Cipherpack Data Stream.
Definition at line 275 of file cipherpack.hpp.
|
inline |
default ctor, denoting an invalid package header.
Definition at line 293 of file cipherpack.hpp.
|
inline |
ctor, denoting an invalid package header.
Definition at line 310 of file cipherpack.hpp.
|
inline |
Complete ctor, denoting a complete package header, see Cipherpack Data Stream.
Definition at line 327 of file cipherpack.hpp.
|
inlinenoexcept |
Returns the designated target path for this plaintext message, see Cipherpack Data Stream.
Definition at line 352 of file cipherpack.hpp.
|
inlinenoexcept |
Returns the plaintext message size in bytes, zero if not determined yet.
Definition at line 355 of file cipherpack.hpp.
|
inlinenoexcept |
|
inlineconstexprnoexcept |
Returns the creation time since Unix epoch, see Cipherpack Data Stream.
Definition at line 360 of file cipherpack.hpp.
|
inlineconstexprnoexcept |
Returns the designated subject of message, see Cipherpack Data Stream.
Definition at line 363 of file cipherpack.hpp.
|
inlineconstexprnoexcept |
Returns version of this plaintext message, user semantic, see Cipherpack Data Stream.
Definition at line 366 of file cipherpack.hpp.
|
inlineconstexprnoexcept |
Returns version of this plaintext message's preceding message, user semantic, see Cipherpack Data Stream.
Definition at line 369 of file cipherpack.hpp.
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Return the sender's public-key fingerprint used to sign, see Cipherpack Data Stream.
Definition at line 376 of file cipherpack.hpp.
|
inlinenoexcept |
Return the list of receiver's public-keys fingerprints used to encrypt the symmetric-key, see Cipherpack Data Stream.
Definition at line 381 of file cipherpack.hpp.
|
inlinenoexcept |
Return the index of the matching receiver's public-key fingerprint used to decrypt the symmetric-key, see Cipherpack Data Stream.
Definition at line 388 of file cipherpack.hpp.
|
inlinenoexcept |
Return optional hash algorithm for the plaintext message, produced for convenience and not wired.
If not used, returned string is empty.
Definition at line 398 of file cipherpack.hpp.
|
inlinenoexcept |
Return optional hash value of the plaintext message, produced for convenience and not wired.
If not used, i.e. getPlaintextHashAlgo() is empty, returned vector has zero size.
Definition at line 408 of file cipherpack.hpp.
|
inlinenoexcept |
Set optional hash-algo and -value of the plaintext messages, produced for convenience and not wired.
Definition at line 415 of file cipherpack.hpp.
|
noexcept |
Return a string representation.
| show_crypto_algos | pass true if used crypto algos shall be shown, otherwise suppressed (default). |
| force_all_fingerprints | if true always show all getTermKeysFingerprint(), otherwise show only the getTermKeysFingerprint() if >= 0 (default). |
Definition at line 147 of file crypto0.cpp.
|
inline |
|
inlinenoexcept |
Definition at line 429 of file cipherpack.hpp.