gcrypt 0.2.0

Libgcrypt bindings for Rust
docs.rs failed to build gcrypt-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: gcrypt-0.7.0

rust-gcrypt

Build Status LGPL-2.1 licensed crates.io

Libgcrypt bindings for Rust.

Documentation

Version 1.5.0 or greater of libgcrypt is required to use this wrapper. Some features may require a more recent version.

The libgcrypt-sys crate requires the libgcrypt-config binary to be executable in order to build the crate. The path to this binary can be set using the environment variable LIBGCRYPT_CONFIG. A working installation of gcc is also required.

The required libraries and binaries can be installed by running:

Debian / Ubuntu

$ sudo apt-get install libgcrypt11-dev

or

$ sudo apt-get install libgcrypt20-dev

RHEL / CentOS / Fedora

$ sudo yum install libgcrypt-devel

Mac OS X

$ brew install libgcrypt

Usage

Put this in your Cargo.toml:

[dependencies]
gcrypt = "0.2"

And this in your crate root:

extern crate gcrypt;

The library must be initialized using gcrypt::init or gcrypt::init_fips_mode before using any other function in the library or wrapper. An example of initialization can be found in the setup function in tests/basic.rs (NB: the enable_quick_random option should not be used in most cases). More information on initialization can be found in the libgcrypt documentation.