22 #ifndef crypto_engine_h
23 #define crypto_engine_h
110 bool only_auth_ciphers);
123 const char *sourceFilePath,
124 const char *destinationFilePath);
139 const char *sourceFilePath,
140 const char *destinationFilePath,
141 bool only_auth_ciphers);
Interface to a set of cryptographic operations used throughout the library. Currently the default imp...
Definition: crypto_engine.h:53
wickr_buffer_t * wickr_crypto_engine_kdf_decipher(const wickr_crypto_engine_t *engine, const wickr_buffer_t *input_buffer, const wickr_buffer_t *passphrase)
Represents the result of a KDF function execution.
Definition: kdf.h:155
wickr_digest_t wickr_digest_matching_cipher(wickr_cipher_t cipher)
Metadata about curve types to help with key generation, and signatures.
Definition: eckey.h:67
Elliptic Curve Digital Signature Algorithm Result.
Definition: ecdsa.h:54
bool(* wickr_crypto_engine_encrypt_file)(const wickr_cipher_key_t *key, const char *sourceFilePath, const char *destinationFilePath)
Definition: crypto_engine.h:122
Digest function parameters.
Definition: digest.h:54
wickr_cipher_t default_cipher
Definition: crypto_engine.h:56
const wickr_crypto_engine_t wickr_crypto_engine_get_default(void)
bool(* wickr_crypto_engine_decrypt_file)(const wickr_cipher_key_t *key, const char *sourceFilePath, const char *destinationFilePath, bool only_auth_ciphers)
Definition: crypto_engine.h:138
wickr_ec_curve_t default_curve
Definition: crypto_engine.h:55
bool(* wickr_crypto_engine_ec_verify)(const wickr_ecdsa_result_t *signature, const wickr_ec_key_t *ec_public_key, const wickr_buffer_t *data_to_verify)
Definition: crypto_engine.h:217
Represents an array of bytes and the length of the allocation associated with those bytes.
Definition: buffer.h:51
wickr_digest_t wickr_digest_matching_curve(wickr_ec_curve_t curve)
Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the ...
Definition: cipher.h:56
wickr_buffer_t * wickr_crypto_engine_kdf_cipher(const wickr_crypto_engine_t *engine, wickr_kdf_algo_t algo, wickr_cipher_t cipher, const wickr_buffer_t *value, const wickr_buffer_t *passphrase)
wickr_cipher_t wickr_exchange_cipher_matching_cipher(wickr_cipher_t cipher)
Representation of public and private Elliptic Curve Keypair information as buffers.
Definition: eckey.h:92
Metadata associated with a particular KDF function.
Definition: kdf.h:71
bool(* wickr_crypto_engine_hmac_verify)(const wickr_buffer_t *data, const wickr_buffer_t *hmac_key, const wickr_digest_t mode, const wickr_buffer_t *expected)
Definition: crypto_engine.h:257