aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-30 23:32:25 +0200
committerSven Gothel <[email protected]>2022-05-30 23:32:25 +0200
commit38e14ae654a31abfb3529bbfc9286140fe7c0aad (patch)
tree1f52cdf528c104ac549175a6c43420fc3ced2c19
parent16e9b421558144000c10fd9e4df36374a6765f22 (diff)
Minor naming changes
-rw-r--r--include/cipherpack/cipherpack.hpp6
-rw-r--r--src/cipherpack/crypto0.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/cipherpack/cipherpack.hpp b/include/cipherpack/cipherpack.hpp
index 52adcb2..d09a232 100644
--- a/include/cipherpack/cipherpack.hpp
+++ b/include/cipherpack/cipherpack.hpp
@@ -150,14 +150,14 @@ namespace cipherpack {
const std::string& pk_enc_hash_algo_,
const std::string& pk_sign_algo_,
const std::string& sym_enc_algo_,
- const size_t sym_enc_nonce_bitsize_) noexcept
+ const size_t sym_enc_nonce_bytes_) noexcept
: pk_type(pk_type_),
pk_fingerprt_hash_algo(pk_fingerprt_hash_algo_),
pk_enc_padding_algo(pk_enc_padding_algo_),
pk_enc_hash_algo(pk_enc_hash_algo_),
pk_sign_algo(pk_sign_algo_),
sym_enc_algo(sym_enc_algo_),
- sym_enc_nonce_bytes(sym_enc_nonce_bitsize_)
+ sym_enc_nonce_bytes(sym_enc_nonce_bytes_)
{ }
bool valid() const noexcept;
@@ -252,7 +252,7 @@ namespace cipherpack {
/** Returns the designated decrypted target path of the file from DER-Header-1, see @ref cipherpack_stream "Cipherpack Data Stream". */
const std::string& getTargetPath() const noexcept { return target_path; }
- /** Returns the plain content size in bytes, i.e. decrypted payload size, see @ref cipherpack_stream "Cipherpack Data Stream". */
+ /** Returns the plaintext content size in bytes, i.e. decrypted payload size, see @ref cipherpack_stream "Cipherpack Data Stream". */
uint64_t getContentSize() const noexcept { return content_size; }
/** Returns the creation time since Unix epoch, see @ref cipherpack_stream "Cipherpack Data Stream". */
diff --git a/src/cipherpack/crypto0.cpp b/src/cipherpack/crypto0.cpp
index 7492b07..dc3b233 100644
--- a/src/cipherpack/crypto0.cpp
+++ b/src/cipherpack/crypto0.cpp
@@ -139,7 +139,7 @@ std::string PackHeader::toString(const bool show_crypto_algos, const bool force_
std::string res = "Header[";
res += "valid "+std::to_string( isValid() )+
- ", file[target_path "+target_path+", net_size "+jau::to_decstring(content_size).c_str()+
+ ", file[target_path "+target_path+", content_size "+jau::to_decstring(content_size).c_str()+
"], creation "+ts_creation.to_iso8601_string(true)+" UTC, intention '"+intention+"', "+
" version["+std::to_string(payload_version)+
", parent "+std::to_string(payload_version_parent)+crypto_str+