Crate gcrypt [] [src]

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 token = gcrypt::init(|mut x| {
    x.disable_secmem();
});

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.

Reexports

pub extern crate gpg_error as error;

Modules

cipher
digest
kdf
mac
mpi
pkey
rand
sexp

Structs

Buffer
Error

A type wrapping errors produced by GPG libraries.

Initializer
Token

Functions

enable_memory_guard
get_token
init
init_fips_mode
is_initialized

Type Definitions

Result