https://github.com/project-everest/hacl-star
Raw File
Tip revision: f95b54abf9076a7a072a54750b40dc9f85039b74 authored by Dzomo, the Everest Yak on 01 October 2021, 08:30:56 UTC
[CI] regenerate hints and dist
Tip revision: f95b54a
Hacl.Hash.PadFinish.fsti
module Hacl.Hash.PadFinish

module U32 = FStar.UInt32

open Hacl.Hash.Definitions
open Spec.Hash.Definitions

(** Shared implementations of the pad and finish functions, across all hash algorithms. *)

noextract inline_for_extraction
val pad: a:hash_alg -> pad_st a

(* Allows the caller to compute which length to allocate for padding. *)
inline_for_extraction noextract
val pad_len: a:hash_alg -> len:len_t a ->
  x:U32.t { U32.v x = pad_length a (len_v a len) }

noextract inline_for_extraction
val finish (i:impl) : finish_st i
back to top