def siphash13

bend-kit-hash@0.3.0.2 · hash.bend:642

import bend-kit-hash@0.3.0.2/hash.bend as Hash
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

642def siphash13(b: Bytes.Bytes, +k0: W64, +k1: W64) -> Bytes.Bytes & W64:
643  Bytes.Bytes{+len, buf} = b
644  sip.rest(len, dfrom(~S4, ~sip.block, U32.to_nat((len >> 3n : U32)), buf, 0, S4{W64.xor(k0, W64{1936682341, 1886610805}), W64.xor(k1, W64{1685025377, 1852075885}), W64.xor(k0, W64{1819895653, 1852142177}), W64.xor(k1, W64{1952801890, 2037671283})}))

Uses (11)

Used by (1)