val encryptedExtension_e_server_name_bytesize_eqn (x: encryptedExtension_e_server_name) : Lemma (encryptedExtension_e_server_name_bytesize x == 2 + 0) [SMTPat (encryptedExtension_e_server_name_bytesize x)]
val encryptedExtension_e_server_name_bytesize_eqn (x: encryptedExtension_e_server_name) : Lemma (encryptedExtension_e_server_name_bytesize x == 2 + 0) [SMTPat (encryptedExtension_e_server_name_bytesize x)]
let encryptedExtension_e_server_name_bytesize_eqn x =
  (assert (FStar.Seq.length (LP.serialize LP.serialize_empty (x)) == 0))
module MiTLS.Parsers.EncryptedExtension_e_server_name

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

let encryptedExtension_e_server_name_serializer =
  LP.serialize_bounded_vldata 0 65535 LP.serialize_empty

let encryptedExtension_e_server_name_bytesize (x:encryptedExtension_e_server_name) : GTot nat = Seq.length (encryptedExtension_e_server_name_serializer x)

let encryptedExtension_e_server_name_bytesize_eq x = ()

let encryptedExtension_e_server_name_parser32 =
  LS.parse32_bounded_vldata 0 0ul 65535 65535ul LS.parse32_empty

let encryptedExtension_e_server_name_serializer32 =
  LS.serialize32_bounded_vldata 0 65535 LS.serialize32_empty

let encryptedExtension_e_server_name_size32 =
  LSZ.size32_bounded_vldata 0 65535 LSZ.size32_empty 2ul

let encryptedExtension_e_server_name_validator =
  LL.validate_bounded_vldata 0 65535 (LL.validate_empty ()) ()

let encryptedExtension_e_server_name_finalize #_ #_ input pos =
  let h = HST.get () in
  [@inline_let] let _ = LL.valid_facts LL.parse_empty h input (pos `U32.add` 2ul) in
  LL.finalize_bounded_vldata 0 65535 LL.parse_empty input pos (pos `U32.add` 2ul)
/
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_name.fst
x: MiTLS.Parsers.EncryptedExtension_e_server_name.encryptedExtension_e_server_name
  -> FStar.Pervasives.Lemma
      (ensures
        MiTLS.Parsers.EncryptedExtension_e_server_name.encryptedExtension_e_server_name_bytesize x ==
        2 + 0)
      [
        SMTPat (MiTLS.Parsers.EncryptedExtension_e_server_name.encryptedExtension_e_server_name_bytesize
              x)
      ]
MiTLS.Parsers.EncryptedExtension_e_server_name.encryptedExtension_e_server_name Prims._assert Prims.eq2 Prims.int FStar.Seq.Base.length LowParse.Bytes.byte LowParse.Spec.Base.serialize LowParse.Spec.Combinators.parse_ret_kind Prims.unit LowParse.Spec.Combinators.parse_empty LowParse.Spec.Combinators.serialize_empty
let encryptedExtension_e_server_name_bytesize_eqn x =
  
(assert (FStar.Seq.length (LP.serialize LP.serialize_empty (x)) == 0))