#include <cipherpack/cipherpack.hpp>
#include <jau/cpuid.hpp>
#include <jau/os/os_support.hpp>
#include <jau/debug.hpp>
Go to the source code of this file.
◆ cp_query_hash_provider()
static std::string cp_query_hash_provider |
( |
const std::string & |
algo | ) |
|
|
staticnoexcept |
◆ cp_print_hash_provider()
static void cp_print_hash_provider |
( |
const std::string & |
algo | ) |
|
|
staticnoexcept |
◆ jau_PKCS8_extract()
static cipherpack::secure_vector< uint8_t > jau_PKCS8_extract |
( |
Botan::DataSource & |
source, |
|
|
Botan::AlgorithmIdentifier & |
pbe_alg_id |
|
) |
| |
|
static |
Get info from an EncryptedPrivateKeyInfo.
Copied from Botan, allowing to only pass passphrase by const reference for later secure erasure not leaving a copy in memory.
Definition at line 202 of file crypto0.cpp.
◆ jau_PKCS8_decode()
static cipherpack::secure_vector< uint8_t > jau_PKCS8_decode |
( |
Botan::DataSource & |
source, |
|
|
const std::string & |
passphrase, |
|
|
Botan::AlgorithmIdentifier & |
pk_alg_id, |
|
|
bool |
is_encrypted |
|
) |
| |
|
static |
PEM decode and/or decrypt a private key.
Copied from Botan, allowing to only pass passphrase by const reference for later secure erasure not leaving a copy in memory.
Definition at line 237 of file crypto0.cpp.
◆ default_pk_type
const std::string default_pk_type = "RSA" |
|
static |
◆ default_pk_fingerprt_hash_algo
const std::string default_pk_fingerprt_hash_algo = "SHA-256" |
|
static |
◆ default_pk_enc_padding_algo
const std::string default_pk_enc_padding_algo = "OAEP" |
|
static |
◆ default_pk_enc_hash_algo
const std::string default_pk_enc_hash_algo = "SHA-256" |
|
static |
◆ default_pk_sign_algo
const std::string default_pk_sign_algo = "EMSA1(SHA-256)" |
|
static |
◆ default_sym_enc_mac_algo
const std::string default_sym_enc_mac_algo = "ChaCha20Poly1305" |
|
static |
◆ default_hash_algo_
const std::string default_hash_algo_ = "BLAKE2b(512)" |
|
static |
◆ ChaCha_Nonce_BitSize
constexpr const size_t ChaCha_Nonce_BitSize = 96 |
|
staticconstexpr |
Symmetric Encryption nonce size in bytes.
We only process one message per 'encrypted_key', hence medium nonce size of 96 bit.
ChaCha Nonce Sizes are usually: 64-bit classic, 96-bit IETF, 192-bit big
Definition at line 121 of file crypto0.cpp.