val pskIdentity_parser32: LS.parser32 pskIdentity_parser
val pskIdentity_parser32: LS.parser32 pskIdentity_parser
let pskIdentity_parser32 =
  [@inline_let] let _ = synth_pskIdentity_injective () in
  [@inline_let] let _ = assert_norm (pskIdentity_parser_kind == pskIdentity'_parser_kind) in
  LS.parse32_synth _ synth_pskIdentity (fun x -> synth_pskIdentity x) pskIdentity'_parser32 ()
module MiTLS.Parsers.PskIdentity

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

(* Type of field identity*)
open MiTLS.Parsers.PskIdentity_identity

type pskIdentity' = (pskIdentity_identity & U32.t)

inline_for_extraction let synth_pskIdentity (x: pskIdentity') : pskIdentity =
  match x with (identity,obfuscated_ticket_age) -> {
    identity = identity;
    obfuscated_ticket_age = obfuscated_ticket_age;
  }

inline_for_extraction let synth_pskIdentity_recip (x: pskIdentity) : pskIdentity' = (x.identity,x.obfuscated_ticket_age)

let synth_pskIdentity_recip_inverse () : Lemma (LP.synth_inverse synth_pskIdentity_recip synth_pskIdentity) = ()

let synth_pskIdentity_injective () : Lemma (LP.synth_injective synth_pskIdentity) =
  LP.synth_inverse_synth_injective synth_pskIdentity_recip synth_pskIdentity;
  synth_pskIdentity_recip_inverse ()

let synth_pskIdentity_inverse () : Lemma (LP.synth_inverse synth_pskIdentity synth_pskIdentity_recip) =
  assert_norm (LP.synth_inverse synth_pskIdentity synth_pskIdentity_recip)

let synth_pskIdentity_recip_injective () : Lemma (LP.synth_injective synth_pskIdentity_recip) =
  synth_pskIdentity_recip_inverse ();
  LP.synth_inverse_synth_injective synth_pskIdentity synth_pskIdentity_recip

noextract let pskIdentity'_parser : LP.parser _ pskIdentity' = (pskIdentity_identity_parser `LP.nondep_then` LPI.parse_u32)

noextract let pskIdentity'_parser_kind = LP.get_parser_kind pskIdentity'_parser

let pskIdentity_parser =
  synth_pskIdentity_injective ();
  assert_norm (pskIdentity_parser_kind == pskIdentity'_parser_kind);
  pskIdentity'_parser `LP.parse_synth` synth_pskIdentity

noextract let pskIdentity'_serializer : LP.serializer pskIdentity'_parser = (pskIdentity_identity_serializer `LP.serialize_nondep_then` LPI.serialize_u32)

let pskIdentity_serializer =
  [@inline_let] let _ = synth_pskIdentity_injective () in
  [@inline_let] let _ = synth_pskIdentity_inverse () in
  [@inline_let] let _ = assert_norm (pskIdentity_parser_kind == pskIdentity'_parser_kind) in
  LP.serialize_synth _ synth_pskIdentity pskIdentity'_serializer synth_pskIdentity_recip ()

let pskIdentity_bytesize (x:pskIdentity) : GTot nat = Seq.length (pskIdentity_serializer x)

let pskIdentity_bytesize_eq x = ()

inline_for_extraction let pskIdentity'_parser32 : LS.parser32 pskIdentity'_parser = (pskIdentity_identity_parser32 `LS.parse32_nondep_then` LS.parse32_u32)
/
prims.fst.checked MiTLS.Parsers.PskIdentity_identity.fsti.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.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.PskIdentity.fst
LowParse.SLow.Base.parser32 MiTLS.Parsers.PskIdentity.pskIdentity_parser
LowParse.SLow.Combinators.parse32_synth LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.PskIdentity_identity.pskIdentity_identity_parser_kind LowParse.Spec.Int.parse_u32_kind MiTLS.Parsers.PskIdentity.pskIdentity' MiTLS.Parsers.PskIdentity.pskIdentity MiTLS.Parsers.PskIdentity.pskIdentity'_parser MiTLS.Parsers.PskIdentity.synth_pskIdentity Prims.eq2 MiTLS.Parsers.PskIdentity.pskIdentity'_parser32 Prims.unit FStar.Pervasives.assert_norm LowParse.Spec.Base.parser_kind MiTLS.Parsers.PskIdentity.pskIdentity_parser_kind MiTLS.Parsers.PskIdentity.pskIdentity'_parser_kind MiTLS.Parsers.PskIdentity.synth_pskIdentity_injective
let pskIdentity_parser32 =
  
[@@ inline_let ]let _ = synth_pskIdentity_injective () in
[@@ inline_let ]let _ = assert_norm (pskIdentity_parser_kind == pskIdentity'_parser_kind) in
LS.parse32_synth _ synth_pskIdentity (fun x -> synth_pskIdentity x) pskIdentity'_parser32 ()