val digestSize_bytesize (x:digestSize) : GTot nat
val digestSize_bytesize (x:digestSize) : GTot nat
let digestSize_bytesize (x:digestSize) : GTot nat = Seq.length (digestSize_serializer x)
module MiTLS.Parsers.DigestSize

(* 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"

[@LT.Norm] inline_for_extraction let digestSize_enum : LP.enum digestSize U8.t =
  [@inline_let] let e = [
    Hash_32, 0z;
    Hash_48, 1z;
    Hash_64, 2z;
  ] in
  [@inline_let] let _ =
    assert_norm (L.noRepeats (LP.list_map fst e))
  in
  [@inline_let] let _ = 
    assert_norm (L.noRepeats (LP.list_map snd e))
  in e

noextract let digestSize_repr_parser = LPI.parse_u8

noextract let digestSize_repr_serializer = LPI.serialize_u8

inline_for_extraction noextract let digestSize_repr_parser32 = LS.parse32_u8

inline_for_extraction noextract let digestSize_repr_serializer32 = LS.serialize32_u8

inline_for_extraction noextract let digestSize_repr_size32 = LSZ.size32_u8

inline_for_extraction noextract let digestSize_repr_validator = (LL.validate_u8 ())

inline_for_extraction noextract let digestSize_repr_jumper = LL.jump_u8

inline_for_extraction noextract let digestSize_repr_reader = LL.read_u8

inline_for_extraction noextract let digestSize_repr_writer = LL.write_u8

inline_for_extraction let synth_digestSize (x: LP.enum_key digestSize_enum) : Tot digestSize = x

inline_for_extraction let synth_digestSize_inv (x: digestSize) : Tot (LP.enum_key digestSize_enum) =
  [@inline_let] let _ : squash (LP.list_mem x (LP.list_map fst digestSize_enum)) =
    _ by (LP.synth_maybe_enum_key_inv_unknown_tac x)
  in
  x

let lemma_synth_digestSize_inj () : Lemma
  (LP.synth_injective synth_digestSize) = ()

let lemma_synth_digestSize_inv () : Lemma
  (LP.synth_inverse synth_digestSize synth_digestSize_inv) = ()

noextract let parse_digestSize_key : LP.parser _ (LP.enum_key digestSize_enum) =
  LP.parse_enum_key digestSize_repr_parser digestSize_enum

noextract let serialize_digestSize_key : LP.serializer parse_digestSize_key =
  LP.serialize_enum_key digestSize_repr_parser digestSize_repr_serializer digestSize_enum

noextract let digestSize_parser : LP.parser _ digestSize =
  lemma_synth_digestSize_inj ();
  parse_digestSize_key `LP.parse_synth` synth_digestSize

noextract let digestSize_serializer : LP.serializer digestSize_parser =
  lemma_synth_digestSize_inj ();
  lemma_synth_digestSize_inv ();
  LP.serialize_synth _ synth_digestSize serialize_digestSize_key synth_digestSize_inv ()
/
prims.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.Native.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.DigestSize.fst
x: MiTLS.Parsers.DigestSize.digestSize -> Prims.GTot Prims.nat
MiTLS.Parsers.DigestSize.digestSize FStar.Seq.Base.length LowParse.Bytes.byte MiTLS.Parsers.DigestSize.digestSize_serializer Prims.nat
let digestSize_bytesize (x: digestSize) : GTot nat =
  
Seq.length (digestSize_serializer x)