val encryptedExtension_e_server_certificate_type_finalize (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) (pos' : U32.t) : HST.Stack unit
  (requires (fun h ->
    U32.v pos + 2 <= U32.v input.LL.len /\
    LL.writable input.LL.base (U32.v pos) (U32.v pos + 2) h /\
    LL.valid_pos serverCertTypeExtension_parser h input (pos `U32.add` 2ul) pos'
  ))
  (ensures (fun h _ h' ->
    B.modifies (LL.loc_slice_from_to input pos (pos `U32.add` 2ul)) h h' /\
    LL.valid_content_pos encryptedExtension_e_server_certificate_type_parser h' input pos (LL.contents serverCertTypeExtension_parser h input (pos `U32.add` 2ul)) pos'
  ))
val encryptedExtension_e_server_certificate_type_finalize (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) (pos' : U32.t) : HST.Stack unit
  (requires (fun h ->
    U32.v pos + 2 <= U32.v input.LL.len /\
    LL.writable input.LL.base (U32.v pos) (U32.v pos + 2) h /\
    LL.valid_pos serverCertTypeExtension_parser h input (pos `U32.add` 2ul) pos'
  ))
  (ensures (fun h _ h' ->
    B.modifies (LL.loc_slice_from_to input pos (pos `U32.add` 2ul)) h h' /\
    LL.valid_content_pos encryptedExtension_e_server_certificate_type_parser h' input pos (LL.contents serverCertTypeExtension_parser h input (pos `U32.add` 2ul)) pos'
  ))
let encryptedExtension_e_server_certificate_type_finalize #_ #_ input pos pos' =
  LL.finalize_bounded_vldata 0 65535 serverCertTypeExtension_parser input pos pos'
module MiTLS.Parsers.EncryptedExtension_e_server_certificate_type

(* 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 encryptedExtension_e_server_certificate_type_parser =
  LP.parse_bounded_vldata 0 65535 serverCertTypeExtension_parser

let encryptedExtension_e_server_certificate_type_serializer =
  LP.serialize_bounded_vldata 0 65535 serverCertTypeExtension_serializer

let encryptedExtension_e_server_certificate_type_bytesize (x:encryptedExtension_e_server_certificate_type) : GTot nat = Seq.length (encryptedExtension_e_server_certificate_type_serializer x)

let encryptedExtension_e_server_certificate_type_bytesize_eq x = ()

let encryptedExtension_e_server_certificate_type_parser32 =
  LS.parse32_bounded_vldata 0 0ul 65535 65535ul serverCertTypeExtension_parser32

let encryptedExtension_e_server_certificate_type_serializer32 =
  LS.serialize32_bounded_vldata 0 65535 serverCertTypeExtension_serializer32

let encryptedExtension_e_server_certificate_type_size32 =
  LSZ.size32_bounded_vldata 0 65535 serverCertTypeExtension_size32 2ul

let encryptedExtension_e_server_certificate_type_validator =
  LL.validate_bounded_vldata 0 65535 serverCertTypeExtension_validator ()

let encryptedExtension_e_server_certificate_type_jumper =

  LL.jump_bounded_vldata 0 65535 serverCertTypeExtension_parser ()

let encryptedExtension_e_server_certificate_type_gaccessor = LL.gaccessor_bounded_vldata_payload 0 65535 serverCertTypeExtension_parser

let encryptedExtension_e_server_certificate_type_accessor = LL.accessor_bounded_vldata_payload 0 65535 serverCertTypeExtension_parser
/
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.EncryptedExtension_e_server_certificate_type.fst
input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> pos': FStar.UInt32.t
  -> FStar.HyperStack.ST.Stack Prims.unit
LowParse.Slice.srel LowParse.Bytes.byte LowParse.Slice.slice FStar.UInt32.t LowParse.Low.VLData.finalize_bounded_vldata MiTLS.Parsers.ServerCertTypeExtension.serverCertTypeExtension_parser_kind MiTLS.Parsers.ServerCertTypeExtension.serverCertTypeExtension MiTLS.Parsers.ServerCertTypeExtension.serverCertTypeExtension_parser Prims.unit
let encryptedExtension_e_server_certificate_type_finalize #_ #_ input pos pos' =
  
LL.finalize_bounded_vldata 0 65535 serverCertTypeExtension_parser input pos pos'