|
| PackHeader () |
| default ctor, denoting an invalid package header. More...
|
|
| PackHeader (const jau::fraction_timespec &ts_creation) |
| ctor, denoting an invalid package header. More...
|
|
| 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 size_t _used_recevr_key_idx, const bool _valid) |
| Complete ctor, denoting a complete package header, see Cipherpack Data Stream. More...
|
|
constexpr const jau::fraction_timespec & | creation_time () const noexcept |
| Returns the creation time since Unix epoch, see Cipherpack Data Stream. More...
|
|
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. More...
|
|
const std::string & | plaintext_hash_algo () const noexcept |
| Return optional hash algorithm for the plaintext message, produced for convenience and not wired. More...
|
|
uint64_t | plaintext_size () const noexcept |
| Returns the plaintext message size in bytes, zero if not determined yet. More...
|
|
constexpr const std::string & | plaintext_version () const noexcept |
| Returns version of this plaintext message, user semantic, see Cipherpack Data Stream. More...
|
|
constexpr const std::string & | plaintext_version_parent () const noexcept |
| Returns version of this plaintext message's preceding message, user semantic, see Cipherpack Data Stream. More...
|
|
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. More...
|
|
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. More...
|
|
const std::vector< uint8_t > & | sender_fingerprint () const noexcept |
| Return the sender's public-key fingerprint used to sign, see Cipherpack Data Stream. More...
|
|
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. More...
|
|
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. More...
|
|
const std::string & | target_path () const noexcept |
| Returns the designated target path for this plaintext message, see Cipherpack Data Stream. More...
|
|
std::string | to_string (const bool show_crypto_algos=false, const bool force_all_fingerprints=false) const noexcept |
| Return a string representation. More...
|
|
Cipherpack header less encrypted keys or signatures as described in Cipherpack Data Stream.
- See also
- Cipherpack Overview
-
Cipherpack Data Stream
- Examples
- commandline.cpp, and test_01_cipherpack.cpp.
Definition at line 275 of file cipherpack.hpp.