CryptoConfig, contains crypto algorithms settings given at encryption wired via the Cipherpack Data Stream, hence received and used at decryption if matching keys are available.
More...
#include <cipherpack.hpp>
|
| CryptoConfig () noexcept |
|
| CryptoConfig (const std::string &pk_type_, const std::string &pk_fingerprt_hash_algo_, const std::string &pk_enc_padding_algo_, 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_bytes_) noexcept |
|
std::string | to_string () const noexcept |
|
bool | valid () const noexcept |
|
CryptoConfig, contains crypto algorithms settings given at encryption wired via the Cipherpack Data Stream, hence received and used at decryption if matching keys are available.
- See also
- Cipherpack Overview
-
Cipherpack Data Stream
Definition at line 205 of file cipherpack.hpp.
◆ CryptoConfig() [1/2]
cipherpack::CryptoConfig::CryptoConfig |
( |
| ) |
|
|
inlinenoexcept |
◆ CryptoConfig() [2/2]
cipherpack::CryptoConfig::CryptoConfig |
( |
const std::string & |
pk_type_, |
|
|
const std::string & |
pk_fingerprt_hash_algo_, |
|
|
const std::string & |
pk_enc_padding_algo_, |
|
|
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_bytes_ |
|
) |
| |
|
inlinenoexcept |
◆ getDefault()
Returns default CryptoConfig.
- Public-Key type is
RSA
.
- Public key fingerprint hash algorithm is
SHA-256
.
- Public-Key padding algorithm is
OAEP
.
- Public-Key hash algorithm is
SHA-256
.
- Public-Key signature algorithm is
EMSA1(SHA-256)
.
- Symmetric Authenticated Encryption with Additional Data (AEAD) encryption+MAC cipher algo is
ChaCha20Poly1305
.
- Symmetric AEAD ChaCha Nonce size 96 bit for one message per symmetric-key. Sizes are usually: 64-bit classic, 96-bit IETF, 192-bit big.
- Examples
- commandline.cpp, and test_01_cipherpack.cpp.
Definition at line 123 of file crypto0.cpp.
◆ valid()
bool CryptoConfig::valid |
( |
| ) |
const |
|
noexcept |
◆ to_string()
std::string CryptoConfig::to_string |
( |
| ) |
const |
|
noexcept |
◆ pk_type
std::string cipherpack::CryptoConfig::pk_type |
◆ pk_fingerprt_hash_algo
std::string cipherpack::CryptoConfig::pk_fingerprt_hash_algo |
◆ pk_enc_padding_algo
std::string cipherpack::CryptoConfig::pk_enc_padding_algo |
◆ pk_enc_hash_algo
std::string cipherpack::CryptoConfig::pk_enc_hash_algo |
◆ pk_sign_algo
std::string cipherpack::CryptoConfig::pk_sign_algo |
◆ sym_enc_algo
std::string cipherpack::CryptoConfig::sym_enc_algo |
◆ sym_enc_nonce_bytes
size_t cipherpack::CryptoConfig::sym_enc_nonce_bytes |
The documentation for this struct was generated from the following files: