val accessor'_useSRTPData_profiles:LL.accessor gaccessor'_useSRTPData_profiles
val accessor'_useSRTPData_profiles:LL.accessor gaccessor'_useSRTPData_profiles
let accessor'_useSRTPData_profiles : LL.accessor gaccessor'_useSRTPData_profiles = (LL.accessor_then_fst (LL.accessor_id useSRTPData'_parser))
module MiTLS.Parsers.UseSRTPData

(* 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 srtp_mki*)
open MiTLS.Parsers.UseSRTPData_srtp_mki

type useSRTPData' = (sRTPProtectionProfiles & useSRTPData_srtp_mki)

inline_for_extraction let synth_useSRTPData (x: useSRTPData') : useSRTPData =
  match x with (profiles,srtp_mki) -> {
    profiles = profiles;
    srtp_mki = srtp_mki;
  }

inline_for_extraction let synth_useSRTPData_recip (x: useSRTPData) : useSRTPData' = (x.profiles,x.srtp_mki)

let synth_useSRTPData_recip_inverse () : Lemma (LP.synth_inverse synth_useSRTPData_recip synth_useSRTPData) = ()

let synth_useSRTPData_injective () : Lemma (LP.synth_injective synth_useSRTPData) =
  LP.synth_inverse_synth_injective synth_useSRTPData_recip synth_useSRTPData;
  synth_useSRTPData_recip_inverse ()

let synth_useSRTPData_inverse () : Lemma (LP.synth_inverse synth_useSRTPData synth_useSRTPData_recip) =
  assert_norm (LP.synth_inverse synth_useSRTPData synth_useSRTPData_recip)

let synth_useSRTPData_recip_injective () : Lemma (LP.synth_injective synth_useSRTPData_recip) =
  synth_useSRTPData_recip_inverse ();
  LP.synth_inverse_synth_injective synth_useSRTPData synth_useSRTPData_recip

noextract let useSRTPData'_parser : LP.parser _ useSRTPData' = (sRTPProtectionProfiles_parser `LP.nondep_then` useSRTPData_srtp_mki_parser)

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

let useSRTPData_parser =
  synth_useSRTPData_injective ();
  assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind);
  useSRTPData'_parser `LP.parse_synth` synth_useSRTPData

noextract let useSRTPData'_serializer : LP.serializer useSRTPData'_parser = (sRTPProtectionProfiles_serializer `LP.serialize_nondep_then` useSRTPData_srtp_mki_serializer)

let useSRTPData_serializer =
  [@inline_let] let _ = synth_useSRTPData_injective () in
  [@inline_let] let _ = synth_useSRTPData_inverse () in
  [@inline_let] let _ = assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind) in
  LP.serialize_synth _ synth_useSRTPData useSRTPData'_serializer synth_useSRTPData_recip ()

let useSRTPData_bytesize (x:useSRTPData) : GTot nat = Seq.length (useSRTPData_serializer x)

let useSRTPData_bytesize_eq x = ()

inline_for_extraction let useSRTPData'_parser32 : LS.parser32 useSRTPData'_parser = (sRTPProtectionProfiles_parser32 `LS.parse32_nondep_then` useSRTPData_srtp_mki_parser32)

let useSRTPData_parser32 =
  [@inline_let] let _ = synth_useSRTPData_injective () in
  [@inline_let] let _ = assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind) in
  LS.parse32_synth _ synth_useSRTPData (fun x -> synth_useSRTPData x) useSRTPData'_parser32 ()

inline_for_extraction let useSRTPData'_serializer32 : LS.serializer32 useSRTPData'_serializer = (sRTPProtectionProfiles_serializer32 `LS.serialize32_nondep_then` useSRTPData_srtp_mki_serializer32)

let useSRTPData_serializer32 =
  [@inline_let] let _ = synth_useSRTPData_injective () in
  [@inline_let] let _ = synth_useSRTPData_inverse () in
  [@inline_let] let _ = assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind) in
  LS.serialize32_synth _ synth_useSRTPData _ useSRTPData'_serializer32 synth_useSRTPData_recip (fun x -> synth_useSRTPData_recip x) ()

