Module Psa.Hash

Message digests.

See also Message digests (Hashes) in Alg.

Single-part functions

val compute : Alg.t -> input:Bytesrw.Bytes.Slice.t -> hash:Bytesrw.Bytes.Slice.t -> (int, Status.t) Stdlib.result
val compare : Alg.t -> input:Bytesrw.Bytes.Slice.t -> hash:Bytesrw.Bytes.Slice.t -> Status.t

Multi-part functions

module Operation : sig ... end

Hash operations.

val setup : Operation.t -> Alg.t -> Status.t
val finish : Operation.t -> hash:Bytesrw.Bytes.Slice.t -> (int, Status.t) Stdlib.result
val abort : Operation.t -> Status.t
val clone : src:Operation.t -> dst:Operation.t -> Status.t

Support functions

val length : Alg.t -> int
val max_size : unit -> int
val block_length : Alg.t -> int