package blake2

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type hash =
  1. | Hash of Bigstring.t
val init : ?key:Bigstring.t -> int -> t

init ?key size is a blake2b context for hashes of size size, using key if present.

val update : t -> Bigstring.t -> unit

update t buf updates t with the data in buf.

val final : t -> hash

final t is the blake2b hash of all data updated in t so far.

val direct : ?key:Bigstring.t -> Bigstring.t -> int -> hash

direct ?key inbuf len is the blake2b hash of length len, using key is present.

OCaml

Innovation. Community. Security.