val key_of_finished (x: finished') : LP.enum_key digestSize_enum
val key_of_finished (x: finished') : LP.enum_key digestSize_enum
let key_of_finished (x:finished') : LP.enum_key digestSize_enum =
  match x with
  | Verify_data_hash_32 _ -> digestSize_as_enum_key Hash_32
  | Verify_data_hash_48 _ -> digestSize_as_enum_key Hash_48
  | Verify_data_hash_64 _ -> digestSize_as_enum_key Hash_64
module MiTLS.Parsers.Finished

(* This file has been automatically generated by EverParse. *)
open FStar.Bytes
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module LP = LowParse.Spec
module LT = LowParse.TacLib
module LS = LowParse.SLow
module LSZ = LowParse.SLow
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST

#reset-options "--using_facts_from '* -FStar.Tactics -FStar.Reflection' --z3rlimit 16 --z3cliopt smt.arith.nl=false --max_fuel 2 --max_ifuel 2"

friend MiTLS.Parsers.DigestSize

// Need high Z3 limits for large sum types
#set-options "--z3rlimit 180"

inline_for_extraction unfold let digestSize_as_enum_key (x:digestSize) : Pure (LP.enum_key digestSize_enum)
  (requires norm [delta; zeta; iota; primops] (LP.list_mem x (LP.list_map fst digestSize_enum)) == true) (ensures fun _ -> True) =
  [@inline_let] let _ = norm_spec [delta; zeta; iota; primops] (LP.list_mem x (LP.list_map fst digestSize_enum)) in x
/
prims.fst.checked MiTLS.Parsers.DigestSize.fst.checked LowStar.Buffer.fst.checked LowParse.TacLib.fst.checked LowParse.Spec.AllIntegers.fst.checked LowParse.Spec.fst.checked LowParse.SLow.fst.checked LowParse.Low.fst.checked FStar.UInt8.fsti.checked FStar.UInt64.fsti.checked FStar.UInt32.fsti.checked FStar.UInt16.fsti.checked FStar.Tactics.Effect.fsti.checked FStar.Tactics.fst.checked FStar.Seq.fst.checked FStar.Pervasives.fsti.checked FStar.List.Tot.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Bytes.fsti.checked
MiTLS.Parsers.Finished.fst
x: MiTLS.Parsers.Finished.finished'
  -> LowParse.Spec.Enum.enum_key MiTLS.Parsers.DigestSize.digestSize_enum
MiTLS.Parsers.Finished.finished' MiTLS.Parsers.Finished32.finished32 MiTLS.Parsers.Finished.digestSize_as_enum_key MiTLS.Parsers.DigestSize.Hash_32 MiTLS.Parsers.Finished48.finished48 MiTLS.Parsers.DigestSize.Hash_48 MiTLS.Parsers.Finished64.finished64 MiTLS.Parsers.DigestSize.Hash_64 LowParse.Spec.Enum.enum_key MiTLS.Parsers.DigestSize.digestSize FStar.UInt8.t MiTLS.Parsers.DigestSize.digestSize_enum
let key_of_finished (x: finished') : LP.enum_key digestSize_enum =
  
match x with
| Verify_data_hash_32 _ -> digestSize_as_enum_key Hash_32
| Verify_data_hash_48 _ -> digestSize_as_enum_key Hash_48
| Verify_data_hash_64 _ -> digestSize_as_enum_key Hash_64