val certificateRequestExtension_e_oid_filters_bytesize_eqn (x: certificateRequestExtension_e_oid_filters) : Lemma (certificateRequestExtension_e_oid_filters_bytesize x == 2 + (oIDFilterExtension_bytesize (x))) [SMTPat (certificateRequestExtension_e_oid_filters_bytesize x)]
val certificateRequestExtension_e_oid_filters_bytesize_eqn (x: certificateRequestExtension_e_oid_filters) : Lemma (certificateRequestExtension_e_oid_filters_bytesize x == 2 + (oIDFilterExtension_bytesize (x))) [SMTPat (certificateRequestExtension_e_oid_filters_bytesize x)]
let certificateRequestExtension_e_oid_filters_bytesize_eqn x =
  LP.serialize_synth_eq _ synth_certificateRequestExtension_e_oid_filters certificateRequestExtension_e_oid_filters'_serializer synth_certificateRequestExtension_e_oid_filters_recip () x;
  (oIDFilterExtension_bytesize_eq (x))
module MiTLS.Parsers.CertificateRequestExtension_e_oid_filters

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

type certificateRequestExtension_e_oid_filters' = LP.parse_bounded_vldata_strong_t 0 65535 oIDFilterExtension_serializer

inline_for_extraction let synth_certificateRequestExtension_e_oid_filters (x: certificateRequestExtension_e_oid_filters') : Tot certificateRequestExtension_e_oid_filters =
  [@inline_let] let _ = (oIDFilterExtension_bytesize_eq (x)) in x

inline_for_extraction let synth_certificateRequestExtension_e_oid_filters_recip (x: certificateRequestExtension_e_oid_filters) : Tot certificateRequestExtension_e_oid_filters' =
  [@inline_let] let _ = (oIDFilterExtension_bytesize_eq (x)) in x

noextract let certificateRequestExtension_e_oid_filters'_parser : LP.parser _ certificateRequestExtension_e_oid_filters' =
  LP.parse_bounded_vldata_strong 0 65535 oIDFilterExtension_serializer

let certificateRequestExtension_e_oid_filters_parser = LP.parse_synth certificateRequestExtension_e_oid_filters'_parser synth_certificateRequestExtension_e_oid_filters

noextract let certificateRequestExtension_e_oid_filters'_serializer : LP.serializer certificateRequestExtension_e_oid_filters'_parser =
  LP.serialize_bounded_vldata_strong 0 65535 oIDFilterExtension_serializer

let certificateRequestExtension_e_oid_filters_serializer = LP.serialize_synth _ synth_certificateRequestExtension_e_oid_filters certificateRequestExtension_e_oid_filters'_serializer synth_certificateRequestExtension_e_oid_filters_recip ()

let certificateRequestExtension_e_oid_filters_bytesize (x:certificateRequestExtension_e_oid_filters) : GTot nat = Seq.length (certificateRequestExtension_e_oid_filters_serializer x)

let certificateRequestExtension_e_oid_filters_bytesize_eq x = ()

inline_for_extraction let certificateRequestExtension_e_oid_filters'_parser32 : LS.parser32 certificateRequestExtension_e_oid_filters'_parser =
  LS.parse32_bounded_vldata_strong 0 0ul 65535 65535ul oIDFilterExtension_serializer oIDFilterExtension_parser32

let certificateRequestExtension_e_oid_filters_parser32 = LS.parse32_synth' _ synth_certificateRequestExtension_e_oid_filters certificateRequestExtension_e_oid_filters'_parser32 ()

inline_for_extraction noextract let certificateRequestExtension_e_oid_filters'_serializer32 : LS.serializer32 certificateRequestExtension_e_oid_filters'_serializer =
  LS.serialize32_bounded_vldata_strong 0 65535 oIDFilterExtension_serializer32

let certificateRequestExtension_e_oid_filters_serializer32 = LS.serialize32_synth' _ synth_certificateRequestExtension_e_oid_filters _ certificateRequestExtension_e_oid_filters'_serializer32 synth_certificateRequestExtension_e_oid_filters_recip ()

inline_for_extraction noextract let certificateRequestExtension_e_oid_filters'_size32 : LSZ.size32 certificateRequestExtension_e_oid_filters'_serializer =
  LSZ.size32_bounded_vldata_strong 0 65535 oIDFilterExtension_size32 2ul

let certificateRequestExtension_e_oid_filters_size32 = LSZ.size32_synth' _ synth_certificateRequestExtension_e_oid_filters _ certificateRequestExtension_e_oid_filters'_size32 synth_certificateRequestExtension_e_oid_filters_recip ()

inline_for_extraction let certificateRequestExtension_e_oid_filters'_validator : LL.validator certificateRequestExtension_e_oid_filters'_parser =
  LL.validate_bounded_vldata_strong 0 65535 oIDFilterExtension_serializer oIDFilterExtension_validator ()

let certificateRequestExtension_e_oid_filters_validator = LL.validate_synth certificateRequestExtension_e_oid_filters'_validator synth_certificateRequestExtension_e_oid_filters ()

inline_for_extraction let certificateRequestExtension_e_oid_filters'_jumper : LL.jumper certificateRequestExtension_e_oid_filters'_parser =
  LL.jump_bounded_vldata_strong 0 65535 oIDFilterExtension_serializer ()

let certificateRequestExtension_e_oid_filters_jumper = LL.jump_synth certificateRequestExtension_e_oid_filters'_jumper synth_certificateRequestExtension_e_oid_filters ()

let certificateRequestExtension_e_oid_filters_finalize #_ #_ input pos pos' =
  let h = HST.get () in
  [@inline_let] let _ =
    let x = LL.contents oIDFilterExtension_parser h input (pos `U32.add` 2ul) in
    (oIDFilterExtension_bytesize_eq (x))
  in
  LL.finalize_bounded_vldata_strong 0 65535 oIDFilterExtension_serializer input pos pos';
  let h = HST.get () in
  LL.valid_synth h certificateRequestExtension_e_oid_filters'_parser synth_certificateRequestExtension_e_oid_filters input pos

let certificateRequestExtension_e_oid_filters_gaccessor =
  LL.gaccessor_ext
    (LL.gaccessor_compose
      (LL.gaccessor_synth certificateRequestExtension_e_oid_filters'_parser synth_certificateRequestExtension_e_oid_filters synth_certificateRequestExtension_e_oid_filters_recip ())
      (LL.gaccessor_bounded_vldata_strong_payload 0 65535 oIDFilterExtension_serializer)
    )
    certificateRequestExtension_e_oid_filters_clens
    ()

let certificateRequestExtension_e_oid_filters_accessor =
  LL.accessor_ext
    (LL.accessor_compose
      (LL.accessor_synth certificateRequestExtension_e_oid_filters'_parser synth_certificateRequestExtension_e_oid_filters synth_certificateRequestExtension_e_oid_filters_recip ())
      (LL.accessor_bounded_vldata_strong_payload 0 65535 oIDFilterExtension_serializer)
      ()
    )
    certificateRequestExtension_e_oid_filters_clens
    ()
/
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.CertificateRequestExtension_e_oid_filters.fst
x: MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.certificateRequestExtension_e_oid_filters
  -> FStar.Pervasives.Lemma
      (ensures
        MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.certificateRequestExtension_e_oid_filters_bytesize
          x ==
        2 + MiTLS.Parsers.OIDFilterExtension.oIDFilterExtension_bytesize x)
      [
        SMTPat (MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.certificateRequestExtension_e_oid_filters_bytesize
              x)
      ]
MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.certificateRequestExtension_e_oid_filters MiTLS.Parsers.OIDFilterExtension.oIDFilterExtension_bytesize_eq Prims.unit LowParse.Spec.Combinators.serialize_synth_eq LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' MiTLS.Parsers.OIDFilterExtension.oIDFilterExtension_parser_kind MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.certificateRequestExtension_e_oid_filters' MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.certificateRequestExtension_e_oid_filters'_parser MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.synth_certificateRequestExtension_e_oid_filters MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.certificateRequestExtension_e_oid_filters'_serializer MiTLS.Parsers.CertificateRequestExtension_e_oid_filters.synth_certificateRequestExtension_e_oid_filters_recip
let certificateRequestExtension_e_oid_filters_bytesize_eqn x =
  
LP.serialize_synth_eq _
  synth_certificateRequestExtension_e_oid_filters
  certificateRequestExtension_e_oid_filters'_serializer
  synth_certificateRequestExtension_e_oid_filters_recip
  ()
  x;
(oIDFilterExtension_bytesize_eq (x))