Cipherpack v1.2.0-dirty
A Cryprographic Stream Processor
Namespaces | Classes | Typedefs | Functions | Variables
cipherpack Namespace Reference

Namespaces

namespace  hash_util
 Hash utility functions to produce a hash file compatible to sha256sum as well as to produce the hash value itself for validation.
 

Classes

class  CipherpackListener
 Listener for events occurring while processing a cipherpack message via encryptThenSign() and checkSignThenDecrypt(). More...
 
class  Constants
 
struct  CryptoConfig
 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...
 
class  environment
 
class  PackHeader
 Cipherpack header less encrypted keys or signatures as described in Cipherpack Data Stream. More...
 
class  WrappingDataSource
 This class represents an abstract data source object. More...
 

Typedefs

typedef std::shared_ptr< CipherpackListenerCipherpackListenerRef
 
template<typename T >
using secure_vector = std::vector< T, Botan::secure_allocator< T > >
 

Functions

PackHeader 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 default_hash_algo () noexcept
 Name of default hash algo for the plaintext message, e.g. More...
 
PackHeader 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::shared_ptr< Botan::Private_Key > load_private_key (const std::string &privatekey_fname, const jau::io::secure_string &passphrase)
 
std::shared_ptr< Botan::Public_Key > load_public_key (const std::string &pubkey_fname)
 
std::string to_string (const PackHeader &ph) noexcept
 

Variables

const char * VERSION
 
const char * VERSION_API
 
const char * VERSION_SHORT
 

Variable Documentation

◆ VERSION

const char* cipherpack::VERSION
extern
Examples
commandline.cpp.

◆ VERSION_SHORT

const char* cipherpack::VERSION_SHORT
extern

◆ VERSION_API

const char* cipherpack::VERSION_API
extern
Examples
commandline.cpp.