val finalize_signatureSchemeList (#rrel: _) (#rel: _) (sl: LL.slice rrel rel) (pos pos' : U32.t) : HST.Stack unit
(requires (fun h ->
  U32.v pos + 2 < 4294967296 /\
  LL.writable sl.LL.base (U32.v pos) (U32.v pos + 2) h /\
  LL.valid_list signatureScheme_parser h sl (pos `U32.add` 2ul) pos' /\ (
  let count = L.length (LL.contents_list signatureScheme_parser h sl (pos `U32.add` 2ul) pos') in
  let len = U32.v pos' - (U32.v pos + 2) in
  ((2 <= len /\ len <= 65534) \/ (1 <= count /\ count <= 32767))
)))
(ensures (fun h _ h' ->
  B.modifies (LL.loc_slice_from_to sl pos (pos `U32.add` 2ul)) h h' /\ (
  let l = LL.contents_list signatureScheme_parser h sl (pos `U32.add` 2ul) pos' in
  1 <= L.length l /\ L.length l <= 32767 /\
  LL.valid_content_pos signatureSchemeList_parser h' sl pos l pos'
)))
val finalize_signatureSchemeList (#rrel: _) (#rel: _) (sl: LL.slice rrel rel) (pos pos' : U32.t) : HST.Stack unit
(requires (fun h ->
  U32.v pos + 2 < 4294967296 /\
  LL.writable sl.LL.base (U32.v pos) (U32.v pos + 2) h /\
  LL.valid_list signatureScheme_parser h sl (pos `U32.add` 2ul) pos' /\ (
  let count = L.length (LL.contents_list signatureScheme_parser h sl (pos `U32.add` 2ul) pos') in
  let len = U32.v pos' - (U32.v pos + 2) in
  ((2 <= len /\ len <= 65534) \/ (1 <= count /\ count <= 32767))
)))
(ensures (fun h _ h' ->
  B.modifies (LL.loc_slice_from_to sl pos (pos `U32.add` 2ul)) h h' /\ (
  let l = LL.contents_list signatureScheme_parser h sl (pos `U32.add` 2ul) pos' in
  1 <= L.length l /\ L.length l <= 32767 /\
  LL.valid_content_pos signatureSchemeList_parser h' sl pos l pos'
)))
let finalize_signatureSchemeList #_ #_ sl pos pos' =
  LL.finalize_vlarray 2 65534 signatureScheme_serializer 1 32767 sl pos pos'
module MiTLS.Parsers.SignatureSchemeList

(* 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"

private let pre : squash (LP.vldata_vlarray_precond 2 65534 signatureScheme_parser 1 32767 == true) = _ by (FStar.Tactics.trefl ())

let signatureSchemeList_parser =
  LP.parse_vlarray 2 65534 signatureScheme_serializer 1 32767 ()

let signatureSchemeList_serializer =
  LP.serialize_vlarray 2 65534 signatureScheme_serializer 1 32767 ()

let signatureSchemeList_bytesize (x:signatureSchemeList) : GTot nat = Seq.length (signatureSchemeList_serializer x)

let signatureSchemeList_bytesize_eq x = ()

let signatureSchemeList_parser32 =
  LS.parse32_vlarray 2 2ul 65534 65534ul signatureScheme_serializer signatureScheme_parser32 1 32767 ()

let signatureSchemeList_serializer32 =
  LS.serialize32_vlarray 2 65534 #_ #_ #_ #signatureScheme_serializer signatureScheme_serializer32 1 32767 ()

let signatureSchemeList_size32 =
  [@inline_let] let _ = assert_norm (LP.vldata_vlarray_precond 2 65534 signatureScheme_parser 1 32767 == true) in
  LSZ.size32_vlarray 2 65534 signatureScheme_serializer 1 32767 () 2ul 2ul

let signatureSchemeList_validator =
 LL.validate_vlarray 2 65534 signatureScheme_serializer signatureScheme_validator 1 32767 () 2ul

let signatureSchemeList_jumper =
 LL.jump_vlarray 2 65534 signatureScheme_serializer 1 32767 () 2ul

let _ : squash (signatureSchemeList == LL.vlarray signatureScheme 1 32767) = _ by (FStar.Tactics.trefl ())
/
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.Tactics.Effect.fsti.checked FStar.Tactics.fst.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.SignatureSchemeList.fst
sl: 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.Array.finalize_vlarray MiTLS.Parsers.SignatureScheme.signatureScheme_parser_kind MiTLS.Parsers.SignatureScheme.signatureScheme MiTLS.Parsers.SignatureScheme.signatureScheme_parser MiTLS.Parsers.SignatureScheme.signatureScheme_serializer Prims.unit
let finalize_signatureSchemeList #_ #_ sl pos pos' =
  
LL.finalize_vlarray 2 65534 signatureScheme_serializer 1 32767 sl pos pos'