val clens_ticketContents12_master_secret:LL.clens ticketContents12 ticketContents12_master_secret
let clens_ticketContents12_master_secret : LL.clens ticketContents12 ticketContents12_master_secret = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.master_secret);
}
val clens_ticketContents12_master_secret:LL.clens ticketContents12 ticketContents12_master_secret
let clens_ticketContents12_master_secret:LL.clens ticketContents12 ticketContents12_master_secret =
{ LL.clens_cond = (fun _ -> True); LL.clens_get = (fun x -> x.master_secret) }
Parsers.TicketContents12.fsti.checked
prims.fst.checked Parsers.TicketContents12_master_secret.fsti.checked Parsers.ProtocolVersion.fsti.checked Parsers.CipherSuite.fsti.checked Parsers.Boolean.fsti.checked LowStar.Buffer.fst.checked LowParse.Spec.Base.fsti.checked LowParse.Spec.AllIntegers.fst.checked LowParse.SLow.Base.fst.checked LowParse.Low.Base.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
Parsers.TicketContents12.fsti
LowParse.Low.Base.Spec.Mkclens Parsers.TicketContents12.ticketContents12 Parsers.TicketContents12_master_secret.ticketContents12_master_secret Prims.l_True Parsers.TicketContents12.__proj__MkticketContents12__item__master_secret
module Parsers.TicketContents12

(* 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.Base
module LS = LowParse.SLow.Base
module LSZ = LowParse.SLow.Base
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low.Base
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST

open Parsers.ProtocolVersion
open Parsers.CipherSuite
open Parsers.Boolean

(* Type of field master_secret*)
include Parsers.TicketContents12_master_secret

type ticketContents12 = {
  pv : protocolVersion;
  cs : cipherSuite;
  ems : boolean;
  master_secret : ticketContents12_master_secret;
}

inline_for_extraction noextract let ticketContents12_parser_kind = LP.strong_parser_kind 53 53 None

noextract val ticketContents12_parser: LP.parser ticketContents12_parser_kind ticketContents12

noextract val ticketContents12_serializer: LP.serializer ticketContents12_parser

noextract val ticketContents12_bytesize (x:ticketContents12) : GTot nat

noextract val ticketContents12_bytesize_eq (x:ticketContents12) : Lemma (ticketContents12_bytesize x == Seq.length (LP.serialize ticketContents12_serializer x))

val ticketContents12_parser32: LS.parser32 ticketContents12_parser

val ticketContents12_serializer32: LS.serializer32 ticketContents12_serializer

val ticketContents12_size32: LSZ.size32 ticketContents12_serializer

val ticketContents12_validator: LL.validator ticketContents12_parser

let ticketContents12_jumper: LL.jumper ticketContents12_parser = LL.jump_constant_size ticketContents12_parser 53ul ()

val ticketContents12_bytesize_eqn (x: ticketContents12) : Lemma (ticketContents12_bytesize x == (protocolVersion_bytesize (x.pv)) + (cipherSuite_bytesize (x.cs)) + (boolean_bytesize (x.ems)) + (ticketContents12_master_secret_bytesize (x.master_secret))) [SMTPat (ticketContents12_bytesize x)]

noextract let clens_ticketContents12_pv : LL.clens ticketContents12 protocolVersion = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.pv);
}

noextract let clens_ticketContents12_cs : LL.clens ticketContents12 cipherSuite = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.cs);
}

noextract let clens_ticketContents12_ems : LL.clens ticketContents12 boolean = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.ems);
}
val clens_ticketContents12_master_secret:LL.clens ticketContents12 ticketContents12_master_secret
LowParse.Low.Base.Spec.clens Parsers.TicketContents12.ticketContents12
  Parsers.TicketContents12_master_secret.ticketContents12_master_secret