Module Hash.State

Hash state.

type t

The type for hash states.

val make : Algorithm.t -> t

make () is an initial state for hash algorithm alg.

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 state is a copy of state, operations on state do not affect the copy and vice-versa. Warning. Trying to copy a state whose value has been