package awa

  1. Overview
  2. Docs
type t =
  1. | Plaintext
  2. | Md5
  3. | Md5_96
  4. | Sha1
  5. | Sha1_96
  6. | Sha2_256
  7. | Sha2_512
type key = {
  1. hmac : t;
  2. key : Cstruct.t;
}
val to_string : t -> string
val of_string : string -> (t, string) result
val digest_len : t -> int
val key_len : t -> int
val known : string -> bool
val preferred : t list
val hmacv : t -> key:Cstruct.t -> Cstruct.t list -> Mirage_crypto.Hash.digest
OCaml

Innovation. Community. Security.