val newSessionTicket13_extensions_validator: LL.validator newSessionTicket13_extensions_parser
val newSessionTicket13_extensions_validator: LL.validator newSessionTicket13_extensions_parser
let newSessionTicket13_extensions_validator = LL.validate_synth newSessionTicket13_extensions'_validator synth_newSessionTicket13_extensions ()
module MiTLS.Parsers.NewSessionTicket13_extensions

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

let newSessionTicket13_extensions_list_bytesize x = Seq.length (LP.serialize (LP.serialize_list _ newSessionTicketExtension_serializer) x)

let newSessionTicket13_extensions_list_bytesize_nil = LP.serialize_list_nil newSessionTicketExtension_parser newSessionTicketExtension_serializer

let newSessionTicket13_extensions_list_bytesize_cons x y = LP.serialize_list_cons newSessionTicketExtension_parser newSessionTicketExtension_serializer x y; (newSessionTicketExtension_bytesize_eq (x))

let newSessionTicket13_extensions_list_bytesize_eq l = LL.serialized_list_length_eq_length_serialize_list newSessionTicketExtension_serializer l

let check_newSessionTicket13_extensions_list_bytesize l =
  let x = LSZ.size32_list newSessionTicketExtension_size32 () l in
  0ul `U32.lte` x && x `U32.lte` 65534ul

type newSessionTicket13_extensions' = LP.parse_bounded_vldata_strong_t 0 65534 (LP.serialize_list _ newSessionTicketExtension_serializer)

inline_for_extraction let synth_newSessionTicket13_extensions (x: newSessionTicket13_extensions') : Tot newSessionTicket13_extensions = x

inline_for_extraction let synth_newSessionTicket13_extensions_recip (x: newSessionTicket13_extensions) : Tot newSessionTicket13_extensions' = x

noextract let newSessionTicket13_extensions'_parser : LP.parser _ newSessionTicket13_extensions' =
  LP.parse_bounded_vldata_strong 0 65534 (LP.serialize_list _ newSessionTicketExtension_serializer)

let newSessionTicket13_extensions_parser = newSessionTicket13_extensions'_parser `LP.parse_synth` synth_newSessionTicket13_extensions 

noextract let newSessionTicket13_extensions'_serializer : LP.serializer newSessionTicket13_extensions'_parser =
  LP.serialize_bounded_vldata_strong 0 65534 (LP.serialize_list _ newSessionTicketExtension_serializer)

let newSessionTicket13_extensions_serializer = LP.serialize_synth _ synth_newSessionTicket13_extensions newSessionTicket13_extensions'_serializer synth_newSessionTicket13_extensions_recip ()

let newSessionTicket13_extensions_bytesize (x:newSessionTicket13_extensions) : GTot nat = Seq.length (newSessionTicket13_extensions_serializer x)

let newSessionTicket13_extensions_bytesize_eq x = ()

inline_for_extraction noextract let newSessionTicket13_extensions'_parser32 : LS.parser32 newSessionTicket13_extensions'_parser =
  LS.parse32_bounded_vldata_strong 0 0ul 65534 65534ul (LP.serialize_list _ newSessionTicketExtension_serializer) (LS.parse32_list newSessionTicketExtension_parser32)

let newSessionTicket13_extensions_parser32 = LS.parse32_synth' _ synth_newSessionTicket13_extensions newSessionTicket13_extensions'_parser32 ()

inline_for_extraction noextract let newSessionTicket13_extensions'_serializer32 : LS.serializer32 newSessionTicket13_extensions'_serializer =
  LS.serialize32_bounded_vldata_strong 0 65534 (LS.partial_serialize32_list _ newSessionTicketExtension_serializer newSessionTicketExtension_serializer32 ())

let newSessionTicket13_extensions_serializer32 = LS.serialize32_synth' _ synth_newSessionTicket13_extensions _ newSessionTicket13_extensions'_serializer32 synth_newSessionTicket13_extensions_recip ()

inline_for_extraction noextract let newSessionTicket13_extensions'_size32 : LSZ.size32 newSessionTicket13_extensions'_serializer =
  LSZ.size32_bounded_vldata_strong 0 65534 (LSZ.size32_list newSessionTicketExtension_size32 ()) 2ul

let newSessionTicket13_extensions_size32 = LSZ.size32_synth' _ synth_newSessionTicket13_extensions _ newSessionTicket13_extensions'_size32 synth_newSessionTicket13_extensions_recip ()

inline_for_extraction let newSessionTicket13_extensions'_validator : LL.validator newSessionTicket13_extensions'_parser =
  LL.validate_bounded_vldata_strong 0 65534 (LP.serialize_list _ newSessionTicketExtension_serializer) (LL.validate_list newSessionTicketExtension_validator ()) ()
/
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.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.NewSessionTicket13_extensions.fst
LowParse.Low.Base.validator MiTLS.Parsers.NewSessionTicket13_extensions.newSessionTicket13_extensions_parser

LowParse.Low.Combinators.validate_synth LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' LowParse.Spec.List.parse_list_kind MiTLS.Parsers.NewSessionTicket13_extensions.newSessionTicket13_extensions' MiTLS.Parsers.NewSessionTicket13_extensions.newSessionTicket13_extensions MiTLS.Parsers.NewSessionTicket13_extensions.newSessionTicket13_extensions'_parser MiTLS.Parsers.NewSessionTicket13_extensions.newSessionTicket13_extensions'_validator MiTLS.Parsers.NewSessionTicket13_extensions.synth_newSessionTicket13_extensions
let newSessionTicket13_extensions_validator =
  
LL.validate_synth newSessionTicket13_extensions'_validator synth_newSessionTicket13_extensions ()