Module Xxh3.State

Hash state.

type t

The type for hash state.

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

make ?secret ?seed () is an initial hash 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 the bytes in the range of slice.

val copy : t -> t

copy t is a copy of t.