val certificateRequestExtension_e_status_request_accessor : LL.accessor certificateRequestExtension_e_status_request_gaccessor
val certificateRequestExtension_e_status_request_accessor : LL.accessor certificateRequestExtension_e_status_request_gaccessor
let certificateRequestExtension_e_status_request_accessor =
  LL.accessor_ext
    (LL.accessor_compose
      (LL.accessor_synth certificateRequestExtension_e_status_request'_parser synth_certificateRequestExtension_e_status_request synth_certificateRequestExtension_e_status_request_recip ())
      (LL.accessor_bounded_vldata_strong_payload 0 65535 certificateStatusRequest_serializer)
      ()
    )
    certificateRequestExtension_e_status_request_clens
    ()
module MiTLS.Parsers.CertificateRequestExtension_e_status_request

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

type certificateRequestExtension_e_status_request' = LP.parse_bounded_vldata_strong_t 0 65535 certificateStatusRequest_serializer

inline_for_extraction let synth_certificateRequestExtension_e_status_request (x: certificateRequestExtension_e_status_request') : Tot certificateRequestExtension_e_status_request =
  [@inline_let] let _ = (certificateStatusRequest_bytesize_eq (x)) in x

inline_for_extraction let synth_certificateRequestExtension_e_status_request_recip (x: certificateRequestExtension_e_status_request) : Tot certificateRequestExtension_e_status_request' =
  [@inline_let] let _ = (certificateStatusRequest_bytesize_eq (x)) in x

noextract let certificateRequestExtension_e_status_request'_parser : LP.parser _ certificateRequestExtension_e_status_request' =
  LP.parse_bounded_vldata_strong 0 65535 certificateStatusRequest_serializer

let certificateRequestExtension_e_status_request_parser = LP.parse_synth certificateRequestExtension_e_status_request'_parser synth_certificateRequestExtension_e_status_request

noextract let certificateRequestExtension_e_status_request'_serializer : LP.serializer certificateRequestExtension_e_status_request'_parser =
  LP.serialize_bounded_vldata_strong 0 65535 certificateStatusRequest_serializer

let certificateRequestExtension_e_status_request_serializer = LP.serialize_synth _ synth_certificateRequestExtension_e_status_request certificateRequestExtension_e_status_request'_serializer synth_certificateRequestExtension_e_status_request_recip ()

let certificateRequestExtension_e_status_request_bytesize (x:certificateRequestExtension_e_status_request) : GTot nat = Seq.length (certificateRequestExtension_e_status_request_serializer x)

let certificateRequestExtension_e_status_request_bytesize_eq x = ()

inline_for_extraction let certificateRequestExtension_e_status_request'_parser32 : LS.parser32 certificateRequestExtension_e_status_request'_parser =
  LS.parse32_bounded_vldata_strong 0 0ul 65535 65535ul certificateStatusRequest_serializer certificateStatusRequest_parser32

let certificateRequestExtension_e_status_request_parser32 = LS.parse32_synth' _ synth_certificateRequestExtension_e_status_request certificateRequestExtension_e_status_request'_parser32 ()

inline_for_extraction noextract let certificateRequestExtension_e_status_request'_serializer32 : LS.serializer32 certificateRequestExtension_e_status_request'_serializer =
  LS.serialize32_bounded_vldata_strong 0 65535 certificateStatusRequest_serializer32

let certificateRequestExtension_e_status_request_serializer32 = LS.serialize32_synth' _ synth_certificateRequestExtension_e_status_request _ certificateRequestExtension_e_status_request'_serializer32 synth_certificateRequestExtension_e_status_request_recip ()

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

let certificateRequestExtension_e_status_request_size32 = LSZ.size32_synth' _ synth_certificateRequestExtension_e_status_request _ certificateRequestExtension_e_status_request'_size32 synth_certificateRequestExtension_e_status_request_recip ()

inline_for_extraction let certificateRequestExtension_e_status_request'_validator : LL.validator certificateRequestExtension_e_status_request'_parser =
  LL.validate_bounded_vldata_strong 0 65535 certificateStatusRequest_serializer certificateStatusRequest_validator ()

let certificateRequestExtension_e_status_request_validator = LL.validate_synth certificateRequestExtension_e_status_request'_validator synth_certificateRequestExtension_e_status_request ()

inline_for_extraction let certificateRequestExtension_e_status_request'_jumper : LL.jumper certificateRequestExtension_e_status_request'_parser =
  LL.jump_bounded_vldata_strong 0 65535 certificateStatusRequest_serializer ()

let certificateRequestExtension_e_status_request_jumper = LL.jump_synth certificateRequestExtension_e_status_request'_jumper synth_certificateRequestExtension_e_status_request ()

let certificateRequestExtension_e_status_request_finalize #_ #_ input pos pos' =
  let h = HST.get () in
  [@inline_let] let _ =
    let x = LL.contents certificateStatusRequest_parser h input (pos `U32.add` 2ul) in
    (certificateStatusRequest_bytesize_eq (x))
  in
  LL.finalize_bounded_vldata_strong 0 65535 certificateStatusRequest_serializer input pos pos';
  let h = HST.get () in
  LL.valid_synth h certificateRequestExtension_e_status_request'_parser synth_certificateRequestExtension_e_status_request input pos

let certificateRequestExtension_e_status_request_gaccessor =
  LL.gaccessor_ext
    (LL.gaccessor_compose
      (LL.gaccessor_synth certificateRequestExtension_e_status_request'_parser synth_certificateRequestExtension_e_status_request synth_certificateRequestExtension_e_status_request_recip ())
      (LL.gaccessor_bounded_vldata_strong_payload 0 65535 certificateStatusRequest_serializer)
    )
    certificateRequestExtension_e_status_request_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_status_request.fst
LowParse.Low.Base.accessor MiTLS.Parsers.CertificateRequestExtension_e_status_request.certificateRequestExtension_e_status_request_gaccessor

LowParse.Low.Base.accessor_ext LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' MiTLS.Parsers.CertificateStatusRequest.certificateStatusRequest_parser_kind MiTLS.Parsers.CertificateRequestExtension_e_status_request.certificateRequestExtension_e_status_request LowParse.Spec.Combinators.parse_synth MiTLS.Parsers.CertificateRequestExtension_e_status_request.certificateRequestExtension_e_status_request' MiTLS.Parsers.CertificateRequestExtension_e_status_request.certificateRequestExtension_e_status_request'_parser MiTLS.Parsers.CertificateRequestExtension_e_status_request.synth_certificateRequestExtension_e_status_request MiTLS.Parsers.CertificateStatusRequest.certificateStatusRequest MiTLS.Parsers.CertificateStatusRequest.certificateStatusRequest_parser LowParse.Low.Base.Spec.clens_compose LowParse.Low.Combinators.clens_synth MiTLS.Parsers.CertificateRequestExtension_e_status_request.synth_certificateRequestExtension_e_status_request_recip LowParse.Low.VLData.clens_bounded_vldata_strong_payload MiTLS.Parsers.CertificateStatusRequest.certificateStatusRequest_serializer LowParse.Low.Base.Spec.gaccessor_compose LowParse.Low.Combinators.gaccessor_synth LowParse.Low.VLData.gaccessor_bounded_vldata_strong_payload LowParse.Low.Base.accessor_compose LowParse.Low.Combinators.accessor_synth LowParse.Low.VLData.accessor_bounded_vldata_strong_payload MiTLS.Parsers.CertificateRequestExtension_e_status_request.certificateRequestExtension_e_status_request_clens
let certificateRequestExtension_e_status_request_accessor =
  
LL.accessor_ext (LL.accessor_compose (LL.accessor_synth certificateRequestExtension_e_status_request'_parser
          synth_certificateRequestExtension_e_status_request
          synth_certificateRequestExtension_e_status_request_recip
          ())
      (LL.accessor_bounded_vldata_strong_payload 0 65535 certificateStatusRequest_serializer)
      ())
  certificateRequestExtension_e_status_request_clens
  ()