val signedDHParams'_serializer:LP.serializer signedDHParams'_parser
val signedDHParams'_serializer:LP.serializer signedDHParams'_parser
let signedDHParams'_serializer : LP.serializer signedDHParams'_parser = ((signedDHParams_client_random_serializer `LP.serialize_nondep_then` signedDHParams_server_random_serializer) `LP.serialize_nondep_then` serverDHParams_serializer)
module MiTLS.Parsers.SignedDHParams

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

(* Type of field client_random*)
open MiTLS.Parsers.SignedDHParams_client_random

(* Type of field server_random*)
open MiTLS.Parsers.SignedDHParams_server_random

type signedDHParams' = ((signedDHParams_client_random & signedDHParams_server_random) & serverDHParams)

inline_for_extraction let synth_signedDHParams (x: signedDHParams') : signedDHParams =
  match x with ((client_random,server_random),params) -> {
    client_random = client_random;
    server_random = server_random;
    params = params;
  }

inline_for_extraction let synth_signedDHParams_recip (x: signedDHParams) : signedDHParams' = ((x.client_random,x.server_random),x.params)

let synth_signedDHParams_recip_inverse () : Lemma (LP.synth_inverse synth_signedDHParams_recip synth_signedDHParams) = ()

let synth_signedDHParams_injective () : Lemma (LP.synth_injective synth_signedDHParams) =
  LP.synth_inverse_synth_injective synth_signedDHParams_recip synth_signedDHParams;
  synth_signedDHParams_recip_inverse ()

let synth_signedDHParams_inverse () : Lemma (LP.synth_inverse synth_signedDHParams synth_signedDHParams_recip) =
  assert_norm (LP.synth_inverse synth_signedDHParams synth_signedDHParams_recip)

let synth_signedDHParams_recip_injective () : Lemma (LP.synth_injective synth_signedDHParams_recip) =
  synth_signedDHParams_recip_inverse ();
  LP.synth_inverse_synth_injective synth_signedDHParams synth_signedDHParams_recip

noextract let signedDHParams'_parser : LP.parser _ signedDHParams' = ((signedDHParams_client_random_parser `LP.nondep_then` signedDHParams_server_random_parser) `LP.nondep_then` serverDHParams_parser)

noextract let signedDHParams'_parser_kind = LP.get_parser_kind signedDHParams'_parser

let signedDHParams_parser =
  synth_signedDHParams_injective ();
  assert_norm (signedDHParams_parser_kind == signedDHParams'_parser_kind);
  signedDHParams'_parser `LP.parse_synth` synth_signedDHParams
/
prims.fst.checked MiTLS.Parsers.SignedDHParams_server_random.fsti.checked MiTLS.Parsers.SignedDHParams_client_random.fsti.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.Native.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.SignedDHParams.fst
LowParse.Spec.Base.serializer MiTLS.Parsers.SignedDHParams.signedDHParams'_parser
LowParse.Spec.Combinators.serialize_nondep_then LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.SignedDHParams_client_random.signedDHParams_client_random_parser_kind MiTLS.Parsers.SignedDHParams_server_random.signedDHParams_server_random_parser_kind FStar.Pervasives.Native.tuple2 MiTLS.Parsers.SignedDHParams_client_random.signedDHParams_client_random MiTLS.Parsers.SignedDHParams_server_random.signedDHParams_server_random LowParse.Spec.Combinators.nondep_then MiTLS.Parsers.SignedDHParams_client_random.signedDHParams_client_random_parser MiTLS.Parsers.SignedDHParams_server_random.signedDHParams_server_random_parser MiTLS.Parsers.SignedDHParams_client_random.signedDHParams_client_random_serializer MiTLS.Parsers.SignedDHParams_server_random.signedDHParams_server_random_serializer MiTLS.Parsers.ServerDHParams.serverDHParams_parser_kind MiTLS.Parsers.ServerDHParams.serverDHParams MiTLS.Parsers.ServerDHParams.serverDHParams_parser MiTLS.Parsers.ServerDHParams.serverDHParams_serializer
let signedDHParams'_serializer:LP.serializer signedDHParams'_parser =
  
((signedDHParams_client_random_serializer
    `LP.serialize_nondep_then`
    signedDHParams_server_random_serializer)
  `LP.serialize_nondep_then`
  serverDHParams_serializer)