val certificate12_serializer32: LS.serializer32 certificate12_serializer
val certificate12_serializer32: LS.serializer32 certificate12_serializer
let certificate12_serializer32 = LS.serialize32_synth' _ synth_certificate12 _ certificate12'_serializer32 synth_certificate12_recip ()
module MiTLS.Parsers.Certificate12

(* 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 certificate12_list_bytesize x = Seq.length (LP.serialize (LP.serialize_list _ aSN1Cert_serializer) x)

let certificate12_list_bytesize_nil = LP.serialize_list_nil aSN1Cert_parser aSN1Cert_serializer

let certificate12_list_bytesize_cons x y = LP.serialize_list_cons aSN1Cert_parser aSN1Cert_serializer x y; (aSN1Cert_bytesize_eq (x))

let certificate12_list_bytesize_eq l = LL.serialized_list_length_eq_length_serialize_list aSN1Cert_serializer l

let check_certificate12_list_bytesize l =
  let x = LSZ.size32_list aSN1Cert_size32 () l in
  0ul `U32.lte` x && x `U32.lte` 16777215ul

type certificate12' = LP.parse_bounded_vldata_strong_t 0 16777215 (LP.serialize_list _ aSN1Cert_serializer)

inline_for_extraction let synth_certificate12 (x: certificate12') : Tot certificate12 = x

inline_for_extraction let synth_certificate12_recip (x: certificate12) : Tot certificate12' = x

noextract let certificate12'_parser : LP.parser _ certificate12' =
  LP.parse_bounded_vldata_strong 0 16777215 (LP.serialize_list _ aSN1Cert_serializer)

let certificate12_parser = certificate12'_parser `LP.parse_synth` synth_certificate12 

noextract let certificate12'_serializer : LP.serializer certificate12'_parser =
  LP.serialize_bounded_vldata_strong 0 16777215 (LP.serialize_list _ aSN1Cert_serializer)

let certificate12_serializer = LP.serialize_synth _ synth_certificate12 certificate12'_serializer synth_certificate12_recip ()

let certificate12_bytesize (x:certificate12) : GTot nat = Seq.length (certificate12_serializer x)

let certificate12_bytesize_eq x = ()

inline_for_extraction noextract let certificate12'_parser32 : LS.parser32 certificate12'_parser =
  LS.parse32_bounded_vldata_strong 0 0ul 16777215 16777215ul (LP.serialize_list _ aSN1Cert_serializer) (LS.parse32_list aSN1Cert_parser32)

let certificate12_parser32 = LS.parse32_synth' _ synth_certificate12 certificate12'_parser32 ()

inline_for_extraction noextract let certificate12'_serializer32 : LS.serializer32 certificate12'_serializer =
  LS.serialize32_bounded_vldata_strong 0 16777215 (LS.partial_serialize32_list _ aSN1Cert_serializer aSN1Cert_serializer32 ())
/
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.Certificate12.fst
LowParse.SLow.Base.serializer32 MiTLS.Parsers.Certificate12.certificate12_serializer
LowParse.SLow.Combinators.serialize32_synth' LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' LowParse.Spec.List.parse_list_kind MiTLS.Parsers.Certificate12.certificate12' MiTLS.Parsers.Certificate12.certificate12 MiTLS.Parsers.Certificate12.certificate12'_parser MiTLS.Parsers.Certificate12.synth_certificate12 MiTLS.Parsers.Certificate12.certificate12'_serializer MiTLS.Parsers.Certificate12.certificate12'_serializer32 MiTLS.Parsers.Certificate12.synth_certificate12_recip
let certificate12_serializer32 =
  
LS.serialize32_synth' _
  synth_certificate12
  _
  certificate12'_serializer32
  synth_certificate12_recip
  ()