|
bool | cipherpack::hash_util::append_to_file (const std::string &out_file, const std::string &hashed_file, const std::string_view &hash_algo, const std::vector< uint8_t > &hash_value) noexcept |
| Append the hash signature to the text file out_file. More...
|
|
std::unique_ptr< std::vector< uint8_t > > | cipherpack::hash_util::calc (const std::string_view &algo, const std::string &path_or_uri, uint64_t &bytes_hashed, jau::fraction_i64 timeout=20_s) noexcept |
| Return the calculated hash value using given algo name and the bytes of a single file or all files if denoting a directory. More...
|
|
std::unique_ptr< std::vector< uint8_t > > | cipherpack::hash_util::calc (const std::string_view &algo, jau::io::ByteInStream &source) noexcept |
| Return the calculated hash value using given algo name and byte input stream. More...
|
|
PackHeader | cipherpack::checkSignThenDecrypt (const std::vector< std::string > &sign_pub_keys, const std::string &dec_sec_key_fname, const jau::io::secure_string &passphrase, jau::io::ByteInStream &source, CipherpackListenerRef listener, const std::string_view &plaintext_hash_algo, const std::string destination_fname="") |
| Verify signature then decrypt the source passing to the CipherpackListener if opt-in and also optionally store into destination file. More...
|
|
std::string_view | cipherpack::default_hash_algo () noexcept |
| Name of default hash algo for the plaintext message, e.g. More...
|
|
PackHeader | cipherpack::encryptThenSign (const CryptoConfig &crypto_cfg, const std::vector< std::string > &enc_pub_keys, const std::string &sign_sec_key_fname, const jau::io::secure_string &passphrase, jau::io::ByteInStream &source, const std::string &target_path, const std::string &subject, const std::string &plaintext_version, const std::string &plaintext_version_parent, CipherpackListenerRef listener, const std::string_view &plaintext_hash_algo, const std::string destination_fname="") |
| Encrypt then sign the source producing a cipherpack stream passed to the CipherpackListener if opt-in and also optionally store into destination_fname. More...
|
|
std::string | cipherpack::hash_util::file_suffix (const std::string &algo) noexcept |
| Return a lower-case file suffix used to store a sha256sum compatible hash signature w/o dot and w/o dashes. More...
|
|
std::shared_ptr< Botan::Private_Key > | cipherpack::load_private_key (const std::string &privatekey_fname, const jau::io::secure_string &passphrase) |
|
std::shared_ptr< Botan::Public_Key > | cipherpack::load_public_key (const std::string &pubkey_fname) |
|
std::string | cipherpack::to_string (const PackHeader &ph) noexcept |
|