ocean.util.cipher.gcrypt.c.random

D bindings to libgcrypt random generating functions.

Requires linking with libgcrypt:

-L-lgcrypt

Members

Enums

gcry_random_level
enum gcry_random_level

See original's library documentation for details.

Functions

gcry_create_nonce
void gcry_create_nonce(void* buffer, size_t length)

See original's library documentation for details.

gcry_fast_random_poll
gcry_error_t gcry_fast_random_poll()

See original's library documentation for details.

gcry_random_add_bytes
gcry_error_t gcry_random_add_bytes(const(void)* buffer, size_t length, int quality)

See original's library documentation for details.

gcry_random_bytes
void* gcry_random_bytes(size_t nbytes, gcry_random_level level)

See original's library documentation for details.

gcry_random_bytes_secure
void* gcry_random_bytes_secure(size_t nbytes, gcry_random_level level)

See original's library documentation for details.

gcry_randomize
void gcry_randomize(void* buffer, size_t length, gcry_random_level level)

See original's library documentation for details.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).

Bear in mind this module provides bindings to an external library that has its own license, which might be more restrictive. Please check the external library license to see which conditions apply for linking.