[][src]Crate gcrypt

Initialization

Libgcrypt requires initialization before first use. The functions init and init_fips can be used to initialize the library. The closure passed to these functions is used to configure the library. More information on configuration options can be found in the libgcrypt documentation.

An example:

let gcrypt = gcrypt::init(|x| {
    x.disable_secmem();
    Ok::<_, ()>(())
});

Calling any function in the wrapper that requires initialization before init or init_fips are called will cause the wrapper to attempt to initialize the library with a default configuration.

Re-exports

pub use crate::buffer::Buffer;
pub use gpg_error as error;

Modules

buffer
cipher
digest
kdf
mac
mpi
pkey
rand
sexp

Macros

require_gcrypt_ver

Structs

Error

A type wrapping errors produced by GPG libraries.

Gcrypt
Initializer

Constants

MIN_GCRYPT_VERSION

Functions

enable_memory_guard
init
init_default
init_fips_mode
is_initialized

Type Definitions

Result