val clens_montgomeryPoint32_point:LL.clens montgomeryPoint32 montgomeryPoint32_point
val clens_montgomeryPoint32_point:LL.clens montgomeryPoint32 montgomeryPoint32_point
let clens_montgomeryPoint32_point : LL.clens montgomeryPoint32 montgomeryPoint32_point = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.point);
}
module MiTLS.Parsers.MontgomeryPoint32

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


(* Type of field point*)
include MiTLS.Parsers.MontgomeryPoint32_point

type montgomeryPoint32 = {
  legacy_form : U8.t;
  point : montgomeryPoint32_point;
}

inline_for_extraction noextract let montgomeryPoint32_parser_kind = LP.strong_parser_kind 33 33 (Some LP.ParserKindMetadataTotal)

noextract val montgomeryPoint32_parser: LP.parser montgomeryPoint32_parser_kind montgomeryPoint32

noextract val montgomeryPoint32_serializer: LP.serializer montgomeryPoint32_parser

noextract val montgomeryPoint32_bytesize (x:montgomeryPoint32) : GTot nat

noextract val montgomeryPoint32_bytesize_eq (x:montgomeryPoint32) : Lemma (montgomeryPoint32_bytesize x == Seq.length (LP.serialize montgomeryPoint32_serializer x))

val montgomeryPoint32_parser32: LS.parser32 montgomeryPoint32_parser

val montgomeryPoint32_serializer32: LS.serializer32 montgomeryPoint32_serializer

val montgomeryPoint32_size32: LSZ.size32 montgomeryPoint32_serializer

let montgomeryPoint32_validator: LL.validator montgomeryPoint32_parser = LL.validate_total_constant_size montgomeryPoint32_parser 33uL ()

let montgomeryPoint32_jumper: LL.jumper montgomeryPoint32_parser = LL.jump_constant_size montgomeryPoint32_parser 33ul ()

val montgomeryPoint32_bytesize_eqn (x: montgomeryPoint32) : Lemma (montgomeryPoint32_bytesize x == 1 + (montgomeryPoint32_point_bytesize (x.point))) [SMTPat (montgomeryPoint32_bytesize x)]

noextract let clens_montgomeryPoint32_legacy_form : LL.clens montgomeryPoint32 U8.t = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun x -> x.legacy_form);
}
/
prims.fst.checked MiTLS.Parsers.MontgomeryPoint32_point.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.MontgomeryPoint32.fsti
LowParse.Low.Base.Spec.clens MiTLS.Parsers.MontgomeryPoint32.montgomeryPoint32
  MiTLS.Parsers.MontgomeryPoint32_point.montgomeryPoint32_point
LowParse.Low.Base.Spec.Mkclens MiTLS.Parsers.MontgomeryPoint32.montgomeryPoint32 MiTLS.Parsers.MontgomeryPoint32_point.montgomeryPoint32_point Prims.l_True MiTLS.Parsers.MontgomeryPoint32.__proj__MkmontgomeryPoint32__item__point
let clens_montgomeryPoint32_point:LL.clens montgomeryPoint32 montgomeryPoint32_point =
  
{ LL.clens_cond = (fun _ -> True); LL.clens_get = (fun x -> x.point) }