siphash

CategoryFunctions
Template APISipHash
Helperssiphash24Of

SipHash: a fast short-input PRF

Members

Aliases

siphash24Of
alias siphash24Of = siphash!(2, 4).siphashOf
Undocumented in source.

Structs

SipHash
struct SipHash(size_t C, size_t D)

SipHash object implements std.digest like API for supporting streaming update.

Templates

siphash
template siphash(size_t C, size_t D)

siphash template, which takes SipRound C and D parameters

Examples

// Create key
ubyte[16] key = cast(ubyte[])"To be|not to be!";
// Compute hash with key and arbitrary message
ulong  hashed = siphash24Of(key, cast(ubyte[])"that is the question.");
assert(hashed == 17352353082512417190);

See Also

Meta

License

<a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.

Authors

Masahiro Nakagawa