styx2000.extrautil.siphash

This class provides an implementation of the SipHash cryptographic function. Implementation is based on the following code (by Károly Lőrentey): https://github.com/attaswift/SipHash/blob/master/SipHash/SipHasher.swift

Members

Classes

SipHash
class SipHash(ubyte NUMBER_OF_COMPRESS_ROUNDS = 2, ubyte NUMBER_OF_FINALIZATION_ROUNDS = 4)

The class provides functionality to initialize the internal state of the SipHash hash function and generate a hash for byte arrays.

Functions

hash8
auto hash8(ubyte[] bytes, ulong[2] key)

Hashes a byte stream with the specified cryptographic key

hash8
auto hash8(string s, ulong[2] key)

Hashes a string with the specified cryptographic key

Meta