inline_for_extraction let useSRTPData'_size32 : LSZ.size32 useSRTPData'_serializer = (sRTPProtectionProfiles_size32 `LSZ.size32_nondep_then` useSRTPData_srtp_mki_size32)

let useSRTPData_size32 =
  [@inline_let] let _ = synth_useSRTPData_injective () in
  [@inline_let] let _ = synth_useSRTPData_inverse () in
  [@inline_let] let _ = assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind) in
  LSZ.size32_synth _ synth_useSRTPData _ useSRTPData'_size32 synth_useSRTPData_recip (fun x -> synth_useSRTPData_recip x) ()

inline_for_extraction let useSRTPData'_validator : LL.validator useSRTPData'_parser = (sRTPProtectionProfiles_validator `LL.validate_nondep_then` useSRTPData_srtp_mki_validator)

let useSRTPData_validator =
  [@inline_let] let _ = synth_useSRTPData_injective () in
  [@inline_let] let _ = assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind) in
  LL.validate_synth useSRTPData'_validator synth_useSRTPData ()

inline_for_extraction let useSRTPData'_jumper : LL.jumper useSRTPData'_parser = (sRTPProtectionProfiles_jumper `LL.jump_nondep_then` useSRTPData_srtp_mki_jumper)

let useSRTPData_jumper =
  [@inline_let] let _ = synth_useSRTPData_injective () in
  [@inline_let] let _ = assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind) in
  LL.jump_synth useSRTPData'_jumper synth_useSRTPData ()

let useSRTPData_bytesize_eqn x =
  [@inline_let] let _ = synth_useSRTPData_injective () in
  [@inline_let] let _ = synth_useSRTPData_inverse () in
  [@inline_let] let _ = assert_norm (useSRTPData_parser_kind == useSRTPData'_parser_kind) in
  LP.serialize_synth_eq _ synth_useSRTPData useSRTPData'_serializer synth_useSRTPData_recip () x;
LP.length_serialize_nondep_then sRTPProtectionProfiles_serializer useSRTPData_srtp_mki_serializer x.profiles x.srtp_mki;
  (sRTPProtectionProfiles_bytesize_eq (x.profiles));
  (useSRTPData_srtp_mki_bytesize_eq (x.srtp_mki));
  assert(useSRTPData_bytesize x == Seq.length (LP.serialize sRTPProtectionProfiles_serializer x.profiles) + Seq.length (LP.serialize useSRTPData_srtp_mki_serializer x.srtp_mki))

let gaccessor'_useSRTPData_profiles : LL.gaccessor useSRTPData'_parser sRTPProtectionProfiles_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_id useSRTPData'_parser))

let gaccessor'_useSRTPData_srtp_mki : LL.gaccessor useSRTPData'_parser useSRTPData_srtp_mki_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_id useSRTPData'_parser))
/
prims.fst.checked MiTLS.Parsers.UseSRTPData_srtp_mki.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.UseSRTPData.fst
LowParse.Low.Base.accessor MiTLS.Parsers.UseSRTPData.gaccessor'_useSRTPData_profiles
LowParse.Low.Combinators.accessor_then_fst LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.SRTPProtectionProfiles.sRTPProtectionProfiles_parser_kind MiTLS.Parsers.UseSRTPData_srtp_mki.useSRTPData_srtp_mki_parser_kind MiTLS.Parsers.UseSRTPData.useSRTPData' MiTLS.Parsers.UseSRTPData.useSRTPData'_parser MiTLS.Parsers.SRTPProtectionProfiles.sRTPProtectionProfiles MiTLS.Parsers.SRTPProtectionProfiles.sRTPProtectionProfiles_parser MiTLS.Parsers.UseSRTPData_srtp_mki.useSRTPData_srtp_mki MiTLS.Parsers.UseSRTPData_srtp_mki.useSRTPData_srtp_mki_parser LowParse.Low.Base.Spec.clens_id LowParse.Low.Base.Spec.gaccessor_id LowParse.Low.Base.accessor_id
let accessor'_useSRTPData_profiles:LL.accessor gaccessor'_useSRTPData_profiles =
  
(LL.accessor_then_fst (LL.accessor_id useSRTPData'_parser))