ocean.util.cipher.gcrypt.c.md

D bindings to libgcrypt cryptograhic hash functions.

Requires linking with libgcrypt:

-L-lgcrypt

Public Imports

ocean.util.cipher.gcrypt.c.general
public import ocean.util.cipher.gcrypt.c.general;
Undocumented in source.

Members

Aliases

gcry_md_hd_t
alias gcry_md_hd_t = gcry_md_handle*

See original's library documentation for details.

Enums

gcry_md_algos
enum gcry_md_algos

See original's library documentation for details.

gcry_md_flags
enum gcry_md_flags

See original's library documentation for details.

Functions

gcry_md_algo_info
gcry_error_t gcry_md_algo_info(gcry_md_algos algo, gcry_ctl_cmds what, void* buffer, size_t* nbytes)

See original's library documentation for details.

gcry_md_algo_name
const(char)* gcry_md_algo_name(gcry_md_algos algo)

See original's library documentation for details.

gcry_md_close
void gcry_md_close(gcry_md_hd_t hd)

See original's library documentation for details.

gcry_md_copy
gcry_error_t gcry_md_copy(gcry_md_hd_t* bhd, gcry_md_hd_t ahd)

See original's library documentation for details.

gcry_md_ctl
gcry_error_t gcry_md_ctl(gcry_md_hd_t hd, int cmd, void* buffer, size_t buflen)

See original's library documentation for details.

gcry_md_debug
void gcry_md_debug(gcry_md_hd_t hd, const(char)* suffix)

See original's library documentation for details.

gcry_md_enable
gcry_error_t gcry_md_enable(gcry_md_hd_t hd, gcry_md_algos algo)

See original's library documentation for details.

gcry_md_get_algo
gcry_md_algos gcry_md_get_algo(gcry_md_hd_t hd)

See original's library documentation for details.

gcry_md_get_algo_dlen
uint gcry_md_get_algo_dlen(gcry_md_algos algo)

See original's library documentation for details.

gcry_md_get_asnoid
gcry_error_t gcry_md_get_asnoid(gcry_md_algos a, ubyte[] b)

See original's library documentation for details.

gcry_md_hash_buffer
void gcry_md_hash_buffer(gcry_md_algos algo, void* digest, const(void)* buffer, size_t length)

See original's library documentation for details.

gcry_md_info
gcry_error_t gcry_md_info(gcry_md_hd_t h, gcry_ctl_cmds what, void* buffer, size_t* nbytes)

See original's library documentation for details.

gcry_md_is_enabled
int gcry_md_is_enabled(gcry_md_hd_t a, gcry_md_algos algo)

See original's library documentation for details.

gcry_md_is_secure
int gcry_md_is_secure(gcry_md_hd_t a)

See original's library documentation for details.

gcry_md_list
gcry_error_t gcry_md_list(int* list, int* list_length)

See original's library documentation for details.

gcry_md_map_name
int gcry_md_map_name(const(char)* name)

See original's library documentation for details.

gcry_md_open
gcry_error_t gcry_md_open(gcry_md_hd_t* h, gcry_md_algos algo, gcry_md_flags flags)

See original's library documentation for details.

gcry_md_read
ubyte* gcry_md_read(gcry_md_hd_t hd, gcry_md_algos algo)

See original's library documentation for details.

gcry_md_read_slice
ubyte[] gcry_md_read_slice(gcry_md_hd_t hd, gcry_md_algos algo)
Undocumented in source. Be warned that the author may not have intended to support it.
gcry_md_reset
void gcry_md_reset(gcry_md_hd_t hd)

See original's library documentation for details.

gcry_md_setkey
gcry_error_t gcry_md_setkey(gcry_md_hd_t hd, const(void)* key, size_t keylen)

See original's library documentation for details.

gcry_md_test_algo
gcry_error_t gcry_md_test_algo(gcry_md_algos a)

See original's library documentation for details.

gcry_md_write
void gcry_md_write(gcry_md_hd_t hd, const(void)* buffer, size_t length)

See original's library documentation for details.

Structs

gcry_md_handle
struct gcry_md_handle

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.