SipHash¶
Usage
use SipHash;
or
import SipHash;
- param cROUNDS = 2¶
- param dROUNDS = 4¶
- const defaultSipHashKey: [0..#16] uint(8) = for i in 0.. # 16 do i : uint(8)¶
- const shLogger = new Logger(logLevel, logChannel)¶
- proc ROTL(x, b)¶
- proc sipHash64(msg: [] ?t, D): uint(64) where t == uint(8) || t == int(64) || t == real(64)¶
- proc sipHash128(ref msg: [] ?t, D): 2*(uint(64)) where t == uint(8) || t == int(64) || t == real(64)¶
- proc sipHash64(in val): uint(64)
Compute hash of a single value
- proc sipHash128(in val): 2*(uint(64))