val clientHelloExtension_e_certificate_authorities_bytesize (x:clientHelloExtension_e_certificate_authorities) : GTot nat
val clientHelloExtension_e_certificate_authorities_bytesize (x:clientHelloExtension_e_certificate_authorities) : GTot nat
let clientHelloExtension_e_certificate_authorities_bytesize (x:clientHelloExtension_e_certificate_authorities) : GTot nat = Seq.length (clientHelloExtension_e_certificate_authorities_serializer x)
module MiTLS.Parsers.ClientHelloExtension_e_certificate_authorities

(* 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 check_clientHelloExtension_e_certificate_authorities_bytesize x =
  [@inline_let] let _ = (certificateAuthoritiesExtension_bytesize_eq (x)) in
  let l = certificateAuthoritiesExtension_size32 x in
  0ul `U32.lte` l && l `U32.lte` 65535ul

type clientHelloExtension_e_certificate_authorities' = LP.parse_bounded_vldata_strong_t 0 65535 certificateAuthoritiesExtension_serializer

inline_for_extraction let synth_clientHelloExtension_e_certificate_authorities (x: clientHelloExtension_e_certificate_authorities') : Tot clientHelloExtension_e_certificate_authorities =
  [@inline_let] let _ = (certificateAuthoritiesExtension_bytesize_eq (x)) in x

inline_for_extraction let synth_clientHelloExtension_e_certificate_authorities_recip (x: clientHelloExtension_e_certificate_authorities) : Tot clientHelloExtension_e_certificate_authorities' =
  [@inline_let] let _ = (certificateAuthoritiesExtension_bytesize_eq (x)) in x

noextract let clientHelloExtension_e_certificate_authorities'_parser : LP.parser _ clientHelloExtension_e_certificate_authorities' =
  LP.parse_bounded_vldata_strong 0 65535 certificateAuthoritiesExtension_serializer

let clientHelloExtension_e_certificate_authorities_parser = LP.parse_synth clientHelloExtension_e_certificate_authorities'_parser synth_clientHelloExtension_e_certificate_authorities

noextract let clientHelloExtension_e_certificate_authorities'_serializer : LP.serializer clientHelloExtension_e_certificate_authorities'_parser =
  LP.serialize_bounded_vldata_strong 0 65535 certificateAuthoritiesExtension_serializer

let clientHelloExtension_e_certificate_authorities_serializer = LP.serialize_synth _ synth_clientHelloExtension_e_certificate_authorities clientHelloExtension_e_certificate_authorities'_serializer synth_clientHelloExtension_e_certificate_authorities_recip ()
/
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.ClientHelloExtension_e_certificate_authorities.fst

    x:
      MiTLS.Parsers.ClientHelloExtension_e_certificate_authorities.clientHelloExtension_e_certificate_authorities
  -> Prims.GTot Prims.nat
MiTLS.Parsers.ClientHelloExtension_e_certificate_authorities.clientHelloExtension_e_certificate_authorities FStar.Seq.Base.length LowParse.Bytes.byte MiTLS.Parsers.ClientHelloExtension_e_certificate_authorities.clientHelloExtension_e_certificate_authorities_serializer Prims.nat
let clientHelloExtension_e_certificate_authorities_bytesize
      (x: clientHelloExtension_e_certificate_authorities)
    : GTot nat =
  
Seq.length (clientHelloExtension_e_certificate_authorities_serializer x)