Module Xxh3.State

Hashing state.

type t

The type for hashing state.

val make : ?secret:secret -> ?seed:seed -> unit -> t

make ?secret ?seed () is an initial hashing state with given parameters. If unspecified the hash is unseeded and there is no secret.

Raises Invalid_argument if your secret is smaller than Bytesrw_xxhash.xxh3_secret_size_min.

val update : t -> Bytesrw.Bytes.Slice.t -> unit

update state slice updates state with slice.

val copy : t -> t

copy t is a copy of t.