file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
sequencelengths
0
2
mutual_with
sequencelengths
0
11
ideal_premises
sequencelengths
0
236
proof_features
sequencelengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
DPE.Messages.Spec.fst
DPE.Messages.Spec.certify_key
val certify_key : FStar.UInt64.t
let certify_key = 9uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 52, "start_col": 0, "start_line": 52 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let certify_key =
9uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.derive_child
val derive_child : FStar.UInt64.t
let derive_child = 8uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 22, "end_line": 50, "start_col": 0, "start_line": 50 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let derive_child =
8uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.sign
val sign : FStar.UInt64.t
let sign = 10uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 15, "end_line": 54, "start_col": 0, "start_line": 54 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let sign =
10uL
false
FStar.Reflection.V1.Formula.fst
FStar.Reflection.V1.Formula.formula_to_string
val formula_to_string (f: formula) : Tac string
val formula_to_string (f: formula) : Tac string
let formula_to_string (f:formula) : Tac string = match f with | True_ -> "True_" | False_ -> "False_" | Comp (Eq mt) l r -> "Eq" ^ (match mt with | None -> "" | Some t -> " (" ^ term_to_string t ^ ")") ^ " (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp (BoolEq mt) l r -> "BoolEq" ^ (match mt with | None -> "" | Some t -> " (" ^ term_to_string t ^ ")") ^ " (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Lt l r -> "Lt (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Le l r -> "Le (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Gt l r -> "Gt (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Ge l r -> "Ge (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | And p q -> "And (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Or p q -> "Or (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Implies p q -> "Implies (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Not p -> "Not (" ^ term_to_string p ^ ")" | Iff p q -> "Iff (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Forall bs _sort t -> "Forall <bs> (" ^ term_to_string t ^ ")" | Exists bs _sort t -> "Exists <bs> (" ^ term_to_string t ^ ")" | App p q -> "App (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Name bv -> "Name (" ^ bv_to_string bv ^ ")" | FV fv -> "FV (" ^ flatten_name (inspect_fv fv) ^ ")" | IntLit i -> "Int " ^ string_of_int i | F_Unknown -> "?"
{ "file_name": "ulib/FStar.Reflection.V1.Formula.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 236, "start_col": 0, "start_line": 207 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.V1.Formula open FStar.List.Tot.Base open FStar.Tactics.Effect open FStar.Stubs.Tactics.V1.Builtins open FStar.Stubs.Reflection.Types open FStar.Reflection.Const open FStar.Stubs.Reflection.V1.Builtins open FStar.Reflection.V1.Derived open FStar.Stubs.Reflection.V1.Data ///// Cannot open FStar.Tactics.Derived here ///// private let bv_to_string (bv : bv) : Tac string = let bvv = inspect_bv bv in unseal (bvv.bv_ppname) private let rec inspect_unascribe (t:term) : Tac (tv:term_view{notAscription tv}) = match inspect t with | Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t | tv -> tv private let rec collect_app' (args : list argv) (t : term) : Tac (term * list argv) = match inspect_unascribe t with | Tv_App l r -> collect_app' (r::args) l | _ -> (t, args) private let collect_app = collect_app' [] ///// noeq type comparison = | Eq of option typ (* Propositional equality (eq2), maybe annotated *) | BoolEq of option typ (* Decidable, boolean equality (eq), maybe annotated *) | Lt | Le | Gt | Ge (* Orderings, at type `int` (and subtypes) *) noeq type formula = | True_ : formula | False_ : formula | Comp : comparison -> term -> term -> formula | And : term -> term -> formula | Or : term -> term -> formula | Not : term -> formula | Implies: term -> term -> formula | Iff : term -> term -> formula | Forall : bv -> typ -> term -> formula | Exists : bv -> typ -> term -> formula | App : term -> term -> formula | Name : bv -> formula | FV : fv -> formula | IntLit : int -> formula | F_Unknown : formula // Also a baked-in "None" let mk_Forall (typ : term) (pred : term) : Tac formula = let b = pack_bv ({ bv_ppname = as_ppname "x"; bv_index = 0; }) in Forall b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit))) let mk_Exists (typ : term) (pred : term) : Tac formula = let b = pack_bv ({ bv_ppname = as_ppname "x"; bv_index = 0; }) in Exists b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit))) let term_as_formula' (t:term) : Tac formula = match inspect_unascribe t with | Tv_Var n -> Name n | Tv_FVar fv | Tv_UInst fv _ -> // Cannot use `when` clauses when verifying! let qn = inspect_fv fv in if qn = true_qn then True_ else if qn = false_qn then False_ else FV fv // TODO: l_Forall // ...or should we just try to drop all squashes? // TODO: b2t at this point ? | Tv_App h0 t -> begin let (h, ts) = collect_app h0 in let h = un_uinst h in match inspect_ln h, ts@[t] with | Tv_FVar fv, [(a1, Q_Implicit); (a2, Q_Explicit); (a3, Q_Explicit)] -> let qn = inspect_fv fv in if qn = eq2_qn then Comp (Eq (Some a1)) a2 a3 else if qn = eq1_qn then Comp (BoolEq (Some a1)) a2 a3 else if qn = lt_qn then Comp Lt a2 a3 else if qn = lte_qn then Comp Le a2 a3 else if qn = gt_qn then Comp Gt a2 a3 else if qn = gte_qn then Comp Ge a2 a3 else App h0 (fst t) | Tv_FVar fv, [(a1, Q_Explicit); (a2, Q_Explicit)] -> let qn = inspect_fv fv in if qn = imp_qn then Implies a1 a2 else if qn = and_qn then And a1 a2 else if qn = iff_qn then Iff a1 a2 else if qn = or_qn then Or a1 a2 // Non-annotated comparisons else if qn = eq2_qn then Comp (Eq None) a1 a2 else if qn = eq1_qn then Comp (BoolEq None) a1 a2 else App h0 (fst t) | Tv_FVar fv, [(a1, Q_Implicit); (a2, Q_Explicit)] -> let qn = inspect_fv fv in if qn = forall_qn then mk_Forall a1 a2 else if qn = exists_qn then mk_Exists a1 a2 else App h0 (fst t) | Tv_FVar fv, [(a, Q_Explicit)] -> let qn = inspect_fv fv in if qn = not_qn then Not a else if qn = b2t_qn then begin if term_eq a (`false) then False_ else if term_eq a (`true) then True_ else App h0 (fst t) end else App h0 (fst t) | _ -> App h0 (fst t) end | Tv_Const (C_Int i) -> IntLit i (* Not formulas. *) | Tv_Let _ _ _ _ _ _ | Tv_Match _ _ _ | Tv_Type _ | Tv_Abs _ _ | Tv_Arrow _ _ | Tv_Uvar _ _ | Tv_Unknown | Tv_Unsupp | Tv_Refine _ _ _ -> F_Unknown (* Other constants? *) | Tv_Const _ -> F_Unknown (* Should not occur, we're using inspect_ln *) | Tv_BVar _ -> F_Unknown // Unsquashing let term_as_formula (t:term) : Tac formula = match unsquash_term t with | None -> F_Unknown | Some t -> term_as_formula' t let term_as_formula_total (t:term) : Tac formula = term_as_formula' (maybe_unsquash_term t) let formula_as_term_view (f:formula) : Tot term_view = let mk_app' tv args = List.Tot.Base.fold_left (fun tv a -> Tv_App (pack_ln tv) a) tv args in let e = Q_Explicit in let i = Q_Implicit in match f with | True_ -> Tv_FVar (pack_fv true_qn) | False_ -> Tv_FVar (pack_fv false_qn) | Comp (Eq None) l r -> mk_app' (Tv_FVar (pack_fv eq2_qn)) [(l,e);(r,e)] | Comp (Eq (Some t)) l r -> mk_app' (Tv_FVar (pack_fv eq2_qn)) [(t,i);(l,e);(r,e)] | Comp (BoolEq None) l r -> mk_app' (Tv_FVar (pack_fv eq1_qn)) [(l,e);(r,e)] | Comp (BoolEq (Some t)) l r -> mk_app' (Tv_FVar (pack_fv eq1_qn)) [(t,i);(l,e);(r,e)] | Comp Lt l r -> mk_app' (Tv_FVar (pack_fv lt_qn)) [(l,e);(r,e)] | Comp Le l r -> mk_app' (Tv_FVar (pack_fv lte_qn)) [(l,e);(r,e)] | Comp Gt l r -> mk_app' (Tv_FVar (pack_fv gt_qn)) [(l,e);(r,e)] | Comp Ge l r -> mk_app' (Tv_FVar (pack_fv gte_qn)) [(l,e);(r,e)] | And p q -> mk_app' (Tv_FVar (pack_fv and_qn)) [(p,e);(q,e)] | Or p q -> mk_app' (Tv_FVar (pack_fv or_qn)) [(p,e);(q,e)] | Implies p q -> mk_app' (Tv_FVar (pack_fv imp_qn)) [(p,e);(q,e)] | Not p -> mk_app' (Tv_FVar (pack_fv not_qn)) [(p,e)] | Iff p q -> mk_app' (Tv_FVar (pack_fv iff_qn)) [(p,e);(q,e)] | Forall b sort t -> Tv_Unknown // TODO: decide on meaning of this | Exists b sort t -> Tv_Unknown // TODO: ^ | App p q -> Tv_App p (q, Q_Explicit) | Name b -> Tv_Var b | FV fv -> Tv_FVar fv | IntLit i -> Tv_Const (C_Int i) | F_Unknown -> Tv_Unknown let formula_as_term (f:formula) : Tot term = pack_ln (formula_as_term_view f)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Reflection.V1.Data.fsti.checked", "FStar.Stubs.Reflection.V1.Builtins.fsti.checked", "FStar.Stubs.Reflection.Types.fsti.checked", "FStar.Reflection.V1.Derived.fst.checked", "FStar.Reflection.Const.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Reflection.V1.Formula.fst" }
[ { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V1.Data", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V1.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.Const", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V1", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V1", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
f: FStar.Reflection.V1.Formula.formula -> FStar.Tactics.Effect.Tac Prims.string
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Reflection.V1.Formula.formula", "Prims.string", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Reflection.Types.term", "Prims.op_Hat", "FStar.Stubs.Tactics.V1.Builtins.term_to_string", "FStar.Stubs.Reflection.Types.bv", "FStar.Reflection.V1.Formula.bv_to_string", "FStar.Stubs.Reflection.Types.fv", "FStar.Reflection.V1.Derived.flatten_name", "FStar.Stubs.Reflection.V1.Builtins.inspect_fv", "Prims.int", "Prims.string_of_int" ]
[]
false
true
false
false
false
let formula_to_string (f: formula) : Tac string =
match f with | True_ -> "True_" | False_ -> "False_" | Comp (Eq mt) l r -> "Eq" ^ (match mt with | None -> "" | Some t -> " (" ^ term_to_string t ^ ")") ^ " (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp (BoolEq mt) l r -> "BoolEq" ^ (match mt with | None -> "" | Some t -> " (" ^ term_to_string t ^ ")") ^ " (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Lt l r -> "Lt (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Le l r -> "Le (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Gt l r -> "Gt (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | Comp Ge l r -> "Ge (" ^ term_to_string l ^ ") (" ^ term_to_string r ^ ")" | And p q -> "And (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Or p q -> "Or (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Implies p q -> "Implies (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Not p -> "Not (" ^ term_to_string p ^ ")" | Iff p q -> "Iff (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Forall bs _sort t -> "Forall <bs> (" ^ term_to_string t ^ ")" | Exists bs _sort t -> "Exists <bs> (" ^ term_to_string t ^ ")" | App p q -> "App (" ^ term_to_string p ^ ") (" ^ term_to_string q ^ ")" | Name bv -> "Name (" ^ bv_to_string bv ^ ")" | FV fv -> "FV (" ^ flatten_name (inspect_fv fv) ^ ")" | IntLit i -> "Int " ^ string_of_int i | F_Unknown -> "?"
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.seal
val seal : FStar.UInt64.t
let seal = 11uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 15, "end_line": 56, "start_col": 0, "start_line": 56 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let seal =
11uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.unseal
val unseal : FStar.UInt64.t
let unseal = 12uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 58, "start_col": 0, "start_line": 58 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let unseal =
12uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.rotate_context_handle
val rotate_context_handle : FStar.UInt64.t
let rotate_context_handle = 14uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 62, "start_col": 0, "start_line": 62 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let rotate_context_handle =
14uL
false
FStar.Reflection.V1.Formula.fst
FStar.Reflection.V1.Formula.term_as_formula'
val term_as_formula' (t: term) : Tac formula
val term_as_formula' (t: term) : Tac formula
let term_as_formula' (t:term) : Tac formula = match inspect_unascribe t with | Tv_Var n -> Name n | Tv_FVar fv | Tv_UInst fv _ -> // Cannot use `when` clauses when verifying! let qn = inspect_fv fv in if qn = true_qn then True_ else if qn = false_qn then False_ else FV fv // TODO: l_Forall // ...or should we just try to drop all squashes? // TODO: b2t at this point ? | Tv_App h0 t -> begin let (h, ts) = collect_app h0 in let h = un_uinst h in match inspect_ln h, ts@[t] with | Tv_FVar fv, [(a1, Q_Implicit); (a2, Q_Explicit); (a3, Q_Explicit)] -> let qn = inspect_fv fv in if qn = eq2_qn then Comp (Eq (Some a1)) a2 a3 else if qn = eq1_qn then Comp (BoolEq (Some a1)) a2 a3 else if qn = lt_qn then Comp Lt a2 a3 else if qn = lte_qn then Comp Le a2 a3 else if qn = gt_qn then Comp Gt a2 a3 else if qn = gte_qn then Comp Ge a2 a3 else App h0 (fst t) | Tv_FVar fv, [(a1, Q_Explicit); (a2, Q_Explicit)] -> let qn = inspect_fv fv in if qn = imp_qn then Implies a1 a2 else if qn = and_qn then And a1 a2 else if qn = iff_qn then Iff a1 a2 else if qn = or_qn then Or a1 a2 // Non-annotated comparisons else if qn = eq2_qn then Comp (Eq None) a1 a2 else if qn = eq1_qn then Comp (BoolEq None) a1 a2 else App h0 (fst t) | Tv_FVar fv, [(a1, Q_Implicit); (a2, Q_Explicit)] -> let qn = inspect_fv fv in if qn = forall_qn then mk_Forall a1 a2 else if qn = exists_qn then mk_Exists a1 a2 else App h0 (fst t) | Tv_FVar fv, [(a, Q_Explicit)] -> let qn = inspect_fv fv in if qn = not_qn then Not a else if qn = b2t_qn then begin if term_eq a (`false) then False_ else if term_eq a (`true) then True_ else App h0 (fst t) end else App h0 (fst t) | _ -> App h0 (fst t) end | Tv_Const (C_Int i) -> IntLit i (* Not formulas. *) | Tv_Let _ _ _ _ _ _ | Tv_Match _ _ _ | Tv_Type _ | Tv_Abs _ _ | Tv_Arrow _ _ | Tv_Uvar _ _ | Tv_Unknown | Tv_Unsupp | Tv_Refine _ _ _ -> F_Unknown (* Other constants? *) | Tv_Const _ -> F_Unknown (* Should not occur, we're using inspect_ln *) | Tv_BVar _ -> F_Unknown
{ "file_name": "ulib/FStar.Reflection.V1.Formula.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 154, "start_col": 0, "start_line": 78 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.V1.Formula open FStar.List.Tot.Base open FStar.Tactics.Effect open FStar.Stubs.Tactics.V1.Builtins open FStar.Stubs.Reflection.Types open FStar.Reflection.Const open FStar.Stubs.Reflection.V1.Builtins open FStar.Reflection.V1.Derived open FStar.Stubs.Reflection.V1.Data ///// Cannot open FStar.Tactics.Derived here ///// private let bv_to_string (bv : bv) : Tac string = let bvv = inspect_bv bv in unseal (bvv.bv_ppname) private let rec inspect_unascribe (t:term) : Tac (tv:term_view{notAscription tv}) = match inspect t with | Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t | tv -> tv private let rec collect_app' (args : list argv) (t : term) : Tac (term * list argv) = match inspect_unascribe t with | Tv_App l r -> collect_app' (r::args) l | _ -> (t, args) private let collect_app = collect_app' [] ///// noeq type comparison = | Eq of option typ (* Propositional equality (eq2), maybe annotated *) | BoolEq of option typ (* Decidable, boolean equality (eq), maybe annotated *) | Lt | Le | Gt | Ge (* Orderings, at type `int` (and subtypes) *) noeq type formula = | True_ : formula | False_ : formula | Comp : comparison -> term -> term -> formula | And : term -> term -> formula | Or : term -> term -> formula | Not : term -> formula | Implies: term -> term -> formula | Iff : term -> term -> formula | Forall : bv -> typ -> term -> formula | Exists : bv -> typ -> term -> formula | App : term -> term -> formula | Name : bv -> formula | FV : fv -> formula | IntLit : int -> formula | F_Unknown : formula // Also a baked-in "None" let mk_Forall (typ : term) (pred : term) : Tac formula = let b = pack_bv ({ bv_ppname = as_ppname "x"; bv_index = 0; }) in Forall b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit))) let mk_Exists (typ : term) (pred : term) : Tac formula = let b = pack_bv ({ bv_ppname = as_ppname "x"; bv_index = 0; }) in Exists b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit)))
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Reflection.V1.Data.fsti.checked", "FStar.Stubs.Reflection.V1.Builtins.fsti.checked", "FStar.Stubs.Reflection.Types.fsti.checked", "FStar.Reflection.V1.Derived.fst.checked", "FStar.Reflection.Const.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Reflection.V1.Formula.fst" }
[ { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V1.Data", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V1.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.Const", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V1", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V1", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac FStar.Reflection.V1.Formula.formula
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.bv", "FStar.Reflection.V1.Formula.Name", "FStar.Reflection.V1.Formula.formula", "FStar.Stubs.Reflection.Types.fv", "Prims.op_Equality", "Prims.list", "Prims.string", "FStar.Reflection.Const.true_qn", "FStar.Reflection.V1.Formula.True_", "Prims.bool", "FStar.Reflection.Const.false_qn", "FStar.Reflection.V1.Formula.False_", "FStar.Reflection.V1.Formula.FV", "FStar.Stubs.Reflection.Types.name", "FStar.Stubs.Reflection.V1.Builtins.inspect_fv", "FStar.Stubs.Reflection.V1.Data.universes", "FStar.Stubs.Reflection.V1.Data.argv", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.V1.Data.term_view", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.V1.Data.aqualv", "FStar.Stubs.Reflection.V1.Builtins.inspect_ln", "FStar.List.Tot.Base.op_At", "Prims.Cons", "Prims.Nil", "FStar.Reflection.Const.eq2_qn", "FStar.Reflection.V1.Formula.Comp", "FStar.Reflection.V1.Formula.Eq", "FStar.Pervasives.Native.Some", "FStar.Stubs.Reflection.Types.typ", "FStar.Reflection.Const.eq1_qn", "FStar.Reflection.V1.Formula.BoolEq", "FStar.Reflection.Const.lt_qn", "FStar.Reflection.V1.Formula.Lt", "FStar.Reflection.Const.lte_qn", "FStar.Reflection.V1.Formula.Le", "FStar.Reflection.Const.gt_qn", "FStar.Reflection.V1.Formula.Gt", "FStar.Reflection.Const.gte_qn", "FStar.Reflection.V1.Formula.Ge", "FStar.Reflection.V1.Formula.App", "FStar.Pervasives.Native.fst", "FStar.Reflection.Const.imp_qn", "FStar.Reflection.V1.Formula.Implies", "FStar.Reflection.Const.and_qn", "FStar.Reflection.V1.Formula.And", "FStar.Reflection.Const.iff_qn", "FStar.Reflection.V1.Formula.Iff", "FStar.Reflection.Const.or_qn", "FStar.Reflection.V1.Formula.Or", "FStar.Pervasives.Native.None", "FStar.Reflection.Const.forall_qn", "FStar.Reflection.V1.Formula.mk_Forall", "FStar.Reflection.Const.exists_qn", "FStar.Reflection.V1.Formula.mk_Exists", "FStar.Reflection.Const.not_qn", "FStar.Reflection.V1.Formula.Not", "FStar.Reflection.Const.b2t_qn", "FStar.Stubs.Reflection.V1.Builtins.term_eq", "FStar.Reflection.V1.Derived.un_uinst", "FStar.Reflection.V1.Formula.collect_app", "Prims.int", "FStar.Reflection.V1.Formula.IntLit", "FStar.Reflection.V1.Formula.F_Unknown", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.Types.match_returns_ascription", "FStar.Stubs.Reflection.V1.Data.branch", "FStar.Stubs.Reflection.Types.universe", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.comp", "Prims.nat", "FStar.Stubs.Reflection.Types.ctx_uvar_and_subst", "FStar.Stubs.Reflection.V1.Data.vconst", "Prims.b2t", "FStar.Stubs.Reflection.V1.Data.notAscription", "FStar.Reflection.V1.Formula.inspect_unascribe" ]
[]
false
true
false
false
false
let term_as_formula' (t: term) : Tac formula =
match inspect_unascribe t with | Tv_Var n -> Name n | Tv_FVar fv | Tv_UInst fv _ -> let qn = inspect_fv fv in if qn = true_qn then True_ else if qn = false_qn then False_ else FV fv | Tv_App h0 t -> let h, ts = collect_app h0 in let h = un_uinst h in (match inspect_ln h, ts @ [t] with | Tv_FVar fv, [a1, Q_Implicit ; a2, Q_Explicit ; a3, Q_Explicit] -> let qn = inspect_fv fv in if qn = eq2_qn then Comp (Eq (Some a1)) a2 a3 else if qn = eq1_qn then Comp (BoolEq (Some a1)) a2 a3 else if qn = lt_qn then Comp Lt a2 a3 else if qn = lte_qn then Comp Le a2 a3 else if qn = gt_qn then Comp Gt a2 a3 else if qn = gte_qn then Comp Ge a2 a3 else App h0 (fst t) | Tv_FVar fv, [a1, Q_Explicit ; a2, Q_Explicit] -> let qn = inspect_fv fv in if qn = imp_qn then Implies a1 a2 else if qn = and_qn then And a1 a2 else if qn = iff_qn then Iff a1 a2 else if qn = or_qn then Or a1 a2 else if qn = eq2_qn then Comp (Eq None) a1 a2 else if qn = eq1_qn then Comp (BoolEq None) a1 a2 else App h0 (fst t) | Tv_FVar fv, [a1, Q_Implicit ; a2, Q_Explicit] -> let qn = inspect_fv fv in if qn = forall_qn then mk_Forall a1 a2 else if qn = exists_qn then mk_Exists a1 a2 else App h0 (fst t) | Tv_FVar fv, [a, Q_Explicit] -> let qn = inspect_fv fv in if qn = not_qn then Not a else if qn = b2t_qn then if term_eq a (`false) then False_ else if term_eq a (`true) then True_ else App h0 (fst t) else App h0 (fst t) | _ -> App h0 (fst t)) | Tv_Const (C_Int i) -> IntLit i | Tv_Let _ _ _ _ _ _ | Tv_Match _ _ _ | Tv_Type _ | Tv_Abs _ _ | Tv_Arrow _ _ | Tv_Uvar _ _ | Tv_Unknown | Tv_Unsupp | Tv_Refine _ _ _ -> F_Unknown | Tv_Const _ -> F_Unknown | Tv_BVar _ -> F_Unknown
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.derive_sealing_public_key
val derive_sealing_public_key : FStar.UInt64.t
let derive_sealing_public_key = 13uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 36, "end_line": 60, "start_col": 0, "start_line": 60 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let derive_sealing_public_key =
13uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.no_error
val no_error : FStar.UInt64.t
let no_error = 0uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 18, "end_line": 84, "start_col": 0, "start_line": 84 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let no_error =
0uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.command_id
val command_id : CDDL.Spec.bounded_typ_gen FStar.Pervasives.Native.None
let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 37, "end_line": 81, "start_col": 0, "start_line": 66 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.bounded_typ_gen FStar.Pervasives.Native.None
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.t_choice", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.t_uint_literal", "DPE.Messages.Spec.get_profile", "DPE.Messages.Spec.open_session", "DPE.Messages.Spec.close_session", "DPE.Messages.Spec.sync_session", "DPE.Messages.Spec.export_session", "DPE.Messages.Spec.import_session", "DPE.Messages.Spec.initialize_context", "DPE.Messages.Spec.derive_child", "DPE.Messages.Spec.certify_key", "DPE.Messages.Spec.sign", "DPE.Messages.Spec.seal", "DPE.Messages.Spec.unseal", "DPE.Messages.Spec.derive_sealing_public_key", "DPE.Messages.Spec.rotate_context_handle", "DPE.Messages.Spec.destroy_context" ]
[]
false
false
false
true
false
let command_id =
((((((((((((((Cddl.t_uint_literal get_profile) `Cddl.t_choice` (Cddl.t_uint_literal open_session)) `Cddl.t_choice` (Cddl.t_uint_literal close_session)) `Cddl.t_choice` (Cddl.t_uint_literal sync_session)) `Cddl.t_choice` (Cddl.t_uint_literal export_session)) `Cddl.t_choice` (Cddl.t_uint_literal import_session)) `Cddl.t_choice` (Cddl.t_uint_literal initialize_context)) `Cddl.t_choice` (Cddl.t_uint_literal derive_child)) `Cddl.t_choice` (Cddl.t_uint_literal certify_key)) `Cddl.t_choice` (Cddl.t_uint_literal sign)) `Cddl.t_choice` (Cddl.t_uint_literal seal)) `Cddl.t_choice` (Cddl.t_uint_literal unseal)) `Cddl.t_choice` (Cddl.t_uint_literal derive_sealing_public_key)) `Cddl.t_choice` (Cddl.t_uint_literal rotate_context_handle)) `Cddl.t_choice` (Cddl.t_uint_literal destroy_context)
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.destroy_context
val destroy_context : FStar.UInt64.t
let destroy_context = 15uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 26, "end_line": 64, "start_col": 0, "start_line": 64 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let destroy_context =
15uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.internal_error
val internal_error : FStar.UInt64.t
let internal_error = 1uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 86, "start_col": 0, "start_line": 86 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let internal_error =
1uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.argument_not_supported
val argument_not_supported : FStar.UInt64.t
let argument_not_supported = 4uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 92, "start_col": 0, "start_line": 92 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let argument_not_supported =
4uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.invalid_command
val invalid_command : FStar.UInt64.t
let invalid_command = 2uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 88, "start_col": 0, "start_line": 88 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let invalid_command =
2uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.invalid_argument
val invalid_argument : FStar.UInt64.t
let invalid_argument = 3uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 26, "end_line": 90, "start_col": 0, "start_line": 90 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let invalid_argument =
3uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.session_exhausted
val session_exhausted : FStar.UInt64.t
let session_exhausted = 5uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 27, "end_line": 94, "start_col": 0, "start_line": 94 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let session_exhausted =
5uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.error_code
val error_code : CDDL.Spec.bounded_typ_gen FStar.Pervasives.Native.None
let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 39, "end_line": 102, "start_col": 0, "start_line": 96 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.bounded_typ_gen FStar.Pervasives.Native.None
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.t_choice", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.t_uint_literal", "DPE.Messages.Spec.no_error", "DPE.Messages.Spec.internal_error", "DPE.Messages.Spec.invalid_command", "DPE.Messages.Spec.invalid_argument", "DPE.Messages.Spec.argument_not_supported", "DPE.Messages.Spec.session_exhausted" ]
[]
false
false
false
true
false
let error_code =
(((((Cddl.t_uint_literal no_error) `Cddl.t_choice` (Cddl.t_uint_literal internal_error)) `Cddl.t_choice` (Cddl.t_uint_literal invalid_command)) `Cddl.t_choice` (Cddl.t_uint_literal invalid_argument)) `Cddl.t_choice` (Cddl.t_uint_literal argument_not_supported)) `Cddl.t_choice` (Cddl.t_uint_literal session_exhausted)
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_dpe_spec_version
val pd_dpe_spec_version : FStar.UInt64.t
let pd_dpe_spec_version = 2uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 113, "start_col": 33, "start_line": 113 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = ()
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_dpe_spec_version =
2uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_name
val pd_name : FStar.UInt64.t
let pd_name = 1uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 50, "end_line": 112, "start_col": 33, "start_line": 112 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = ()
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_name =
1uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_max_message_size
val pd_max_message_size : FStar.UInt64.t
let pd_max_message_size = 3uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 114, "start_col": 33, "start_line": 114 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_max_message_size =
3uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_uses_multi_part_messaghes
val pd_uses_multi_part_messaghes : FStar.UInt64.t
let pd_uses_multi_part_messaghes = 4uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 115, "start_col": 31, "start_line": 115 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_uses_multi_part_messaghes =
4uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_concurrent_operations
val pd_supports_concurrent_operations : FStar.UInt64.t
let pd_supports_concurrent_operations = 5uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 74, "end_line": 116, "start_col": 31, "start_line": 116 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_concurrent_operations =
5uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_derived_sessions
val pd_supports_derived_sessions : FStar.UInt64.t
let pd_supports_derived_sessions = 7uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 118, "start_col": 31, "start_line": 118 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_derived_sessions =
7uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_encrypted_sessions
val pd_supports_encrypted_sessions : FStar.UInt64.t
let pd_supports_encrypted_sessions = 6uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 117, "start_col": 31, "start_line": 117 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_encrypted_sessions =
6uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_max_sessions
val pd_max_sessions : FStar.UInt64.t
let pd_max_sessions = 8uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 58, "end_line": 119, "start_col": 33, "start_line": 119 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_max_sessions =
8uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_session_sync
val pd_supports_session_sync : FStar.UInt64.t
let pd_supports_session_sync = 10uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 121, "start_col": 31, "start_line": 121 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_session_sync =
10uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_session_protocol
val pd_session_protocol : FStar.UInt64.t
let pd_session_protocol = 9uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 120, "start_col": 33, "start_line": 120 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_session_protocol =
9uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_session_migration_protocol
val pd_session_migration_protocol : FStar.UInt64.t
let pd_session_migration_protocol = 13uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 73, "end_line": 124, "start_col": 33, "start_line": 124 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_session_migration_protocol =
13uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_session_sync_policy
val pd_session_sync_policy : FStar.UInt64.t
let pd_session_sync_policy = 11uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 122, "start_col": 33, "start_line": 122 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_session_sync_policy =
11uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_session_migration
val pd_supports_session_migration : FStar.UInt64.t
let pd_supports_session_migration = 12uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 123, "start_col": 31, "start_line": 123 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_session_migration =
12uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_default_context
val pd_supports_default_context : FStar.UInt64.t
let pd_supports_default_context = 14uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 125, "start_col": 31, "start_line": 125 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_default_context =
14uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_context_handles
val pd_supports_context_handles : FStar.UInt64.t
let pd_supports_context_handles = 15uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 126, "start_col": 31, "start_line": 126 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_context_handles =
15uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_max_context_handle_size
val pd_max_context_handle_size : FStar.UInt64.t
let pd_max_context_handle_size = 17uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 128, "start_col": 33, "start_line": 128 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_max_context_handle_size =
17uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_max_contexts_per_session
val pd_max_contexts_per_session : FStar.UInt64.t
let pd_max_contexts_per_session = 16uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 127, "start_col": 33, "start_line": 127 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_max_contexts_per_session =
16uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_auto_init
val pd_supports_auto_init : FStar.UInt64.t
let pd_supports_auto_init = 18uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 63, "end_line": 129, "start_col": 31, "start_line": 129 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_auto_init =
18uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_sealing
val pd_supports_sealing : FStar.UInt64.t
let pd_supports_sealing = 21uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 61, "end_line": 132, "start_col": 31, "start_line": 132 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_sealing =
21uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_simulation
val pd_supports_simulation : FStar.UInt64.t
let pd_supports_simulation = 19uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 64, "end_line": 130, "start_col": 31, "start_line": 130 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_simulation =
19uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_attestation
val pd_supports_attestation : FStar.UInt64.t
let pd_supports_attestation = 20uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 65, "end_line": 131, "start_col": 31, "start_line": 131 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_attestation =
20uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_get_profile
val pd_supports_get_profile : FStar.UInt64.t
let pd_supports_get_profile = 22uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 65, "end_line": 133, "start_col": 31, "start_line": 133 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_get_profile =
22uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_import_session
val pd_supports_import_session : FStar.UInt64.t
let pd_supports_import_session = 27uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 68, "end_line": 138, "start_col": 31, "start_line": 138 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_import_session =
27uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_open_session
val pd_supports_open_session : FStar.UInt64.t
let pd_supports_open_session = 23uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 134, "start_col": 31, "start_line": 134 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_open_session =
23uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_init_context
val pd_supports_init_context : FStar.UInt64.t
let pd_supports_init_context = 28uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 139, "start_col": 31, "start_line": 139 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_init_context =
28uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_sync_session
val pd_supports_sync_session : FStar.UInt64.t
let pd_supports_sync_session = 25uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 136, "start_col": 31, "start_line": 136 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_sync_session =
25uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_close_session
val pd_supports_close_session : FStar.UInt64.t
let pd_supports_close_session = 24uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 67, "end_line": 135, "start_col": 31, "start_line": 135 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_close_session =
24uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_sign
val pd_supports_sign : FStar.UInt64.t
let pd_supports_sign = 30uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 58, "end_line": 141, "start_col": 31, "start_line": 141 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_sign =
30uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_export_session
val pd_supports_export_session : FStar.UInt64.t
let pd_supports_export_session = 26uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 68, "end_line": 137, "start_col": 31, "start_line": 137 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_export_session =
26uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_unseal
val pd_supports_unseal : FStar.UInt64.t
let pd_supports_unseal = 32uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 60, "end_line": 143, "start_col": 31, "start_line": 143 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_unseal =
32uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_certify_key
val pd_supports_certify_key : FStar.UInt64.t
let pd_supports_certify_key = 29uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 65, "end_line": 140, "start_col": 31, "start_line": 140 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_certify_key =
29uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_asymmetric_derivation
val pd_asymmetric_derivation : FStar.UInt64.t
let pd_asymmetric_derivation = 36uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 68, "end_line": 147, "start_col": 33, "start_line": 147 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_asymmetric_derivation =
36uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_seal
val pd_supports_seal : FStar.UInt64.t
let pd_supports_seal = 31uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 58, "end_line": 142, "start_col": 31, "start_line": 142 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_seal =
31uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_rotate_context_handle
val pd_supports_rotate_context_handle : FStar.UInt64.t
let pd_supports_rotate_context_handle = 34uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 75, "end_line": 145, "start_col": 31, "start_line": 145 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_rotate_context_handle =
34uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_sealing_public
val pd_supports_sealing_public : FStar.UInt64.t
let pd_supports_sealing_public = 33uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 68, "end_line": 144, "start_col": 31, "start_line": 144 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_sealing_public =
33uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_any_label
val pd_supports_any_label : FStar.UInt64.t
let pd_supports_any_label = 38uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 63, "end_line": 149, "start_col": 31, "start_line": 149 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_any_label =
38uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_symmetric_derivation
val pd_symmetric_derivation : FStar.UInt64.t
let pd_symmetric_derivation = 37uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 67, "end_line": 148, "start_col": 33, "start_line": 148 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_symmetric_derivation =
37uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_initial_derivation
val pd_initial_derivation : FStar.UInt64.t
let pd_initial_derivation = 40uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 65, "end_line": 151, "start_col": 33, "start_line": 151 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_initial_derivation =
40uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_internal_inputs
val pd_supports_internal_inputs : FStar.UInt64.t
let pd_supports_internal_inputs = 42uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 153, "start_col": 31, "start_line": 153 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_internal_inputs =
42uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_dice_derivation
val pd_dice_derivation : FStar.UInt64.t
let pd_dice_derivation = 35uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 146, "start_col": 33, "start_line": 146 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_dice_derivation =
35uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_input_format
val pd_input_format : FStar.UInt64.t
let pd_input_format = 41uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 59, "end_line": 152, "start_col": 33, "start_line": 152 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_input_format =
41uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_internal_dpe_info_type
val pd_internal_dpe_info_type : FStar.UInt64.t
let pd_internal_dpe_info_type = 45uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 156, "start_col": 33, "start_line": 156 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_internal_dpe_info_type =
45uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_internal_dpe_dice
val pd_supports_internal_dpe_dice : FStar.UInt64.t
let pd_supports_internal_dpe_dice = 44uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 155, "start_col": 31, "start_line": 155 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_internal_dpe_dice =
44uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supported_labels
val pd_supported_labels : FStar.UInt64.t
let pd_supported_labels = 39uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 63, "end_line": 150, "start_col": 33, "start_line": 150 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supported_labels =
39uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_internal_dpe_info
val pd_supports_internal_dpe_info : FStar.UInt64.t
let pd_supports_internal_dpe_info = 43uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 154, "start_col": 31, "start_line": 154 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_internal_dpe_info =
43uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_max_certificate_size
val pd_max_certificate_size : FStar.UInt64.t
let pd_max_certificate_size = 49uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 67, "end_line": 160, "start_col": 33, "start_line": 160 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_max_certificate_size =
49uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_internal_inputs
val pd_internal_inputs : FStar.UInt64.t
let pd_internal_inputs = 47uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 158, "start_col": 33, "start_line": 158 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_internal_inputs =
47uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_certificates
val pd_supports_certificates : FStar.UInt64.t
let pd_supports_certificates = 48uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 159, "start_col": 31, "start_line": 159 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_certificates =
48uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_internal_dpe_dice_type
val pd_internal_dpe_dice_type : FStar.UInt64.t
let pd_internal_dpe_dice_type = 46uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 157, "start_col": 33, "start_line": 157 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_internal_dpe_dice_type =
46uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_max_certificate_chain_size
val pd_max_certificate_chain_size : FStar.UInt64.t
let pd_max_certificate_chain_size = 50uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 73, "end_line": 161, "start_col": 33, "start_line": 161 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_max_certificate_chain_size =
50uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_appends_more_certificates
val pd_appends_more_certificates : FStar.UInt64.t
let pd_appends_more_certificates = 51uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 162, "start_col": 31, "start_line": 162 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_appends_more_certificates =
51uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_policy_attest_init
val pd_supports_policy_attest_init : FStar.UInt64.t
let pd_supports_policy_attest_init = 55uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 72, "end_line": 166, "start_col": 31, "start_line": 166 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_policy_attest_init =
55uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_certificate_policies
val pd_supports_certificate_policies : FStar.UInt64.t
let pd_supports_certificate_policies = 52uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 74, "end_line": 163, "start_col": 31, "start_line": 163 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_certificate_policies =
52uL
false
Spec.AES.fst
Spec.AES.aes_keygen_assist
val aes_keygen_assist (rcon: elem) (s: block) : Tot block
val aes_keygen_assist (rcon: elem) (s: block) : Tot block
let aes_keygen_assist (rcon:elem) (s:block) : Tot block = let st = create 16 (to_elem 0) in let st = st.[0] <- sub_byte s.[4] in let st = st.[1] <- sub_byte s.[5] in let st = st.[2] <- sub_byte s.[6] in let st = st.[3] <- sub_byte s.[7] in let st = st.[4] <- rcon ^. sub_byte s.[5] in let st = st.[6] <- sub_byte s.[6] in let st = st.[6] <- sub_byte s.[7] in let st = st.[7] <- sub_byte s.[4] in let st = st.[8] <- sub_byte s.[12] in let st = st.[9] <- sub_byte s.[13] in let st = st.[10] <- sub_byte s.[14] in let st = st.[11] <- sub_byte s.[15] in let st = st.[12] <- rcon ^. sub_byte s.[13] in let st = st.[13] <- sub_byte s.[14] in let st = st.[14] <- sub_byte s.[15] in let st = st.[15] <- sub_byte s.[12] in st
{ "file_name": "specs/Spec.AES.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 228, "start_col": 0, "start_line": 207 }
module Spec.AES open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Spec.GaloisField /// Constants and Types (* GF(8) Field *) let irred = u8 0x1b let gf8 = gf U8 irred let elem = felem gf8 let to_elem = to_felem #gf8 let zero = to_elem 0 let two = to_elem 2 let three = to_elem 3 (* These operations are normalized here to avoid a huge blowup in generate code size *) let ( <<<. ) x y = normalize_term (rotate_left #U8 #SEC x y) let ( ^. ) x y = normalize_term (logxor #U8 #SEC x y) (* Specification of the Rijndael S-Box : *) type word = lseq elem 4 type block = lseq elem 16 type variant = | AES128 | AES256 let num_rounds (v:variant) = match v with | AES128 -> 10 | AES256 -> 14 let key_size (v:variant) = match v with | AES128 -> 16 | AES256 -> 32 let aes_key (v:variant) = lbytes (key_size v) let aes_xkey (v:variant) = lseq elem ((num_rounds v+1) * 16) let aes_ikey (v:variant) = lseq elem ((num_rounds v-1) * 16) let sub_byte (input:elem) = let s = finv input in s ^. (s <<<. size 1) ^. (s <<<. size 2) ^. (s <<<. size 3) ^. (s <<<. size 4) ^. (to_elem 99) let inv_sub_byte (input:elem) = let s = input in let s:elem = (s <<<. size 1) ^. (s <<<. size 3) ^. (s <<<. size 6) ^. (u8 5) in finv s let subBytes (state:block) : Tot block = map sub_byte state let inv_subBytes (state:block) : Tot block = map inv_sub_byte state let shiftRow (i:size_nat{i < 4}) (shift:size_nat{i < 4}) (state:block) : Tot block = let tmp0 = state.[i + (4 * (shift % 4))] in let tmp1 = state.[i + (4 * ((shift + 1) % 4))] in let tmp2 = state.[i + (4 * ((shift + 2) % 4))] in let tmp3 = state.[i + (4 * ((shift + 3) % 4))] in let state = state.[i] <- tmp0 in let state = state.[i+4] <- tmp1 in let state = state.[i+8] <- tmp2 in let state = state.[i+12] <- tmp3 in state let shiftRows (state: block) : Tot block = let state = shiftRow 1 1 state in let state = shiftRow 2 2 state in let state = shiftRow 3 3 state in state let inv_shiftRows (state: block) : Tot block = let state = shiftRow 1 3 state in let state = shiftRow 2 2 state in let state = shiftRow 3 1 state in state let mix4 (s0:elem) (s1:elem) (s2:elem) (s3:elem) : Tot elem = (s0 `fmul` two) `fadd` (s1 `fmul` three) `fadd` s2 `fadd` s3 let inv_mix4 (s0:elem) (s1:elem) (s2:elem) (s3:elem) : Tot elem = (* (s0 `fmul` to_elem 11) `fadd` (s1 `fmul` to_elem 13) `fadd` (s2 `fmul` to_elem 9) `fadd` (s3 `fmul` to_elem 14) *) (s0 `fmul` to_elem 14) `fadd` (s1 `fmul` to_elem 11) `fadd` (s2 `fmul` to_elem 13) `fadd` (s3 `fmul` to_elem 9) let mixColumn (c:size_nat{c < 4}) (state:block) : Tot block = let i0 = 4 * c in let s0 = state.[i0] in let s1 = state.[i0 + 1] in let s2 = state.[i0 + 2] in let s3 = state.[i0 + 3] in let state = state.[i0] <- mix4 s0 s1 s2 s3 in let state = state.[i0+1] <- mix4 s1 s2 s3 s0 in let state = state.[i0+2] <- mix4 s2 s3 s0 s1 in let state = state.[i0+3] <- mix4 s3 s0 s1 s2 in state let mixColumns (state:block) : Tot block = let state = mixColumn 0 state in let state = mixColumn 1 state in let state = mixColumn 2 state in let state = mixColumn 3 state in state let inv_mixColumn (c:size_nat{c < 4}) (state:block) : Tot block = let i0 = 4 * c in let s0 = state.[i0] in let s1 = state.[i0 + 1] in let s2 = state.[i0 + 2] in let s3 = state.[i0 + 3] in let state = state.[i0] <- inv_mix4 s0 s1 s2 s3 in let state = state.[i0+1] <- inv_mix4 s1 s2 s3 s0 in let state = state.[i0+2] <- inv_mix4 s2 s3 s0 s1 in let state = state.[i0+3] <- inv_mix4 s3 s0 s1 s2 in state let inv_mixColumns (state:block) : Tot block = let state = inv_mixColumn 0 state in let state = inv_mixColumn 1 state in let state = inv_mixColumn 2 state in let state = inv_mixColumn 3 state in state let xor_block (b1:block) (b2:block) : Tot block = map2 (logxor #U8) b1 b2 let addRoundKey (key:block) (state:block) : Tot block = xor_block state key let aes_enc (key:block) (state:block) : Tot block = let state = subBytes state in let state = shiftRows state in let state = mixColumns state in let state = addRoundKey key state in state let aes_enc_last (key:block) (state:block) : Tot block = let state = subBytes state in let state = shiftRows state in let state = addRoundKey key state in state let aes_dec (key:block) (state:block) : Tot block = let state = inv_subBytes state in let state = inv_shiftRows state in let state = inv_mixColumns state in let state = addRoundKey key state in state let aes_dec_last (key:block) (state:block) : Tot block = let state = inv_subBytes state in let state = inv_shiftRows state in let state = addRoundKey key state in state let rotate_word (w:word) : Tot word = of_list [w.[1]; w.[2]; w.[3]; w.[0]] let sub_word (w:word) : Tot word = map sub_byte w val rcon_spec: i:size_nat -> Tot elem let rec rcon_spec i = if i = 0 then to_elem 0x8d else if i = 1 then to_elem 1 else two `fmul` rcon_spec (i - 1) let rcon_l : list elem = [ to_elem 0x8d; to_elem 0x01; to_elem 0x02; to_elem 0x04; to_elem 0x08; to_elem 0x10; to_elem 0x20; to_elem 0x40; to_elem 0x80; to_elem 0x1b; to_elem 0x36 ] let rcon_seq : lseq elem 11 = assert_norm (List.Tot.length rcon_l == 11); of_list rcon_l #reset-options "--z3rlimit 100"
{ "checked_file": "/", "dependencies": [ "Spec.GaloisField.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Spec.AES.fst" }
[ { "abbrev": false, "full_module": "Spec.GaloisField", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.RawIntTypes", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec", "short_module": null }, { "abbrev": false, "full_module": "Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 100, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
rcon: Spec.AES.elem -> s: Spec.AES.block -> Spec.AES.block
Prims.Tot
[ "total" ]
[]
[ "Spec.AES.elem", "Spec.AES.block", "Lib.Sequence.lseq", "Prims.l_and", "Prims.eq2", "FStar.Seq.Base.seq", "Lib.Sequence.to_seq", "FStar.Seq.Base.upd", "Spec.AES.sub_byte", "Lib.Sequence.index", "Prims.l_Forall", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.pow2", "Prims.l_imp", "Prims.op_LessThan", "Prims.op_disEquality", "Prims.l_or", "FStar.Seq.Base.index", "Lib.Sequence.op_String_Assignment", "Lib.Sequence.op_String_Access", "Spec.AES.op_Hat_Dot", "FStar.Seq.Base.create", "Spec.AES.to_elem", "Lib.Sequence.create" ]
[]
false
false
false
true
false
let aes_keygen_assist (rcon: elem) (s: block) : Tot block =
let st = create 16 (to_elem 0) in let st = st.[ 0 ] <- sub_byte s.[ 4 ] in let st = st.[ 1 ] <- sub_byte s.[ 5 ] in let st = st.[ 2 ] <- sub_byte s.[ 6 ] in let st = st.[ 3 ] <- sub_byte s.[ 7 ] in let st = st.[ 4 ] <- rcon ^. sub_byte s.[ 5 ] in let st = st.[ 6 ] <- sub_byte s.[ 6 ] in let st = st.[ 6 ] <- sub_byte s.[ 7 ] in let st = st.[ 7 ] <- sub_byte s.[ 4 ] in let st = st.[ 8 ] <- sub_byte s.[ 12 ] in let st = st.[ 9 ] <- sub_byte s.[ 13 ] in let st = st.[ 10 ] <- sub_byte s.[ 14 ] in let st = st.[ 11 ] <- sub_byte s.[ 15 ] in let st = st.[ 12 ] <- rcon ^. sub_byte s.[ 13 ] in let st = st.[ 13 ] <- sub_byte s.[ 14 ] in let st = st.[ 14 ] <- sub_byte s.[ 15 ] in let st = st.[ 15 ] <- sub_byte s.[ 12 ] in st
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_policy_attest_loc
val pd_supports_policy_attest_loc : FStar.UInt64.t
let pd_supports_policy_attest_loc = 56uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 167, "start_col": 31, "start_line": 167 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_policy_attest_loc =
56uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_policy_identity_loc
val pd_supports_policy_identity_loc : FStar.UInt64.t
let pd_supports_policy_identity_loc = 54uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 73, "end_line": 165, "start_col": 31, "start_line": 165 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_policy_identity_loc =
54uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_policy_identity_init
val pd_supports_policy_identity_init : FStar.UInt64.t
let pd_supports_policy_identity_init = 53uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 74, "end_line": 164, "start_col": 31, "start_line": 164 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_policy_identity_init =
53uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_policy_assert_init
val pd_supports_policy_assert_init : FStar.UInt64.t
let pd_supports_policy_assert_init = 57uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 72, "end_line": 168, "start_col": 31, "start_line": 168 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_policy_assert_init =
57uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_certificate_policies
val pd_certificate_policies : FStar.UInt64.t
let pd_certificate_policies = 59uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 67, "end_line": 170, "start_col": 33, "start_line": 170 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_certificate_policies =
59uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_policy_assert_loc
val pd_supports_policy_assert_loc : FStar.UInt64.t
let pd_supports_policy_assert_loc = 58uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 169, "start_col": 31, "start_line": 169 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_policy_assert_loc =
58uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_public_key_format
val pd_public_key_format : FStar.UInt64.t
let pd_public_key_format = 63uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 64, "end_line": 174, "start_col": 33, "start_line": 174 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_public_key_format =
63uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_leaf_certificate_format
val pd_leaf_certificate_format : FStar.UInt64.t
let pd_leaf_certificate_format = 62uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 173, "start_col": 33, "start_line": 173 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_leaf_certificate_format =
62uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_eca_certificates
val pd_supports_eca_certificates : FStar.UInt64.t
let pd_supports_eca_certificates = 60uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 171, "start_col": 31, "start_line": 171 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_eca_certificates =
60uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_to_be_signed_format
val pd_to_be_signed_format : FStar.UInt64.t
let pd_to_be_signed_format = 65uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 176, "start_col": 33, "start_line": 176 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_to_be_signed_format =
65uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_eca_certificate_format
val pd_eca_certificate_format : FStar.UInt64.t
let pd_eca_certificate_format = 61uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 172, "start_col": 33, "start_line": 172 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_eca_certificate_format =
61uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_external_key
val pd_supports_external_key : FStar.UInt64.t
let pd_supports_external_key = 64uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 175, "start_col": 31, "start_line": 175 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_external_key =
64uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_unseal_policy
val pd_supports_unseal_policy : FStar.UInt64.t
let pd_supports_unseal_policy = 69uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 67, "end_line": 180, "start_col": 31, "start_line": 180 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_unseal_policy =
69uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_asymmetric_unseal
val pd_supports_asymmetric_unseal : FStar.UInt64.t
let pd_supports_asymmetric_unseal = 68uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 179, "start_col": 31, "start_line": 179 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_asymmetric_unseal =
68uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.create_uint_choice_from
val create_uint_choice_from (attr: T.term) : T.Tac unit
val create_uint_choice_from (attr: T.term) : T.Tac unit
let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] ))
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 4, "end_line": 207, "start_col": 0, "start_line": 199 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
attr: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.V1.Derived.exact", "Prims.unit", "DPE.Messages.Spec.t_create_choice_from_gen", "FStar.Reflection.V1.Derived.mk_e_app", "Prims.Cons", "Prims.Nil" ]
[]
false
true
false
false
false
let create_uint_choice_from (attr: T.term) : T.Tac unit =
T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [T.mk_e_app (`Cddl.t_uint_literal) [t]; accu]))
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_supports_symmetric_sign
val pd_supports_symmetric_sign : FStar.UInt64.t
let pd_supports_symmetric_sign = 67uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 68, "end_line": 178, "start_col": 31, "start_line": 178 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_supports_symmetric_sign =
67uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_signature_format
val pd_signature_format : FStar.UInt64.t
let pd_signature_format = 66uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 63, "end_line": 177, "start_col": 33, "start_line": 177 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_signature_format =
66uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_unseal_policy_format
val pd_unseal_policy_format : FStar.UInt64.t
let pd_unseal_policy_format = 70uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 67, "end_line": 181, "start_col": 33, "start_line": 181 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let pd_unseal_policy_format =
70uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.profile_descriptor
val profile_descriptor:Cddl.typ
val profile_descriptor:Cddl.typ
let profile_descriptor : Cddl.typ = Cddl.t_map ( Cddl.map_group_cons_zero_or_more (pd_attribute_bool `Cddl.MapGroupEntry` Cddl.t_bool) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_number `Cddl.MapGroupEntry` Cddl.uint) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_string `Cddl.MapGroupEntry` Cddl.tstr) false (* FIXME: really? *) ( Cddl.map_group_empty ))))
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 4, "end_line": 218, "start_col": 0, "start_line": 213 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool)) let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number)) let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string))
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.typ
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.t_map", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.map_group_cons_zero_or_more", "CDDL.Spec.MapGroupEntry", "DPE.Messages.Spec.pd_attribute_bool", "CDDL.Spec.t_bool", "DPE.Messages.Spec.pd_attribute_number", "CDDL.Spec.uint", "DPE.Messages.Spec.pd_attribute_string", "CDDL.Spec.tstr", "CDDL.Spec.map_group_empty" ]
[]
false
false
false
true
false
let profile_descriptor:Cddl.typ =
Cddl.t_map (Cddl.map_group_cons_zero_or_more (Cddl.MapGroupEntry pd_attribute_bool Cddl.t_bool) false (Cddl.map_group_cons_zero_or_more (Cddl.MapGroupEntry pd_attribute_number Cddl.uint) false (Cddl.map_group_cons_zero_or_more (Cddl.MapGroupEntry pd_attribute_string Cddl.tstr) false (Cddl.map_group_empty))))
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_attribute_string
val pd_attribute_string:Cddl.typ
val pd_attribute_string:Cddl.typ
let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string))
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 91, "end_line": 211, "start_col": 0, "start_line": 211 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool))
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.typ
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.t_choice", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.t_uint_literal", "DPE.Messages.Spec.pd_name", "DPE.Messages.Spec.pd_session_protocol", "DPE.Messages.Spec.pd_session_sync_policy", "DPE.Messages.Spec.pd_session_migration_protocol", "DPE.Messages.Spec.pd_dice_derivation", "DPE.Messages.Spec.pd_asymmetric_derivation", "DPE.Messages.Spec.pd_symmetric_derivation", "DPE.Messages.Spec.pd_supported_labels", "DPE.Messages.Spec.pd_initial_derivation", "DPE.Messages.Spec.pd_input_format", "DPE.Messages.Spec.pd_internal_dpe_info_type", "DPE.Messages.Spec.pd_internal_dpe_dice_type", "DPE.Messages.Spec.pd_internal_inputs", "DPE.Messages.Spec.pd_certificate_policies", "DPE.Messages.Spec.pd_eca_certificate_format", "DPE.Messages.Spec.pd_leaf_certificate_format", "DPE.Messages.Spec.pd_public_key_format", "DPE.Messages.Spec.pd_to_be_signed_format", "DPE.Messages.Spec.pd_signature_format", "DPE.Messages.Spec.pd_unseal_policy_format", "CDDL.Spec.t_always_false" ]
[]
false
false
false
true
false
let pd_attribute_string:Cddl.typ =
FStar.Tactics.Effect.synth_by_tactic (fun _ -> (create_uint_choice_from (`_pd_attribute_string)))
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_attribute_number
val pd_attribute_number:Cddl.typ
val pd_attribute_number:Cddl.typ
let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number))
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 91, "end_line": 210, "start_col": 0, "start_line": 210 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] ))
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.typ
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.t_choice", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.t_uint_literal", "DPE.Messages.Spec.pd_dpe_spec_version", "DPE.Messages.Spec.pd_max_message_size", "DPE.Messages.Spec.pd_max_sessions", "DPE.Messages.Spec.pd_max_contexts_per_session", "DPE.Messages.Spec.pd_max_context_handle_size", "DPE.Messages.Spec.pd_max_certificate_size", "DPE.Messages.Spec.pd_max_certificate_chain_size", "CDDL.Spec.t_always_false" ]
[]
false
false
false
true
false
let pd_attribute_number:Cddl.typ =
FStar.Tactics.Effect.synth_by_tactic (fun _ -> (create_uint_choice_from (`_pd_attribute_number)))
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.pd_attribute_bool
val pd_attribute_bool:Cddl.typ
val pd_attribute_bool:Cddl.typ
let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool))
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 87, "end_line": 209, "start_col": 0, "start_line": 209 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] ))
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.typ
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.t_choice", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.t_uint_literal", "DPE.Messages.Spec.pd_uses_multi_part_messaghes", "DPE.Messages.Spec.pd_supports_concurrent_operations", "DPE.Messages.Spec.pd_supports_encrypted_sessions", "DPE.Messages.Spec.pd_supports_derived_sessions", "DPE.Messages.Spec.pd_supports_session_sync", "DPE.Messages.Spec.pd_supports_session_migration", "DPE.Messages.Spec.pd_supports_default_context", "DPE.Messages.Spec.pd_supports_context_handles", "DPE.Messages.Spec.pd_supports_auto_init", "DPE.Messages.Spec.pd_supports_simulation", "DPE.Messages.Spec.pd_supports_attestation", "DPE.Messages.Spec.pd_supports_sealing", "DPE.Messages.Spec.pd_supports_get_profile", "DPE.Messages.Spec.pd_supports_open_session", "DPE.Messages.Spec.pd_supports_close_session", "DPE.Messages.Spec.pd_supports_sync_session", "DPE.Messages.Spec.pd_supports_export_session", "DPE.Messages.Spec.pd_supports_import_session", "DPE.Messages.Spec.pd_supports_init_context", "DPE.Messages.Spec.pd_supports_certify_key", "DPE.Messages.Spec.pd_supports_sign", "DPE.Messages.Spec.pd_supports_seal", "DPE.Messages.Spec.pd_supports_unseal", "DPE.Messages.Spec.pd_supports_sealing_public", "DPE.Messages.Spec.pd_supports_rotate_context_handle", "DPE.Messages.Spec.pd_supports_any_label", "DPE.Messages.Spec.pd_supports_internal_inputs", "DPE.Messages.Spec.pd_supports_internal_dpe_info", "DPE.Messages.Spec.pd_supports_internal_dpe_dice", "DPE.Messages.Spec.pd_supports_certificates", "DPE.Messages.Spec.pd_appends_more_certificates", "DPE.Messages.Spec.pd_supports_certificate_policies", "DPE.Messages.Spec.pd_supports_policy_identity_init", "DPE.Messages.Spec.pd_supports_policy_identity_loc", "DPE.Messages.Spec.pd_supports_policy_attest_init", "DPE.Messages.Spec.pd_supports_policy_attest_loc", "DPE.Messages.Spec.pd_supports_policy_assert_init", "DPE.Messages.Spec.pd_supports_policy_assert_loc", "DPE.Messages.Spec.pd_supports_eca_certificates", "DPE.Messages.Spec.pd_supports_external_key", "DPE.Messages.Spec.pd_supports_symmetric_sign", "DPE.Messages.Spec.pd_supports_asymmetric_unseal", "DPE.Messages.Spec.pd_supports_unseal_policy", "CDDL.Spec.t_always_false" ]
[]
false
false
false
true
false
let pd_attribute_bool:Cddl.typ =
FStar.Tactics.Effect.synth_by_tactic (fun _ -> (create_uint_choice_from (`_pd_attribute_bool)))
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.get_profile_input_args
val get_profile_input_args:Cddl.typ
val get_profile_input_args:Cddl.typ
let get_profile_input_args : Cddl.typ = Cddl.t_map ( default_args_group )
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 228, "start_col": 16, "start_line": 226 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool)) let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number)) let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string)) let profile_descriptor : Cddl.typ = Cddl.t_map ( Cddl.map_group_cons_zero_or_more (pd_attribute_bool `Cddl.MapGroupEntry` Cddl.t_bool) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_number `Cddl.MapGroupEntry` Cddl.uint) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_string `Cddl.MapGroupEntry` Cddl.tstr) false (* FIXME: really? *) ( Cddl.map_group_empty )))) // Section 6.1 let default_args_group = Cddl.map_group_cons_zero_or_more (Cddl.uint `Cddl.MapGroupEntry` Cddl.any) false Cddl.map_group_empty
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.typ
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.t_map", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "DPE.Messages.Spec.default_args_group" ]
[]
false
false
false
true
false
let get_profile_input_args:Cddl.typ =
Cddl.t_map (default_args_group)
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.get_profile_output_args_group
val get_profile_output_args_group : CDDL.Spec.map_group FStar.Pervasives.Native.None
let get_profile_output_args_group = Cddl.map_group_cons_zero_or_one (Cddl.t_uint_literal get_profile_profile_descriptor `Cddl.MapGroupEntry` profile_descriptor) false ( default_args_group )
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 236, "start_col": 0, "start_line": 233 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool)) let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number)) let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string)) let profile_descriptor : Cddl.typ = Cddl.t_map ( Cddl.map_group_cons_zero_or_more (pd_attribute_bool `Cddl.MapGroupEntry` Cddl.t_bool) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_number `Cddl.MapGroupEntry` Cddl.uint) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_string `Cddl.MapGroupEntry` Cddl.tstr) false (* FIXME: really? *) ( Cddl.map_group_empty )))) // Section 6.1 let default_args_group = Cddl.map_group_cons_zero_or_more (Cddl.uint `Cddl.MapGroupEntry` Cddl.any) false Cddl.map_group_empty [@@_input_args] let get_profile_input_args : Cddl.typ = Cddl.t_map ( default_args_group ) [@@CMacro] let get_profile_profile_descriptor = 1uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.map_group FStar.Pervasives.Native.None
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.map_group_cons_zero_or_one", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.MapGroupEntry", "CDDL.Spec.t_uint_literal", "DPE.Messages.Spec.get_profile_profile_descriptor", "DPE.Messages.Spec.profile_descriptor", "DPE.Messages.Spec.default_args_group" ]
[]
false
false
false
true
false
let get_profile_output_args_group =
Cddl.map_group_cons_zero_or_one (Cddl.MapGroupEntry (Cddl.t_uint_literal get_profile_profile_descriptor) profile_descriptor) false (default_args_group)
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.get_profile_profile_descriptor
val get_profile_profile_descriptor : FStar.UInt64.t
let get_profile_profile_descriptor = 1uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 40, "end_line": 231, "start_col": 0, "start_line": 231 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool)) let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number)) let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string)) let profile_descriptor : Cddl.typ = Cddl.t_map ( Cddl.map_group_cons_zero_or_more (pd_attribute_bool `Cddl.MapGroupEntry` Cddl.t_bool) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_number `Cddl.MapGroupEntry` Cddl.uint) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_string `Cddl.MapGroupEntry` Cddl.tstr) false (* FIXME: really? *) ( Cddl.map_group_empty )))) // Section 6.1 let default_args_group = Cddl.map_group_cons_zero_or_more (Cddl.uint `Cddl.MapGroupEntry` Cddl.any) false Cddl.map_group_empty [@@_input_args] let get_profile_input_args : Cddl.typ = Cddl.t_map ( default_args_group )
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let get_profile_profile_descriptor =
1uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.default_args_group
val default_args_group : CDDL.Spec.map_group FStar.Pervasives.Native.None
let default_args_group = Cddl.map_group_cons_zero_or_more (Cddl.uint `Cddl.MapGroupEntry` Cddl.any) false Cddl.map_group_empty
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 22, "end_line": 224, "start_col": 0, "start_line": 222 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool)) let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number)) let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string)) let profile_descriptor : Cddl.typ = Cddl.t_map ( Cddl.map_group_cons_zero_or_more (pd_attribute_bool `Cddl.MapGroupEntry` Cddl.t_bool) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_number `Cddl.MapGroupEntry` Cddl.uint) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_string `Cddl.MapGroupEntry` Cddl.tstr) false (* FIXME: really? *) ( Cddl.map_group_empty )))) // Section 6.1
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
CDDL.Spec.map_group FStar.Pervasives.Native.None
Prims.Tot
[ "total" ]
[]
[ "CDDL.Spec.map_group_cons_zero_or_more", "FStar.Pervasives.Native.None", "CBOR.Spec.Type.raw_data_item", "CDDL.Spec.MapGroupEntry", "CDDL.Spec.uint", "CDDL.Spec.any", "CDDL.Spec.map_group_empty" ]
[]
false
false
false
true
false
let default_args_group =
Cddl.map_group_cons_zero_or_more (Cddl.MapGroupEntry Cddl.uint Cddl.any) false Cddl.map_group_empty
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.open_session_initiator_handshake
val open_session_initiator_handshake : FStar.UInt64.t
let open_session_initiator_handshake = 1uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 250, "start_col": 0, "start_line": 250 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool)) let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number)) let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string)) let profile_descriptor : Cddl.typ = Cddl.t_map ( Cddl.map_group_cons_zero_or_more (pd_attribute_bool `Cddl.MapGroupEntry` Cddl.t_bool) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_number `Cddl.MapGroupEntry` Cddl.uint) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_string `Cddl.MapGroupEntry` Cddl.tstr) false (* FIXME: really? *) ( Cddl.map_group_empty )))) // Section 6.1 let default_args_group = Cddl.map_group_cons_zero_or_more (Cddl.uint `Cddl.MapGroupEntry` Cddl.any) false Cddl.map_group_empty [@@_input_args] let get_profile_input_args : Cddl.typ = Cddl.t_map ( default_args_group ) [@@CMacro] let get_profile_profile_descriptor = 1uL let get_profile_output_args_group = Cddl.map_group_cons_zero_or_one (Cddl.t_uint_literal get_profile_profile_descriptor `Cddl.MapGroupEntry` profile_descriptor) false ( default_args_group ) #push-options "--z3rlimit 32" let _ : squash (get_profile_output_args_group `Cddl.map_group_equiv` default_args_group) = Cddl.map_group_ignore_restricted_entries_no_one_equiv get_profile_output_args_group #pop-options [@@_output_args] let get_profile_output_args : Cddl.typ = Cddl.t_map ( get_profile_output_args_group ) // Section 6.2
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let open_session_initiator_handshake =
1uL
false
DPE.Messages.Spec.fst
DPE.Messages.Spec.open_session_is_migratable
val open_session_is_migratable : FStar.UInt64.t
let open_session_is_migratable = 2uL
{ "file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 36, "end_line": 252, "start_col": 0, "start_line": 252 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module DPE.Messages.Spec module Cddl = CDDL.Spec module Cbor = CBOR.Spec module U64 = FStar.UInt64 module U8 = FStar.UInt8 (* TCG DICE Protection Engine, Version 1.0, Revision 0.6 *) // Section 5.9.2: DPE uses CBOR (RFC 8949) Section 4.2.1 let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order // Section 5.9.3 let session_message : Cddl.typ = Cddl.t_array3 ( Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat` Cddl.array_group3_item (* message *) Cddl.bytes ) // Section 5.9.4 [@@CMacro] let get_profile = 1uL [@@CMacro] let open_session = 2uL [@@CMacro] let close_session = 3uL [@@CMacro] let sync_session = 4uL [@@CMacro] let export_session = 5uL [@@CMacro] let import_session = 6uL [@@CMacro] let initialize_context = 7uL [@@CMacro] let derive_child = 8uL [@@CMacro] let certify_key = 9uL [@@CMacro] let sign = 10uL [@@CMacro] let seal = 11uL [@@CMacro] let unseal = 12uL [@@CMacro] let derive_sealing_public_key = 13uL [@@CMacro] let rotate_context_handle = 14uL [@@CMacro] let destroy_context = 15uL let command_id = Cddl.t_uint_literal get_profile `Cddl.t_choice` Cddl.t_uint_literal open_session `Cddl.t_choice` Cddl.t_uint_literal close_session `Cddl.t_choice` Cddl.t_uint_literal sync_session `Cddl.t_choice` Cddl.t_uint_literal export_session `Cddl.t_choice` Cddl.t_uint_literal import_session `Cddl.t_choice` Cddl.t_uint_literal initialize_context `Cddl.t_choice` Cddl.t_uint_literal derive_child `Cddl.t_choice` Cddl.t_uint_literal certify_key `Cddl.t_choice` Cddl.t_uint_literal sign `Cddl.t_choice` Cddl.t_uint_literal seal `Cddl.t_choice` Cddl.t_uint_literal unseal `Cddl.t_choice` Cddl.t_uint_literal derive_sealing_public_key `Cddl.t_choice` Cddl.t_uint_literal rotate_context_handle `Cddl.t_choice` Cddl.t_uint_literal destroy_context [@@CMacro] let no_error = 0uL [@@CMacro] let internal_error = 1uL [@@CMacro] let invalid_command = 2uL [@@CMacro] let invalid_argument = 3uL [@@CMacro] let argument_not_supported = 4uL [@@CMacro] let session_exhausted = 5uL let error_code = Cddl.t_uint_literal no_error `Cddl.t_choice` Cddl.t_uint_literal internal_error `Cddl.t_choice` Cddl.t_uint_literal invalid_command `Cddl.t_choice` Cddl.t_uint_literal invalid_argument `Cddl.t_choice` Cddl.t_uint_literal argument_not_supported `Cddl.t_choice` Cddl.t_uint_literal session_exhausted let _input_args = () let _output_args = () // Section 7.4 let _pd_attribute_bool = () let _pd_attribute_number = () let _pd_attribute_string = () [@@_pd_attribute_string; CMacro] let pd_name = 1uL [@@_pd_attribute_number; CMacro] let pd_dpe_spec_version = 2uL [@@_pd_attribute_number; CMacro] let pd_max_message_size = 3uL [@@_pd_attribute_bool; CMacro] let pd_uses_multi_part_messaghes = 4uL [@@_pd_attribute_bool; CMacro] let pd_supports_concurrent_operations = 5uL [@@_pd_attribute_bool; CMacro] let pd_supports_encrypted_sessions = 6uL [@@_pd_attribute_bool; CMacro] let pd_supports_derived_sessions = 7uL [@@_pd_attribute_number; CMacro] let pd_max_sessions = 8uL [@@_pd_attribute_string; CMacro] let pd_session_protocol = 9uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_sync = 10uL [@@_pd_attribute_string; CMacro] let pd_session_sync_policy = 11uL [@@_pd_attribute_bool; CMacro] let pd_supports_session_migration = 12uL [@@_pd_attribute_string; CMacro] let pd_session_migration_protocol = 13uL [@@_pd_attribute_bool; CMacro] let pd_supports_default_context = 14uL [@@_pd_attribute_bool; CMacro] let pd_supports_context_handles = 15uL [@@_pd_attribute_number; CMacro] let pd_max_contexts_per_session = 16uL [@@_pd_attribute_number; CMacro] let pd_max_context_handle_size = 17uL [@@_pd_attribute_bool; CMacro] let pd_supports_auto_init = 18uL [@@_pd_attribute_bool; CMacro] let pd_supports_simulation = 19uL [@@_pd_attribute_bool; CMacro] let pd_supports_attestation = 20uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing = 21uL [@@_pd_attribute_bool; CMacro] let pd_supports_get_profile = 22uL [@@_pd_attribute_bool; CMacro] let pd_supports_open_session = 23uL [@@_pd_attribute_bool; CMacro] let pd_supports_close_session = 24uL [@@_pd_attribute_bool; CMacro] let pd_supports_sync_session = 25uL [@@_pd_attribute_bool; CMacro] let pd_supports_export_session = 26uL [@@_pd_attribute_bool; CMacro] let pd_supports_import_session = 27uL [@@_pd_attribute_bool; CMacro] let pd_supports_init_context = 28uL [@@_pd_attribute_bool; CMacro] let pd_supports_certify_key = 29uL [@@_pd_attribute_bool; CMacro] let pd_supports_sign = 30uL [@@_pd_attribute_bool; CMacro] let pd_supports_seal = 31uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal = 32uL [@@_pd_attribute_bool; CMacro] let pd_supports_sealing_public = 33uL [@@_pd_attribute_bool; CMacro] let pd_supports_rotate_context_handle = 34uL [@@_pd_attribute_string; CMacro] let pd_dice_derivation = 35uL [@@_pd_attribute_string; CMacro] let pd_asymmetric_derivation = 36uL [@@_pd_attribute_string; CMacro] let pd_symmetric_derivation = 37uL [@@_pd_attribute_bool; CMacro] let pd_supports_any_label = 38uL [@@_pd_attribute_string; CMacro] let pd_supported_labels = 39uL [@@_pd_attribute_string; CMacro] let pd_initial_derivation = 40uL [@@_pd_attribute_string; CMacro] let pd_input_format = 41uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_inputs = 42uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_info = 43uL [@@_pd_attribute_bool; CMacro] let pd_supports_internal_dpe_dice = 44uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_info_type = 45uL [@@_pd_attribute_string; CMacro] let pd_internal_dpe_dice_type = 46uL [@@_pd_attribute_string; CMacro] let pd_internal_inputs = 47uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificates = 48uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_size = 49uL [@@_pd_attribute_number; CMacro] let pd_max_certificate_chain_size = 50uL [@@_pd_attribute_bool; CMacro] let pd_appends_more_certificates = 51uL [@@_pd_attribute_bool; CMacro] let pd_supports_certificate_policies = 52uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_init = 53uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_identity_loc = 54uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_init = 55uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_attest_loc = 56uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_init = 57uL [@@_pd_attribute_bool; CMacro] let pd_supports_policy_assert_loc = 58uL [@@_pd_attribute_string; CMacro] let pd_certificate_policies = 59uL [@@_pd_attribute_bool; CMacro] let pd_supports_eca_certificates = 60uL [@@_pd_attribute_string; CMacro] let pd_eca_certificate_format = 61uL [@@_pd_attribute_string; CMacro] let pd_leaf_certificate_format = 62uL [@@_pd_attribute_string; CMacro] let pd_public_key_format = 63uL [@@_pd_attribute_bool; CMacro] let pd_supports_external_key = 64uL [@@_pd_attribute_string; CMacro] let pd_to_be_signed_format = 65uL [@@_pd_attribute_string; CMacro] let pd_signature_format = 66uL [@@_pd_attribute_bool; CMacro] let pd_supports_symmetric_sign = 67uL [@@_pd_attribute_bool; CMacro] let pd_supports_asymmetric_unseal = 68uL [@@_pd_attribute_bool; CMacro] let pd_supports_unseal_policy = 69uL [@@_pd_attribute_string; CMacro] let pd_unseal_policy_format = 70uL module T = FStar.Tactics [@@noextract_to "krml"] let t_create_choice_from_gen (attr: T.term) (f: T.term -> T.term -> T.term) : T.Tac T.term = let e = T.cur_env () in let l = T.lookup_attr attr e in let rec aux (accu: T.term) (l: list T.fv) : T.Tac T.term = match l with | [] -> accu | v :: l' -> let accu' = f accu (T.pack (T.Tv_FVar v)) in aux accu' l' in aux (`Cddl.t_always_false) l [@@noextract_to "krml"] let create_uint_choice_from (attr: T.term) : T.Tac unit = T.exact (t_create_choice_from_gen attr (fun accu t -> T.mk_e_app (`Cddl.t_choice) [ T.mk_e_app (`Cddl.t_uint_literal) [ t ]; accu; ] )) let pd_attribute_bool : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_bool)) let pd_attribute_number : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_number)) let pd_attribute_string : Cddl.typ = _ by (create_uint_choice_from (`_pd_attribute_string)) let profile_descriptor : Cddl.typ = Cddl.t_map ( Cddl.map_group_cons_zero_or_more (pd_attribute_bool `Cddl.MapGroupEntry` Cddl.t_bool) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_number `Cddl.MapGroupEntry` Cddl.uint) false (* FIXME: really? *) ( Cddl.map_group_cons_zero_or_more (pd_attribute_string `Cddl.MapGroupEntry` Cddl.tstr) false (* FIXME: really? *) ( Cddl.map_group_empty )))) // Section 6.1 let default_args_group = Cddl.map_group_cons_zero_or_more (Cddl.uint `Cddl.MapGroupEntry` Cddl.any) false Cddl.map_group_empty [@@_input_args] let get_profile_input_args : Cddl.typ = Cddl.t_map ( default_args_group ) [@@CMacro] let get_profile_profile_descriptor = 1uL let get_profile_output_args_group = Cddl.map_group_cons_zero_or_one (Cddl.t_uint_literal get_profile_profile_descriptor `Cddl.MapGroupEntry` profile_descriptor) false ( default_args_group ) #push-options "--z3rlimit 32" let _ : squash (get_profile_output_args_group `Cddl.map_group_equiv` default_args_group) = Cddl.map_group_ignore_restricted_entries_no_one_equiv get_profile_output_args_group #pop-options [@@_output_args] let get_profile_output_args : Cddl.typ = Cddl.t_map ( get_profile_output_args_group ) // Section 6.2 [@@CMacro] let open_session_initiator_handshake = 1uL
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CBOR.Spec.fsti.checked" ], "interface_file": false, "source_file": "DPE.Messages.Spec.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "CBOR.Spec", "short_module": "Cbor" }, { "abbrev": true, "full_module": "CDDL.Spec", "short_module": "Cddl" }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "DPE.Messages", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
true
false
let open_session_is_migratable =
2uL
false