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 listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll_lemma | val mod_exp_mont_ll_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont_ll pbits rLen n mu a b == pow_mod #n a b) | val mod_exp_mont_ll_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont_ll pbits rLen n mu a b == pow_mod #n a b) | let mod_exp_mont_ll_lemma pbits rLen n mu a b =
let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow k aM b in
assert (accM == LE.pow k aM b /\ accM < n);
Math.Lemmas.small_mod accM n;
mod_exp_mont_ll_mod_lemma ... | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 303,
"start_col": 0,
"start_line": 295
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll pbits rLen n mu a b == Lib.NatMod.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll_mod_lemma",
"Prims.unit",
"FStar.Math.Lemmas.small_mod",
"Prims._assert",
"Prims.l_and",
"Prims.eq2",
"Lib.Exponentiation.Definition.pow",
"Prims.b2t",
"Pr... | [] | true | false | true | false | false | let mod_exp_mont_ll_lemma pbits rLen n mu a b =
| let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow k aM b in
assert (accM == LE.pow k aM b /\ accM < n);
Math.Lemmas.small_mod accM n;
mod_exp_mont_ll_mod_lemma pbits rLen n mu a b accM | false |
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll | val mod_exp_mont_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> nat_mod n | val mod_exp_mont_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> nat_mod n | let mod_exp_mont_ll pbits rLen n mu a b =
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow (mk_nat_mont_ll_comm_monoid pbits rLen n mu) aM b in
let acc = M.from_mont pbits rLen n mu accM in
M.from_mont_lemma pbits rLen n mu accM;
acc | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 256,
"start_col": 0,
"start_line": 250
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> Lib.NatMod.nat_mod n | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Prims.unit",
"Hacl.Spec.Montgomery.Lemmas.from_mont_lemma",
"Hacl.Spec.Montgomery.Lemmas.from_mont",
"Lib.Exponentiation.Definition.pow",
"Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_ll_comm_monoid",
"Hacl.Spe... | [] | false | false | false | false | false | let mod_exp_mont_ll pbits rLen n mu a b =
| let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow (mk_nat_mont_ll_comm_monoid pbits rLen n mu) aM b in
let acc = M.from_mont pbits rLen n mu accM in
M.from_mont_lemma pbits rLen n mu accM;
acc | false |
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_is_pow | val pow_nat_mont_is_pow: n:pos -> r:nat -> d:int{r * d % n = 1} -> aM:nat_mod n -> b:nat ->
Lemma (pow (aM * d % n) b * r % n == LE.pow (mk_nat_mont_comm_monoid n r d) aM b) | val pow_nat_mont_is_pow: n:pos -> r:nat -> d:int{r * d % n = 1} -> aM:nat_mod n -> b:nat ->
Lemma (pow (aM * d % n) b * r % n == LE.pow (mk_nat_mont_comm_monoid n r d) aM b) | let rec pow_nat_mont_is_pow n r d aM b =
let k = mk_nat_mont_comm_monoid n r d in
if b = 0 then begin
calc (==) {
pow (aM * d % n) b * r % n;
(==) { lemma_pow0 (aM * d % n) }
1 * r % n;
(==) { LE.lemma_pow0 k aM }
LE.pow k aM b;
}; () end
else begin
calc (==) {
po... | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 107,
"start_col": 0,
"start_line": 78
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
n: Prims.pos ->
r: Prims.nat ->
d: Prims.int{r * d % n = 1} ->
aM: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(ensures
Lib.NatMod.pow (aM * d % n) b * r % n ==
Lib.Exponentiation.Definition.pow (Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_comm_monoid n
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.nat",
"Prims.int",
"Prims.b2t",
"Prims.op_Equality",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.NatMod.nat_mod",
"Prims.unit",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Lib.NatMod.pow",
"Lib.Exponentiation.Definition.pow",
"Prims.Cons",
"FStar.Preorder.relation",
"... | [
"recursion"
] | false | false | true | false | false | let rec pow_nat_mont_is_pow n r d aM b =
| let k = mk_nat_mont_comm_monoid n r d in
if b = 0
then
(calc ( == ) {
pow (aM * d % n) b * r % n;
( == ) { lemma_pow0 (aM * d % n) }
1 * r % n;
( == ) { LE.lemma_pow0 k aM }
LE.pow k aM b;
};
())
else
(calc ( == ) {
pow (aM * d % n) b * r % n;
( == ) { lemma_pow_unf... | false |
Vale.X64.InsStack.fst | Vale.X64.InsStack.va_wpProof_PopXmm_Secret | val va_wpProof_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 ->
expected_xmm:quad32 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm_Secret dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g... | val va_wpProof_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 ->
expected_xmm:quad32 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm_Secret dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g... | let va_wpProof_PopXmm_Secret dst tmp expected_xmm va_s0 va_k =
let (va_sM, va_f0) = va_lemma_PopXmm_Secret (va_code_PopXmm_Secret dst tmp) va_s0 dst tmp
expected_xmm in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stack va_sM (va_update_reg64 rRsp va_sM (va_update_ok va_sM
(va_update_op... | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 420,
"start_col": 0,
"start_line": 411
} | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Print_s.fst.checked",
"Va... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"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_el... | false |
dst: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
expected_xmm: Vale.X64.Decls.quad32 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.Qui... | [] | false | false | false | false | false | let va_wpProof_PopXmm_Secret dst tmp expected_xmm va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_PopXmm_Secret (va_code_PopXmm_Secret dst tmp) va_s0 dst tmp expected_xmm
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stack va_sM
(va_update_reg64 rRsp
va_sM
(va_update_ok va_sM
(va_update_operand_reg_opr64... | false |
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_lemma | val mod_exp_mont_lemma: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont n r d a b == pow_mod #n a b) | val mod_exp_mont_lemma: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont n r d a b == pow_mod #n a b) | let mod_exp_mont_lemma n r d a b =
let k = mk_nat_mont_comm_monoid n r d in
let aM = a * r % n in
//let accM = LE.pow k aM b in
//let acc = accM * d % n in
calc (==) { // acc
LE.pow k aM b * d % n;
(==) { pow_nat_mont_is_pow n r d aM b }
(pow (aM * d % n) b * r % n) * d % n;
(==) { M.lemma_mo... | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 141,
"start_col": 0,
"start_line": 121
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
n: Prims.pos ->
r: Prims.pos ->
d: Prims.int{r * d % n == 1} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(ensures Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont n r d a b == Lib.NatMod.pow_mod a b) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.NatMod.nat_mod",
"Prims.nat",
"Lib.NatMod.lemma_pow_mod",
"Prims.unit",
"Prims._assert",
"Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont",
"Lib.NatMod.pow",
"FStar.Calc.calc_finish",
"Lib.Exponentiation.Defi... | [] | false | false | true | false | false | let mod_exp_mont_lemma n r d a b =
| let k = mk_nat_mont_comm_monoid n r d in
let aM = a * r % n in
calc ( == ) {
LE.pow k aM b * d % n;
( == ) { pow_nat_mont_is_pow n r d aM b }
(pow (aM * d % n) b * r % n) * d % n;
( == ) { M.lemma_mont_id n r d (pow (aM * d % n) b) }
pow (aM * d % n) b % n;
( == ) { () }
pow ((a * r % n) * d % n) b % n;
... | false |
Vale.X64.InsStack.fst | Vale.X64.InsStack.va_lemma_Load64_stack | val va_lemma_Load64_stack : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64 ->
src:va_operand_reg_opr64 -> offset:int
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Load64_stack dst src offset) va_s0 /\
va_is_dst_dst_opr64 dst va_s0 /\ va_is_src_reg_opr64 src va_s0 /\ va_... | val va_lemma_Load64_stack : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64 ->
src:va_operand_reg_opr64 -> offset:int
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Load64_stack dst src offset) va_s0 /\
va_is_dst_dst_opr64 dst va_s0 /\ va_is_src_reg_opr64 src va_s0 /\ va_... | let va_lemma_Load64_stack va_b0 va_s0 dst src offset =
va_reveal_opaque (`%va_code_Load64_stack) (va_code_Load64_stack dst src offset);
let (va_old_s:va_state) = va_s0 in
va_ins_lemma (mk_ins (make_instr_annotate (I.ins_Mov64) (S.AnnotateMov64 ()) dst (OStack ((MReg
(get_reg src) offset, Public))))) va_s0;
... | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 201,
"start_col": 0,
"start_line": 192
} | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Print_s.fst.checked",
"Va... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"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_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_dst_opr64 ->
src: Vale.X64.Decls.va_operand_reg_opr64 ->
offset: Prims.int
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_operand_reg_opr64",
"Prims.int",
"Vale.X64.State.vale_state",
"Vale.X64.Lemmas.fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Prims.unit",
"Vale.X64.Stack_i.lemma... | [] | false | false | false | false | false | let va_lemma_Load64_stack va_b0 va_s0 dst src offset =
| va_reveal_opaque (`%va_code_Load64_stack) (va_code_Load64_stack dst src offset);
let va_old_s:va_state = va_s0 in
va_ins_lemma (mk_ins (make_instr_annotate (I.ins_Mov64)
(S.AnnotateMov64 ())
dst
(OStack ((MReg (get_reg src) offset, Public)))))
va_s0;
let va_sM, va_fM =
va_eval_ins (mk_... | false |
Vale.X64.InsStack.fst | Vale.X64.InsStack.va_lemma_PopXmm | val va_lemma_PopXmm : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm dst tmp) va_s0 /\ va_is_dst_xmm dst va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_en... | val va_lemma_PopXmm : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm dst tmp) va_s0 /\ va_is_dst_xmm dst va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_en... | let va_lemma_PopXmm va_b0 va_s0 dst tmp expected_xmm =
va_reveal_opaque (`%va_code_PopXmm) (va_code_PopXmm dst tmp);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (va_s2, va_fc2) = va_lemma_Pop (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp) in
let va_b2 = va_t... | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 302,
"start_col": 0,
"start_line": 282
} | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Print_s.fst.checked",
"Va... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"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_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
expected_xmm: Vale.X64.Decls.quad32
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.Sta... | [] | false | false | false | false | false | let va_lemma_PopXmm va_b0 va_s0 dst tmp expected_xmm =
| va_reveal_opaque (`%va_code_PopXmm) (va_code_PopXmm dst tmp);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let va_s2, va_fc2 = va_lemma_Pop (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp) in
let va_b2 = va_tl va_b1 in
let va_s3, va_fc3 = va_lemma_Pinsrq (va_hd va_b2) va_s2 dst ... | false |
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll_mod_lemma | val mod_exp_mont_ll_mod_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> accM:nat -> Lemma
(requires (let r = pow2 (pbits * rLen) in
let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
accM < r /\ accM % n == LE.pow k (a * r % n) b))
(ensures
(le... | val mod_exp_mont_ll_mod_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> accM:nat -> Lemma
(requires (let r = pow2 (pbits * rLen) in
let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
accM < r /\ accM % n == LE.pow k (a * r % n) b))
(ensures
(le... | let mod_exp_mont_ll_mod_lemma pbits rLen n mu a b accM =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let aM = M.to_mont pbits rLen n mu a i... | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 288,
"start_col": 0,
"start_line": 269
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat ->
accM: Prims.nat
-> FStar.Pervasives.Lemma
(requires
(let r = Prims.pow2 (pbits * rLen) in
let k ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Prims.int",
"Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_lemma",
"Prims.unit",
"FStar.Math.Lemmas.lemma_mod_mul_distr_l",
"Prims._assert",
"Prims.eq2",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Hacl.Spe... | [] | false | false | true | false | false | let mod_exp_mont_ll_mod_lemma pbits rLen n mu a b accM =
| let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
assert (aM == a * r % n);
pow_nat_... | false |
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.from_mont_exp_lemma | val from_mont_exp_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat -> aM:nat -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu /\ aM < n)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let cM = LE.pow k aM b in
let c = M.from_mont pbits rLen n mu cM in
let a = M.from_mont pbi... | val from_mont_exp_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat -> aM:nat -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu /\ aM < n)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let cM = LE.pow k aM b in
let c = M.from_mont pbits rLen n mu cM in
let a = M.from_mont pbi... | let from_mont_exp_lemma pbits rLen n mu aM b =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let cM = LE.pow k1 aM b in
let c = M.from_mont... | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 344,
"start_col": 0,
"start_line": 316
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat ->
aM: Prims.nat ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu /\ aM < n)
(ensures
(let k = Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_ll_comm_m... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.nat",
"Prims.int",
"Prims._assert",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Lib.NatMod.pow_mod",
"Prims.unit",
"FStar.Calc.calc_finish",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"FStar.Ca... | [] | false | false | true | false | false | let from_mont_exp_lemma pbits rLen n mu aM b =
| let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let cM = LE.pow k1 aM b in
let c = M.from_mont pbits rLen n mu cM in
let a = M.from_mont pbits rLen n mu aM i... | false |
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_ll_mod_base | val pow_nat_mont_ll_mod_base:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
LE.pow k a b == LE.pow k (a % n) b)) | val pow_nat_mont_ll_mod_base:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
LE.pow k a b == LE.pow k (a % n) b)) | let pow_nat_mont_ll_mod_base pbits rLen n mu a b =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_comm_monoid n r d in
let k2 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
calc (==) {
LE.pow k2 a b;
(==) { po... | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 377,
"start_col": 0,
"start_line": 357
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu)
(ensures
(let k = Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_ll_comm_monoid ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.nat",
"Lib.NatMod.nat_mod",
"Prims.int",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Lib.Exponentiation.Definition.pow",
"Prims.op_Modulus",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Mul.op_Star",
"Lib.NatMod.pow",
... | [] | false | false | true | false | false | let pow_nat_mont_ll_mod_base pbits rLen n mu a b =
| let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_comm_monoid n r d in
let k2 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
calc ( == ) {
LE.pow k2 a b;
( == ) { pow_nat_mont_ll_is_pow_nat_mont pbits rLen n mu a b }
LE.pow k1 a... | false |
Pulse.Soundness.VPropEquiv.fst | Pulse.Soundness.VPropEquiv.inst_vprop_equiv_ext_aux | val inst_vprop_equiv_ext_aux (#g #v0 #v1: _) (token: T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) | val inst_vprop_equiv_ext_aux (#g #v0 #v1: _) (token: T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) | let inst_vprop_equiv_ext_aux #g #v0 #v1
(token:T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) =
let ctxt = RT.Ctxt_app_arg
(R.pack_ln (R.Tv_App stt_vprop_equiv_tm (v0, R.Q_Explicit)))
R.Q_Explicit
RT.Ctxt_hole in
RT.Rel_ctxt _ _ _ ctxt (RT.Rel_eq_token _... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 77,
"end_line": 158,
"start_col": 0,
"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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"Pulse.Elaborate.fsti.checked",
"Pu... | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | {
"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_el... | false | token: FStar.Stubs.Tactics.Types.equiv_token g v0 v1
-> Prims.GTot
(FStar.Reflection.Typing.equiv g
(Pulse.Reflection.Util.stt_vprop_equiv v0 v0)
(Pulse.Reflection.Util.stt_vprop_equiv v0 v1)) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Stubs.Reflection.Types.env",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Tactics.Types.equiv_token",
"FStar.Reflection.Typing.Rel_ctxt",
"FStar.Reflection.Typing.Rel_eq_token",
"FStar.Squash.return_squash",
"FStar.Reflection.Typing.term_ctxt",
"FStar.Reflection.Typing.Ctxt_app_arg",
"FSt... | [] | false | false | false | false | false | let inst_vprop_equiv_ext_aux #g #v0 #v1 (token: T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) =
| let ctxt =
RT.Ctxt_app_arg (R.pack_ln (R.Tv_App stt_vprop_equiv_tm (v0, R.Q_Explicit)))
R.Q_Explicit
RT.Ctxt_hole
in
RT.Rel_ctxt _ _ _ ctxt (RT.Rel_eq_token _ _ _ (Squash.return_squash token)) | false |
Pulse.Soundness.VPropEquiv.fst | Pulse.Soundness.VPropEquiv.inst_vprop_equiv_ext | val inst_vprop_equiv_ext
(#g #v0 #v1: _)
(d0: RT.tot_typing g v0 vprop_tm)
(d1: RT.tot_typing g v1 vprop_tm)
(token: T.equiv_token g v0 v1)
: GTot (pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v1)) | val inst_vprop_equiv_ext
(#g #v0 #v1: _)
(d0: RT.tot_typing g v0 vprop_tm)
(d1: RT.tot_typing g v1 vprop_tm)
(token: T.equiv_token g v0 v1)
: GTot (pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v1)) | let inst_vprop_equiv_ext #g #v0 #v1
(d0:RT.tot_typing g v0 vprop_tm)
(d1:RT.tot_typing g v1 vprop_tm)
(token:T.equiv_token g v0 v1)
: GTot (pf:R.term &
RT.tot_typing g pf (stt_vprop_equiv v0 v1)) =
let (| pf, typing |)
: (pf:R.term &
RT.tot_typing g pf (stt_vprop_equiv v0 v0)) =
inst... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 185,
"start_col": 0,
"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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"Pulse.Elaborate.fsti.checked",
"Pu... | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | {
"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_el... | false |
d0: FStar.Reflection.Typing.tot_typing g v0 Pulse.Soundness.VPropEquiv.vprop_tm ->
d1: FStar.Reflection.Typing.tot_typing g v1 Pulse.Soundness.VPropEquiv.vprop_tm ->
token: FStar.Stubs.Tactics.Types.equiv_token g v0 v1
-> Prims.GTot
(Prims.dtuple2 FStar.Stubs.Reflection.Types.term
(fun pf ->
... | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Stubs.Reflection.Types.env",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.Typing.tot_typing",
"Pulse.Soundness.VPropEquiv.vprop_tm",
"FStar.Stubs.Tactics.Types.equiv_token",
"Pulse.Reflection.Util.stt_vprop_equiv",
"Prims.Mkdtuple2",
"FStar.Reflection.Typing.T_Sub",
"FStar.Pervasive... | [] | false | false | false | false | false | let inst_vprop_equiv_ext
#g
#v0
#v1
(d0: RT.tot_typing g v0 vprop_tm)
(d1: RT.tot_typing g v1 vprop_tm)
(token: T.equiv_token g v0 v1)
: GTot (pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v1)) =
| let (| pf , typing |):(pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v0)) =
inst_vprop_equiv_refl d0
in
let d_st_equiv:RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1) =
inst_vprop_equiv_ext_aux token
in
let sub_typing:RT.sub_typing g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1) =
RT.Rel_equiv ... | false |
Vale.X64.InsStack.fst | Vale.X64.InsStack.va_lemma_PopXmm_Secret | val va_lemma_PopXmm_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm_Secret dst tmp) va_s0 /\ va_is_dst_xmm dst
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok v... | val va_lemma_PopXmm_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm_Secret dst tmp) va_s0 /\ va_is_dst_xmm dst
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok v... | let va_lemma_PopXmm_Secret va_b0 va_s0 dst tmp expected_xmm =
va_reveal_opaque (`%va_code_PopXmm_Secret) (va_code_PopXmm_Secret dst tmp);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (va_s2, va_fc2) = va_lemma_Pop_Secret (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr6... | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 407,
"start_col": 0,
"start_line": 385
} | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Print_s.fst.checked",
"Va... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"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_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
expected_xmm: Vale.X64.Decls.quad32
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.Sta... | [] | false | false | false | false | false | let va_lemma_PopXmm_Secret va_b0 va_s0 dst tmp expected_xmm =
| va_reveal_opaque (`%va_code_PopXmm_Secret) (va_code_PopXmm_Secret dst tmp);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let va_s2, va_fc2 =
va_lemma_Pop_Secret (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp)
in
let va_b2 = va_tl va_b1 in
let va_s3, va_fc3 = va_lemma_Pinsrq (... | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.update_last_vec_t | val update_last_vec_t : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | let update_last_vec_t (a:sha2_alg) (m:m_spec{is_supported a m}) =
upd:update_vec_t a m -> update_last_vec_t' a m | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 248,
"start_col": 0,
"start_line": 247
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Impl.SHA2.Generic.update_vec_t",
"Hacl.Impl.SHA2.Generic.update_last_vec_t'"
] | [] | false | false | false | false | true | let update_last_vec_t (a: sha2_alg) (m: m_spec{is_supported a m}) =
| upd: update_vec_t a m -> update_last_vec_t' a m | false | |
Hacl.Spec.Exponentiation.Lemmas.fst | Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_ll_is_pow_nat_mont | val pow_nat_mont_ll_is_pow_nat_mont:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires M.mont_pre pbits rLen n mu)
(ensures
(let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
LE.pow (mk_nat_mont... | val pow_nat_mont_ll_is_pow_nat_mont:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires M.mont_pre pbits rLen n mu)
(ensures
(let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
LE.pow (mk_nat_mont... | let rec pow_nat_mont_ll_is_pow_nat_mont pbits rLen n mu a b =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k0 = mk_nat_mont_comm_monoid n r d in
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
if b = 0 then begin
LE.lemma_... | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 10,
"end_line": 244,
"start_col": 0,
"start_line": 226
} | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Almos... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu)
(ensures
(let r = Prims.pow2 (pbits * rLen) in
let _ = Hacl.Spec.Mo... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.nat",
"Lib.NatMod.nat_mod",
"Prims.int",
"Prims.op_Equality",
"Hacl.Spec.Montgomery.Lemmas.to_mont_lemma",
"Prims.unit",
"Lib.Exponentiation.Definition.lemma_pow0",
"Prims.bool",
"Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_ll_is_pow_nat_mont",
"Prims.op_Subtraction",
"Hac... | [
"recursion"
] | false | false | true | false | false | let rec pow_nat_mont_ll_is_pow_nat_mont pbits rLen n mu a b =
| let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k0 = mk_nat_mont_comm_monoid n r d in
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
if b = 0
then
(LE.lemma_pow0 k0 a;
LE.lemma_pow0 k1 a;
M.to_mont_lemma pbits rLen n mu 1)
else
(L... | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.update_nblocks_vec_t | val update_nblocks_vec_t : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | let update_nblocks_vec_t (a:sha2_alg) (m:m_spec{is_supported a m}) =
upd:update_vec_t a m -> update_nblocks_vec_t' a m | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 315,
"start_col": 0,
"start_line": 314
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Impl.SHA2.Generic.update_vec_t",
"Hacl.Impl.SHA2.Generic.update_nblocks_vec_t'"
] | [] | false | false | false | false | true | let update_nblocks_vec_t (a: sha2_alg) (m: m_spec{is_supported a m}) =
| upd: update_vec_t a m -> update_nblocks_vec_t' a m | false | |
Pulse.Soundness.VPropEquiv.fst | Pulse.Soundness.VPropEquiv.vprop_equiv_ext_type | val vprop_equiv_ext_type:R.term | val vprop_equiv_ext_type:R.term | let vprop_equiv_ext_type : R.term =
let open R in
let v_typ = pack_ln (Tv_FVar (pack_fv vprop_lid)) in
let mk_bv index = pack_ln (Tv_BVar (pack_bv {
ppname = RT.pp_name_default;
index = index;
sort = Sealed.seal tun;
})) in
mk_arrow
(vprop_tm, Q_Explicit)
(
mk_arrow
(vprop_tm... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 147,
"start_col": 0,
"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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"Pulse.Elaborate.fsti.checked",
"Pu... | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | {
"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_el... | false | FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"Pulse.Reflection.Util.mk_arrow",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"Pulse.Soundness.VPropEquiv.vprop_tm",
"FStar.Stubs.Reflection.V2.Data.Q_Explicit",
"Pulse.Reflection.Util.vprop_eq_tm",
"Pulse.Reflection.Util.stt_vprop_... | [] | false | false | false | true | false | let vprop_equiv_ext_type:R.term =
| let open R in
let v_typ = pack_ln (Tv_FVar (pack_fv vprop_lid)) in
let mk_bv index =
pack_ln (Tv_BVar
(pack_bv ({ ppname = RT.pp_name_default; index = index; sort = Sealed.seal tun })))
in
mk_arrow (vprop_tm, Q_Explicit)
(mk_arrow (vprop_tm, Q_Explicit)
(mk_arrow (vprop_eq_tm (mk_bv 1) (mk_bv 0), Q_Expl... | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.init_vec_t | val init_vec_t : a: Spec.Hash.Definitions.sha2_alg -> m: Hacl.Spec.SHA2.Vec.m_spec -> Type0 | let init_vec_t (a:sha2_alg) (m:m_spec) = hash:state_t a m ->
Stack unit
(requires fun h -> live h hash)
(ensures fun h0 _ h1 -> modifies1 hash h0 h1 /\
as_seq h1 hash == SpecVec.init a m) | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 174,
"start_col": 0,
"start_line": 170
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | a: Spec.Hash.Definitions.sha2_alg -> m: Hacl.Spec.SHA2.Vec.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Impl.SHA2.Core.state_t",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Hacl.Spec.SHA2.Vec.element_t",
"Prims.l_and",
"Lib.Buffer.modifies1",
"Prims.eq2",
"Lib.Sequence.lseq",
"Lib.Int... | [] | false | false | false | true | true | let init_vec_t (a: sha2_alg) (m: m_spec) =
| hash: state_t a m
-> Stack unit
(requires fun h -> live h hash)
(ensures fun h0 _ h1 -> modifies1 hash h0 h1 /\ as_seq h1 hash == SpecVec.init a m) | false | |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.update_nblocks_vec_t' | val update_nblocks_vec_t' : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | let update_nblocks_vec_t' (a:sha2_alg) (m:Hacl.Spec.SHA2.Vec.(m:m_spec{is_supported a m})) =
let open Lib.IntTypes in
let open Lib.MultiBuffer in
let open Lib.Buffer in
let open Hacl.Spec.SHA2.Vec in
let open Hacl.Impl.SHA2.Core in
len:size_t
-> b:multibuf (lanes a m) len
-> st:state_t a m ->
Stack ... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 85,
"end_line": 310,
"start_col": 0,
"start_line": 297
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Impl.SHA2.Core.state_t",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.MultiBuffer.live_mul... | [] | false | false | false | false | true | let update_nblocks_vec_t' (a: sha2_alg) (m: Hacl.Spec.SHA2.Vec.(m: m_spec{is_supported a m})) =
| let open Lib.IntTypes in
let open Lib.MultiBuffer in
let open Lib.Buffer in
let open Hacl.Spec.SHA2.Vec in
let open Hacl.Impl.SHA2.Core in
len: size_t -> b: multibuf (lanes a m) len -> st: state_t a m
-> Stack unit
(requires fun h0 -> live_multi h0 b /\ live h0 st /\ disjoint_multi b st)
(ensures
... | false | |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.h224 | val h224:x: glbuffer uint32 8ul {witnessed x Constants.h224 /\ recallable x} | val h224:x: glbuffer uint32 8ul {witnessed x Constants.h224 /\ recallable x} | let h224 : x:glbuffer uint32 8ul{witnessed x Constants.h224 /\ recallable x} =
createL_global Constants.h224_l | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 33,
"start_col": 0,
"start_line": 32
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | x:
(c:
Lib.Buffer.lbuffer_t Lib.Buffer.CONST
(Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.SEC)
(8ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE})
{Lib.Buffer.witnessed x Spec.SHA2.Constants.h224 /\ Lib.Buffer.recallable x} | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.createL_global",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Spec.SHA2.Constants.h224_l",
"Lib.Buffer.glbuffer",
"Lib.IntTypes.size",
"FStar.Pervasives.normalize_term",
"Lib.IntTypes.size_nat",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let h224:x: glbuffer uint32 8ul {witnessed x Constants.h224 /\ recallable x} =
| createL_global Constants.h224_l | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.h384 | val h384:x: glbuffer uint64 8ul {witnessed x Constants.h384 /\ recallable x} | val h384:x: glbuffer uint64 8ul {witnessed x Constants.h384 /\ recallable x} | let h384 : x:glbuffer uint64 8ul{witnessed x Constants.h384 /\ recallable x} =
createL_global Constants.h384_l | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 37,
"start_col": 0,
"start_line": 36
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | x:
(c:
Lib.Buffer.lbuffer_t Lib.Buffer.CONST
(Lib.IntTypes.int_t Lib.IntTypes.U64 Lib.IntTypes.SEC)
(8ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE})
{Lib.Buffer.witnessed x Spec.SHA2.Constants.h384 /\ Lib.Buffer.recallable x} | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.createL_global",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA2.Constants.h384_l",
"Lib.Buffer.glbuffer",
"Lib.IntTypes.size",
"FStar.Pervasives.normalize_term",
"Lib.IntTypes.size_nat",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let h384:x: glbuffer uint64 8ul {witnessed x Constants.h384 /\ recallable x} =
| createL_global Constants.h384_l | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.update_vec_t | val update_vec_t : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | let update_vec_t (a:sha2_alg) (m:m_spec{is_supported a m}) =
b:multibuf (lanes a m) (HD.block_len a)
-> hash:state_t a m ->
Stack unit
(requires fun h -> live_multi h b /\ live h hash)
(ensures fun h0 _ h1 -> modifies (loc hash) h0 h1 /\
as_seq h1 hash == SpecVec.update (as_seq_multi h0 b) (as_seq h0 h... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 74,
"end_line": 197,
"start_col": 0,
"start_line": 191
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Lib.MultiBuffer.multibuf",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Hash.Definitions.block_len",
"Hacl.Impl.SHA2.Core.state_t",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.MultiBuf... | [] | false | false | false | false | true | let update_vec_t (a: sha2_alg) (m: m_spec{is_supported a m}) =
| b: multibuf (lanes a m) (HD.block_len a) -> hash: state_t a m
-> Stack unit
(requires fun h -> live_multi h b /\ live h hash)
(ensures
fun h0 _ h1 ->
modifies (loc hash) h0 h1 /\
as_seq h1 hash == SpecVec.update (as_seq_multi h0 b) (as_seq h0 hash)) | false | |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.finish_vec_t | val finish_vec_t : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | let finish_vec_t (a:sha2_alg) (m:m_spec{is_supported a m}) =
st:state_t a m
-> h:multibuf (lanes a m) (HD.hash_len a) ->
Stack unit
(requires fun h0 -> live_multi h0 h /\ internally_disjoint h /\ live h0 st /\ disjoint_multi h st)
(ensures fun h0 _ h1 -> modifies (loc_multi h |+| loc st) h0 h1 /\
as_se... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 61,
"end_line": 345,
"start_col": 0,
"start_line": 339
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Impl.SHA2.Core.state_t",
"Lib.MultiBuffer.multibuf",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Hash.Definitions.hash_len",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.MultiBuff... | [] | false | false | false | false | true | let finish_vec_t (a: sha2_alg) (m: m_spec{is_supported a m}) =
| st: state_t a m -> h: multibuf (lanes a m) (HD.hash_len a)
-> Stack unit
(requires
fun h0 -> live_multi h0 h /\ internally_disjoint h /\ live h0 st /\ disjoint_multi h st)
(ensures
fun h0 _ h1 ->
modifies (loc_multi h |+| loc st) h0 h1 /\
as_seq_multi h1 h == SpecVec.fi... | false | |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.shuffle_core | val shuffle_core: #a:sha2_alg -> #m:m_spec
-> k_t:word a
-> ws_t:element_t a m
-> st:state_t a m ->
Stack unit
(requires fun h -> live h st)
(ensures fun h0 _ h1 ->
modifies (loc st) h0 h1 /\
as_seq h1 st == SpecVec.shuffle_core_spec k_t ws_t (as_seq h0 st)) | val shuffle_core: #a:sha2_alg -> #m:m_spec
-> k_t:word a
-> ws_t:element_t a m
-> st:state_t a m ->
Stack unit
(requires fun h -> live h st)
(ensures fun h0 _ h1 ->
modifies (loc st) h0 h1 /\
as_seq h1 st == SpecVec.shuffle_core_spec k_t ws_t (as_seq h0 st)) | let shuffle_core #a #m k_t ws_t st =
let hp0 = ST.get() in
let a0 = st.(0ul) in
let b0 = st.(1ul) in
let c0 = st.(2ul) in
let d0 = st.(3ul) in
let e0 = st.(4ul) in
let f0 = st.(5ul) in
let g0 = st.(6ul) in
let h0 = st.(7ul) in
let k_e_t = load_element a m k_t in
let t1 = h0 +| (_Sigma1 e0) +| (_Ch... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 109,
"start_col": 0,
"start_line": 88
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
k_t: Hacl.Spec.SHA2.Vec.word a ->
ws_t: Hacl.Spec.SHA2.Vec.element_t a m ->
st: Hacl.Impl.SHA2.Core.state_t a m
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.word",
"Hacl.Spec.SHA2.Vec.element_t",
"Hacl.Impl.SHA2.Core.state_t",
"Lib.Buffer.create8",
"Prims.unit",
"Hacl.Spec.SHA2.Vec.op_Plus_Bar",
"Hacl.Spec.SHA2.Vec._Sigma0",
"Hacl.Spec.SHA2.Vec._Maj",
"Hacl.Spec.SHA2.... | [] | false | true | false | false | false | let shuffle_core #a #m k_t ws_t st =
| let hp0 = ST.get () in
let a0 = st.(0ul) in
let b0 = st.(1ul) in
let c0 = st.(2ul) in
let d0 = st.(3ul) in
let e0 = st.(4ul) in
let f0 = st.(5ul) in
let g0 = st.(6ul) in
let h0 = st.(7ul) in
let k_e_t = load_element a m k_t in
let t1 = h0 +| (_Sigma1 e0) +| (_Ch e0 f0 g0) +| k_e_t +| ws_t in
let t2 = (_Sigma0 a0) +| (_... | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.h512 | val h512:x: glbuffer uint64 8ul {witnessed x Constants.h512 /\ recallable x} | val h512:x: glbuffer uint64 8ul {witnessed x Constants.h512 /\ recallable x} | let h512 : x:glbuffer uint64 8ul{witnessed x Constants.h512 /\ recallable x} =
createL_global Constants.h512_l | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 39,
"start_col": 0,
"start_line": 38
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | x:
(c:
Lib.Buffer.lbuffer_t Lib.Buffer.CONST
(Lib.IntTypes.int_t Lib.IntTypes.U64 Lib.IntTypes.SEC)
(8ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE})
{Lib.Buffer.witnessed x Spec.SHA2.Constants.h512 /\ Lib.Buffer.recallable x} | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.createL_global",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA2.Constants.h512_l",
"Lib.Buffer.glbuffer",
"Lib.IntTypes.size",
"FStar.Pervasives.normalize_term",
"Lib.IntTypes.size_nat",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let h512:x: glbuffer uint64 8ul {witnessed x Constants.h512 /\ recallable x} =
| createL_global Constants.h512_l | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.h256 | val h256:x: glbuffer uint32 8ul {witnessed x Constants.h256 /\ recallable x} | val h256:x: glbuffer uint32 8ul {witnessed x Constants.h256 /\ recallable x} | let h256 : x:glbuffer uint32 8ul{witnessed x Constants.h256 /\ recallable x} =
createL_global Constants.h256_l | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 35,
"start_col": 0,
"start_line": 34
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | x:
(c:
Lib.Buffer.lbuffer_t Lib.Buffer.CONST
(Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.SEC)
(8ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE})
{Lib.Buffer.witnessed x Spec.SHA2.Constants.h256 /\ Lib.Buffer.recallable x} | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.createL_global",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Spec.SHA2.Constants.h256_l",
"Lib.Buffer.glbuffer",
"Lib.IntTypes.size",
"FStar.Pervasives.normalize_term",
"Lib.IntTypes.size_nat",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let h256:x: glbuffer uint32 8ul {witnessed x Constants.h256 /\ recallable x} =
| createL_global Constants.h256_l | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.hash_vec_t | val hash_vec_t : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | let hash_vec_t (a:sha2_alg) (m:m_spec{is_supported a m}) =
init:init_vec_t a m
-> update_nblocks:update_nblocks_vec_t' a m
-> update_last:update_last_vec_t' a m
-> finish:finish_vec_t a m
-> h:multibuf (lanes a m) (HD.hash_len a)
-> len:size_t
-> b:multibuf (lanes a m) len ->
Stack unit
(requires fu... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 73,
"end_line": 397,
"start_col": 0,
"start_line": 385
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Impl.SHA2.Generic.init_vec_t",
"Hacl.Impl.SHA2.Generic.update_nblocks_vec_t'",
"Hacl.Impl.SHA2.Generic.update_last_vec_t'",
"Hacl.Impl.SHA2.Generic.finish_vec_t",
"Lib.MultiBuffer.multibuf",
"Hacl... | [] | false | false | false | false | true | let hash_vec_t (a: sha2_alg) (m: m_spec{is_supported a m}) =
|
init: init_vec_t a m ->
update_nblocks: update_nblocks_vec_t' a m ->
update_last: update_last_vec_t' a m ->
finish: finish_vec_t a m ->
h: multibuf (lanes a m) (HD.hash_len a) ->
len: size_t ->
b: multibuf (lanes a m) len
-> Stack unit
(requires fun h0 -> live_multi h0 b /\ live_mul... | false | |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.init | val init: #a:sha2_alg -> #m:m_spec -> init_vec_t a m | val init: #a:sha2_alg -> #m:m_spec -> init_vec_t a m | let init #a #m hash =
let h0 = ST.get() in
fill h0 8ul hash
(fun h i -> load_element a m (Seq.index (Spec.h0 a) i))
(fun i ->
let hi = index_h0 a i in
load_element a m hi);
let h1 = ST.get() in
LSeq.eq_intro (as_seq h1 hash) (LSeq.createi 8 (fun i -> load_element a m (Seq.index (Spec.h0 a) i))) | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 103,
"end_line": 187,
"start_col": 0,
"start_line": 179
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | Hacl.Impl.SHA2.Generic.init_vec_t a m | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Impl.SHA2.Core.state_t",
"Lib.Sequence.eq_intro",
"Hacl.Spec.SHA2.Vec.element_t",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.UInt32.__uint_to_t",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Lib.Sequence.crea... | [] | false | false | false | false | false | let init #a #m hash =
| let h0 = ST.get () in
fill h0
8ul
hash
(fun h i -> load_element a m (Seq.index (Spec.h0 a) i))
(fun i ->
let hi = index_h0 a i in
load_element a m hi);
let h1 = ST.get () in
LSeq.eq_intro (as_seq h1 hash)
(LSeq.createi 8 (fun i -> load_element a m (Seq.index (Spec.h0 a) i))) | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.index_h0 | val index_h0 (a: sha2_alg) (i: size_t)
: Stack (word a)
(requires (fun _ -> size_v i < 8))
(ensures (fun h0 r h1 -> h0 == h1 /\ r == Seq.index (Spec.h0 a) (size_v i))) | val index_h0 (a: sha2_alg) (i: size_t)
: Stack (word a)
(requires (fun _ -> size_v i < 8))
(ensures (fun h0 r h1 -> h0 == h1 /\ r == Seq.index (Spec.h0 a) (size_v i))) | let index_h0 (a:sha2_alg) (i:size_t) : Stack (word a)
(requires (fun _ -> size_v i < 8))
(ensures (fun h0 r h1 ->
h0 == h1 /\
r == Seq.index (Spec.h0 a) (size_v i))) =
match a with
| SHA2_224 -> recall h224; recall_contents h224 Constants.h224; h224.(i)
| SHA2_256 -> recall h256; recall_contents... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 52,
"start_col": 0,
"start_line": 43
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | a: Spec.Hash.Definitions.sha2_alg -> i: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack (Hacl.Spec.SHA2.Vec.word a) | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.size_t",
"Lib.Buffer.op_Array_Access",
"Lib.Buffer.CONST",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"FStar.UInt32.uint_to_t",
"Hacl.Impl.SHA2.Generic.h224",
"Prims.unit",
"Lib.Buffer.recall_contents",
"Spec.SHA2.Constants.h22... | [] | false | true | false | false | false | let index_h0 (a: sha2_alg) (i: size_t)
: Stack (word a)
(requires (fun _ -> size_v i < 8))
(ensures (fun h0 r h1 -> h0 == h1 /\ r == Seq.index (Spec.h0 a) (size_v i))) =
| match a with
| SHA2_224 ->
recall h224;
recall_contents h224 Constants.h224;
h224.(i)
| SHA2_256 ->
recall h256;
recall_contents h256 Constants.h256;
h256.(i)
| SHA2_384 ->
recall h384;
recall_contents h384 Constants.h384;
h384.(i)
| SHA2_512 ->
recall h512;
recall_contents h512 Constants.h512;
... | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.alloc | val alloc: a:sha2_alg -> m:m_spec ->
StackInline (state_t a m)
(requires fun h -> True)
(ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 (Seq.create 8 (zero_element a m))) | val alloc: a:sha2_alg -> m:m_spec ->
StackInline (state_t a m)
(requires fun h -> True)
(ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 (Seq.create 8 (zero_element a m))) | let alloc a m = Lib.Buffer.create 8ul (zero_element a m) | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 166,
"start_col": 0,
"start_line": 166
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | a: Spec.Hash.Definitions.sha2_alg -> m: Hacl.Spec.SHA2.Vec.m_spec
-> FStar.HyperStack.ST.StackInline (Hacl.Impl.SHA2.Core.state_t a m) | FStar.HyperStack.ST.StackInline | [] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Lib.Buffer.create",
"Hacl.Spec.SHA2.Vec.element_t",
"FStar.UInt32.__uint_to_t",
"Hacl.Spec.SHA2.Vec.zero_element",
"Lib.Buffer.lbuffer",
"Hacl.Impl.SHA2.Core.state_t"
] | [] | false | true | false | false | false | let alloc a m =
| Lib.Buffer.create 8ul (zero_element a m) | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.update_last_vec_t' | val update_last_vec_t' : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | let update_last_vec_t' (a:sha2_alg) (m:m_spec{is_supported a m}) =
totlen:len_t a
-> len:size_t{v len <= block_length a}
-> b:multibuf (lanes a m) len
-> hash:state_t a m ->
Stack unit
(requires fun h -> live_multi h b /\ live h hash /\ disjoint_multi b hash)
(ensures fun h0 _ h1 -> modifies (loc hash)... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 94,
"end_line": 244,
"start_col": 0,
"start_line": 236
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Spec.Hash.Definitions.len_t",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Spec.Hash.Definitions.block_length",
"Lib.... | [] | false | false | false | false | true | let update_last_vec_t' (a: sha2_alg) (m: m_spec{is_supported a m}) =
|
totlen: len_t a ->
len: size_t{v len <= block_length a} ->
b: multibuf (lanes a m) len ->
hash: state_t a m
-> Stack unit
(requires fun h -> live_multi h b /\ live h hash /\ disjoint_multi b hash)
(ensures
fun h0 _ h1 ->
modifies (loc hash) h0 h1 /\
as_seq h1 h... | false | |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.mk_len_t_from_size_t | val mk_len_t_from_size_t (a: sha2_alg) (len: size_t)
: Pure (len_t a)
(requires True)
(ensures
fun x ->
(lemma_len_lt_max_a_fits_size_t a len;
len_v a x = len_v a (Hacl.Spec.SHA2.mk_len_t a (v len)))) | val mk_len_t_from_size_t (a: sha2_alg) (len: size_t)
: Pure (len_t a)
(requires True)
(ensures
fun x ->
(lemma_len_lt_max_a_fits_size_t a len;
len_v a x = len_v a (Hacl.Spec.SHA2.mk_len_t a (v len)))) | let mk_len_t_from_size_t (a:sha2_alg) (len:size_t) :
Pure (len_t a)
(requires True)
(ensures fun x ->
(lemma_len_lt_max_a_fits_size_t a len;
len_v a x = len_v a (Hacl.Spec.SHA2.mk_len_t a (v len)))) =
match a with
| SHA2_224 | SHA2_256 ->
(Math.Lemmas.pow2_lt_compat 64 32; Lib.IntTypes.cast #U32 #... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 382,
"start_col": 0,
"start_line": 371
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | a: Spec.Hash.Definitions.sha2_alg -> len: Lib.IntTypes.size_t
-> Prims.Pure (Spec.Hash.Definitions.len_t a) | Prims.Pure | [] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.size_t",
"Lib.IntTypes.cast",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.U64",
"Prims.unit",
"FStar.Math.Lemmas.pow2_lt_compat",
"Lib.IntTypes.U128",
"Spec.Hash.Definitions.len_t",
"Prims.l_True",
"Prims.b2t",
"Prims.op_Equality",
... | [] | false | false | false | false | false | let mk_len_t_from_size_t (a: sha2_alg) (len: size_t)
: Pure (len_t a)
(requires True)
(ensures
fun x ->
(lemma_len_lt_max_a_fits_size_t a len;
len_v a x = len_v a (Hacl.Spec.SHA2.mk_len_t a (v len)))) =
| match a with
| SHA2_224
| SHA2_256 ->
(Math.Lemmas.pow2_lt_compat 64 32;
Lib.IntTypes.cast #U32 #PUB U64 PUB len)
| SHA2_384
| SHA2_512 ->
(Math.Lemmas.pow2_lt_compat 128 32;
Lib.IntTypes.cast #U32 #PUB U128 PUB len) | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.k224_256 | val k224_256:x: glbuffer uint32 64ul {witnessed x Constants.k224_256 /\ recallable x} | val k224_256:x: glbuffer uint32 64ul {witnessed x Constants.k224_256 /\ recallable x} | let k224_256 : x:glbuffer uint32 64ul{witnessed x Constants.k224_256 /\ recallable x} =
createL_global Constants.k224_256_l | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 56,
"start_col": 0,
"start_line": 55
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | x:
(c:
Lib.Buffer.lbuffer_t Lib.Buffer.CONST
(Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.SEC)
(64ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE})
{Lib.Buffer.witnessed x Spec.SHA2.Constants.k224_256 /\ Lib.Buffer.recallable x} | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.createL_global",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Spec.SHA2.Constants.k224_256_l",
"Lib.Buffer.glbuffer",
"Lib.IntTypes.size",
"FStar.Pervasives.normalize_term",
"Lib.IntTypes.size_nat",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let k224_256:x: glbuffer uint32 64ul {witnessed x Constants.k224_256 /\ recallable x} =
| createL_global Constants.k224_256_l | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.index_k0 | val index_k0 (a: sha2_alg) (i: size_t)
: Stack (word a)
(requires (fun _ -> size_v i < Spec.size_k_w a))
(ensures (fun h0 r h1 -> h0 == h1 /\ r == Seq.index (Spec.k0 a) (size_v i))) | val index_k0 (a: sha2_alg) (i: size_t)
: Stack (word a)
(requires (fun _ -> size_v i < Spec.size_k_w a))
(ensures (fun h0 r h1 -> h0 == h1 /\ r == Seq.index (Spec.k0 a) (size_v i))) | let index_k0 (a:sha2_alg) (i:size_t) : Stack (word a)
(requires (fun _ -> size_v i < Spec.size_k_w a))
(ensures (fun h0 r h1 ->
h0 == h1 /\
r == Seq.index (Spec.k0 a) (size_v i))) =
match a with
| SHA2_224 | SHA2_256 ->
recall_contents k224_256 Constants.k224_256;
k224_256.(i)
| SHA2_384 |... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 74,
"start_col": 0,
"start_line": 63
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | a: Spec.Hash.Definitions.sha2_alg -> i: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack (Hacl.Spec.SHA2.Vec.word a) | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.size_t",
"Lib.Buffer.op_Array_Access",
"Lib.Buffer.CONST",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"FStar.UInt32.uint_to_t",
"Hacl.Impl.SHA2.Generic.k224_256",
"Prims.unit",
"Lib.Buffer.recall_contents",
"Spec.SHA2.Constants... | [] | false | true | false | false | false | let index_k0 (a: sha2_alg) (i: size_t)
: Stack (word a)
(requires (fun _ -> size_v i < Spec.size_k_w a))
(ensures (fun h0 r h1 -> h0 == h1 /\ r == Seq.index (Spec.k0 a) (size_v i))) =
| match a with
| SHA2_224
| SHA2_256 ->
recall_contents k224_256 Constants.k224_256;
k224_256.(i)
| SHA2_384
| SHA2_512 ->
recall_contents k384_512 Constants.k384_512;
k384_512.(i) | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.k384_512 | val k384_512:x: glbuffer uint64 80ul {witnessed x Constants.k384_512 /\ recallable x} | val k384_512:x: glbuffer uint64 80ul {witnessed x Constants.k384_512 /\ recallable x} | let k384_512 : x:glbuffer uint64 80ul{witnessed x Constants.k384_512 /\ recallable x} =
createL_global Constants.k384_512_l | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 59,
"start_col": 0,
"start_line": 58
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | x:
(c:
Lib.Buffer.lbuffer_t Lib.Buffer.CONST
(Lib.IntTypes.int_t Lib.IntTypes.U64 Lib.IntTypes.SEC)
(80ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE})
{Lib.Buffer.witnessed x Spec.SHA2.Constants.k384_512 /\ Lib.Buffer.recallable x} | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.createL_global",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA2.Constants.k384_512_l",
"Lib.Buffer.glbuffer",
"Lib.IntTypes.size",
"FStar.Pervasives.normalize_term",
"Lib.IntTypes.size_nat",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let k384_512:x: glbuffer uint64 80ul {witnessed x Constants.k384_512 /\ recallable x} =
| createL_global Constants.k384_512_l | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.update_nblocks | val update_nblocks: #a:sha2_alg -> #m:m_spec{is_supported a m} -> update_nblocks_vec_t a m | val update_nblocks: #a:sha2_alg -> #m:m_spec{is_supported a m} -> update_nblocks_vec_t a m | let update_nblocks #a #m upd len b st =
lemma_len_lt_max_a_fits_size_t a len;
let blocks = len /. HD.block_len a in
let h0 = ST.get() in
loop1 h0 blocks st
(fun h -> SpecVec.update_block #a #m (v len) (as_seq_multi h0 b))
(fun i ->
Lib.LoopCombinators.unfold_repeati (v blocks) (SpecVec.update_block #a #... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 106,
"end_line": 334,
"start_col": 0,
"start_line": 320
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | Hacl.Impl.SHA2.Generic.update_nblocks_vec_t a m | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Impl.SHA2.Generic.update_vec_t",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Impl.SHA2.Core.state_t",
"Lib.Buffer.loop1",
"Hacl.Spec.SHA2.Vec.element_t",... | [] | false | false | false | false | false | let update_nblocks #a #m upd len b st =
| lemma_len_lt_max_a_fits_size_t a len;
let blocks = len /. HD.block_len a in
let h0 = ST.get () in
loop1 h0
blocks
st
(fun h -> SpecVec.update_block #a #m (v len) (as_seq_multi h0 b))
(fun i ->
Lib.LoopCombinators.unfold_repeati (v blocks)
(SpecVec.update_block #a #m (v len) (as_seq_multi h0 b))
... | false |
Hacl.Impl.SHA512.ModQ.fst | Hacl.Impl.SHA512.ModQ.store_sha512_modq_pre_pre2 | val store_sha512_modq_pre_pre2:
out:lbuffer uint8 32ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefi... | val store_sha512_modq_pre_pre2:
out:lbuffer uint8 32ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefi... | let store_sha512_modq_pre_pre2 out prefix prefix2 len input =
push_frame ();
let tmp = create 5ul (u64 0) in
sha512_modq_pre_pre2 tmp prefix prefix2 len input;
Hacl.Impl.Store56.store_56 out tmp;
pop_frame () | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 173,
"start_col": 0,
"start_line": 168
} | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Store56.store_56",
"Hacl.Impl.SHA512.ModQ.sha512_modq_pre_pre2",
"Lib.Buffer.lbuffer_t",
"Lib.Buffer.MUT",
"Lib.IntTypes.int_t",
"Lib.IntType... | [] | false | true | false | false | false | let store_sha512_modq_pre_pre2 out prefix prefix2 len input =
| push_frame ();
let tmp = create 5ul (u64 0) in
sha512_modq_pre_pre2 tmp prefix prefix2 len input;
Hacl.Impl.Store56.store_56 out tmp;
pop_frame () | false |
Hacl.Impl.SHA512.ModQ.fst | Hacl.Impl.SHA512.ModQ.store_sha512_modq_pre | val store_sha512_modq_pre:
out:lbuffer uint8 32ul
-> outq:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h outq /\
disjoint prefix out /\ disjoint out input /\ dis... | val store_sha512_modq_pre:
out:lbuffer uint8 32ul
-> outq:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h outq /\
disjoint prefix out /\ disjoint out input /\ dis... | let store_sha512_modq_pre out outq prefix len input =
sha512_modq_pre outq prefix len input;
Hacl.Impl.Store56.store_56 out outq | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 150,
"start_col": 0,
"start_line": 148
} | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
outq: Lib.Buffer.lbuffer Lib.IntTypes.uint64 5ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.uint64",
"Lib.IntTypes.size_t",
"Hacl.Impl.Store56.store_56",
"Prims.unit",
"Hacl.Impl.SHA512.ModQ.sha512_modq_pre"
] | [] | false | true | false | false | false | let store_sha512_modq_pre out outq prefix len input =
| sha512_modq_pre outq prefix len input;
Hacl.Impl.Store56.store_56 out outq | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.samepats | val samepats (bs1 bs2: list branch) : prop | val samepats (bs1 bs2: list branch) : prop | let samepats (bs1 bs2 : list branch) : prop = L.map fst bs1 == L.map fst bs2 | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 76,
"end_line": 190,
"start_col": 0,
"start_line": 190
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | bs1: Prims.list Pulse.Syntax.Base.branch -> bs2: Prims.list Pulse.Syntax.Base.branch -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Pulse.Syntax.Base.branch",
"Prims.eq2",
"Pulse.Syntax.Base.pattern",
"FStar.List.Tot.Base.map",
"FStar.Pervasives.Native.fst",
"Pulse.Syntax.Base.st_term",
"Prims.prop"
] | [] | false | false | false | true | true | let samepats (bs1 bs2: list branch) : prop =
| L.map fst bs1 == L.map fst bs2 | false |
Hacl.Impl.SHA512.ModQ.fst | Hacl.Impl.SHA512.ModQ.sha512_modq_pre | val sha512_modq_pre:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\
disjoint prefix out /\ disjoint out input)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /... | val sha512_modq_pre:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\
disjoint prefix out /\ disjoint out input)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /... | let sha512_modq_pre out prefix len input =
push_frame();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_msg hash prefix len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100000000000000);
pop_frame... | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 101,
"start_col": 0,
"start_line": 93
} | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint64 5ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.pow2",
"Hacl.Impl.BignumQ.Mul.barrett_reduction",
"Hacl.Impl.L... | [] | false | true | false | false | false | let sha512_modq_pre out prefix len input =
| push_frame ();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_msg hash prefix len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100000000000000);
pop_frame () | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.samepat | val samepat (b1 b2: branch) : prop | val samepat (b1 b2: branch) : prop | let samepat (b1 b2 : branch) : prop = fst b1 == fst b2 | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 54,
"end_line": 189,
"start_col": 0,
"start_line": 189
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | b1: Pulse.Syntax.Base.branch -> b2: Pulse.Syntax.Base.branch -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.branch",
"Prims.eq2",
"Pulse.Syntax.Base.pattern",
"FStar.Pervasives.Native.fst",
"Pulse.Syntax.Base.st_term",
"Prims.prop"
] | [] | false | false | false | true | true | let samepat (b1 b2: branch) : prop =
| fst b1 == fst b2 | false |
Hacl.Impl.SHA512.ModQ.fst | Hacl.Impl.SHA512.ModQ.sha512_modq_pre_pre2 | val sha512_modq_pre_pre2:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefix2 out... | val sha512_modq_pre_pre2:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefix2 out... | let sha512_modq_pre_pre2 out prefix prefix2 len input =
push_frame();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_pre2_msg hash prefix prefix2 len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100... | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 128,
"start_col": 0,
"start_line": 120
} | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint64 5ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.pow2",
"Hacl.Impl.BignumQ.Mul.barrett_reduction",
"Hacl.Impl.L... | [] | false | true | false | false | false | let sha512_modq_pre_pre2 out prefix prefix2 len input =
| push_frame ();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_pre2_msg hash prefix prefix2 len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100000000000000);
pop_frame () | false |
Hacl.Impl.SHA512.ModQ.fst | Hacl.Impl.SHA512.ModQ.sha512_pre_msg | val sha512_pre_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h input /\
disjoint input hash /\ disjoint prefix hash)
(ensures fun h0 _ h1 -> modifies (loc hash) h0 h... | val sha512_pre_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h input /\
disjoint input hash /\ disjoint prefix hash)
(ensures fun h0 _ h1 -> modifies (loc hash) h0 h... | let sha512_pre_msg hash prefix len input =
push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ignore err1;
Hash.digest_512 st hash ();
let h1 = ST.get () ... | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 45,
"start_col": 0,
"start_line": 32
} | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
hash: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Seq.Base.append_empty_l",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Prims._assert",
"Prims.eq2",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint_t",
"L... | [] | false | true | false | false | false | let sha512_pre_msg hash prefix len input =
| push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ignore err1;
Hash.digest_512 st hash ();
let h1 = ST.get () in
assert (as_seq h1 hash ==
Spec.Agile.Hash.hash Spec.Ha... | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.lemma_map_opt_lenx | val lemma_map_opt_lenx (f: ('a -> option 'b)) (xs: list 'a)
: Lemma (requires Some? (map_opt f xs))
(ensures L.length xs == L.length (Some?.v (map_opt f xs)))
[SMTPat (map_opt f xs)] | val lemma_map_opt_lenx (f: ('a -> option 'b)) (xs: list 'a)
: Lemma (requires Some? (map_opt f xs))
(ensures L.length xs == L.length (Some?.v (map_opt f xs)))
[SMTPat (map_opt f xs)] | let lemma_map_opt_lenx (f : 'a -> option 'b) (xs : list 'a)
: Lemma (requires Some? (map_opt f xs))
(ensures L.length xs == L.length (Some?.v (map_opt f xs)))
[SMTPat (map_opt f xs)]
= let Some ys = map_opt f xs in
__lemma_map_opt_lenx f xs ys | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 88,
"start_col": 0,
"start_line": 83
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | f: (_: 'a -> FStar.Pervasives.Native.option 'b) -> xs: Prims.list 'a
-> FStar.Pervasives.Lemma (requires Some? (Pulse.Common.map_opt f xs))
(ensures
FStar.List.Tot.Base.length xs ==
FStar.List.Tot.Base.length (Some?.v (Pulse.Common.map_opt f xs)))
[SMTPat (Pulse.Common.map_opt f xs)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Pervasives.Native.option",
"Prims.list",
"Pulse.Checker.Match.__lemma_map_opt_lenx",
"Prims.unit",
"Pulse.Common.map_opt",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"Prims.squash",
"Prims.eq2",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.Pervasives.Native.__proj__Some__... | [] | false | false | true | false | false | let lemma_map_opt_lenx (f: ('a -> option 'b)) (xs: list 'a)
: Lemma (requires Some? (map_opt f xs))
(ensures L.length xs == L.length (Some?.v (map_opt f xs)))
[SMTPat (map_opt f xs)] =
| let Some ys = map_opt f xs in
__lemma_map_opt_lenx f xs ys | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.lemma_map_len | val lemma_map_len (f: ('a -> 'b)) (xs: list 'a)
: Lemma (L.length (L.map f xs) == L.length xs) [SMTPat (L.length (L.map f xs))] | val lemma_map_len (f: ('a -> 'b)) (xs: list 'a)
: Lemma (L.length (L.map f xs) == L.length xs) [SMTPat (L.length (L.map f xs))] | let rec lemma_map_len (f : 'a -> 'b) (xs : list 'a)
: Lemma (L.length (L.map f xs) == L.length xs)
[SMTPat (L.length (L.map f xs))]
= match xs with
| [] -> ()
| x::xs -> lemma_map_len f xs | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 66,
"start_col": 0,
"start_line": 61
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | f: (_: 'a -> 'b) -> xs: Prims.list 'a
-> FStar.Pervasives.Lemma
(ensures
FStar.List.Tot.Base.length (FStar.List.Tot.Base.map f xs) == FStar.List.Tot.Base.length xs)
[SMTPat (FStar.List.Tot.Base.length (FStar.List.Tot.Base.map f xs))] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"Pulse.Checker.Match.lemma_map_len",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.List.Tot.Base.map",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat",
"Prims.Nil"
] | [
"recursion"
] | false | false | true | false | false | let rec lemma_map_len (f: ('a -> 'b)) (xs: list 'a)
: Lemma (L.length (L.map f xs) == L.length xs) [SMTPat (L.length (L.map f xs))] =
| match xs with
| [] -> ()
| x :: xs -> lemma_map_len f xs | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.readback_pat | val readback_pat (p: R.pattern) : option pattern | val readback_pat (p: R.pattern) : option pattern | let rec readback_pat (p : R.pattern) : option pattern =
match p with
| R.Pat_Cons fv _ args ->
let fv = R.inspect_fv fv in
let? args = map_opt_dec p readback_sub_pat args in
Some (Pat_Cons {fv_name=fv; fv_range=Range.range_0} args)
| R.Pat_Constant c ->
Some (Pat_Constant c)
| R.Pat_Var st nm ... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 13,
"end_line": 59,
"start_col": 0,
"start_line": 32
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | p: FStar.Stubs.Reflection.V2.Data.pattern
-> FStar.Pervasives.Native.option Pulse.Syntax.Base.pattern | Prims.Tot | [
"total"
] | [
"readback_pat",
"readback_sub_pat"
] | [
"FStar.Stubs.Reflection.V2.Data.pattern",
"FStar.Stubs.Reflection.Types.fv",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.V2.Data.universes",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.bool",
"Pulse.Syntax.Pure.op_let_Question",
"Pulse.Syntax.Base.pattern",
"Pulse.Common.m... | [
"mutual recursion"
] | false | false | false | true | false | let rec readback_pat (p: R.pattern) : option pattern =
| match p with
| R.Pat_Cons fv _ args ->
let fv = R.inspect_fv fv in
let? args = map_opt_dec p readback_sub_pat args in
Some (Pat_Cons ({ fv_name = fv; fv_range = Range.range_0 }) args)
| R.Pat_Constant c -> Some (Pat_Constant c)
| R.Pat_Var st nm -> Some (Pat_Var nm (RU.map_seal st RU.deep_compress))
| R.Pat_Dot_T... | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.lemma_map_opt_dec_lenx | val lemma_map_opt_dec_lenx (top: 'z) (f: (x: 'a{x << top} -> option 'b)) (xs: list 'a {xs << top})
: Lemma (requires Some? (map_opt_dec top f xs))
(ensures L.length xs == L.length (Some?.v (map_opt_dec top f xs)))
[SMTPat (map_opt_dec top f xs)] | val lemma_map_opt_dec_lenx (top: 'z) (f: (x: 'a{x << top} -> option 'b)) (xs: list 'a {xs << top})
: Lemma (requires Some? (map_opt_dec top f xs))
(ensures L.length xs == L.length (Some?.v (map_opt_dec top f xs)))
[SMTPat (map_opt_dec top f xs)] | let lemma_map_opt_dec_lenx (top:'z) (f : (x:'a{x << top}) -> option 'b) (xs : list 'a{xs << top})
: Lemma (requires Some? (map_opt_dec top f xs))
(ensures L.length xs == L.length (Some?.v (map_opt_dec top f xs)))
[SMTPat (map_opt_dec top f xs)]
= let Some ys = map_opt_dec top f xs in
__lemma... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 104,
"start_col": 0,
"start_line": 99
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
top: 'z ->
f: (x: 'a{x << top} -> FStar.Pervasives.Native.option 'b) ->
xs: Prims.list 'a {xs << top}
-> FStar.Pervasives.Lemma (requires Some? (Pulse.Common.map_opt_dec top f xs))
(ensures
FStar.List.Tot.Base.length xs ==
FStar.List.Tot.Base.length (Some?.v (Pulse.Common.map_opt_de... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.precedes",
"FStar.Pervasives.Native.option",
"Prims.list",
"Pulse.Checker.Match.__lemma_map_opt_dec_lenx",
"Prims.unit",
"Pulse.Common.map_opt_dec",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"Prims.squash",
"Prims.eq2",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.Perv... | [] | false | false | true | false | false | let lemma_map_opt_dec_lenx (top: 'z) (f: (x: 'a{x << top} -> option 'b)) (xs: list 'a {xs << top})
: Lemma (requires Some? (map_opt_dec top f xs))
(ensures L.length xs == L.length (Some?.v (map_opt_dec top f xs)))
[SMTPat (map_opt_dec top f xs)] =
| let Some ys = map_opt_dec top f xs in
__lemma_map_opt_dec_lenx top f xs ys | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.open_st_term_bs | val open_st_term_bs (t:st_term) (bs:list binding) : st_term | val open_st_term_bs (t:st_term) (bs:list binding) : st_term | let open_st_term_bs (t:st_term) (bs:list binding) : st_term =
let rec aux (bs:list binding) (i:nat) : subst =
match bs with
| [] -> []
| b::bs ->
(DT i (Pulse.Syntax.Pure.term_of_nvar (ppname_default, fst b))) :: aux bs (i+1)
in
let ss = aux (List.rev bs) 0 in
subst_st_term t ss | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 20,
"end_line": 200,
"start_col": 0,
"start_line": 192
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | t: Pulse.Syntax.Base.st_term -> bs: Prims.list Pulse.Typing.Env.binding -> Pulse.Syntax.Base.st_term | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.st_term",
"Prims.list",
"Pulse.Typing.Env.binding",
"Pulse.Syntax.Naming.subst_st_term",
"Pulse.Syntax.Naming.subst",
"FStar.List.Tot.Base.rev",
"Prims.nat",
"Prims.Nil",
"Pulse.Syntax.Naming.subst_elt",
"Prims.Cons",
"Pulse.Syntax.Naming.DT",
"Pulse.Syntax.Pure.term_of_nvar... | [] | false | false | false | true | false | let open_st_term_bs (t: st_term) (bs: list binding) : st_term =
| let rec aux (bs: list binding) (i: nat) : subst =
match bs with
| [] -> []
| b :: bs -> (DT i (Pulse.Syntax.Pure.term_of_nvar (ppname_default, fst b))) :: aux bs (i + 1)
in
let ss = aux (List.rev bs) 0 in
subst_st_term t ss | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.check_branches_aux_t | val check_branches_aux_t : pre: Pulse.Syntax.Base.term ->
post_hint: Pulse.Typing.post_hint_for_env g ->
sc_u: Pulse.Syntax.Base.universe ->
sc_ty: Pulse.Syntax.Base.typ ->
sc: Pulse.Syntax.Base.term
-> Type0 | let check_branches_aux_t
(#g:env)
(pre:term)
(post_hint:post_hint_for_env g)
(sc_u : universe)
(sc_ty : typ)
(sc : term)
= (br:branch
& c:comp_st{comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint)}
& br_typing g sc_u sc_ty sc (fst br) (snd br) c) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 51,
"end_line": 271,
"start_col": 0,
"start_line": 262
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
pre: Pulse.Syntax.Base.term ->
post_hint: Pulse.Typing.post_hint_for_env g ->
sc_u: Pulse.Syntax.Base.universe ->
sc_ty: Pulse.Syntax.Base.typ ->
sc: Pulse.Syntax.Base.term
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.post_hint_for_env",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.typ",
"FStar.Pervasives.dtuple3",
"Pulse.Syntax.Base.branch",
"Pulse.Syntax.Base.comp_st",
"Prims.l_and",
"Prims.eq2",
"Pulse.Syntax.Base.comp_pre",
"Pulse.Typin... | [] | false | false | false | false | true | let check_branches_aux_t
(#g: env)
(pre: term)
(post_hint: post_hint_for_env g)
(sc_u: universe)
(sc_ty: typ)
(sc: term)
=
| (br: branch &
c: comp_st{comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint)} &
br_typing g sc_u sc_ty sc (fst br) (snd br) c) | false | |
Pulse.Checker.Match.fst | Pulse.Checker.Match.max_obs | val max_obs (checked_brs: list comp_st) (obs: observability) : observability | val max_obs (checked_brs: list comp_st) (obs: observability) : observability | let rec max_obs
(checked_brs : list comp_st)
(obs:observability)
: observability
= match checked_brs with
| [] -> obs
| c'::rest ->
match c' with
| C_ST _
| C_STGhost _ ->
max_obs rest obs
| C_STAtomic _ obs' _ ->
max_obs rest (join_obs obs obs') | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 38,
"end_line": 341,
"start_col": 0,
"start_line": 329
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | checked_brs: Prims.list Pulse.Syntax.Base.comp_st -> obs: Pulse.Syntax.Base.observability
-> Pulse.Syntax.Base.observability | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Pulse.Syntax.Base.comp_st",
"Pulse.Syntax.Base.observability",
"Pulse.Syntax.Base.st_comp",
"Pulse.Checker.Match.max_obs",
"Pulse.Syntax.Base.term",
"Pulse.Typing.join_obs"
] | [
"recursion"
] | false | false | false | true | false | let rec max_obs (checked_brs: list comp_st) (obs: observability) : observability =
| match checked_brs with
| [] -> obs
| c' :: rest ->
match c' with
| C_ST _ | C_STGhost _ -> max_obs rest obs
| C_STAtomic _ obs' _ -> max_obs rest (join_obs obs obs') | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.__lemma_map_opt_lenx | val __lemma_map_opt_lenx (f: ('a -> option 'b)) (xs: list 'a) (ys: list 'b)
: Lemma (requires map_opt f xs == Some ys) (ensures L.length xs == L.length ys) | val __lemma_map_opt_lenx (f: ('a -> option 'b)) (xs: list 'a) (ys: list 'b)
: Lemma (requires map_opt f xs == Some ys) (ensures L.length xs == L.length ys) | let rec __lemma_map_opt_lenx (f : 'a -> option 'b) (xs : list 'a) (ys : list 'b)
: Lemma (requires map_opt f xs == Some ys)
(ensures L.length xs == L.length ys)
= match xs, ys with
| [], [] -> ()
| x::xs, y::ys ->
__lemma_map_opt_lenx f xs ys
| _ -> assert False | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 81,
"start_col": 0,
"start_line": 74
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | f: (_: 'a -> FStar.Pervasives.Native.option 'b) -> xs: Prims.list 'a -> ys: Prims.list 'b
-> FStar.Pervasives.Lemma (requires Pulse.Common.map_opt f xs == FStar.Pervasives.Native.Some ys)
(ensures FStar.List.Tot.Base.length xs == FStar.List.Tot.Base.length ys) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Pervasives.Native.option",
"Prims.list",
"FStar.Pervasives.Native.Mktuple2",
"Pulse.Checker.Match.__lemma_map_opt_lenx",
"FStar.Pervasives.Native.tuple2",
"Prims._assert",
"Prims.l_False",
"Prims.unit",
"Prims.eq2",
"Pulse.Common.map_opt",
"FStar.Pervasives.Native.Some",
"Prims.squash",... | [
"recursion"
] | false | false | true | false | false | let rec __lemma_map_opt_lenx (f: ('a -> option 'b)) (xs: list 'a) (ys: list 'b)
: Lemma (requires map_opt f xs == Some ys) (ensures L.length xs == L.length ys) =
| match xs, ys with
| [], [] -> ()
| x :: xs, y :: ys -> __lemma_map_opt_lenx f xs ys
| _ -> assert False | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.tot_typing_weakening_n | val tot_typing_weakening_n
(#g:env) (#t:term) (#ty:term)
(bs:list binding{all_fresh g bs})
(d:tot_typing g t ty)
: Tot (tot_typing (push_bindings g bs) t ty)
(decreases bs) | val tot_typing_weakening_n
(#g:env) (#t:term) (#ty:term)
(bs:list binding{all_fresh g bs})
(d:tot_typing g t ty)
: Tot (tot_typing (push_bindings g bs) t ty)
(decreases bs) | let rec tot_typing_weakening_n bs d =
match bs with
| [] -> d
| (x,t)::bs ->
let d = Pulse.Typing.Metatheory.tot_typing_weakening_single d x t in
tot_typing_weakening_n bs d | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 31,
"end_line": 187,
"start_col": 0,
"start_line": 182
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
bs: Prims.list Pulse.Typing.Env.binding {Pulse.Typing.all_fresh g bs} ->
d: Pulse.Typing.tot_typing g t ty
-> Prims.Tot (Pulse.Typing.tot_typing (Pulse.Typing.push_bindings g bs) t ty) | Prims.Tot | [
"total",
""
] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Prims.list",
"Pulse.Typing.Env.binding",
"Pulse.Typing.all_fresh",
"Pulse.Typing.tot_typing",
"Pulse.Syntax.Base.var",
"Pulse.Syntax.Base.typ",
"Pulse.Checker.Match.tot_typing_weakening_n",
"Pulse.Typing.Env.push_binding",
"Pulse.Syntax.Base.ppn... | [
"recursion"
] | false | false | false | false | false | let rec tot_typing_weakening_n bs d =
| match bs with
| [] -> d
| (x, t) :: bs ->
let d = Pulse.Typing.Metatheory.tot_typing_weakening_single d x t in
tot_typing_weakening_n bs d | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.r_bindings_to_string | val r_bindings_to_string (bs: list R.binding) : T.Tac string | val r_bindings_to_string (bs: list R.binding) : T.Tac string | let rec r_bindings_to_string (bs : list R.binding) : T.Tac string =
match bs with
| [] -> ""
| b::bs ->
(T.unseal b.ppname ^ "-" ^ string_of_int b.uniq ^ ":" ^ T.term_to_string b.sort ^ " ") ^ r_bindings_to_string bs | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 116,
"end_line": 206,
"start_col": 0,
"start_line": 202
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | bs: Prims.list FStar.Stubs.Reflection.V2.Data.binding -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.list",
"FStar.Stubs.Reflection.V2.Data.binding",
"Prims.string",
"Prims.op_Hat",
"Pulse.Checker.Match.r_bindings_to_string",
"Prims.string_of_int",
"FStar.Stubs.Reflection.V2.Data.__proj__Mkbinding__item__uniq",
"FStar.Stubs.Tactics.V2.Builtins.term_to_string",
"FStar.Stubs.Reflection.V2.Data... | [
"recursion"
] | false | true | false | false | false | let rec r_bindings_to_string (bs: list R.binding) : T.Tac string =
| match bs with
| [] -> ""
| b :: bs ->
(T.unseal b.ppname ^ "-" ^ string_of_int b.uniq ^ ":" ^ T.term_to_string b.sort ^ " ") ^
r_bindings_to_string bs | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.bindings_to_string | val bindings_to_string (bs: list binding) : T.Tac string | val bindings_to_string (bs: list binding) : T.Tac string | let rec bindings_to_string (bs : list binding) : T.Tac string =
match bs with
| [] -> ""
| b::bs ->
(string_of_int (fst b) ^ ":" ^ Pulse.Syntax.Printer.term_to_string (snd b) ^ " ") ^ bindings_to_string bs | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 109,
"end_line": 212,
"start_col": 0,
"start_line": 208
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | bs: Prims.list Pulse.Typing.Env.binding -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.list",
"Pulse.Typing.Env.binding",
"Prims.string",
"Prims.op_Hat",
"Pulse.Checker.Match.bindings_to_string",
"Prims.string_of_int",
"FStar.Pervasives.Native.fst",
"Pulse.Syntax.Base.var",
"Pulse.Syntax.Base.typ",
"Pulse.Syntax.Printer.term_to_string",
"FStar.Pervasives.Native.snd"
] | [
"recursion"
] | false | true | false | false | false | let rec bindings_to_string (bs: list binding) : T.Tac string =
| match bs with
| [] -> ""
| b :: bs ->
(string_of_int (fst b) ^ ":" ^ Pulse.Syntax.Printer.term_to_string (snd b) ^ " ") ^
bindings_to_string bs | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.comp_observability | val comp_observability : c: Pulse.Syntax.Base.comp_st -> Pulse.Syntax.Base.observability | let comp_observability (c:comp_st) =
match c with
| C_ST _ -> Observable
| C_STGhost _ -> Unobservable
| C_STAtomic _ obs _ -> obs | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 304,
"start_col": 0,
"start_line": 300
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | c: Pulse.Syntax.Base.comp_st -> Pulse.Syntax.Base.observability | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.comp_st",
"Pulse.Syntax.Base.st_comp",
"Pulse.Syntax.Base.Observable",
"Pulse.Syntax.Base.Unobservable",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.observability"
] | [] | false | false | false | true | false | let comp_observability (c: comp_st) =
| match c with
| C_ST _ -> Observable
| C_STGhost _ -> Unobservable
| C_STAtomic _ obs _ -> obs | false | |
Pulse.Checker.Match.fst | Pulse.Checker.Match.readback_sub_pat | val readback_sub_pat (pb: R.pattern & bool) : option (pattern & bool) | val readback_sub_pat (pb: R.pattern & bool) : option (pattern & bool) | let rec readback_pat (p : R.pattern) : option pattern =
match p with
| R.Pat_Cons fv _ args ->
let fv = R.inspect_fv fv in
let? args = map_opt_dec p readback_sub_pat args in
Some (Pat_Cons {fv_name=fv; fv_range=Range.range_0} args)
| R.Pat_Constant c ->
Some (Pat_Constant c)
| R.Pat_Var st nm ... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 13,
"end_line": 59,
"start_col": 0,
"start_line": 32
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | pb: (FStar.Stubs.Reflection.V2.Data.pattern * Prims.bool)
-> FStar.Pervasives.Native.option (Pulse.Syntax.Base.pattern * Prims.bool) | Prims.Tot | [
"total"
] | [
"readback_pat",
"readback_sub_pat"
] | [
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V2.Data.pattern",
"Prims.bool",
"Pulse.Syntax.Pure.op_let_Question",
"Pulse.Syntax.Base.pattern",
"Pulse.Checker.Match.readback_pat",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.option"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec readback_sub_pat (pb: R.pattern & bool) : option (pattern & bool) =
| let p, b = pb in
let? p = readback_pat p in
Some (p, b) | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.lemma_map_opt_dec_index | val lemma_map_opt_dec_index
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures forall i. f (xs `L.index` i) == Some (ys `L.index` i)) | val lemma_map_opt_dec_index
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures forall i. f (xs `L.index` i) == Some (ys `L.index` i)) | let lemma_map_opt_dec_index (top:'z) (f : (x:'a{x << top}) -> option 'b) (xs : list 'a{xs << top}) (ys : list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures forall i. f (xs `L.index` i) == Some (ys `L.index` i))
= Classical.forall_intro (Classical.move_requires (__lemma_map_opt_dec_index ... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 92,
"end_line": 117,
"start_col": 0,
"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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
top: 'z ->
f: (x: 'a{x << top} -> FStar.Pervasives.Native.option 'b) ->
xs: Prims.list 'a {xs << top} ->
ys: Prims.list 'b
-> FStar.Pervasives.Lemma
(requires Pulse.Common.map_opt_dec top f xs == FStar.Pervasives.Native.Some ys)
(ensures
forall (i:
Prims.nat{i < FStar.Li... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.precedes",
"FStar.Pervasives.Native.option",
"Prims.list",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"Prims.l_imp",
"Prims.eq2",
"Pulse.Common.map_opt_dec",
"FStar.Pervasives.Native.Some",
"FStar.List.Tot.Base.index",
... | [] | false | false | true | false | false | let lemma_map_opt_dec_index
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures forall i. f (xs `L.index` i) == Some (ys `L.index` i)) =
| Classical.forall_intro (Classical.move_requires (__lemma_map_opt_dec_index top f xs ys)) | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.__lemma_map_opt_dec_lenx | val __lemma_map_opt_dec_lenx
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys) (ensures L.length xs == L.length ys) | val __lemma_map_opt_dec_lenx
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys) (ensures L.length xs == L.length ys) | let rec __lemma_map_opt_dec_lenx (top:'z) (f : (x:'a{x << top}) -> option 'b) (xs : list 'a{xs << top}) (ys : list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures L.length xs == L.length ys)
= match xs, ys with
| [], [] -> ()
| x::xs, y::ys ->
__lemma_map_opt_dec_lenx top f x... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 97,
"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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
top: 'z ->
f: (x: 'a{x << top} -> FStar.Pervasives.Native.option 'b) ->
xs: Prims.list 'a {xs << top} ->
ys: Prims.list 'b
-> FStar.Pervasives.Lemma
(requires Pulse.Common.map_opt_dec top f xs == FStar.Pervasives.Native.Some ys)
(ensures FStar.List.Tot.Base.length xs == FStar.List.Tot.Bas... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.precedes",
"FStar.Pervasives.Native.option",
"Prims.list",
"FStar.Pervasives.Native.Mktuple2",
"Pulse.Checker.Match.__lemma_map_opt_dec_lenx",
"FStar.Pervasives.Native.tuple2",
"Prims._assert",
"Prims.l_False",
"Prims.unit",
"Prims.eq2",
"Pulse.Common.map_opt_dec",
"FStar.Pervasives.Nat... | [
"recursion"
] | false | false | true | false | false | let rec __lemma_map_opt_dec_lenx
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
: Lemma (requires map_opt_dec top f xs == Some ys) (ensures L.length xs == L.length ys) =
| match xs, ys with
| [], [] -> ()
| x :: xs, y :: ys -> __lemma_map_opt_dec_lenx top f xs ys
| _ -> assert False | false |
Hacl.Impl.SHA512.ModQ.fst | Hacl.Impl.SHA512.ModQ.sha512_pre_pre2_msg | val sha512_pre_pre2_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h prefix2 /\ live h input /\
disjoint prefix hash /\ disjoint prefix2 h... | val sha512_pre_pre2_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h prefix2 /\ live h input /\
disjoint prefix hash /\ disjoint prefix2 h... | let sha512_pre_pre2_msg hash prefix prefix2 len input =
push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st prefix2 32ul in
let err2 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ign... | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 75,
"start_col": 0,
"start_line": 63
} | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false |
hash: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Seq.Base.append_empty_l",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Hacl.Streaming.SHA2.digest_512",
"LowStar.Ignore.ignore",
"Hacl.Streaming.Types... | [] | false | true | false | false | false | let sha512_pre_pre2_msg hash prefix prefix2 len input =
| push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st prefix2 32ul in
let err2 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ignore err1;
LowStar.Ignore.ignore err2;
Hash.digest_512 st hash ();
Seq.ap... | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.__lemma_map_opt_dec_index | val __lemma_map_opt_dec_index
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
(i: nat{i < L.length xs})
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures f (xs `L.index` i) == Some (ys `L.index` i)) | val __lemma_map_opt_dec_index
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
(i: nat{i < L.length xs})
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures f (xs `L.index` i) == Some (ys `L.index` i)) | let rec __lemma_map_opt_dec_index (top:'z) (f : (x:'a{x << top}) -> option 'b) (xs : list 'a{xs << top}) (ys : list 'b) (i:nat{i < L.length xs})
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures f (xs `L.index` i) == Some (ys `L.index` i))
= match xs, ys, i with
| _, _, 0 -> ()
| x::xs, ... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 48,
"end_line": 112,
"start_col": 0,
"start_line": 106
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
top: 'z ->
f: (x: 'a{x << top} -> FStar.Pervasives.Native.option 'b) ->
xs: Prims.list 'a {xs << top} ->
ys: Prims.list 'b ->
i: Prims.nat{i < FStar.List.Tot.Base.length xs}
-> FStar.Pervasives.Lemma
(requires Pulse.Common.map_opt_dec top f xs == FStar.Pervasives.Native.Some ys)
(ensu... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.precedes",
"FStar.Pervasives.Native.option",
"Prims.list",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"FStar.Pervasives.Native.Mktuple3",
"Prims.int",
"Pulse.Checker.Match.__lemma_map_opt_dec_index",
"Prims.op_Subtraction",
"Prims.unit",
"Prims.eq2",
... | [
"recursion"
] | false | false | true | false | false | let rec __lemma_map_opt_dec_index
(top: 'z)
(f: (x: 'a{x << top} -> option 'b))
(xs: list 'a {xs << top})
(ys: list 'b)
(i: nat{i < L.length xs})
: Lemma (requires map_opt_dec top f xs == Some ys)
(ensures f (xs `L.index` i) == Some (ys `L.index` i)) =
| match xs, ys, i with
| _, _, 0 -> ()
| x :: xs, y :: ys, _ -> __lemma_map_opt_dec_index top f xs ys (i - 1) | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.lemma_map_index | val lemma_map_index (f: ('a -> 'b)) (xs: list 'a) (i: nat{i < L.length xs})
: Lemma ((L.map f xs) `L.index` i == f (xs `L.index` i)) | val lemma_map_index (f: ('a -> 'b)) (xs: list 'a) (i: nat{i < L.length xs})
: Lemma ((L.map f xs) `L.index` i == f (xs `L.index` i)) | let rec lemma_map_index (f : 'a -> 'b) (xs : list 'a) (i : nat{i < L.length xs})
: Lemma (L.map f xs `L.index` i == f (xs `L.index` i))
= match i, xs with
| 0, _ -> ()
| _, x::xs -> lemma_map_index f xs (i-1) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 44,
"end_line": 72,
"start_col": 0,
"start_line": 68
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | f: (_: 'a -> 'b) -> xs: Prims.list 'a -> i: Prims.nat{i < FStar.List.Tot.Base.length xs}
-> FStar.Pervasives.Lemma
(ensures
FStar.List.Tot.Base.index (FStar.List.Tot.Base.map f xs) i ==
f (FStar.List.Tot.Base.index xs i)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"FStar.Pervasives.Native.Mktuple2",
"Prims.int",
"Pulse.Checker.Match.lemma_map_index",
"Prims.op_Subtraction",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.List.Tot.Base.index",... | [
"recursion"
] | false | false | true | false | false | let rec lemma_map_index (f: ('a -> 'b)) (xs: list 'a) (i: nat{i < L.length xs})
: Lemma ((L.map f xs) `L.index` i == f (xs `L.index` i)) =
| match i, xs with
| 0, _ -> ()
| _, x :: xs -> lemma_map_index f xs (i - 1) | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.check_branches | val check_branches
(g: env)
(pre: term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint: post_hint_for_env g)
(check: check_t)
(sc_u: universe)
(sc_ty: typ)
(sc: term)
(brs0: list branch)
(bnds: list (R.pattern & list R.binding) {L.length brs0 == L.length b... | val check_branches
(g: env)
(pre: term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint: post_hint_for_env g)
(check: check_t)
(sc_u: universe)
(sc_ty: typ)
(sc: term)
(brs0: list branch)
(bnds: list (R.pattern & list R.binding) {L.length brs0 == L.length b... | let check_branches
(g:env)
(pre:term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint:post_hint_for_env g)
(check:check_t)
(sc_u : universe)
(sc_ty : typ)
(sc : term)
(brs0:list branch)
(bnds: list (R.pattern & list R.binding){L.length b... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 18,
"end_line": 395,
"start_col": 0,
"start_line": 368
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
g: Pulse.Typing.Env.env ->
pre: Pulse.Syntax.Base.term ->
pre_typing: Pulse.Typing.tot_typing g pre Pulse.Syntax.Base.tm_vprop ->
post_hint: Pulse.Typing.post_hint_for_env g ->
check: Pulse.Checker.Base.check_t ->
sc_u: Pulse.Syntax.Base.universe ->
sc_ty: Pulse.Syntax.Base.typ ->
sc: P... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot_typing",
"Pulse.Syntax.Base.tm_vprop",
"Pulse.Typing.post_hint_for_env",
"Pulse.Checker.Base.check_t",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.typ",
"Prims.list",
"Pulse.Syntax.Base.branch",
"FStar.Pervasives.Native.tup... | [] | false | true | false | false | false | let check_branches
(g: env)
(pre: term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint: post_hint_for_env g)
(check: check_t)
(sc_u: universe)
(sc_ty: typ)
(sc: term)
(brs0: list branch)
(bnds: list (R.pattern & list R.binding) {L.length brs0 == L.length b... | let checked_brs = check_branches_aux g pre pre_typing post_hint check sc_u sc_ty sc brs0 bnds in
let (| c0 , checked_brs |) = join_branches checked_brs in
let brs = List.Tot.map dfst checked_brs in
let d:brs_typing g sc_u sc_ty sc brs c0 =
let rec aux (brs: list (br: branch & br_typing g sc_u sc_ty sc (fst br) (snd b... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_code_KeyExpansionRoundEven256 | val va_code_KeyExpansionRoundEven256 : round:nat64 -> rcon:nat8 -> Tot va_code | val va_code_KeyExpansionRoundEven256 : round:nat64 -> rcon:nat8 -> Tot va_code | let va_code_KeyExpansionRoundEven256 round rcon =
(va_Block (va_CCons (va_code_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 3) rcon)
(va_CCons (va_code_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 255) (va_CCons (va_code_VPslldq4
(va_op_xmm_xmm 4) (va_op_xmm_xmm 1)) (va_CCons (va_code_Pxor (va_op_xmm_xm... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 33,
"start_col": 0,
"start_line": 24
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | round: Vale.X64.Memory.nat64 -> rcon: Vale.X64.Memory.nat8 -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsAes.va_code_AESNI_keygen_assist",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_code_Pshufd",
"Vale.X64.InsVector.va_code_VPslldq4",
"Vale.X64.InsVector.va_code_Pxor",
"Vale... | [] | false | false | false | true | false | let va_code_KeyExpansionRoundEven256 round rcon =
| (va_Block (va_CCons (va_code_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 3) rcon)
(va_CCons (va_code_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 255)
(va_CCons (va_code_VPslldq4 (va_op_xmm_xmm 4) (va_op_xmm_xmm 1))
(va_CCons (va_code_Pxor (va_op_xmm_xmm 1) (va_op_xmm_xmm 4))
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_codegen_success_KeyExpansionRoundEven256 | val va_codegen_success_KeyExpansionRoundEven256 : round:nat64 -> rcon:nat8 -> Tot va_pbool | val va_codegen_success_KeyExpansionRoundEven256 : round:nat64 -> rcon:nat8 -> Tot va_pbool | let va_codegen_success_KeyExpansionRoundEven256 round rcon =
(va_pbool_and (va_codegen_success_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 3) rcon)
(va_pbool_and (va_codegen_success_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 255) (va_pbool_and
(va_codegen_success_VPslldq4 (va_op_xmm_xmm 4) (va_op_xmm... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 84,
"end_line": 48,
"start_col": 0,
"start_line": 37
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | round: Vale.X64.Memory.nat64 -> rcon: Vale.X64.Memory.nat8 -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsAes.va_codegen_success_AESNI_keygen_assist",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_codegen_success_Pshufd",
"Vale.X64.InsVector.va_codegen_success_VPslldq4",
"Vale.X64.InsVector.va_codegen_suc... | [] | false | false | false | true | false | let va_codegen_success_KeyExpansionRoundEven256 round rcon =
| (va_pbool_and (va_codegen_success_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 3) rcon)
(va_pbool_and (va_codegen_success_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 255)
(va_pbool_and (va_codegen_success_VPslldq4 (va_op_xmm_xmm 4) (va_op_xmm_xmm 1))
(va_pbool_and (va_codegen_success_Pxor... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_code_KeyExpansionRoundOdd256 | val va_code_KeyExpansionRoundOdd256 : round:nat64 -> rcon:nat8 -> Tot va_code | val va_code_KeyExpansionRoundOdd256 : round:nat64 -> rcon:nat8 -> Tot va_code | let va_code_KeyExpansionRoundOdd256 round rcon =
(va_Block (va_CCons (va_code_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 1) 0) (va_CCons
(va_code_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 170) (va_CCons (va_code_VPslldq4
(va_op_xmm_xmm 4) (va_op_xmm_xmm 3)) (va_CCons (va_code_Pxor (va_op_xmm_xmm 3)... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 192,
"start_col": 0,
"start_line": 183
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | round: Vale.X64.Memory.nat64 -> rcon: Vale.X64.Memory.nat8 -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsAes.va_code_AESNI_keygen_assist",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_code_Pshufd",
"Vale.X64.InsVector.va_code_VPslldq4",
"Vale.X64.InsVector.va_code_Pxor",
"Vale... | [] | false | false | false | true | false | let va_code_KeyExpansionRoundOdd256 round rcon =
| (va_Block (va_CCons (va_code_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 1) 0)
(va_CCons (va_code_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 170)
(va_CCons (va_code_VPslldq4 (va_op_xmm_xmm 4) (va_op_xmm_xmm 3))
(va_CCons (va_code_Pxor (va_op_xmm_xmm 3) (va_op_xmm_xmm 4))
... | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.weaken_branch_observability | val weaken_branch_observability
(obs: observability)
(#g #pre: _)
(#post_hint: post_hint_for_env g)
(#sc_u #sc_ty #sc: _)
(c:
comp_st
{ C_STAtomic? c /\ comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint) /\
comp_observability c == obs })
... | val weaken_branch_observability
(obs: observability)
(#g #pre: _)
(#post_hint: post_hint_for_env g)
(#sc_u #sc_ty #sc: _)
(c:
comp_st
{ C_STAtomic? c /\ comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint) /\
comp_observability c == obs })
... | let weaken_branch_observability
(obs:observability)
(#g #pre:_) (#post_hint:post_hint_for_env g)
(#sc_u #sc_ty #sc:_)
(c:comp_st{
C_STAtomic? c /\
comp_pre c == pre /\
comp_post_matches_hint c (Some post_hint) /\
comp_observability c == obs
})
... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 327,
"start_col": 0,
"start_line": 306
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false |
obs: Pulse.Syntax.Base.observability ->
c:
Pulse.Syntax.Base.comp_st
{ C_STAtomic? c /\ Pulse.Syntax.Base.comp_pre c == pre /\
Pulse.Typing.comp_post_matches_hint c (FStar.Pervasives.Native.Some post_hint) /\
Pulse.Checker.Match.comp_observability c == obs } ->
checked_br:... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Syntax.Base.observability",
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.vprop",
"Pulse.Typing.post_hint_for_env",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.typ",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.comp_st",
"Prims.l_and",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_C_STAtomic"... | [] | false | true | false | false | false | let weaken_branch_observability
(obs: observability)
(#g #pre: _)
(#post_hint: post_hint_for_env g)
(#sc_u #sc_ty #sc: _)
(c:
comp_st
{ C_STAtomic? c /\ comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint) /\
comp_observability c == obs })
... | let (| br , c0 , typing |) = checked_br in
let C_STAtomic i obs' st = c0 in
if not (sub_observability obs' obs)
then T.fail "Cannot weaken observability"
else
(let TBR g sc_u sc_ty sc c p e bs p1 p2 p3 hyp st_typing = typing in
let st_typing = T_Lift _ _ _ _ st_typing (Lift_Observability _ c obs) in
let d = T... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_codegen_success_KeyExpansionRoundOdd256 | val va_codegen_success_KeyExpansionRoundOdd256 : round:nat64 -> rcon:nat8 -> Tot va_pbool | val va_codegen_success_KeyExpansionRoundOdd256 : round:nat64 -> rcon:nat8 -> Tot va_pbool | let va_codegen_success_KeyExpansionRoundOdd256 round rcon =
(va_pbool_and (va_codegen_success_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 1) 0)
(va_pbool_and (va_codegen_success_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 170) (va_pbool_and
(va_codegen_success_VPslldq4 (va_op_xmm_xmm 4) (va_op_xmm_xmm... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 84,
"end_line": 207,
"start_col": 0,
"start_line": 196
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | round: Vale.X64.Memory.nat64 -> rcon: Vale.X64.Memory.nat8 -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsAes.va_codegen_success_AESNI_keygen_assist",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_codegen_success_Pshufd",
"Vale.X64.InsVector.va_codegen_success_VPslldq4",
"Vale.X64.InsVector.va_codegen_suc... | [] | false | false | false | true | false | let va_codegen_success_KeyExpansionRoundOdd256 round rcon =
| (va_pbool_and (va_codegen_success_AESNI_keygen_assist (va_op_xmm_xmm 2) (va_op_xmm_xmm 1) 0)
(va_pbool_and (va_codegen_success_Pshufd (va_op_xmm_xmm 2) (va_op_xmm_xmm 2) 170)
(va_pbool_and (va_codegen_success_VPslldq4 (va_op_xmm_xmm 4) (va_op_xmm_xmm 3))
(va_pbool_and (va_codegen_success_Pxor (v... | false |
Pulse.Checker.Match.fst | Pulse.Checker.Match.join_branches | val join_branches
(#g #pre #post_hint #sc_u #sc_ty #sc: _)
(checked_brs: list (check_branches_aux_t #g pre post_hint sc_u sc_ty sc))
: T.Tac
(c: comp_st{comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint)} &
list (br: branch & br_typing g sc_u sc_ty sc (fst br) (snd br) c)) | val join_branches
(#g #pre #post_hint #sc_u #sc_ty #sc: _)
(checked_brs: list (check_branches_aux_t #g pre post_hint sc_u sc_ty sc))
: T.Tac
(c: comp_st{comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint)} &
list (br: branch & br_typing g sc_u sc_ty sc (fst br) (snd br) c)) | let join_branches (#g #pre #post_hint #sc_u #sc_ty #sc:_)
(checked_brs : list (check_branches_aux_t #g pre post_hint sc_u sc_ty sc))
: T.Tac (c:comp_st { comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint) } &
list (br:branch & br_typing g sc_u sc_ty sc (fst br) (snd br) c))
= matc... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Match.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 366,
"start_col": 0,
"start_line": 343
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Co... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
... | {
"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_el... | false | checked_brs: Prims.list (Pulse.Checker.Match.check_branches_aux_t pre post_hint sc_u sc_ty sc)
-> FStar.Tactics.Effect.Tac
(Prims.dtuple2 (c:
Pulse.Syntax.Base.comp_st
{ Pulse.Syntax.Base.comp_pre c == pre /\
Pulse.Typing.comp_post_matches_hint c (FStar.Pervasives.Native.Some p... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.post_hint_for_env",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.typ",
"Prims.list",
"Pulse.Checker.Match.check_branches_aux_t",
"FStar.Tactics.V2.Derived.fail",
"Prims.dtuple2",
"Pulse.Syntax.Base.comp_st",
"Prims.l_and",
"Pr... | [] | false | true | false | false | false | let join_branches
(#g #pre #post_hint #sc_u #sc_ty #sc: _)
(checked_brs: list (check_branches_aux_t #g pre post_hint sc_u sc_ty sc))
: T.Tac
(c: comp_st{comp_pre c == pre /\ comp_post_matches_hint c (Some post_hint)} &
list (br: branch & br_typing g sc_u sc_ty sc (fst br) (snd br) c)) =
| match checked_brs with
| [] -> T.fail "Impossible: empty match"
| checked_br :: rest ->
let (| br , c , d |) = checked_br in
match c with
| C_ST _
| C_STGhost _ ->
let rest =
List.Tot.map #(check_branches_aux_t #g pre post_hint sc_u sc_ty sc)
#(br: branch & br_typing g sc_u sc_ty sc (fst br) (... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_codegen_success_KeyExpansion256Stdcall | val va_codegen_success_KeyExpansion256Stdcall : win:bool -> Tot va_pbool | val va_codegen_success_KeyExpansion256Stdcall : win:bool -> Tot va_pbool | let va_codegen_success_KeyExpansion256Stdcall win =
(va_pbool_and (if win then va_pbool_and (va_codegen_success_Load128_buffer
(va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 1) (va_op_reg_opr64_reg64 rRcx) 0 Secret)
(va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm
... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 87,
"end_line": 541,
"start_col": 0,
"start_line": 524
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | win: Prims.bool -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rRcx",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.Decls.va_ttrue... | [] | false | false | false | true | false | let va_codegen_success_KeyExpansion256Stdcall win =
| (va_pbool_and (if win
then
va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 1)
(va_op_reg_opr64_reg64 rRcx)
0
Secret)
(va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0)... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_code_KeyExpansion256Stdcall | val va_code_KeyExpansion256Stdcall : win:bool -> Tot va_code | val va_code_KeyExpansion256Stdcall : win:bool -> Tot va_code | let va_code_KeyExpansion256Stdcall win =
(va_Block (va_CCons (if win then va_Block (va_CCons (va_code_Load128_buffer
(va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 1) (va_op_reg_opr64_reg64 rRcx) 0 Secret)
(va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 3)
(va_op_reg_opr64_reg... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 90,
"end_line": 521,
"start_col": 0,
"start_line": 507
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | win: Prims.bool -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rRcx",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.... | [] | false | false | false | true | false | let va_code_KeyExpansion256Stdcall win =
| (va_Block (va_CCons (if win
then
va_Block (va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 1)
(va_op_reg_opr64_reg64 rRcx)
0
Secret)
(va_CCons (va_code_Load128_bu... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_codegen_success_AES256EncryptRound | val va_codegen_success_AES256EncryptRound : n:nat -> Tot va_pbool | val va_codegen_success_AES256EncryptRound : n:nat -> Tot va_pbool | let va_codegen_success_AES256EncryptRound n =
(va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 2)
(va_op_reg_opr64_reg64 rR8) (16 `op_Multiply` n) Secret) (va_pbool_and
(va_codegen_success_AESNI_enc (va_op_xmm_xmm 0) (va_op_xmm_xmm 2)) (va_ttrue ()))) | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 86,
"end_line": 669,
"start_col": 0,
"start_line": 666
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | n: Prims.nat -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR8",
"Prims.op_Multiply",
"Vale.Arch.HeapTypes_s.Secret",
"Va... | [] | false | false | false | true | false | let va_codegen_success_AES256EncryptRound n =
| (va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 2)
(va_op_reg_opr64_reg64 rR8)
(16 `op_Multiply` n)
Secret)
(va_pbool_and (va_codegen_success_AESNI_enc (va_op_xmm_xmm 0) (va_op_xmm_xmm 2)) (va_ttrue ()))) | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_code_AES256EncryptRound | val va_code_AES256EncryptRound : n:nat -> Tot va_code | val va_code_AES256EncryptRound : n:nat -> Tot va_code | let va_code_AES256EncryptRound n =
(va_Block (va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 2)
(va_op_reg_opr64_reg64 rR8) (16 `op_Multiply` n) Secret) (va_CCons (va_code_AESNI_enc
(va_op_xmm_xmm 0) (va_op_xmm_xmm 2)) (va_CNil ())))) | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 662,
"start_col": 0,
"start_line": 659
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | n: Prims.nat -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR8",
"Prims.op_Multiply",
"Vale.Arch.HeapTypes_s.... | [] | false | false | false | true | false | let va_code_AES256EncryptRound n =
| (va_Block (va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 2)
(va_op_reg_opr64_reg64 rR8)
(16 `op_Multiply` n)
Secret)
(va_CCons (va_code_AESNI_enc (va_op_xmm_xmm 0) (va_op_xmm_xmm 2)) (va_CNil ())))) | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_qcode_KeyExpansionRoundEven256 | val va_qcode_KeyExpansionRoundEven256
(va_mods: va_mods_t)
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) | val va_qcode_KeyExpansionRoundEven256
(va_mods: va_mods_t)
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) | let va_qcode_KeyExpansionRoundEven256 (va_mods:va_mods_t) (round:nat64) (rcon:nat8) (dst:buffer128)
(key:(seq nat32)) : (va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1
"***** PRECONDITION NOT MET AT l... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 100,
"end_line": 82,
"start_col": 0,
"start_line": 51
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES256.va_code_KeyExpansionRoundEven256 round rc... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.InsAes.va_code_AESNI_keygen_assist",
"Vale.... | [] | false | false | false | false | false | let va_qcode_KeyExpansionRoundEven256
(va_mods: va_mods_t)
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
va_QSeq va_range1
"***** PRECONDITION NOT MET AT line 75 column 24 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/crypto/aes/x64/Vale.AES.X64.AES256.vaf *****"
(va_quick_AESNI_keygen_assist ... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_code_AES256EncryptBlock | val va_code_AES256EncryptBlock : va_dummy:unit -> Tot va_code | val va_code_AES256EncryptBlock : va_dummy:unit -> Tot va_code | let va_code_AES256EncryptBlock () =
(va_Block (va_CCons (va_Block (va_CNil ())) (va_CCons (va_code_Load128_buffer
(va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 2) (va_op_reg_opr64_reg64 rR8) 0 Secret) (va_CCons
(va_code_Pxor (va_op_xmm_xmm 0) (va_op_xmm_xmm 2)) (va_CCons (va_code_AES256EncryptRound 1)
(va_... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 770,
"start_col": 0,
"start_line": 757
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | va_dummy: Prims.unit -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.Decls.va_CNil",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR8",
"Vale.Arch.HeapTy... | [] | false | false | false | true | false | let va_code_AES256EncryptBlock () =
| (va_Block (va_CCons (va_Block (va_CNil ()))
(va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 2)
(va_op_reg_opr64_reg64 rR8)
0
Secret)
(va_CCons (va_code_Pxor (va_op_xmm_xmm 0) (va_op_xmm_xmm 2))
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_codegen_success_AES256EncryptBlock | val va_codegen_success_AES256EncryptBlock : va_dummy:unit -> Tot va_pbool | val va_codegen_success_AES256EncryptBlock : va_dummy:unit -> Tot va_pbool | let va_codegen_success_AES256EncryptBlock () =
(va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 2)
(va_op_reg_opr64_reg64 rR8) 0 Secret) (va_pbool_and (va_codegen_success_Pxor (va_op_xmm_xmm 0)
(va_op_xmm_xmm 2)) (va_pbool_and (va_codegen_success_AES256EncryptRound... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 97,
"end_line": 788,
"start_col": 0,
"start_line": 773
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | va_dummy: Prims.unit -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR8",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.InsVector.va_co... | [] | false | false | false | true | false | let va_codegen_success_AES256EncryptBlock () =
| (va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 2)
(va_op_reg_opr64_reg64 rR8)
0
Secret)
(va_pbool_and (va_codegen_success_Pxor (va_op_xmm_xmm 0) (va_op_xmm_xmm 2))
(va_pbool_and (va_codegen_success_AES256EncryptRound 1)
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wp_KeyExpansionRoundEven256 | val va_wp_KeyExpansionRoundEven256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_KeyExpansionRoundEven256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_KeyExpansionRoundEven256 (round:nat64) (rcon:nat8) (dst:buffer128) (key:(seq nat32))
(va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0) (va_get_reg64
rRdx va_s0) dst 15 (va_get_mem_layout va_s0) Secret /\ (aesn... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 149,
"start_col": 0,
"start_line": 132
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.Decls.validDstAddrs128",
"Vale.X64.Decls.va_get_mem_heaplet",
... | [] | false | false | false | true | true | let va_wp_KeyExpansionRoundEven256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\
Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0)
(va_get_reg64 rRdx va_s0)
dst
15
(va_get_mem_layout va_s0)
Secret /\ (aesni_enabled /\ avx_enabled /\ sse_enabled) /\ (1 <= round /\ round < 14) /\
(round + 1) `op_Modulus` 2 == 0 /\
rcon == Vale.AES.AES_common_s.... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wpProof_KeyExpansionRoundEven256 | val va_wpProof_KeyExpansionRoundEven256 : round:nat64 -> rcon:nat8 -> dst:buffer128 -> key:(seq
nat32) -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundEven256 round rcon dst key va_s0 va_k))
(ensures (fun (va_sM, ... | val va_wpProof_KeyExpansionRoundEven256 : round:nat64 -> rcon:nat8 -> dst:buffer128 -> key:(seq
nat32) -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundEven256 round rcon dst key va_s0 va_k))
(ensures (fun (va_sM, ... | let va_wpProof_KeyExpansionRoundEven256 round rcon dst key va_s0 va_k =
let (va_sM, va_f0) = va_lemma_KeyExpansionRoundEven256 (va_code_KeyExpansionRoundEven256 round
rcon) va_s0 round rcon dst key in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_update_xmm 4 va_sM (va_update... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 170,
"start_col": 0,
"start_line": 160
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.D... | Prims.Ghost | [] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.Q... | [] | false | false | false | false | false | let va_wpProof_KeyExpansionRoundEven256 round rcon dst key va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_KeyExpansionRoundEven256 (va_code_KeyExpansionRoundEven256 round rcon)
va_s0
round
rcon
dst
key
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 4
va_sM
(va_update_xmm 2
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_codegen_success_AES256EncryptBlockStdcall | val va_codegen_success_AES256EncryptBlockStdcall : win:bool -> Tot va_pbool | val va_codegen_success_AES256EncryptBlockStdcall : win:bool -> Tot va_pbool | let va_codegen_success_AES256EncryptBlockStdcall win =
(va_pbool_and (if win then va_pbool_and (va_codegen_success_Load128_buffer
(va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 0) (va_op_reg_opr64_reg64 rRdx) 0 Secret)
(va_ttrue ()) else va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 900,
"start_col": 0,
"start_line": 890
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | win: Prims.bool -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.Decls.va_ttrue... | [] | false | false | false | true | false | let va_codegen_success_AES256EncryptBlockStdcall win =
| (va_pbool_and (if win
then
va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 0)
(va_op_reg_opr64_reg64 rRdx)
0
Secret)
(va_ttrue ())
else
va_pbool_and (va_codegen_success_Load128_buff... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wpProof_KeyExpansionRoundOdd256 | val va_wpProof_KeyExpansionRoundOdd256 : round:nat64 -> rcon:nat8 -> dst:buffer128 -> key:(seq
nat32) -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundOdd256 round rcon dst key va_s0 va_k))
(ensures (fun (va_sM, va... | val va_wpProof_KeyExpansionRoundOdd256 : round:nat64 -> rcon:nat8 -> dst:buffer128 -> key:(seq
nat32) -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundOdd256 round rcon dst key va_s0 va_k))
(ensures (fun (va_sM, va... | let va_wpProof_KeyExpansionRoundOdd256 round rcon dst key va_s0 va_k =
let (va_sM, va_f0) = va_lemma_KeyExpansionRoundOdd256 (va_code_KeyExpansionRoundOdd256 round
rcon) va_s0 round rcon dst key in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_update_xmm 4 va_sM (va_update_xm... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 332,
"start_col": 0,
"start_line": 322
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.D... | Prims.Ghost | [] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.Q... | [] | false | false | false | false | false | let va_wpProof_KeyExpansionRoundOdd256 round rcon dst key va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_KeyExpansionRoundOdd256 (va_code_KeyExpansionRoundOdd256 round rcon)
va_s0
round
rcon
dst
key
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 4
va_sM
(va_update_xmm 3
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wp_KeyExpansionRoundOdd256 | val va_wp_KeyExpansionRoundOdd256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_KeyExpansionRoundOdd256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_KeyExpansionRoundOdd256 (round:nat64) (rcon:nat8) (dst:buffer128) (key:(seq nat32))
(va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0) (va_get_reg64
rRdx va_s0) dst 15 (va_get_mem_layout va_s0) Secret /\ (aesni... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 311,
"start_col": 0,
"start_line": 295
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.Decls.validDstAddrs128",
"Vale.X64.Decls.va_get_mem_heaplet",
... | [] | false | false | false | true | true | let va_wp_KeyExpansionRoundOdd256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\
Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0)
(va_get_reg64 rRdx va_s0)
dst
15
(va_get_mem_layout va_s0)
Secret /\ (aesni_enabled /\ avx_enabled /\ sse_enabled) /\ (1 <= round /\ round < 14) /\
(round + 1) `op_Modulus` 2 =!= 0 /\ Vale.AES.AES_s.is_aes_key_LE AE... | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.shuffle | val shuffle: #a:sha2_alg -> #m:m_spec -> ws:ws_t a m -> hash:state_t a m ->
Stack unit
(requires fun h -> live h hash /\ live h ws /\ disjoint hash ws)
(ensures fun h0 _ h1 -> modifies2 ws hash h0 h1 /\
as_seq h1 hash == SpecVec.shuffle #a #m (as_seq h0 ws) (as_seq h0 hash)) | val shuffle: #a:sha2_alg -> #m:m_spec -> ws:ws_t a m -> hash:state_t a m ->
Stack unit
(requires fun h -> live h hash /\ live h ws /\ disjoint hash ws)
(ensures fun h0 _ h1 -> modifies2 ws hash h0 h1 /\
as_seq h1 hash == SpecVec.shuffle #a #m (as_seq h0 ws) (as_seq h0 hash)) | let shuffle #a #m ws hash =
let h0 = ST.get() in
loop2 h0 (num_rounds16 a) ws hash
(fun h -> shuffle_inner_loop #a #m)
(fun i ->
Lib.LoopCombinators.unfold_repeati (v (num_rounds16 a)) (shuffle_inner_loop #a #m) (as_seq h0 ws, as_seq h0 hash) (v i);
let h1 = ST.get() in
loop1 h1 16ul hash
(fun h... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 157,
"start_col": 0,
"start_line": 143
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"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_el... | false | ws: Hacl.Impl.SHA2.Core.ws_t a m -> hash: Hacl.Impl.SHA2.Core.state_t a m
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Impl.SHA2.Core.ws_t",
"Hacl.Impl.SHA2.Core.state_t",
"Lib.Buffer.loop2",
"Hacl.Spec.SHA2.Vec.element_t",
"FStar.UInt32.__uint_to_t",
"Hacl.Spec.SHA2.Vec.num_rounds16",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Spec.SHA2.Vec.shuffle... | [] | false | true | false | false | false | let shuffle #a #m ws hash =
| let h0 = ST.get () in
loop2 h0
(num_rounds16 a)
ws
hash
(fun h -> shuffle_inner_loop #a #m)
(fun i ->
Lib.LoopCombinators.unfold_repeati (v (num_rounds16 a))
(shuffle_inner_loop #a #m)
(as_seq h0 ws, as_seq h0 hash)
(v i);
let h1 = ST.get () in
loop1 h1
16ul
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_quick_KeyExpansionRoundOdd256 | val va_quick_KeyExpansionRoundOdd256 (round: nat64) (rcon: nat8) (dst: buffer128) (key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) | val va_quick_KeyExpansionRoundOdd256 (round: nat64) (rcon: nat8) (dst: buffer128) (key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) | let va_quick_KeyExpansionRoundOdd256 (round:nat64) (rcon:nat8) (dst:buffer128) (key:(seq nat32)) :
(va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) =
(va_QProc (va_code_KeyExpansionRoundOdd256 round rcon) ([va_Mod_flags; va_Mod_xmm 4; va_Mod_xmm
3; va_Mod_xmm 2; va_Mod_mem_heaplet 1; va_Mod_mem]... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 339,
"start_col": 0,
"start_line": 335
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES256.va_code_KeyExpansionRoundOdd256 round rcon) | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.AES256.va_code_KeyExpansionRoundOdd256",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_fl... | [] | false | false | false | false | false | let va_quick_KeyExpansionRoundOdd256 (round: nat64) (rcon: nat8) (dst: buffer128) (key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) =
| (va_QProc (va_code_KeyExpansionRoundOdd256 round rcon)
([va_Mod_flags; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_mem_heaplet 1; va_Mod_mem])
(va_wp_KeyExpansionRoundOdd256 round rcon dst key)
(va_wpProof_KeyExpansionRoundOdd256 round rcon dst key)) | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_qcode_KeyExpansionRoundOdd256 | val va_qcode_KeyExpansionRoundOdd256
(va_mods: va_mods_t)
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) | val va_qcode_KeyExpansionRoundOdd256
(va_mods: va_mods_t)
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) | let va_qcode_KeyExpansionRoundOdd256 (va_mods:va_mods_t) (round:nat64) (rcon:nat8) (dst:buffer128)
(key:(seq nat32)) : (va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1
"***** PRECONDITION NOT MET AT lin... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 247,
"start_col": 0,
"start_line": 210
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES256.va_code_KeyExpansionRoundOdd256 round rco... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.InsAes.va_code_AESNI_keygen_assist",
"Vale.... | [] | false | false | false | false | false | let va_qcode_KeyExpansionRoundOdd256
(va_mods: va_mods_t)
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundOdd256 round rcon)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
va_QSeq va_range1
"***** PRECONDITION NOT MET AT line 118 column 24 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/crypto/aes/x64/Vale.AES.X64.AES256.vaf *****"
(va_quick_AESNI_keygen_assist... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_code_AES256EncryptBlockStdcall | val va_code_AES256EncryptBlockStdcall : win:bool -> Tot va_code | val va_code_AES256EncryptBlockStdcall : win:bool -> Tot va_code | let va_code_AES256EncryptBlockStdcall win =
(va_Block (va_CCons (if win then va_Block (va_CCons (va_code_Load128_buffer
(va_op_heaplet_mem_heaplet 0) (va_op_xmm_xmm 0) (va_op_reg_opr64_reg64 rRdx) 0 Secret) (va_CNil
())) else va_Block (va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 887,
"start_col": 0,
"start_line": 877
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | win: Prims.bool -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.... | [] | false | false | false | true | false | let va_code_AES256EncryptBlockStdcall win =
| (va_Block (va_CCons (if win
then
va_Block (va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 0)
(va_op_xmm_xmm 0)
(va_op_reg_opr64_reg64 rRdx)
0
Secret)
(va_CNil ()))
else
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wp_KeyExpansionRoundUnrolledRecursive256 | val va_wp_KeyExpansionRoundUnrolledRecursive256
(key: (seq nat32))
(dst: buffer128)
(n: int)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_KeyExpansionRoundUnrolledRecursive256
(key: (seq nat32))
(dst: buffer128)
(n: int)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_KeyExpansionRoundUnrolledRecursive256 (key:(seq nat32)) (dst:buffer128) (n:int)
(va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0) (va_get_reg64
rRdx va_s0) dst 15 (va_get_mem_layout va_s0) Secret /\ (aesni_ena... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 74,
"end_line": 472,
"start_col": 0,
"start_line": 450
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
dst: Vale.X64.Memory.buffer128 ->
n: Prims.int ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.int",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.Decls.validDstAddrs128",
"Vale.X64.Decls.va_get_mem_heaplet",
"Vale.X64.Decls.va_get_reg64",
"Va... | [] | false | false | false | true | true | let va_wp_KeyExpansionRoundUnrolledRecursive256
(key: (seq nat32))
(dst: buffer128)
(n: int)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\
Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0)
(va_get_reg64 rRdx va_s0)
dst
15
(va_get_mem_layout va_s0)
Secret /\ (aesni_enabled /\ avx_enabled /\ sse_enabled) /\ (0 < n /\ n <= 14) /\
Vale.AES.AES_s.is_aes_key_LE AES_256 key /\
va_get_xmm 1 va_s0 == Vale.AE... | false |
Vale.Interop.fsti | Vale.Interop.disjoint | val disjoint : ptr1: Vale.Interop.Types.b8 -> ptr2: Vale.Interop.Types.b8 -> Type0 | let disjoint (ptr1 ptr2:b8) = MB.loc_disjoint (MB.loc_buffer ptr1.bsrc) (MB.loc_buffer ptr2.bsrc) | {
"file_name": "vale/code/arch/x64/Vale.Interop.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 97,
"end_line": 19,
"start_col": 0,
"start_line": 19
} | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
open Vale.Interop.Types
open Vale.Interop.Heap_s
... | {
"checked_file": "/",
"dependencies": [
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.MachineHeap_s.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowSta... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Types",
"short_module": null
},
{
"abbrev": false,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | ptr1: Vale.Interop.Types.b8 -> ptr2: Vale.Interop.Types.b8 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Types.b8",
"LowStar.Monotonic.Buffer.loc_disjoint",
"LowStar.Monotonic.Buffer.loc_buffer",
"Vale.Interop.Types.base_typ_as_type",
"Vale.Interop.Types.__proj__Buffer__item__src",
"Vale.Interop.Types.b8_preorder",
"Vale.Interop.Types.__proj__Buffer__item__writeable",
"Vale.Interop.Types.__... | [] | false | false | false | true | true | let disjoint (ptr1 ptr2: b8) =
| MB.loc_disjoint (MB.loc_buffer ptr1.bsrc) (MB.loc_buffer ptr2.bsrc) | false | |
Vale.Interop.fsti | Vale.Interop.valid_addr | val valid_addr : mem: Vale.Interop.Heap_s.interop_heap -> x: Prims.int -> Prims.GTot Prims.bool | let valid_addr (mem:interop_heap) (x:int) = Set.mem x (addrs_set mem) | {
"file_name": "vale/code/arch/x64/Vale.Interop.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
open Vale.Interop.Types
open Vale.Interop.Heap_s
... | {
"checked_file": "/",
"dependencies": [
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.MachineHeap_s.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowSta... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Types",
"short_module": null
},
{
"abbrev": false,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | mem: Vale.Interop.Heap_s.interop_heap -> x: Prims.int -> Prims.GTot Prims.bool | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Interop.Heap_s.interop_heap",
"Prims.int",
"FStar.Set.mem",
"Vale.Interop.Heap_s.addrs_set",
"Prims.bool"
] | [] | false | false | false | false | false | let valid_addr (mem: interop_heap) (x: int) =
| Set.mem x (addrs_set mem) | false | |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_codegen_success_KeyExpansionRoundUnrolledRecursive256 | val va_codegen_success_KeyExpansionRoundUnrolledRecursive256 : n:int -> Tot va_pbool(decreases %[n]) | val va_codegen_success_KeyExpansionRoundUnrolledRecursive256 : n:int -> Tot va_pbool(decreases %[n]) | let rec va_codegen_success_KeyExpansionRoundUnrolledRecursive256 n =
(va_pbool_and (if (1 < n && n <= 14) then va_pbool_and
(va_codegen_success_KeyExpansionRoundUnrolledRecursive256 (n - 1)) (va_pbool_and (if (n
`op_Modulus` 2 = 0) then va_pbool_and (va_codegen_success_KeyExpansionRoundEven256 (n - 1)
(Va... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 89,
"end_line": 361,
"start_col": 0,
"start_line": 355
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | n: Prims.int -> Prims.Tot Vale.X64.Decls.va_pbool | Prims.Tot | [
"total",
""
] | [] | [
"Prims.int",
"Vale.X64.Decls.va_pbool_and",
"Prims.op_AmpAmp",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"Vale.AES.X64.AES256.va_codegen_success_KeyExpansionRoundUnrolledRecursive256",
"Prims.op_Subtraction",
"Prims.op_Equality",
"Prims.op_Modulus",
"Vale.AES.X64.AES256.va_codegen_success_K... | [
"recursion"
] | false | false | false | true | false | let rec va_codegen_success_KeyExpansionRoundUnrolledRecursive256 n =
| (va_pbool_and (if (1 < n && n <= 14)
then
va_pbool_and (va_codegen_success_KeyExpansionRoundUnrolledRecursive256 (n - 1))
(va_pbool_and (if (n `op_Modulus` 2 = 0)
then
va_pbool_and (va_codegen_success_KeyExpansionRoundEven256 (n - 1)
(Val... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_code_KeyExpansionRoundUnrolledRecursive256 | val va_code_KeyExpansionRoundUnrolledRecursive256 : n:int -> Tot va_code(decreases %[n]) | val va_code_KeyExpansionRoundUnrolledRecursive256 : n:int -> Tot va_code(decreases %[n]) | let rec va_code_KeyExpansionRoundUnrolledRecursive256 n =
(va_Block (va_CCons (if (1 < n && n <= 14) then va_Block (va_CCons
(va_code_KeyExpansionRoundUnrolledRecursive256 (n - 1)) (va_CCons (if (n `op_Modulus` 2 = 0)
then va_Block (va_CCons (va_code_KeyExpansionRoundEven256 (n - 1)
(Vale.AES.AES_common_s... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 351,
"start_col": 0,
"start_line": 345
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | n: Prims.int -> Prims.Tot Vale.X64.Decls.va_code | Prims.Tot | [
"total",
""
] | [] | [
"Prims.int",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Prims.op_AmpAmp",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"Vale.AES.X64.AES256.va_code_KeyExpansionRoundUnrolledRecursive256",
"Prims.op_Subtraction",
"Prims.op_Equality",
"Prims.op_Modulus",
"Vale.AES.X64.AES256.va_cod... | [
"recursion"
] | false | false | false | true | false | let rec va_code_KeyExpansionRoundUnrolledRecursive256 n =
| (va_Block (va_CCons (if (1 < n && n <= 14)
then
va_Block (va_CCons (va_code_KeyExpansionRoundUnrolledRecursive256 (n - 1))
(va_CCons (if (n `op_Modulus` 2 = 0)
then
va_Block (va_CCons (va_code_KeyExpansionRoundEven256 (n - 1)
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_quick_KeyExpansionRoundUnrolledRecursive256 | val va_quick_KeyExpansionRoundUnrolledRecursive256 (key: (seq nat32)) (dst: buffer128) (n: int)
: (va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive256 n)) | val va_quick_KeyExpansionRoundUnrolledRecursive256 (key: (seq nat32)) (dst: buffer128) (n: int)
: (va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive256 n)) | let va_quick_KeyExpansionRoundUnrolledRecursive256 (key:(seq nat32)) (dst:buffer128) (n:int) :
(va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive256 n)) =
(va_QProc (va_code_KeyExpansionRoundUnrolledRecursive256 n) ([va_Mod_flags; va_Mod_xmm 4;
va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1; va_Mod_mem_he... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 502,
"start_col": 0,
"start_line": 497
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false | key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 -> dst: Vale.X64.Memory.buffer128 -> n: Prims.int
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES256.va_code_KeyExpansionRoundUnrolledRecursive256 n) | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.int",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.AES256.va_code_KeyExpansionRoundUnrolledRecursive256",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickC... | [] | false | false | false | false | false | let va_quick_KeyExpansionRoundUnrolledRecursive256 (key: (seq nat32)) (dst: buffer128) (n: int)
: (va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive256 n)) =
| (va_QProc (va_code_KeyExpansionRoundUnrolledRecursive256 n)
([
va_Mod_flags;
va_Mod_xmm 4;
va_Mod_xmm 3;
va_Mod_xmm 2;
va_Mod_xmm 1;
va_Mod_mem_heaplet 1;
va_Mod_mem
])
(va_wp_KeyExpansionRoundUnrolledRecursive256 key dst n)
(va_wpProof_KeyExpans... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_quick_KeyExpansionRoundEven256 | val va_quick_KeyExpansionRoundEven256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) | val va_quick_KeyExpansionRoundEven256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) | let va_quick_KeyExpansionRoundEven256 (round:nat64) (rcon:nat8) (dst:buffer128) (key:(seq nat32)) :
(va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) =
(va_QProc (va_code_KeyExpansionRoundEven256 round rcon) ([va_Mod_flags; va_Mod_xmm 4; va_Mod_xmm
2; va_Mod_xmm 1; va_Mod_mem_heaplet 1; va_Mod_m... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 70,
"end_line": 177,
"start_col": 0,
"start_line": 173
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES256.va_code_KeyExpansionRoundEven256 round rcon) | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.AES256.va_code_KeyExpansionRoundEven256",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_f... | [] | false | false | false | false | false | let va_quick_KeyExpansionRoundEven256
(round: nat64)
(rcon: nat8)
(dst: buffer128)
(key: (seq nat32))
: (va_quickCode unit (va_code_KeyExpansionRoundEven256 round rcon)) =
| (va_QProc (va_code_KeyExpansionRoundEven256 round rcon)
([va_Mod_flags; va_Mod_xmm 4; va_Mod_xmm 2; va_Mod_xmm 1; va_Mod_mem_heaplet 1; va_Mod_mem])
(va_wp_KeyExpansionRoundEven256 round rcon dst key)
(va_wpProof_KeyExpansionRoundEven256 round rcon dst key)) | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_quick_AES256EncryptRound | val va_quick_AES256EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES256EncryptRound n)) | val va_quick_AES256EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES256EncryptRound n)) | let va_quick_AES256EncryptRound (n:nat) (init:quad32) (round_keys:(seq quad32))
(keys_buffer:buffer128) : (va_quickCode unit (va_code_AES256EncryptRound n)) =
(va_QProc (va_code_AES256EncryptRound n) ([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0])
(va_wp_AES256EncryptRound n init round_keys keys_buffer) (va_wpProo... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 752,
"start_col": 0,
"start_line": 748
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.AES256.va_code_AES256EncryptRound n) | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.AES256.va_code_AES256EncryptRound",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_xmm",
... | [] | false | false | false | false | false | let va_quick_AES256EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES256EncryptRound n)) =
| (va_QProc (va_code_AES256EncryptRound n)
([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0])
(va_wp_AES256EncryptRound n init round_keys keys_buffer)
(va_wpProof_AES256EncryptRound n init round_keys keys_buffer)) | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wpProof_KeyExpansionRoundUnrolledRecursive256 | val va_wpProof_KeyExpansionRoundUnrolledRecursive256 : key:(seq nat32) -> dst:buffer128 -> n:int ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundUnrolledRecursive256 key dst n va_s0
va_k))
(ensures (fun (va_sM... | val va_wpProof_KeyExpansionRoundUnrolledRecursive256 : key:(seq nat32) -> dst:buffer128 -> n:int ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundUnrolledRecursive256 key dst n va_s0
va_k))
(ensures (fun (va_sM... | let va_wpProof_KeyExpansionRoundUnrolledRecursive256 key dst n va_s0 va_k =
let (va_sM, va_f0) = va_lemma_KeyExpansionRoundUnrolledRecursive256
(va_code_KeyExpansionRoundUnrolledRecursive256 n) va_s0 key dst n in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_update_xmm 4 va_s... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 494,
"start_col": 0,
"start_line": 484
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
dst: Vale.X64.Memory.buffer128 ->
n: Prims.int ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | Prims.Ghost | [] | [] | [
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.int",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode... | [] | false | false | false | false | false | let va_wpProof_KeyExpansionRoundUnrolledRecursive256 key dst n va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_KeyExpansionRoundUnrolledRecursive256 (va_code_KeyExpansionRoundUnrolledRecursive256 n)
va_s0
key
dst
n
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 4
va_sM
(va_update_xmm 3
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_lemma_KeyExpansionRoundEven256 | val va_lemma_KeyExpansionRoundEven256 : va_b0:va_code -> va_s0:va_state -> round:nat64 -> rcon:nat8
-> dst:buffer128 -> key:(seq nat32)
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansionRoundEven256 round rcon) va_s0 /\
va_get_ok va_s0 /\ Vale.X64.Decls.validDstAddrs128 (va_... | val va_lemma_KeyExpansionRoundEven256 : va_b0:va_code -> va_s0:va_state -> round:nat64 -> rcon:nat8
-> dst:buffer128 -> key:(seq nat32)
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansionRoundEven256 round rcon) va_s0 /\
va_get_ok va_s0 /\ Vale.X64.Decls.validDstAddrs128 (va_... | let va_lemma_KeyExpansionRoundEven256 va_b0 va_s0 round rcon dst key =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 4; va_Mod_xmm 2; va_Mod_xmm 1;
va_Mod_mem_heaplet 1; va_Mod_ok; va_Mod_mem] in
let va_qc = va_qcode_KeyExpansionRoundEven256 va_mods round rcon dst key in
let (va_sM, va_fM, va_g) = va_wp... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 129,
"start_col": 0,
"start_line": 106
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.Qu... | [] | false | false | false | false | false | let va_lemma_KeyExpansionRoundEven256 va_b0 va_s0 round rcon dst key =
| let va_mods:va_mods_t =
[
va_Mod_flags;
va_Mod_xmm 4;
va_Mod_xmm 2;
va_Mod_xmm 1;
va_Mod_mem_heaplet 1;
va_Mod_ok;
va_Mod_mem
]
in
let va_qc = va_qcode_KeyExpansionRoundEven256 va_mods round rcon dst key in
let va_sM, va_fM, va_g =
va_wp_sound_code_norm (va_code_KeyExpansionRoundEven25... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_qcode_AES256EncryptRound | val va_qcode_AES256EncryptRound
(va_mods: va_mods_t)
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES256EncryptRound n)) | val va_qcode_AES256EncryptRound
(va_mods: va_mods_t)
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES256EncryptRound n)) | let va_qcode_AES256EncryptRound (va_mods:va_mods_t) (n:nat) (init:quad32) (round_keys:(seq quad32))
(keys_buffer:buffer128) : (va_quickCode unit (va_code_AES256EncryptRound n)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in let
(va_arg5:Vale.Def.Types_s.quad32) = va_get_xmm 0 va_s i... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 682,
"start_col": 0,
"start_line": 672
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.AES256.va_code_AES256EncryptRound n) | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
... | [] | false | false | false | false | false | let va_qcode_AES256EncryptRound
(va_mods: va_mods_t)
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES256EncryptRound n)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let va_arg5:Vale.Def.Types_s.quad32 = va_get_xmm 0 va_s in
va_qPURE va_range1
"***** PRECONDITION NOT MET AT line 252 column 33 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/crypto/aes/x64/Va... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_lemma_KeyExpansionRoundOdd256 | val va_lemma_KeyExpansionRoundOdd256 : va_b0:va_code -> va_s0:va_state -> round:nat64 -> rcon:nat8
-> dst:buffer128 -> key:(seq nat32)
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansionRoundOdd256 round rcon) va_s0 /\ va_get_ok
va_s0 /\ Vale.X64.Decls.validDstAddrs128 (va_ge... | val va_lemma_KeyExpansionRoundOdd256 : va_b0:va_code -> va_s0:va_state -> round:nat64 -> rcon:nat8
-> dst:buffer128 -> key:(seq nat32)
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansionRoundOdd256 round rcon) va_s0 /\ va_get_ok
va_s0 /\ Vale.X64.Decls.validDstAddrs128 (va_ge... | let va_lemma_KeyExpansionRoundOdd256 va_b0 va_s0 round rcon dst key =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 2;
va_Mod_mem_heaplet 1; va_Mod_ok; va_Mod_mem] in
let va_qc = va_qcode_KeyExpansionRoundOdd256 va_mods round rcon dst key in
let (va_sM, va_fM, va_g) = va_wp_s... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 292,
"start_col": 0,
"start_line": 269
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.Qu... | [] | false | false | false | false | false | let va_lemma_KeyExpansionRoundOdd256 va_b0 va_s0 round rcon dst key =
| let va_mods:va_mods_t =
[
va_Mod_flags;
va_Mod_xmm 4;
va_Mod_xmm 3;
va_Mod_xmm 2;
va_Mod_mem_heaplet 1;
va_Mod_ok;
va_Mod_mem
]
in
let va_qc = va_qcode_KeyExpansionRoundOdd256 va_mods round rcon dst key in
let va_sM, va_fM, va_g =
va_wp_sound_code_norm (va_code_KeyExpansionRoundOdd256 ... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_lemma_AES256EncryptRound | val va_lemma_AES256EncryptRound : va_b0:va_code -> va_s0:va_state -> n:nat -> init:quad32 ->
round_keys:(seq quad32) -> keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES256EncryptRound n) va_s0 /\ va_get_ok va_s0 /\
(aesni_enabled /\ sse_enabled) /\ (1 <= n /\ ... | val va_lemma_AES256EncryptRound : va_b0:va_code -> va_s0:va_state -> n:nat -> init:quad32 ->
round_keys:(seq quad32) -> keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES256EncryptRound n) va_s0 /\ va_get_ok va_s0 /\
(aesni_enabled /\ sse_enabled) /\ (1 <= n /\ ... | let va_lemma_AES256EncryptRound va_b0 va_s0 n init round_keys keys_buffer =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_ok] in
let va_qc = va_qcode_AES256EncryptRound va_mods n init round_keys keys_buffer in
let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_AES256EncryptRou... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 712,
"start_col": 0,
"start_line": 701
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.... | [] | false | false | false | false | false | let va_lemma_AES256EncryptRound va_b0 va_s0 n init round_keys keys_buffer =
| let va_mods:va_mods_t = [va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_ok] in
let va_qc = va_qcode_AES256EncryptRound va_mods n init round_keys keys_buffer in
let va_sM, va_fM, va_g =
va_wp_sound_code_norm (va_code_AES256EncryptRound n)
va_qc
va_s0
(fun va_s0 va_sM va_g ->
let () = va_g in
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wpProof_KeyExpansion256Stdcall | val va_wpProof_KeyExpansion256Stdcall : win:bool -> input_key_b:buffer128 ->
output_key_expansion_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansion256Stdcall win input_key_b
output_key_expansion_b va_s0 va... | val va_wpProof_KeyExpansion256Stdcall : win:bool -> input_key_b:buffer128 ->
output_key_expansion_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansion256Stdcall win input_key_b
output_key_expansion_b va_s0 va... | let va_wpProof_KeyExpansion256Stdcall win input_key_b output_key_expansion_b va_s0 va_k =
let (va_sM, va_f0) = va_lemma_KeyExpansion256Stdcall (va_code_KeyExpansion256Stdcall win) va_s0
win input_key_b output_key_expansion_b in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_up... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 652,
"start_col": 0,
"start_line": 642
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
win: Prims.bool ->
input_key_b: Vale.X64.Memory.buffer128 ->
output_key_expansion_b: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | Prims.Ghost | [] | [] | [
"Prims.bool",
"Vale.X64.Memory.buffer128",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_xmm",... | [] | false | false | false | false | false | let va_wpProof_KeyExpansion256Stdcall win input_key_b output_key_expansion_b va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_KeyExpansion256Stdcall (va_code_KeyExpansion256Stdcall win)
va_s0
win
input_key_b
output_key_expansion_b
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 4
va_sM
(va_update_xmm 3
... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_wpProof_AES256EncryptRound | val va_wpProof_AES256EncryptRound : n:nat -> init:quad32 -> round_keys:(seq quad32) ->
keys_buffer:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES256EncryptRound n init round_keys keys_buffer va_s0
va_k))
(ensure... | val va_wpProof_AES256EncryptRound : n:nat -> init:quad32 -> round_keys:(seq quad32) ->
keys_buffer:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES256EncryptRound n init round_keys keys_buffer va_s0
va_k))
(ensure... | let va_wpProof_AES256EncryptRound n init round_keys keys_buffer va_s0 va_k =
let (va_sM, va_f0) = va_lemma_AES256EncryptRound (va_code_AES256EncryptRound n) va_s0 n init
round_keys keys_buffer in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_update_xmm 2 va_sM (va_update_xmm ... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 745,
"start_col": 0,
"start_line": 737
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.D... | Prims.Ghost | [] | [] | [
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode... | [] | false | false | false | false | false | let va_wpProof_AES256EncryptRound n init round_keys keys_buffer va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_AES256EncryptRound (va_code_AES256EncryptRound n) va_s0 n init round_keys keys_buffer
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 2 va_sM (va_update_xmm 0 va_sM (va_update_ok va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod_fla... | false |
Vale.AES.X64.AES256.fst | Vale.AES.X64.AES256.va_qcode_KeyExpansion256Stdcall | val va_qcode_KeyExpansion256Stdcall
(va_mods: va_mods_t)
(win: bool)
(input_key_b output_key_expansion_b: buffer128)
: (va_quickCode unit (va_code_KeyExpansion256Stdcall win)) | val va_qcode_KeyExpansion256Stdcall
(va_mods: va_mods_t)
(win: bool)
(input_key_b output_key_expansion_b: buffer128)
: (va_quickCode unit (va_code_KeyExpansion256Stdcall win)) | let va_qcode_KeyExpansion256Stdcall (va_mods:va_mods_t) (win:bool) (input_key_b:buffer128)
(output_key_expansion_b:buffer128) : (va_quickCode unit (va_code_KeyExpansion256Stdcall win)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in let
(key_ptr:(va_int_range 0 18446744073709551615))... | {
"file_name": "obj/Vale.AES.X64.AES256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 84,
"end_line": 596,
"start_col": 0,
"start_line": 544
} | module Vale.AES.X64.AES256
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES256_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"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_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
win: Prims.bool ->
input_key_b: Vale.X64.Memory.buffer128 ->
output_key_expansion_b: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES256.va_code_KeyExpansion256Stdcall win) | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Prims.bool",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.QuickCodes.if_code",
"Vale.X64.QuickCodes.block",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_me... | [] | false | false | false | false | false | let va_qcode_KeyExpansion256Stdcall
(va_mods: va_mods_t)
(win: bool)
(input_key_b output_key_expansion_b: buffer128)
: (va_quickCode unit (va_code_KeyExpansion256Stdcall win)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let key_ptr:(va_int_range 0 18446744073709551615) =
va_if win (fun _ -> va_get_reg64 rRcx va_s) (fun _ -> va_get_reg64 rRdi va_s)
in
let key_expansion_ptr:(va_int_range 0 18446744073709551615) =
... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.