ddh.ddh

Undocumented in source.

Members

Enums

DDHAction
enum DDHAction

Choose which checksum or hash will be used

DDHError
enum DDHError

Last error code

Functions

ddh_compute
void ddh_compute(DDH_T ddh, ubyte[] data)

Compute a block of data Params: ddh = DDH_T structure data = Byte array

ddh_digest_size
uint ddh_digest_size(DDH_T ddh)

Get the digest size in bytes Returns: Digest size

ddh_finish
ubyte[] ddh_finish(DDH_T ddh)

Finalize digest or checksum Params: ddh = DDH_T structure Returns: Raw digest slice

ddh_init
bool ddh_init(DDH_T ddh, DDHAction action)

Initiates a DDH_T structure with an DDHAction value. Params: ddh = DDH_T structure action = DDHAction value Returns: True on error

ddh_reset
void ddh_reset(DDH_T ddh)

Re-initiates the DDH session. Params: ddh = DDH_T structure

ddh_string
char[] ddh_string(DDH_T ddh)

Finalize digest or checksum and return formatted Finalize and return formatted diggest Params: dd = DDH_T structure Returns: Formatted digest

Structs

DDH_INFO_T
struct DDH_INFO_T
DDH_T
struct DDH_T

Main structure

Variables

meta_info
DDH_INFO_T[] meta_info;

Structure information

Meta