val hkdfLabel_bytesize (x:hkdfLabel) : GTot nat
let hkdfLabel_bytesize (x:hkdfLabel) : GTot nat = Seq.length (hkdfLabel_serializer x)
val hkdfLabel_bytesize (x:hkdfLabel) : GTot nat
let hkdfLabel_bytesize (x: hkdfLabel) : GTot nat =
Seq.length (hkdfLabel_serializer x)
Parsers.HKDF.HkdfLabel.fst.checked
prims.fst.checked Parsers.HKDF.HkdfLabel_label.fsti.checked Parsers.HKDF.HkdfLabel_context.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
Parsers.HKDF.HkdfLabel.fst
Parsers.HKDF.HkdfLabel.hkdfLabel FStar.Seq.Base.length LowParse.Bytes.byte Parsers.HKDF.HkdfLabel.hkdfLabel_serializer Prims.nat
module Parsers.HKDF.HkdfLabel

(* 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 label*)
open Parsers.HKDF.HkdfLabel_label

(* Type of field context*)
open Parsers.HKDF.HkdfLabel_context

type hkdfLabel' = ((U16.t & hkdfLabel_label) & hkdfLabel_context)

inline_for_extraction let synth_hkdfLabel (x: hkdfLabel') : hkdfLabel =
  match x with ((length,label),context) -> {
    length = length;
    label = label;
    context = context;
  }

inline_for_extraction let synth_hkdfLabel_recip (x: hkdfLabel) : hkdfLabel' = ((x.length,x.label),x.context)

let synth_hkdfLabel_recip_inverse () : Lemma (LP.synth_inverse synth_hkdfLabel_recip synth_hkdfLabel) = ()

let synth_hkdfLabel_injective () : Lemma (LP.synth_injective synth_hkdfLabel) =
  LP.synth_inverse_synth_injective synth_hkdfLabel_recip synth_hkdfLabel;
  synth_hkdfLabel_recip_inverse ()

let synth_hkdfLabel_inverse () : Lemma (LP.synth_inverse synth_hkdfLabel synth_hkdfLabel_recip) =
  assert_norm (LP.synth_inverse synth_hkdfLabel synth_hkdfLabel_recip)

let synth_hkdfLabel_recip_injective () : Lemma (LP.synth_injective synth_hkdfLabel_recip) =
  synth_hkdfLabel_recip_inverse ();
  LP.synth_inverse_synth_injective synth_hkdfLabel synth_hkdfLabel_recip

noextract let hkdfLabel'_parser : LP.parser _ hkdfLabel' = ((LPI.parse_u16 `LP.nondep_then` hkdfLabel_label_parser) `LP.nondep_then` hkdfLabel_context_parser)

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

let hkdfLabel_parser =
  synth_hkdfLabel_injective ();
  assert_norm (hkdfLabel_parser_kind == hkdfLabel'_parser_kind);
  hkdfLabel'_parser `LP.parse_synth` synth_hkdfLabel

noextract let hkdfLabel'_serializer : LP.serializer hkdfLabel'_parser = ((LPI.serialize_u16 `LP.serialize_nondep_then` hkdfLabel_label_serializer) `LP.serialize_nondep_then` hkdfLabel_context_serializer)

let hkdfLabel_serializer =
  [@inline_let] let _ = synth_hkdfLabel_injective () in
  [@inline_let] let _ = synth_hkdfLabel_inverse () in
  [@inline_let] let _ = assert_norm (hkdfLabel_parser_kind == hkdfLabel'_parser_kind) in
  LP.serialize_synth _ synth_hkdfLabel hkdfLabel'_serializer synth_hkdfLabel_recip ()
val hkdfLabel_bytesize (x:hkdfLabel) : GTot nat
x: Parsers.HKDF.HkdfLabel.hkdfLabel -> Prims.GTot Prims.nat