val clens_explicitPrimeECParams_base:LL.clens explicitPrimeECParams eCPoint
val clens_explicitPrimeECParams_base:LL.clens explicitPrimeECParams eCPoint
let clens_explicitPrimeECParams_base : LL.clens explicitPrimeECParams eCPoint = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.base);
}
module MiTLS.Parsers.ExplicitPrimeECParams

(* 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 MiTLS.Parsers.ECCurve
open MiTLS.Parsers.ECPoint

(* Type of field prime_p*)
include MiTLS.Parsers.ExplicitPrimeECParams_prime_p

(* Type of field order*)
include MiTLS.Parsers.ExplicitPrimeECParams_order

(* Type of field cofactor*)
include MiTLS.Parsers.ExplicitPrimeECParams_cofactor

type explicitPrimeECParams = {
  prime_p : explicitPrimeECParams_prime_p;
  curve : eCCurve;
  base : eCPoint;
  order : explicitPrimeECParams_order;
  cofactor : explicitPrimeECParams_cofactor;
}

inline_for_extraction noextract let explicitPrimeECParams_parser_kind = LP.strong_parser_kind 12 1536 None

noextract val explicitPrimeECParams_parser: LP.parser explicitPrimeECParams_parser_kind explicitPrimeECParams

noextract val explicitPrimeECParams_serializer: LP.serializer explicitPrimeECParams_parser

noextract val explicitPrimeECParams_bytesize (x:explicitPrimeECParams) : GTot nat

noextract val explicitPrimeECParams_bytesize_eq (x:explicitPrimeECParams) : Lemma (explicitPrimeECParams_bytesize x == Seq.length (LP.serialize explicitPrimeECParams_serializer x))

val explicitPrimeECParams_parser32: LS.parser32 explicitPrimeECParams_parser

val explicitPrimeECParams_serializer32: LS.serializer32 explicitPrimeECParams_serializer

val explicitPrimeECParams_size32: LSZ.size32 explicitPrimeECParams_serializer

val explicitPrimeECParams_validator: LL.validator explicitPrimeECParams_parser

val explicitPrimeECParams_jumper: LL.jumper explicitPrimeECParams_parser

val explicitPrimeECParams_bytesize_eqn (x: explicitPrimeECParams) : Lemma (explicitPrimeECParams_bytesize x == (explicitPrimeECParams_prime_p_bytesize (x.prime_p)) + (eCCurve_bytesize (x.curve)) + (eCPoint_bytesize (x.base)) + (explicitPrimeECParams_order_bytesize (x.order)) + (explicitPrimeECParams_cofactor_bytesize (x.cofactor))) [SMTPat (explicitPrimeECParams_bytesize x)]

noextract let clens_explicitPrimeECParams_prime_p : LL.clens explicitPrimeECParams explicitPrimeECParams_prime_p = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.prime_p);
}

noextract let clens_explicitPrimeECParams_curve : LL.clens explicitPrimeECParams eCCurve = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.curve);
}
/
prims.fst.checked MiTLS.Parsers.ExplicitPrimeECParams_prime_p.fsti.checked MiTLS.Parsers.ExplicitPrimeECParams_order.fsti.checked MiTLS.Parsers.ExplicitPrimeECParams_cofactor.fsti.checked MiTLS.Parsers.ECPoint.fsti.checked MiTLS.Parsers.ECCurve.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
MiTLS.Parsers.ExplicitPrimeECParams.fsti
LowParse.Low.Base.Spec.clens MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams
  MiTLS.Parsers.ECPoint.eCPoint
LowParse.Low.Base.Spec.Mkclens MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams MiTLS.Parsers.ECPoint.eCPoint Prims.l_True MiTLS.Parsers.ExplicitPrimeECParams.__proj__MkexplicitPrimeECParams__item__base
let clens_explicitPrimeECParams_base:LL.clens explicitPrimeECParams eCPoint =
  
{ LL.clens_cond = (fun _ -> True); LL.clens_get = (fun x -> x.base) }