let max_hash_length = 64
let max_hash_length =
64
Hashing.Spec.fst.checked
Spec.Hash.Definitions.fst.checked Spec.Agile.HMAC.fsti.checked prims.fst.checked Hacl.Hash.Definitions.fst.checked FStar.UInt8.fsti.checked FStar.UInt32.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.fsti.checked FStar.Bytes.fsti.checked EverCrypt.HMAC.fsti.checked EverCrypt.Hash.fsti.checked Declassify.fsti.checked
Hashing.Spec.fst
﻿(** hash algorithms and providers

 * provides bytes-friendly API before idealization
 * no dependency on TLS: could go to EverCrypt or SecureAPI.

*)
module Hashing.Spec

include EverCrypt.Hash
include Spec.Hash.Definitions

open FStar.Bytes

open Declassify

#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"

let alg = a:alg { is_md a }

let hash_len (a:alg)
  : n:UInt32.t{UInt32.v n == hash_length a}
  = Hacl.Hash.Definitions.hash_len a

type tag (a:alg) = Bytes.lbytes (hash_length a)
val max_hash_length : Prims.int
Prims.int