val certificateExtension_e_signed_certificate_timestamp_accessor : LL.accessor certificateExtension_e_signed_certificate_timestamp_gaccessor
val certificateExtension_e_signed_certificate_timestamp_accessor : LL.accessor certificateExtension_e_signed_certificate_timestamp_gaccessor
let certificateExtension_e_signed_certificate_timestamp_accessor =
  LL.accessor_ext
    (LL.accessor_compose
      (LL.accessor_synth certificateExtension_e_signed_certificate_timestamp'_parser synth_certificateExtension_e_signed_certificate_timestamp synth_certificateExtension_e_signed_certificate_timestamp_recip ())
      (LL.accessor_bounded_vldata_strong_payload 0 65535 signedCertificateTimestampList_serializer)
      ()
    )
    certificateExtension_e_signed_certificate_timestamp_clens
    ()
module MiTLS.Parsers.CertificateExtension_e_signed_certificate_timestamp

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

type certificateExtension_e_signed_certificate_timestamp' = LP.parse_bounded_vldata_strong_t 0 65535 signedCertificateTimestampList_serializer

inline_for_extraction let synth_certificateExtension_e_signed_certificate_timestamp (x: certificateExtension_e_signed_certificate_timestamp') : Tot certificateExtension_e_signed_certificate_timestamp =
  [@inline_let] let _ = (signedCertificateTimestampList_bytesize_eq (x)) in x

inline_for_extraction let synth_certificateExtension_e_signed_certificate_timestamp_recip (x: certificateExtension_e_signed_certificate_timestamp) : Tot certificateExtension_e_signed_certificate_timestamp' =
  [@inline_let] let _ = (signedCertificateTimestampList_bytesize_eq (x)) in x

noextract let certificateExtension_e_signed_certificate_timestamp'_parser : LP.parser _ certificateExtension_e_signed_certificate_timestamp' =
  LP.parse_bounded_vldata_strong 0 65535 signedCertificateTimestampList_serializer

let certificateExtension_e_signed_certificate_timestamp_parser = LP.parse_synth certificateExtension_e_signed_certificate_timestamp'_parser synth_certificateExtension_e_signed_certificate_timestamp

noextract let certificateExtension_e_signed_certificate_timestamp'_serializer : LP.serializer certificateExtension_e_signed_certificate_timestamp'_parser =
  LP.serialize_bounded_vldata_strong 0 65535 signedCertificateTimestampList_serializer

let certificateExtension_e_signed_certificate_timestamp_serializer = LP.serialize_synth _ synth_certificateExtension_e_signed_certificate_timestamp certificateExtension_e_signed_certificate_timestamp'_serializer synth_certificateExtension_e_signed_certificate_timestamp_recip ()

let certificateExtension_e_signed_certificate_timestamp_bytesize (x:certificateExtension_e_signed_certificate_timestamp) : GTot nat = Seq.length (certificateExtension_e_signed_certificate_timestamp_serializer x)

let certificateExtension_e_signed_certificate_timestamp_bytesize_eq x = ()

inline_for_extraction let certificateExtension_e_signed_certificate_timestamp'_parser32 : LS.parser32 certificateExtension_e_signed_certificate_timestamp'_parser =
  LS.parse32_bounded_vldata_strong 0 0ul 65535 65535ul signedCertificateTimestampList_serializer signedCertificateTimestampList_parser32

let certificateExtension_e_signed_certificate_timestamp_parser32 = LS.parse32_synth' _ synth_certificateExtension_e_signed_certificate_timestamp certificateExtension_e_signed_certificate_timestamp'_parser32 ()

inline_for_extraction noextract let certificateExtension_e_signed_certificate_timestamp'_serializer32 : LS.serializer32 certificateExtension_e_signed_certificate_timestamp'_serializer =
  LS.serialize32_bounded_vldata_strong 0 65535 signedCertificateTimestampList_serializer32

let certificateExtension_e_signed_certificate_timestamp_serializer32 = LS.serialize32_synth' _ synth_certificateExtension_e_signed_certificate_timestamp _ certificateExtension_e_signed_certificate_timestamp'_serializer32 synth_certificateExtension_e_signed_certificate_timestamp_recip ()

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

let certificateExtension_e_signed_certificate_timestamp_size32 = LSZ.size32_synth' _ synth_certificateExtension_e_signed_certificate_timestamp _ certificateExtension_e_signed_certificate_timestamp'_size32 synth_certificateExtension_e_signed_certificate_timestamp_recip ()

inline_for_extraction let certificateExtension_e_signed_certificate_timestamp'_validator : LL.validator certificateExtension_e_signed_certificate_timestamp'_parser =
  LL.validate_bounded_vldata_strong 0 65535 signedCertificateTimestampList_serializer signedCertificateTimestampList_validator ()

let certificateExtension_e_signed_certificate_timestamp_validator = LL.validate_synth certificateExtension_e_signed_certificate_timestamp'_validator synth_certificateExtension_e_signed_certificate_timestamp ()

inline_for_extraction let certificateExtension_e_signed_certificate_timestamp'_jumper : LL.jumper certificateExtension_e_signed_certificate_timestamp'_parser =
  LL.jump_bounded_vldata_strong 0 65535 signedCertificateTimestampList_serializer ()

let certificateExtension_e_signed_certificate_timestamp_jumper = LL.jump_synth certificateExtension_e_signed_certificate_timestamp'_jumper synth_certificateExtension_e_signed_certificate_timestamp ()

let certificateExtension_e_signed_certificate_timestamp_finalize #_ #_ input pos pos' =
  let h = HST.get () in
  [@inline_let] let _ =
    let x = LL.contents signedCertificateTimestampList_parser h input (pos `U32.add` 2ul) in
    (signedCertificateTimestampList_bytesize_eq (x))
  in
  LL.finalize_bounded_vldata_strong 0 65535 signedCertificateTimestampList_serializer input pos pos';
  let h = HST.get () in
  LL.valid_synth h certificateExtension_e_signed_certificate_timestamp'_parser synth_certificateExtension_e_signed_certificate_timestamp input pos

let certificateExtension_e_signed_certificate_timestamp_gaccessor =
  LL.gaccessor_ext
    (LL.gaccessor_compose
      (LL.gaccessor_synth certificateExtension_e_signed_certificate_timestamp'_parser synth_certificateExtension_e_signed_certificate_timestamp synth_certificateExtension_e_signed_certificate_timestamp_recip ())
      (LL.gaccessor_bounded_vldata_strong_payload 0 65535 signedCertificateTimestampList_serializer)
    )
    certificateExtension_e_signed_certificate_timestamp_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.CertificateExtension_e_signed_certificate_timestamp.fst
LowParse.Low.Base.accessor MiTLS.Parsers.CertificateExtension_e_signed_certificate_timestamp.certificateExtension_e_signed_certificate_timestamp_gaccessor

LowParse.Low.Base.accessor_ext LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' MiTLS.Parsers.SignedCertificateTimestampList.signedCertificateTimestampList_parser_kind MiTLS.Parsers.CertificateExtension_e_signed_certificate_timestamp.certificateExtension_e_signed_certificate_timestamp LowParse.Spec.Combinators.parse_synth MiTLS.Parsers.CertificateExtension_e_signed_certificate_timestamp.certificateExtension_e_signed_certificate_timestamp' MiTLS.Parsers.CertificateExtension_e_signed_certificate_timestamp.certificateExtension_e_signed_certificate_timestamp'_parser MiTLS.Parsers.CertificateExtension_e_signed_certificate_timestamp.synth_certificateExtension_e_signed_certificate_timestamp MiTLS.Parsers.SignedCertificateTimestampList.signedCertificateTimestampList MiTLS.Parsers.SignedCertificateTimestampList.signedCertificateTimestampList_parser LowParse.Low.Base.Spec.clens_compose LowParse.Low.Combinators.clens_synth MiTLS.Parsers.CertificateExtension_e_signed_certificate_timestamp.synth_certificateExtension_e_signed_certificate_timestamp_recip LowParse.Low.VLData.clens_bounded_vldata_strong_payload MiTLS.Parsers.SignedCertificateTimestampList.signedCertificateTimestampList_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.CertificateExtension_e_signed_certificate_timestamp.certificateExtension_e_signed_certificate_timestamp_clens
let certificateExtension_e_signed_certificate_timestamp_accessor =
  
LL.accessor_ext (LL.accessor_compose (LL.accessor_synth certificateExtension_e_signed_certificate_timestamp'_parser
          synth_certificateExtension_e_signed_certificate_timestamp
          synth_certificateExtension_e_signed_certificate_timestamp_recip
          ())
      (LL.accessor_bounded_vldata_strong_payload 0 65535 signedCertificateTimestampList_serializer)
      ())
  certificateExtension_e_signed_certificate_timestamp_clens
  ()