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
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.canon_post
val canon_post (c: comp_st) : comp_st
val canon_post (c: comp_st) : comp_st
let canon_post (c:comp_st) : comp_st = let canon_st_comp_post (c:st_comp) : st_comp = match Pulse.Readback.readback_ty (elab_term c.post) with | None -> c | Some post -> { c with post } in match c with | C_ST s -> C_ST (canon_st_comp_post s) | C_STAtomic i obs s -> C_STAtomic i obs (canon_st_comp_...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 51, "end_line": 294, "start_col": 0, "start_line": 285 }
(* 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.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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.comp_st
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.comp_st", "Pulse.Syntax.Base.st_comp", "Pulse.Syntax.Base.C_ST", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.observability", "Pulse.Syntax.Base.C_STAtomic", "Pulse.Syntax.Base.C_STGhost", "Pulse.Readback.readback_ty", "Pulse.Elaborate.Pure.elab_term", "Pulse.Syntax.Base.__proj_...
[]
false
false
false
true
false
let canon_post (c: comp_st) : comp_st =
let canon_st_comp_post (c: st_comp) : st_comp = match Pulse.Readback.readback_ty (elab_term c.post) with | None -> c | Some post -> { c with post = post } in match c with | C_ST s -> C_ST (canon_st_comp_post s) | C_STAtomic i obs s -> C_STAtomic i obs (canon_st_comp_post s) | C_STGhost s -> C_STGhost (canon_st_co...
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.cdf_table976
val cdf_table976:x: glbuffer uint16 11ul {witnessed x (S.cdf_table S.Frodo976) /\ recallable x}
val cdf_table976:x: glbuffer uint16 11ul {witnessed x (S.cdf_table S.Frodo976) /\ recallable x}
let cdf_table976 :x:glbuffer uint16 11ul{witnessed x (S.cdf_table S.Frodo976) /\ recallable x} = createL_global S.cdf_list_976
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 141, "start_col": 0, "start_line": 140 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "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
x: (c: Lib.Buffer.lbuffer_t Lib.Buffer.CONST (Lib.IntTypes.int_t Lib.IntTypes.U16 Lib.IntTypes.SEC) (11ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE}) { Lib.Buffer.witnessed x (Spec.Frodo.Params.cdf_table Spec.Frodo.Params.Frodo976) /\ Lib.Buffer.recallable x }
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.createL_global", "Lib.IntTypes.int_t", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "Spec.Frodo.Params.cdf_list_976", "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 cdf_table976:x: glbuffer uint16 11ul {witnessed x (S.cdf_table S.Frodo976) /\ recallable x} =
createL_global S.cdf_list_976
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.nat_mod_comm_monoid
val nat_mod_comm_monoid : Lib.Exponentiation.Definition.comm_monoid (Lib.NatMod.nat_mod Spec.K256.PointOps.prime)
let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 12, "start_col": 0, "start_line": 12 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
Lib.Exponentiation.Definition.comm_monoid (Lib.NatMod.nat_mod Spec.K256.PointOps.prime)
Prims.Tot
[ "total" ]
[]
[ "Lib.NatMod.mk_nat_mod_comm_monoid", "Spec.K256.PointOps.prime" ]
[]
false
false
false
true
false
let nat_mod_comm_monoid =
M.mk_nat_mod_comm_monoid S.prime
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.fsquare_times
val fsquare_times (a: S.felem) (b: nat) : S.felem
val fsquare_times (a: S.felem) (b: nat) : S.felem
let fsquare_times (a:S.felem) (b:nat) : S.felem = SE.exp_pow2 mk_nat_mod_concrete_ops a b
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 37, "start_col": 0, "start_line": 36 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
a: Spec.K256.PointOps.felem -> b: Prims.nat -> Spec.K256.PointOps.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.PointOps.felem", "Prims.nat", "Spec.Exponentiation.exp_pow2", "Hacl.Spec.K256.Finv.mk_nat_mod_concrete_ops" ]
[]
false
false
false
true
false
let fsquare_times (a: S.felem) (b: nat) : S.felem =
SE.exp_pow2 mk_nat_mod_concrete_ops a b
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.try_frame_pre
val try_frame_pre (#g:env) (#ctxt:vprop) (ctxt_typing:tot_typing g ctxt tm_vprop) (d:(t:st_term & c:comp_st & st_typing g t c)) (res_ppname:ppname) : T.Tac (checker_result_t g ctxt None)
val try_frame_pre (#g:env) (#ctxt:vprop) (ctxt_typing:tot_typing g ctxt tm_vprop) (d:(t:st_term & c:comp_st & st_typing g t c)) (res_ppname:ppname) : T.Tac (checker_result_t g ctxt None)
let try_frame_pre (#g:env) (#ctxt:vprop) (ctxt_typing:tot_typing g ctxt tm_vprop) (d:(t:st_term & c:comp_st & st_typing g t c)) (res_ppname:ppname) : T.Tac (checker_result_t g ctxt None) = let uvs = mk_env (fstar_env g) in assert (equal g (push_env g uvs)); try_frame_pre_uvs ctxt_typing uvs d res_ppname
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 391, "start_col": 0, "start_line": 383 }
(* 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.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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
ctxt_typing: Pulse.Typing.tot_typing g ctxt Pulse.Syntax.Base.tm_vprop -> d: FStar.Pervasives.dtuple3 Pulse.Syntax.Base.st_term (fun _ -> Pulse.Syntax.Base.comp_st) (fun t c -> Pulse.Typing.st_typing g t c) -> res_ppname: Pulse.Syntax.Base.ppname -> FStar.Tactics.Effect.Tac (Pul...
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.vprop", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "FStar.Pervasives.dtuple3", "Pulse.Syntax.Base.st_term", "Pulse.Syntax.Base.comp_st", "Pulse.Typing.st_typing", "Pulse.Syntax.Base.ppname", "Pulse.Checker.Prover.try_frame_pre_uvs", "Pulse...
[]
false
true
false
false
false
let try_frame_pre (#g: env) (#ctxt: vprop) (ctxt_typing: tot_typing g ctxt tm_vprop) (d: (t: st_term & c: comp_st & st_typing g t c)) (res_ppname: ppname) : T.Tac (checker_result_t g ctxt None) =
let uvs = mk_env (fstar_env g) in assert (equal g (push_env g uvs)); try_frame_pre_uvs ctxt_typing uvs d res_ppname
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.fsqrt
val fsqrt: f:S.felem -> S.felem
val fsqrt: f:S.felem -> S.felem
let fsqrt f = let r, x2 = fexp_223_23 f in let r = S.fmul (fsquare_times r 6) x2 in let r = fsquare_times r 2 in r
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 84, "start_col": 0, "start_line": 80 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.PointOps.felem", "Hacl.Spec.K256.Finv.fsquare_times", "Spec.K256.PointOps.fmul", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.K256.Finv.fexp_223_23" ]
[]
false
false
false
true
false
let fsqrt f =
let r, x2 = fexp_223_23 f in let r = S.fmul (fsquare_times r 6) x2 in let r = fsquare_times r 2 in r
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.finv
val finv: f:S.felem -> S.felem
val finv: f:S.felem -> S.felem
let finv f = let r, x2 = fexp_223_23 f in let r = S.fmul (fsquare_times r 5) f in let r = S.fmul (fsquare_times r 3) x2 in let r = S.fmul (fsquare_times r 2) f in r
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 76, "start_col": 0, "start_line": 71 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.PointOps.felem", "Spec.K256.PointOps.fmul", "Hacl.Spec.K256.Finv.fsquare_times", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.K256.Finv.fexp_223_23" ]
[]
false
false
false
true
false
let finv f =
let r, x2 = fexp_223_23 f in let r = S.fmul (fsquare_times r 5) f in let r = S.fmul (fsquare_times r 3) x2 in let r = S.fmul (fsquare_times r 2) f in r
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.fexp_223_23
val fexp_223_23: f:S.felem -> tuple2 S.felem S.felem
val fexp_223_23: f:S.felem -> tuple2 S.felem S.felem
let fexp_223_23 f = let x2 = S.fmul (fsquare_times f 1) f in let x3 = S.fmul (fsquare_times x2 1) f in let x6 = S.fmul (fsquare_times x3 3) x3 in let x9 = S.fmul (fsquare_times x6 3) x3 in let x11 = S.fmul (fsquare_times x9 2) x2 in let x22 = S.fmul (fsquare_times x11 11) x11 in let x44 = S.fmul (fsquare_...
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 62, "start_col": 0, "start_line": 49 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem * Spec.K256.PointOps.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.PointOps.felem", "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.fmul", "Hacl.Spec.K256.Finv.fsquare_times", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
true
false
let fexp_223_23 f =
let x2 = S.fmul (fsquare_times f 1) f in let x3 = S.fmul (fsquare_times x2 1) f in let x6 = S.fmul (fsquare_times x3 3) x3 in let x9 = S.fmul (fsquare_times x6 3) x3 in let x11 = S.fmul (fsquare_times x9 2) x2 in let x22 = S.fmul (fsquare_times x11 11) x11 in let x44 = S.fmul (fsquare_times x22 22) x22 in let x88 = S.f...
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.cdf_table
val cdf_table (a: S.frodo_alg) : x: glbuffer uint16 (cdf_table_len a) {witnessed x (S.cdf_table a) /\ recallable x}
val cdf_table (a: S.frodo_alg) : x: glbuffer uint16 (cdf_table_len a) {witnessed x (S.cdf_table a) /\ recallable x}
let cdf_table (a:S.frodo_alg) :x:glbuffer uint16 (cdf_table_len a) {witnessed x (S.cdf_table a) /\ recallable x} = allow_inversion S.frodo_alg; match a with | S.Frodo64 | S.Frodo640 -> cdf_table640 | S.Frodo976 -> cdf_table976 | S.Frodo1344 -> cdf_table1344
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 164, "start_col": 0, "start_line": 157 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "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
a: Spec.Frodo.Params.frodo_alg -> x: Lib.Buffer.glbuffer Lib.IntTypes.uint16 (Hacl.Impl.Frodo.Params.cdf_table_len a) {Lib.Buffer.witnessed x (Spec.Frodo.Params.cdf_table a) /\ Lib.Buffer.recallable x}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Hacl.Impl.Frodo.Params.cdf_table640", "Hacl.Impl.Frodo.Params.cdf_table976", "Hacl.Impl.Frodo.Params.cdf_table1344", "Lib.Buffer.glbuffer", "Lib.IntTypes.uint16", "Hacl.Impl.Frodo.Params.cdf_table_len", "Prims.l_and", "Lib.Buffer.witnessed", "Spec.Frodo.Params.cdf_t...
[]
false
false
false
false
false
let cdf_table (a: S.frodo_alg) : x: glbuffer uint16 (cdf_table_len a) {witnessed x (S.cdf_table a) /\ recallable x} =
allow_inversion S.frodo_alg; match a with | S.Frodo64 | S.Frodo640 -> cdf_table640 | S.Frodo976 -> cdf_table976 | S.Frodo1344 -> cdf_table1344
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.prove_pures
val prove_pures (#preamble: _) (pst: prover_state preamble) : T.Tac (pst': prover_state preamble {pst' `pst_extends` pst /\ is_terminal pst'})
val prove_pures (#preamble: _) (pst: prover_state preamble) : T.Tac (pst': prover_state preamble {pst' `pst_extends` pst /\ is_terminal pst'})
let rec prove_pures #preamble (pst:prover_state preamble) : T.Tac (pst':prover_state preamble { pst' `pst_extends` pst /\ is_terminal pst' }) = match pst.unsolved with | [] -> pst | {t=Tm_Pure p}::unsolved' -> let pst_opt = IntroPure.intro_pure pst p unsolved' () i...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 109, "start_col": 0, "start_line": 85 }
(* 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.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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
pst: Pulse.Checker.Prover.Base.prover_state preamble -> FStar.Tactics.Effect.Tac (pst': Pulse.Checker.Prover.Base.prover_state preamble { Pulse.Checker.Prover.Base.pst_extends pst' pst /\ Pulse.Checker.Prover.Base.is_terminal pst' })
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Checker.Prover.Base.preamble", "Pulse.Checker.Prover.Base.prover_state", "Pulse.Checker.Prover.Base.__proj__Mkprover_state__item__unsolved", "Prims.l_and", "Pulse.Checker.Prover.Base.pst_extends", "Pulse.Checker.Prover.Base.is_terminal", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.range", "P...
[ "recursion" ]
false
true
false
false
false
let rec prove_pures #preamble (pst: prover_state preamble) : T.Tac (pst': prover_state preamble {pst' `pst_extends` pst /\ is_terminal pst'}) =
match pst.unsolved with | [] -> pst | { t = Tm_Pure p } :: unsolved' -> let pst_opt = IntroPure.intro_pure pst p unsolved' () in (match pst_opt with | None -> let open Pulse.PP in fail_doc pst.pg None [text "Cannot prove pure proposition" ^/^ pp p] | Some pst1 -> let pst2 = prove_pures pst1 in ...
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.fsquare_times_lemma
val fsquare_times_lemma: a:S.felem -> b:nat -> Lemma (fsquare_times a b == M.pow a (pow2 b) % S.prime)
val fsquare_times_lemma: a:S.felem -> b:nat -> Lemma (fsquare_times a b == M.pow a (pow2 b) % S.prime)
let fsquare_times_lemma a b = SE.exp_pow2_lemma mk_nat_mod_concrete_ops a b; LE.exp_pow2_lemma nat_mod_comm_monoid a b; assert (fsquare_times a b == LE.pow nat_mod_comm_monoid a (pow2 b)); M.lemma_pow_nat_mod_is_pow #S.prime a (pow2 b)
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 45, "start_col": 0, "start_line": 41 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
a: Spec.K256.PointOps.felem -> b: Prims.nat -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.Finv.fsquare_times a b == Lib.NatMod.pow a (Prims.pow2 b) % Spec.K256.PointOps.prime)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims.nat", "Lib.NatMod.lemma_pow_nat_mod_is_pow", "Spec.K256.PointOps.prime", "Prims.pow2", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.l_or", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.K256.Finv.fsquare_times", "Lib.Exponentiation.Definition.pow", "L...
[]
true
false
true
false
false
let fsquare_times_lemma a b =
SE.exp_pow2_lemma mk_nat_mod_concrete_ops a b; LE.exp_pow2_lemma nat_mod_comm_monoid a b; assert (fsquare_times a b == LE.pow nat_mod_comm_monoid a (pow2 b)); M.lemma_pow_nat_mod_is_pow #S.prime a (pow2 b)
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.sqr_mod
val sqr_mod : SE.sqr_st S.felem mk_to_nat_mod_comm_monoid
val sqr_mod : SE.sqr_st S.felem mk_to_nat_mod_comm_monoid
let sqr_mod x = S.fmul x x
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 27, "start_col": 0, "start_line": 27 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
Spec.Exponentiation.sqr_st Spec.K256.PointOps.felem Hacl.Spec.K256.Finv.mk_to_nat_mod_comm_monoid
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.PointOps.felem", "Spec.K256.PointOps.fmul" ]
[]
false
false
false
true
false
let sqr_mod x =
S.fmul x x
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.one_mod
val one_mod : SE.one_st S.felem mk_to_nat_mod_comm_monoid
val one_mod : SE.one_st S.felem mk_to_nat_mod_comm_monoid
let one_mod _ = S.one
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 21, "start_col": 0, "start_line": 21 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
Spec.Exponentiation.one_st Spec.K256.PointOps.felem Hacl.Spec.K256.Finv.mk_to_nat_mod_comm_monoid
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Spec.K256.PointOps.one", "Spec.K256.PointOps.felem" ]
[]
false
false
false
true
false
let one_mod _ =
S.one
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.lemma_pow_mod_1
val lemma_pow_mod_1: f:S.felem -> Lemma (f == M.pow f 1 % S.prime)
val lemma_pow_mod_1: f:S.felem -> Lemma (f == M.pow f 1 % S.prime)
let lemma_pow_mod_1 f = M.lemma_pow1 f; Math.Lemmas.small_mod f S.prime; assert_norm (pow2 0 = 1); assert (f == M.pow f 1 % S.prime)
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 96, "start_col": 0, "start_line": 92 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures f == Lib.NatMod.pow f 1 % Spec.K256.PointOps.prime)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Lib.NatMod.pow", "Spec.K256.PointOps.prime", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.pow2", "FStar.Math.Lemmas.small_mod", "Lib.NatMod.lemma_pow1" ]
[]
true
false
true
false
false
let lemma_pow_mod_1 f =
M.lemma_pow1 f; Math.Lemmas.small_mod f S.prime; assert_norm (pow2 0 = 1); assert (f == M.pow f 1 % S.prime)
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.mul_mod
val mul_mod : SE.mul_st S.felem mk_to_nat_mod_comm_monoid
val mul_mod : SE.mul_st S.felem mk_to_nat_mod_comm_monoid
let mul_mod x y = S.fmul x y
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 24, "start_col": 0, "start_line": 24 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
Spec.Exponentiation.mul_st Spec.K256.PointOps.felem Hacl.Spec.K256.Finv.mk_to_nat_mod_comm_monoid
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.PointOps.felem", "Spec.K256.PointOps.fmul" ]
[]
false
false
false
true
false
let mul_mod x y =
S.fmul x y
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.is_fsqrt
val is_fsqrt: f:S.felem -> f2:S.felem -> bool
val is_fsqrt: f:S.felem -> f2:S.felem -> bool
let is_fsqrt f f2 = S.fmul f f = f2
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 88, "start_col": 0, "start_line": 88 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> f2: Spec.K256.PointOps.felem -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.PointOps.felem", "Prims.op_Equality", "Spec.K256.PointOps.fmul", "Prims.bool" ]
[]
false
false
false
true
false
let is_fsqrt f f2 =
S.fmul f f = f2
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.fsqrt_is_fsqrt_lemma
val fsqrt_is_fsqrt_lemma: f:S.felem -> Lemma (fsqrt f == S.fsqrt f)
val fsqrt_is_fsqrt_lemma: f:S.felem -> Lemma (fsqrt f == S.fsqrt f)
let fsqrt_is_fsqrt_lemma f = fsqrt_lemma f; assert (fsqrt f == M.pow f ((S.prime + 1) / 4) % S.prime); M.lemma_pow_mod #S.prime f ((S.prime + 1) / 4)
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 271, "start_col": 0, "start_line": 268 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.Finv.fsqrt f == Spec.K256.PointOps.fsqrt f)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Lib.NatMod.lemma_pow_mod", "Spec.K256.PointOps.prime", "Prims.op_Division", "Prims.op_Addition", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.Finv.fsqrt", "Prims.op_Modulus", "Lib.NatMod.pow", "Hacl.Spec.K256.Finv.fsqrt_lemma" ]
[]
true
false
true
false
false
let fsqrt_is_fsqrt_lemma f =
fsqrt_lemma f; assert (fsqrt f == M.pow f ((S.prime + 1) / 4) % S.prime); M.lemma_pow_mod #S.prime f ((S.prime + 1) / 4)
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.finv_is_finv_lemma
val finv_is_finv_lemma: f:S.felem -> Lemma (finv f == S.finv f)
val finv_is_finv_lemma: f:S.felem -> Lemma (finv f == S.finv f)
let finv_is_finv_lemma f = finv_lemma f; assert (finv f == M.pow f (S.prime - 2) % S.prime); M.lemma_pow_mod #S.prime f (S.prime - 2)
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 243, "start_col": 0, "start_line": 240 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.Finv.finv f == Spec.K256.PointOps.finv f)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Lib.NatMod.lemma_pow_mod", "Spec.K256.PointOps.prime", "Prims.op_Subtraction", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.Finv.finv", "Prims.op_Modulus", "Lib.NatMod.pow", "Hacl.Spec.K256.Finv.finv_lemma" ]
[]
true
false
true
false
false
let finv_is_finv_lemma f =
finv_lemma f; assert (finv f == M.pow f (S.prime - 2) % S.prime); M.lemma_pow_mod #S.prime f (S.prime - 2)
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.fsqrt_lemma
val fsqrt_lemma: f:S.felem -> Lemma (fsqrt f == M.pow f ((S.prime + 1) / 4) % S.prime)
val fsqrt_lemma: f:S.felem -> Lemma (fsqrt f == M.pow f ((S.prime + 1) / 4) % S.prime)
let fsqrt_lemma f = lemma_pow_mod_1 f; let r0, x2 = fexp_223_23 f in fexp_223_23_lemma f; let r1 = S.fmul (fsquare_times r0 6) x2 in fsquare_times_lemma r0 6; assert_norm (pow2 6 = 0x40); lemma_pow_pow_mod_mul f 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff 0x40 0x3; assert (r1 == M...
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 103, "end_line": 264, "start_col": 0, "start_line": 247 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.Finv.fsqrt f == Lib.NatMod.pow f ((Spec.K256.PointOps.prime + 1) / 4) % Spec.K256.PointOps.prime)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.op_Division", "Prims.op_Addition", "Spec.K256.PointOps.prime", "Prims.unit", "Prims._assert", "Prims.op_Modulus", "Lib.NatMod.pow", "Hacl.Spec.K256.Finv.lemma_pow_pow_mod", "Prims.b2t", "Prims.op_E...
[]
false
false
true
false
false
let fsqrt_lemma f =
lemma_pow_mod_1 f; let r0, x2 = fexp_223_23 f in fexp_223_23_lemma f; let r1 = S.fmul (fsquare_times r0 6) x2 in fsquare_times_lemma r0 6; assert_norm (pow2 6 = 0x40); lemma_pow_pow_mod_mul f 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff 0x40 0x3; assert (r1 == M.pow f 0xfffffffffffffffffffffffffffff...
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.finv_lemma
val finv_lemma: f:S.felem -> Lemma (finv f == M.pow f (S.prime - 2) % S.prime)
val finv_lemma: f:S.felem -> Lemma (finv f == M.pow f (S.prime - 2) % S.prime)
let finv_lemma f = lemma_pow_mod_1 f; let r0, x2 = fexp_223_23 f in fexp_223_23_lemma f; let r1 = S.fmul (fsquare_times r0 5) f in fsquare_times_lemma r0 5; assert_norm (pow2 5 = 0x20); lemma_pow_pow_mod_mul f 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff 0x20 0x1; assert (r1 == M.p...
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 100, "end_line": 236, "start_col": 0, "start_line": 216 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.Finv.finv f == Lib.NatMod.pow f (Spec.K256.PointOps.prime - 2) % Spec.K256.PointOps.prime)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Lib.NatMod.pow", "Spec.K256.PointOps.prime", "Prims.unit", "Hacl.Spec.K256.Finv.lemma_pow_pow_mod_mul", "Hacl.Spec.K256.Finv.fsquare_times_lemma", "Spec.K256.PointOps.fmul", "Hacl.Spec.K256.Finv.fsquare...
[]
false
false
true
false
false
let finv_lemma f =
lemma_pow_mod_1 f; let r0, x2 = fexp_223_23 f in fexp_223_23_lemma f; let r1 = S.fmul (fsquare_times r0 5) f in fsquare_times_lemma r0 5; assert_norm (pow2 5 = 0x20); lemma_pow_pow_mod_mul f 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff 0x20 0x1; assert (r1 == M.pow f 0x7fffffffffffffffffffffffffffff...
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.lemma_pow_pow_mod
val lemma_pow_pow_mod: f:S.felem -> a:nat -> b:nat -> Lemma (M.pow (M.pow f a % S.prime) b % S.prime == M.pow f (a * b) % S.prime)
val lemma_pow_pow_mod: f:S.felem -> a:nat -> b:nat -> Lemma (M.pow (M.pow f a % S.prime) b % S.prime == M.pow f (a * b) % S.prime)
let lemma_pow_pow_mod f a b = calc (==) { M.pow (M.pow f a % S.prime) b % S.prime; (==) { M.lemma_pow_mod_base (M.pow f a) b S.prime } M.pow (M.pow f a) b % S.prime; (==) { M.lemma_pow_mul f a b } M.pow f (a * b) % S.prime; }
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 122, "start_col": 0, "start_line": 115 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> a: Prims.nat -> b: Prims.nat -> FStar.Pervasives.Lemma (ensures Lib.NatMod.pow (Lib.NatMod.pow f a % Spec.K256.PointOps.prime) b % Spec.K256.PointOps.prime == Lib.NatMod.pow f (a * b) % Spec.K256.PointOps.prime)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims.nat", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Modulus", "Lib.NatMod.pow", "Spec.K256.PointOps.prime", "FStar.Mul.op_Star", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.Calc.calc...
[]
false
false
true
false
false
let lemma_pow_pow_mod f a b =
calc ( == ) { M.pow (M.pow f a % S.prime) b % S.prime; ( == ) { M.lemma_pow_mod_base (M.pow f a) b S.prime } M.pow (M.pow f a) b % S.prime; ( == ) { M.lemma_pow_mul f a b } M.pow f (a * b) % S.prime; }
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.lemma_pow_mod_mul
val lemma_pow_mod_mul: f:S.felem -> a:nat -> b:nat -> Lemma (S.fmul (M.pow f a % S.prime) (M.pow f b % S.prime) == M.pow f (a + b) % S.prime)
val lemma_pow_mod_mul: f:S.felem -> a:nat -> b:nat -> Lemma (S.fmul (M.pow f a % S.prime) (M.pow f b % S.prime) == M.pow f (a + b) % S.prime)
let lemma_pow_mod_mul f a b = calc (==) { S.fmul (M.pow f a % S.prime) (M.pow f b % S.prime); (==) { Math.Lemmas.lemma_mod_mul_distr_l (M.pow f a) (M.pow f b % S.prime) S.prime; Math.Lemmas.lemma_mod_mul_distr_r (M.pow f a) (M.pow f b) S.prime } M.pow f a * M.pow f b % S.prime; (==) { M.le...
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 110, "start_col": 0, "start_line": 101 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> a: Prims.nat -> b: Prims.nat -> FStar.Pervasives.Lemma (ensures Spec.K256.PointOps.fmul (Lib.NatMod.pow f a % Spec.K256.PointOps.prime) (Lib.NatMod.pow f b % Spec.K256.PointOps.prime) == Lib.NatMod.pow f (a + b) % Spec.K256.PointOps.prime)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims.nat", "FStar.Calc.calc_finish", "Prims.eq2", "Spec.K256.PointOps.fmul", "Prims.op_Modulus", "Lib.NatMod.pow", "Spec.K256.PointOps.prime", "Prims.op_Addition", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "F...
[]
false
false
true
false
false
let lemma_pow_mod_mul f a b =
calc ( == ) { S.fmul (M.pow f a % S.prime) (M.pow f b % S.prime); ( == ) { (Math.Lemmas.lemma_mod_mul_distr_l (M.pow f a) (M.pow f b % S.prime) S.prime; Math.Lemmas.lemma_mod_mul_distr_r (M.pow f a) (M.pow f b) S.prime) } M.pow f a * M.pow f b % S.prime; ( == ) { M.lemma_pow_add f a b } M.pow f (a + b) % ...
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.fexp_223_23_lemma
val fexp_223_23_lemma: f:S.felem -> Lemma (let (r, x2) = fexp_223_23 f in x2 == M.pow f 0x3 % S.prime /\ r == M.pow f 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff % S.prime)
val fexp_223_23_lemma: f:S.felem -> Lemma (let (r, x2) = fexp_223_23 f in x2 == M.pow f 0x3 % S.prime /\ r == M.pow f 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff % S.prime)
let fexp_223_23_lemma f = let x2 = S.fmul (fsquare_times f 1) f in fsquare_times_lemma f 1; assert_norm (pow2 1 = 0x2); lemma_pow_mod_1 f; lemma_pow_mod_mul f 0x2 0x1; assert (x2 == M.pow f 0x3 % S.prime); let x3 = S.fmul (fsquare_times x2 1) f in fsquare_times_lemma x2 1; lemma_pow_mod_1 f; lemma_...
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 99, "end_line": 211, "start_col": 0, "start_line": 142 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.K256.Finv.fexp_223_23 f in (let FStar.Pervasives.Native.Mktuple2 #_ #_ r x2 = _ in x2 == Lib.NatMod.pow f 0x3 % Spec.K256.PointOps.prime /\ r == Lib.NatMod.pow f 0x3fffffffffffffffffffffff...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Lib.NatMod.pow", "Spec.K256.PointOps.prime", "Prims.unit", "Hacl.Spec.K256.Finv.lemma_pow_pow_mod_mul", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.pow2", "Hacl.Spec.K25...
[]
true
false
true
false
false
let fexp_223_23_lemma f =
let x2 = S.fmul (fsquare_times f 1) f in fsquare_times_lemma f 1; assert_norm (pow2 1 = 0x2); lemma_pow_mod_1 f; lemma_pow_mod_mul f 0x2 0x1; assert (x2 == M.pow f 0x3 % S.prime); let x3 = S.fmul (fsquare_times x2 1) f in fsquare_times_lemma x2 1; lemma_pow_mod_1 f; lemma_pow_pow_mod_mul f 0x3 0x2 0x1; assert (x3 == M....
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.block_len
val block_len : a: Spec.Hash.Definitions.hash_alg -> n: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v n = Spec.Hash.Definitions.block_length a}
let block_len a = Hacl.Hash.Definitions.block_len a
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 78, "start_col": 0, "start_line": 78 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.hash_alg -> n: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v n = Spec.Hash.Definitions.block_length a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.block_len", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Prims.op_disEquality", "Lib.IntTypes.v", "Spec.Hash.Definitions.block_length"...
[]
false
false
false
false
false
let block_len a =
Hacl.Hash.Definitions.block_len a
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.prove_post_hint
val prove_post_hint (#g:env) (#ctxt:vprop) (r:checker_result_t g ctxt None) (post_hint:post_hint_opt g) (rng:range) : T.Tac (checker_result_t g ctxt post_hint)
val prove_post_hint (#g:env) (#ctxt:vprop) (r:checker_result_t g ctxt None) (post_hint:post_hint_opt g) (rng:range) : T.Tac (checker_result_t g ctxt post_hint)
let prove_post_hint (#g:env) (#ctxt:vprop) (r:checker_result_t g ctxt None) (post_hint:post_hint_opt g) (rng:range) : T.Tac (checker_result_t g ctxt post_hint) = let g = push_context g "prove_post_hint" rng in match post_hint with | None -> r | Some post_hint -> let (| x, g2, (| u_ty, ty, ty_ty...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 99, "end_line": 456, "start_col": 0, "start_line": 393 }
(* 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.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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
r: Pulse.Checker.Base.checker_result_t g ctxt FStar.Pervasives.Native.None -> post_hint: Pulse.Typing.post_hint_opt g -> rng: Pulse.Syntax.Base.range -> FStar.Tactics.Effect.Tac (Pulse.Checker.Base.checker_result_t g ctxt post_hint)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.vprop", "Pulse.Checker.Base.checker_result_t", "FStar.Pervasives.Native.None", "Pulse.Typing.post_hint_t", "Pulse.Typing.post_hint_opt", "Pulse.Syntax.Base.range", "Pulse.Syntax.Base.var", "Pulse.Typing.Env.env_extends", "Pulse.Syntax.Base.universe", "P...
[]
false
true
false
false
false
let prove_post_hint (#g: env) (#ctxt: vprop) (r: checker_result_t g ctxt None) (post_hint: post_hint_opt g) (rng: range) : T.Tac (checker_result_t g ctxt post_hint) =
let g = push_context g "prove_post_hint" rng in match post_hint with | None -> r | Some post_hint -> let (| x , g2 , (| u_ty , ty , ty_typing |) , (| ctxt' , ctxt'_typing |) , k |) = r in let ppname = mk_ppname_no_range "_posth" in let post_hint_opened = open_term_nv post_hint.post (ppname, x) in if not (eq_tm ...
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.reset
val reset : a: FStar.Ghost.erased EverCrypt.Hash.alg -> Hacl.Streaming.Functor.reset_st EverCrypt.Hash.Incremental.evercrypt_hash (FStar.Ghost.hide (FStar.Ghost.reveal a)) (EverCrypt.Hash.state (FStar.Ghost.reveal a)) (FStar.Ghost.erased Prims.unit)
let reset (a: G.erased Hash.alg) = F.reset evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 100, "end_line": 167, "start_col": 0, "start_line": 167 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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: FStar.Ghost.erased EverCrypt.Hash.alg -> Hacl.Streaming.Functor.reset_st EverCrypt.Hash.Incremental.evercrypt_hash (FStar.Ghost.hide (FStar.Ghost.reveal a)) (EverCrypt.Hash.state (FStar.Ghost.reveal a)) (FStar.Ghost.erased Prims.unit)
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "EverCrypt.Hash.alg", "Hacl.Streaming.Functor.reset", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "EverCrypt.Hash.state", "FStar.Ghost.reveal", "Prims.unit", "Hacl.Streaming.Functor.reset_st", "FStar.Ghost.hide" ]
[]
false
false
false
false
false
let reset (a: G.erased Hash.alg) =
F.reset evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.state_t
val state_t : Type0
let state_t = F.state_s evercrypt_hash SHA2_256 ((agile_state).s SHA2_256) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 153, "start_col": 0, "start_line": 152 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.state_s", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA2_256", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "EverCrypt.Hash.Incremental.agile_state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
true
let state_t =
F.state_s evercrypt_hash SHA2_256 ((agile_state).s SHA2_256) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_st
val digest_st : a: Spec.Hash.Definitions.fixed_len_alg -> Type0
let digest_st a = F.digest_st evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 87, "end_line": 196, "start_col": 0, "start_line": 196 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.fixed_len_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.fixed_len_alg", "Hacl.Streaming.Functor.digest_st", "EverCrypt.Hash.Incremental.evercrypt_hash", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
true
let digest_st a =
F.digest_st evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
false
Hacl.Spec.K256.Finv.fst
Hacl.Spec.K256.Finv.lemma_pow_pow_mod_mul
val lemma_pow_pow_mod_mul: f:S.felem -> a:nat -> b:nat -> c:nat -> Lemma (S.fmul (M.pow (M.pow f a % S.prime) b % S.prime) (M.pow f c % S.prime) == M.pow f (a * b + c) % S.prime)
val lemma_pow_pow_mod_mul: f:S.felem -> a:nat -> b:nat -> c:nat -> Lemma (S.fmul (M.pow (M.pow f a % S.prime) b % S.prime) (M.pow f c % S.prime) == M.pow f (a * b + c) % S.prime)
let lemma_pow_pow_mod_mul f a b c = calc (==) { S.fmul (M.pow (M.pow f a % S.prime) b % S.prime) (M.pow f c % S.prime); (==) { lemma_pow_pow_mod f a b } S.fmul (M.pow f (a * b) % S.prime) (M.pow f c % S.prime); (==) { lemma_pow_mod_mul f (a * b) c } M.pow f (a * b + c) % S.prime; }
{ "file_name": "code/k256/Hacl.Spec.K256.Finv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 134, "start_col": 0, "start_line": 127 }
module Hacl.Spec.K256.Finv open FStar.Mul module SE = Spec.Exponentiation module LE = Lib.Exponentiation module M = Lib.NatMod module S = Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let nat_mod_comm_monoid = M.mk_nat_mod_comm_monoid S.prime let mk_to_nat_mod_comm_monoid : SE.to_comm_monoid S.felem = ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "LE" }, { "abbrev": true, "full_module": "Spec.Exp...
{ "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
f: Spec.K256.PointOps.felem -> a: Prims.nat -> b: Prims.nat -> c: Prims.nat -> FStar.Pervasives.Lemma (ensures Spec.K256.PointOps.fmul (Lib.NatMod.pow (Lib.NatMod.pow f a % Spec.K256.PointOps.prime) b % Spec.K256.PointOps.prime) (Lib.NatMod.pow f c % Spec.K256.PointOps.prime) == Lib....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims.nat", "FStar.Calc.calc_finish", "Prims.eq2", "Spec.K256.PointOps.fmul", "Prims.op_Modulus", "Lib.NatMod.pow", "Spec.K256.PointOps.prime", "Prims.op_Addition", "FStar.Mul.op_Star", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FSta...
[]
false
false
true
false
false
let lemma_pow_pow_mod_mul f a b c =
calc ( == ) { S.fmul (M.pow (M.pow f a % S.prime) b % S.prime) (M.pow f c % S.prime); ( == ) { lemma_pow_pow_mod f a b } S.fmul (M.pow f (a * b) % S.prime) (M.pow f c % S.prime); ( == ) { lemma_pow_mod_mul f (a * b) c } M.pow f (a * b + c) % S.prime; }
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.hashed
val hashed : h: FStar.Monotonic.HyperStack.mem -> s: EverCrypt.Hash.Incremental.state a -> Prims.GTot Hacl.Streaming.Functor.bytes
let hashed #a (h: HS.mem) (s: state a) = F.seen evercrypt_hash a h s
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 348, "start_col": 0, "start_line": 347 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
h: FStar.Monotonic.HyperStack.mem -> s: EverCrypt.Hash.Incremental.state a -> Prims.GTot Hacl.Streaming.Functor.bytes
Prims.GTot
[ "sometrivial" ]
[]
[ "EverCrypt.Hash.alg", "FStar.Monotonic.HyperStack.mem", "EverCrypt.Hash.Incremental.state", "Hacl.Streaming.Functor.seen", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Hacl.Streaming.Functor.bytes" ]
[]
false
false
false
false
false
let hashed #a (h: HS.mem) (s: state a) =
F.seen evercrypt_hash a h s
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.malloc
val malloc : a: Spec.Hash.Definitions.fixed_len_alg -> r: FStar.Monotonic.HyperHeap.rid -> FStar.HyperStack.ST.ST (Hacl.Streaming.Functor.state EverCrypt.Hash.Incremental.evercrypt_hash a (EverCrypt.Hash.state a) (FStar.Ghost.erased Prims.unit))
let malloc a = F.malloc evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit) ()
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 84, "end_line": 163, "start_col": 0, "start_line": 163 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.fixed_len_alg -> r: FStar.Monotonic.HyperHeap.rid -> FStar.HyperStack.ST.ST (Hacl.Streaming.Functor.state EverCrypt.Hash.Incremental.evercrypt_hash a (EverCrypt.Hash.state a) (FStar.Ghost.erased Prims.unit))
FStar.HyperStack.ST.ST
[]
[]
[ "Spec.Hash.Definitions.fixed_len_alg", "Hacl.Streaming.Functor.malloc", "EverCrypt.Hash.Incremental.evercrypt_hash", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit", "FStar.Monotonic.HyperHeap.rid", "Hacl.Streaming.Functor.state", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Hacl...
[]
false
true
false
false
false
let malloc a =
F.malloc evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit) ()
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.agile_state
val agile_state:stateful Hash.alg
val agile_state:stateful Hash.alg
let agile_state: stateful Hash.alg = Stateful EverCrypt.Hash.state (fun #i h s -> EverCrypt.Hash.footprint s h) EverCrypt.Hash.freeable (fun #i h s -> EverCrypt.Hash.invariant s h) Spec.Hash.Definitions.words_state (fun i h s -> EverCrypt.Hash.repr s h) (fun #i h s -> EverCrypt.Hash.inv...
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 52, "start_col": 0, "start_line": 33 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, ...
{ "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.Streaming.Interface.stateful Spec.Hash.Definitions.fixed_len_alg
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.Stateful", "EverCrypt.Hash.alg", "EverCrypt.Hash.state", "FStar.Monotonic.HyperStack.mem", "EverCrypt.Hash.footprint", "LowStar.Monotonic.Buffer.loc", "EverCrypt.Hash.freeable", "EverCrypt.Hash.invariant", "Spec.Hash.Definitions.words_state", "EverCrypt.Hash.repr", "Eve...
[]
false
false
false
true
false
let agile_state:stateful Hash.alg =
Stateful EverCrypt.Hash.state (fun #i h s -> EverCrypt.Hash.footprint s h) EverCrypt.Hash.freeable (fun #i h s -> EverCrypt.Hash.invariant s h) Spec.Hash.Definitions.words_state (fun i h s -> EverCrypt.Hash.repr s h) (fun #i h s -> EverCrypt.Hash.invariant_loc_in_footprint s h) (fun #i l s h0 h1 -> ...
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.update
val update (i: G.erased Hash.alg) (state: F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (chunk: B.buffer uint8) (chunk_len: UInt32.t) : Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i state chunk chunk_len h0) (ensures ...
val update (i: G.erased Hash.alg) (state: F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (chunk: B.buffer uint8) (chunk_len: UInt32.t) : Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i state chunk chunk_len h0) (ensures ...
let update (i: G.erased Hash.alg) (state:F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (chunk: B.buffer uint8) (chunk_len: UInt32.t): Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i state chunk chunk_len h0) (ensures fun h0 e h1 -> match e wi...
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 87, "end_line": 193, "start_col": 0, "start_line": 175 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
i: FStar.Ghost.erased EverCrypt.Hash.alg -> state: Hacl.Streaming.Functor.state EverCrypt.Hash.Incremental.evercrypt_hash (FStar.Ghost.reveal i) (EverCrypt.Hash.state (FStar.Ghost.reveal i)) (FStar.Ghost.erased Prims.unit) -> chunk: LowStar.Buffer.buffer Hacl.Streaming.Interfa...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Ghost.erased", "EverCrypt.Hash.alg", "Hacl.Streaming.Functor.state", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "FStar.Ghost.reveal", "EverCrypt.Hash.state", "Prims.unit", "LowStar.Buffer.buffer", "Hacl.Streaming.Interface.uint8", "FStar.UInt32.t",...
[]
false
true
false
false
false
let update (i: G.erased Hash.alg) (state: F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (chunk: B.buffer uint8) (chunk_len: UInt32.t) : Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i state chunk chunk_len h0) (ensures ...
match F.update evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit) state chunk chunk_len with | Hacl.Streaming.Types.Success -> EverCrypt.Error.Success | Hacl.Streaming.Types.MaximumLengthExceeded -> EverCrypt.Error.MaximumLengthExceeded
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.prev_length_of_nat
val prev_length_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Incremental.prev_length_t a
val prev_length_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Incremental.prev_length_t a
let prev_length_of_nat (a: hash_alg) (i: nat { i % U32.v (block_len a) = 0 }): Spec.Hash.Incremental.prev_length_t a = if is_keccak a then () else i
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 96, "start_col": 0, "start_line": 90 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.hash_alg -> i: Prims.nat{i % FStar.UInt32.v (EverCrypt.Hash.Incremental.block_len a) = 0} -> Spec.Hash.Incremental.Definitions.prev_length_t a
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.nat", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "FStar.UInt32.v", "EverCrypt.Hash.Incremental.block_len", "Spec.Hash.Definitions.is_keccak", "Prims.bool", "Spec.Hash.Incremental.Definitions.prev_length_t" ]
[]
false
false
false
false
false
let prev_length_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Incremental.prev_length_t a =
if is_keccak a then () else i
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.alg_of_state
val alg_of_state : a: FStar.Ghost.erased EverCrypt.Hash.alg -> s: Hacl.Streaming.Functor.state EverCrypt.Hash.Incremental.evercrypt_hash (FStar.Ghost.reveal a) (EverCrypt.Hash.state (FStar.Ghost.reveal a)) (FStar.Ghost.erased Prims.unit) -> FStar.HyperStack.ST.Stack Spec.Hash.Definit...
let alg_of_state (a: G.erased Hash.alg) = F.index_of_state evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 116, "end_line": 227, "start_col": 0, "start_line": 227 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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: FStar.Ghost.erased EverCrypt.Hash.alg -> s: Hacl.Streaming.Functor.state EverCrypt.Hash.Incremental.evercrypt_hash (FStar.Ghost.reveal a) (EverCrypt.Hash.state (FStar.Ghost.reveal a)) (FStar.Ghost.erased Prims.unit) -> FStar.HyperStack.ST.Stack Spec.Hash.Definitions.fixed_len...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Ghost.erased", "EverCrypt.Hash.alg", "Hacl.Streaming.Functor.index_of_state", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "EverCrypt.Hash.state", "FStar.Ghost.reveal", "Prims.unit", "Hacl.Streaming.Functor.state", "FStar.Monotonic.HyperStack.mem", "...
[]
false
true
false
false
false
let alg_of_state (a: G.erased Hash.alg) =
F.index_of_state evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.extra_state_of_nat
val extra_state_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Definitions.extra_state a
val extra_state_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Definitions.extra_state a
let extra_state_of_nat (a: hash_alg) (i: nat { i % U32.v (block_len a) = 0 }): Spec.Hash.Definitions.extra_state a = if is_blake a then i else ()
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 87, "start_col": 0, "start_line": 81 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.hash_alg -> i: Prims.nat{i % FStar.UInt32.v (EverCrypt.Hash.Incremental.block_len a) = 0} -> Spec.Hash.Definitions.extra_state a
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.nat", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "FStar.UInt32.v", "EverCrypt.Hash.Incremental.block_len", "Spec.Hash.Definitions.is_blake", "Prims.bool", "Spec.Hash.Definitions.extra_state" ]
[]
false
false
false
false
false
let extra_state_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Definitions.extra_state a =
if is_blake a then i
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha1
val digest_sha1:digest_st SHA1
val digest_sha1:digest_st SHA1
let digest_sha1: digest_st SHA1 = F.digest evercrypt_hash SHA1 (EverCrypt.Hash.state SHA1) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 106, "end_line": 203, "start_col": 0, "start_line": 203 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA1", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha1:digest_st SHA1 =
F.digest evercrypt_hash SHA1 (EverCrypt.Hash.state SHA1) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha256
val digest_sha256:digest_st SHA2_256
val digest_sha256:digest_st SHA2_256
let digest_sha256: digest_st SHA2_256 = F.digest evercrypt_hash SHA2_256 (EverCrypt.Hash.state SHA2_256) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 120, "end_line": 207, "start_col": 0, "start_line": 207 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA2_256
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA2_256", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha256:digest_st SHA2_256 =
F.digest evercrypt_hash SHA2_256 (EverCrypt.Hash.state SHA2_256) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha3_256
val digest_sha3_256:digest_st SHA3_256
val digest_sha3_256:digest_st SHA3_256
let digest_sha3_256: digest_st SHA3_256 = F.digest evercrypt_hash SHA3_256 (EverCrypt.Hash.state SHA3_256) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 122, "end_line": 211, "start_col": 0, "start_line": 211 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA3_256
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA3_256", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha3_256:digest_st SHA3_256 =
F.digest evercrypt_hash SHA3_256 (EverCrypt.Hash.state SHA3_256) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha3_224
val digest_sha3_224:digest_st SHA3_224
val digest_sha3_224:digest_st SHA3_224
let digest_sha3_224: digest_st SHA3_224 = F.digest evercrypt_hash SHA3_224 (EverCrypt.Hash.state SHA3_224) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 122, "end_line": 209, "start_col": 0, "start_line": 209 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA3_224
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA3_224", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha3_224:digest_st SHA3_224 =
F.digest evercrypt_hash SHA3_224 (EverCrypt.Hash.state SHA3_224) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha384
val digest_sha384:digest_st SHA2_384
val digest_sha384:digest_st SHA2_384
let digest_sha384: digest_st SHA2_384 = F.digest evercrypt_hash SHA2_384 (EverCrypt.Hash.state SHA2_384) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 120, "end_line": 217, "start_col": 0, "start_line": 217 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA2_384
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA2_384", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha384:digest_st SHA2_384 =
F.digest evercrypt_hash SHA2_384 (EverCrypt.Hash.state SHA2_384) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest
val digest: a:G.erased Hash.alg -> digest_st a
val digest: a:G.erased Hash.alg -> digest_st a
let digest a state output l = let a = alg_of_state a state in match a with | MD5 -> digest_md5 state output l | SHA1 -> digest_sha1 state output l | SHA2_224 -> digest_sha224 state output l | SHA2_256 -> digest_sha256 state output l | SHA2_384 -> digest_sha384 state output l | SHA2_512 -> digest_sha512 ...
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 251, "start_col": 0, "start_line": 237 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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: FStar.Ghost.erased EverCrypt.Hash.alg -> EverCrypt.Hash.Incremental.digest_st (FStar.Ghost.reveal a)
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "EverCrypt.Hash.alg", "Hacl.Streaming.Functor.state", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "FStar.Ghost.reveal", "EverCrypt.Hash.state", "Prims.unit", "LowStar.Buffer.buffer", "Hacl.Streaming.Functor.uint8", "Hacl.Streaming.Int...
[]
false
false
false
false
false
let digest a state output l =
let a = alg_of_state a state in match a with | MD5 -> digest_md5 state output l | SHA1 -> digest_sha1 state output l | SHA2_224 -> digest_sha224 state output l | SHA2_256 -> digest_sha256 state output l | SHA2_384 -> digest_sha384 state output l | SHA2_512 -> digest_sha512 state output l | SHA3_224 -> digest_sha3_224 s...
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha224
val digest_sha224:digest_st SHA2_224
val digest_sha224:digest_st SHA2_224
let digest_sha224: digest_st SHA2_224 = F.digest evercrypt_hash SHA2_224 (EverCrypt.Hash.state SHA2_224) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 120, "end_line": 205, "start_col": 0, "start_line": 205 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA2_224
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA2_224", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha224:digest_st SHA2_224 =
F.digest evercrypt_hash SHA2_224 (EverCrypt.Hash.state SHA2_224) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.free
val free : i: FStar.Ghost.erased EverCrypt.Hash.alg -> Hacl.Streaming.Functor.free_st EverCrypt.Hash.Incremental.evercrypt_hash (FStar.Ghost.reveal i) (EverCrypt.Hash.state (FStar.Ghost.reveal i)) (FStar.Ghost.erased Prims.unit)
let free (i: G.erased Hash.alg) = F.free evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 98, "end_line": 255, "start_col": 0, "start_line": 255 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
i: FStar.Ghost.erased EverCrypt.Hash.alg -> Hacl.Streaming.Functor.free_st EverCrypt.Hash.Incremental.evercrypt_hash (FStar.Ghost.reveal i) (EverCrypt.Hash.state (FStar.Ghost.reveal i)) (FStar.Ghost.erased Prims.unit)
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "EverCrypt.Hash.alg", "Hacl.Streaming.Functor.free", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "EverCrypt.Hash.state", "FStar.Ghost.reveal", "Prims.unit", "Hacl.Streaming.Functor.free_st" ]
[]
false
false
false
false
false
let free (i: G.erased Hash.alg) =
F.free evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_blake2s
val digest_blake2s:digest_st Blake2S
val digest_blake2s:digest_st Blake2S
let digest_blake2s: digest_st Blake2S = F.digest evercrypt_hash Blake2S (EverCrypt.Hash.state Blake2S) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 118, "end_line": 221, "start_col": 0, "start_line": 221 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.Blake2S
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.Blake2S", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_blake2s:digest_st Blake2S =
F.digest evercrypt_hash Blake2S (EverCrypt.Hash.state Blake2S) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.hash_len
val hash_len (a: Hash.alg) : (x: UInt32.t{UInt32.v x == Spec.Agile.Hash.hash_length a})
val hash_len (a: Hash.alg) : (x: UInt32.t{UInt32.v x == Spec.Agile.Hash.hash_length a})
let hash_len (a:Hash.alg) : (x:UInt32.t { UInt32.v x == Spec.Agile.Hash.hash_length a }) = match a with | MD5 -> md5_hash_len | SHA1 -> sha1_hash_len | SHA2_224 -> sha2_224_hash_len | SHA2_256 -> sha2_256_hash_len | SHA2_384 -> sha2_384_hash_len | SHA2_512 -> sha2_512_hash_len | SHA3_224 -> sha3_224_has...
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 73, "start_col": 0, "start_line": 60 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "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
a: EverCrypt.Hash.alg -> x: FStar.UInt32.t{FStar.UInt32.v x == Spec.Hash.Definitions.hash_length a}
Prims.Tot
[ "total" ]
[]
[ "EverCrypt.Hash.alg", "EverCrypt.Hash.Incremental.Macros.md5_hash_len", "EverCrypt.Hash.Incremental.Macros.sha1_hash_len", "EverCrypt.Hash.Incremental.Macros.sha2_224_hash_len", "EverCrypt.Hash.Incremental.Macros.sha2_256_hash_len", "EverCrypt.Hash.Incremental.Macros.sha2_384_hash_len", "EverCrypt.Hash....
[]
false
false
false
false
false
let hash_len (a: Hash.alg) : (x: UInt32.t{UInt32.v x == Spec.Agile.Hash.hash_length a}) =
match a with | MD5 -> md5_hash_len | SHA1 -> sha1_hash_len | SHA2_224 -> sha2_224_hash_len | SHA2_256 -> sha2_256_hash_len | SHA2_384 -> sha2_384_hash_len | SHA2_512 -> sha2_512_hash_len | SHA3_224 -> sha3_224_hash_len | SHA3_256 -> sha3_256_hash_len | SHA3_384 -> sha3_384_hash_len | SHA3_512 -> sha3_512_hash_len | Bla...
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha3_384
val digest_sha3_384:digest_st SHA3_384
val digest_sha3_384:digest_st SHA3_384
let digest_sha3_384: digest_st SHA3_384 = F.digest evercrypt_hash SHA3_384 (EverCrypt.Hash.state SHA3_384) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 122, "end_line": 213, "start_col": 0, "start_line": 213 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA3_384
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA3_384", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha3_384:digest_st SHA3_384 =
F.digest evercrypt_hash SHA3_384 (EverCrypt.Hash.state SHA3_384) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.state
val state : a: EverCrypt.Hash.alg -> Type0
let state (a: Hash.alg) = F.state evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 91, "end_line": 344, "start_col": 0, "start_line": 344 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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: EverCrypt.Hash.alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "EverCrypt.Hash.alg", "Hacl.Streaming.Functor.state", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
true
let state (a: Hash.alg) =
F.state evercrypt_hash a (EverCrypt.Hash.state a) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha3_512
val digest_sha3_512:digest_st SHA3_512
val digest_sha3_512:digest_st SHA3_512
let digest_sha3_512: digest_st SHA3_512 = F.digest evercrypt_hash SHA3_512 (EverCrypt.Hash.state SHA3_512) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 122, "end_line": 215, "start_col": 0, "start_line": 215 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA3_512
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA3_512", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha3_512:digest_st SHA3_512 =
F.digest evercrypt_hash SHA3_512 (EverCrypt.Hash.state SHA3_512) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_md5
val digest_md5:digest_st MD5
val digest_md5:digest_st MD5
let digest_md5: digest_st MD5 = F.digest evercrypt_hash MD5 (EverCrypt.Hash.state MD5) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 102, "end_line": 201, "start_col": 0, "start_line": 201 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.MD5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.MD5", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_md5:digest_st MD5 =
F.digest evercrypt_hash MD5 (EverCrypt.Hash.state MD5) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_sha512
val digest_sha512:digest_st SHA2_512
val digest_sha512:digest_st SHA2_512
let digest_sha512: digest_st SHA2_512 = F.digest evercrypt_hash SHA2_512 (EverCrypt.Hash.state SHA2_512) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 120, "end_line": 219, "start_col": 0, "start_line": 219 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.SHA2_512
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA2_512", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_sha512:digest_st SHA2_512 =
F.digest evercrypt_hash SHA2_512 (EverCrypt.Hash.state SHA2_512) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.digest_blake2b
val digest_blake2b:digest_st Blake2B
val digest_blake2b:digest_st Blake2B
let digest_blake2b: digest_st Blake2B = F.digest evercrypt_hash Blake2B (EverCrypt.Hash.state Blake2B) (G.erased unit)
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 118, "end_line": 223, "start_col": 0, "start_line": 223 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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
EverCrypt.Hash.Incremental.digest_st Spec.Hash.Definitions.Blake2B
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.Blake2B", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
false
false
false
true
false
let digest_blake2b:digest_st Blake2B =
F.digest evercrypt_hash Blake2B (EverCrypt.Hash.state Blake2B) (G.erased unit)
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.hash_256
val hash_256: Hacl.Hash.Definitions.hash_st SHA2_256
val hash_256: Hacl.Hash.Definitions.hash_st SHA2_256
let hash_256 output input input_len = let open EverCrypt.Hash in // TODO: This function now only exists for SHA1 and MD5 Hacl.Hash.MD.mk_hash SHA2_256 Hacl.Hash.SHA2.alloca_256 update_multi_256 Hacl.Hash.SHA2.update_last_256 Hacl.Hash.SHA2.finish_256 output input input_len
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 268, "start_col": 0, "start_line": 264 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.Hash.Definitions.hash_st Spec.Hash.Definitions.SHA2_256
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.hash_t", "Spec.Hash.Definitions.SHA2_256", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.range", "Lib.IntTypes.U32", "LowStar.Monotonic.Buf...
[]
false
false
false
true
false
let hash_256 output input input_len =
let open EverCrypt.Hash in Hacl.Hash.MD.mk_hash SHA2_256 Hacl.Hash.SHA2.alloca_256 update_multi_256 Hacl.Hash.SHA2.update_last_256 Hacl.Hash.SHA2.finish_256 output input input_len
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.hash_224
val hash_224: Hacl.Hash.Definitions.hash_st SHA2_224
val hash_224: Hacl.Hash.Definitions.hash_st SHA2_224
let hash_224 output input input_len = let open EverCrypt.Hash in Hacl.Hash.MD.mk_hash SHA2_224 Hacl.Hash.SHA2.alloca_224 update_multi_224 Hacl.Hash.SHA2.update_last_224 Hacl.Hash.SHA2.finish_224 output input input_len
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 276, "start_col": 0, "start_line": 273 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.Hash.Definitions.hash_st Spec.Hash.Definitions.SHA2_224
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.hash_t", "Spec.Hash.Definitions.SHA2_224", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.range", "Lib.IntTypes.U32", "LowStar.Monotonic.Buf...
[]
false
false
false
true
false
let hash_224 output input input_len =
let open EverCrypt.Hash in Hacl.Hash.MD.mk_hash SHA2_224 Hacl.Hash.SHA2.alloca_224 update_multi_224 Hacl.Hash.SHA2.update_last_224 Hacl.Hash.SHA2.finish_224 output input input_len
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.prover
val prover (#preamble: _) (pst0: prover_state preamble) : T.Tac (pst': prover_state preamble {pst' `pst_extends` pst0 /\ is_terminal pst'})
val prover (#preamble: _) (pst0: prover_state preamble) : T.Tac (pst': prover_state preamble {pst' `pst_extends` pst0 /\ is_terminal pst'})
let rec prover (#preamble:_) (pst0:prover_state preamble) : T.Tac (pst':prover_state preamble { pst' `pst_extends` pst0 /\ is_terminal pst' }) = debug_prover pst0.pg (fun _ -> Printf.sprintf "At the prover top-level with remaining_ctxt: %s\nunsolved: %s" (P.ter...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 179, "start_col": 0, "start_line": 112 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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
pst0: Pulse.Checker.Prover.Base.prover_state preamble -> FStar.Tactics.Effect.Tac (pst': Pulse.Checker.Prover.Base.prover_state preamble { Pulse.Checker.Prover.Base.pst_extends pst' pst0 /\ Pulse.Checker.Prover.Base.is_terminal pst' })
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Checker.Prover.Base.preamble", "Pulse.Checker.Prover.Base.prover_state", "Pulse.Checker.Prover.Base.__proj__Mkprover_state__item__unsolved", "Prims.l_and", "Pulse.Checker.Prover.Base.pst_extends", "Pulse.Checker.Prover.Base.is_terminal", "Prims.list", "Pulse.Syntax.Base.vprop", "Pulse.Typing....
[ "recursion" ]
false
true
false
false
false
let rec prover (#preamble: _) (pst0: prover_state preamble) : T.Tac (pst': prover_state preamble {pst' `pst_extends` pst0 /\ is_terminal pst'}) =
debug_prover pst0.pg (fun _ -> Printf.sprintf "At the prover top-level with remaining_ctxt: %s\nunsolved: %s" (P.term_to_string (list_as_vprop pst0.remaining_ctxt)) (P.term_to_string (list_as_vprop pst0.unsolved))); match pst0.unsolved with | [] -> pst0 | _ -> let pst = ElimExists.elim_exists_...
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.hash
val hash: a:Hash.alg -> output:B.buffer Lib.IntTypes.uint8 {B.length output = hash_length a} -> input:B.buffer Lib.IntTypes.uint8 -> input_len:FStar.UInt32.t {B.length input = FStar.UInt32.v input_len /\ FStar.UInt32.v input_len `less_than_max_input_length` a} -> Stack unit (requires fun h0 -> B.live h0...
val hash: a:Hash.alg -> output:B.buffer Lib.IntTypes.uint8 {B.length output = hash_length a} -> input:B.buffer Lib.IntTypes.uint8 -> input_len:FStar.UInt32.t {B.length input = FStar.UInt32.v input_len /\ FStar.UInt32.v input_len `less_than_max_input_length` a} -> Stack unit (requires fun h0 -> B.live h0...
let hash a output input input_len = match a with | MD5 -> Hacl.Hash.MD5.hash_oneshot output input input_len | SHA1 -> Hacl.Hash.SHA1.hash_oneshot output input input_len | SHA2_224 -> hash_224 output input input_len | SHA2_256 -> hash_256 output input input_len | SHA2_384 -> Hacl.Streaming.SHA2.hash_384 outp...
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 337, "start_col": 0, "start_line": 308 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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: EverCrypt.Hash.alg -> output: LowStar.Buffer.buffer Lib.IntTypes.uint8 {LowStar.Monotonic.Buffer.length output = Spec.Hash.Definitions.hash_length a} -> input: LowStar.Buffer.buffer Lib.IntTypes.uint8 -> input_len: FStar.UInt32.t { LowStar.Monotonic.Buffer.length input = ...
FStar.HyperStack.ST.Stack
[]
[]
[ "EverCrypt.Hash.alg", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder", "Spec.Hash.Definitions.hash_length", "FStar.UInt32.t", "Prims.l_and", "Prims.int", "Prims.l_or", "Prims....
[]
false
true
false
false
false
let hash a output input input_len =
match a with | MD5 -> Hacl.Hash.MD5.hash_oneshot output input input_len | SHA1 -> Hacl.Hash.SHA1.hash_oneshot output input input_len | SHA2_224 -> hash_224 output input input_len | SHA2_256 -> hash_256 output input input_len | SHA2_384 -> Hacl.Streaming.SHA2.hash_384 output input input_len | SHA2_512 -> Hacl.Streaming....
false
EverCrypt.Hash.Incremental.fst
EverCrypt.Hash.Incremental.evercrypt_hash
val evercrypt_hash:block Hash.alg
val evercrypt_hash:block Hash.alg
let evercrypt_hash : block Hash.alg = Block Erased agile_state (stateful_unused Hash.alg) unit Hacl.Hash.Definitions.max_input_len64 (fun a () -> Spec.Hash.Definitions.hash_length a) block_len block_len // No vectorization (fun _ -> 0ul) (fun _ _ -> S.empty) (fun a _ -> S...
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 148, "start_col": 0, "start_line": 101 }
module EverCrypt.Hash.Incremental open FStar.Mul // Watch out: keep the module declarations in sync between fsti and fst // (otherwise interleaving issues may bite). module B = LowStar.Buffer module S = FStar.Seq module ST = FStar.HyperStack.ST module HS = FStar.HyperStack module G = FStar.Ghost module U32 = FStar.UI...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.SHA2.fs...
[ { "abbrev": false, "full_module": "EverCrypt.Hash.Incremental.Macros", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Hash.Definitions", "short_module": null }, { "abbre...
{ "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.Streaming.Interface.block Spec.Hash.Definitions.fixed_len_alg
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.Block", "Spec.Hash.Definitions.fixed_len_alg", "Hacl.Streaming.Interface.Erased", "EverCrypt.Hash.Incremental.agile_state", "Hacl.Streaming.Interface.stateful_unused", "EverCrypt.Hash.alg", "Prims.unit", "Hacl.Hash.Definitions.max_input_len64", "Spec.Hash.Definitions.hash_l...
[]
false
false
false
true
false
let evercrypt_hash:block Hash.alg =
Block Erased agile_state (stateful_unused Hash.alg) unit Hacl.Hash.Definitions.max_input_len64 (fun a () -> Spec.Hash.Definitions.hash_length a) block_len block_len (fun _ -> 0ul) (fun _ _ -> S.empty) (fun a _ -> Spec.Agile.Hash.init a) (fun a s prevlen input -> let prevlen = extra_state_of_...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.word
val word:Type0
val word:Type0
let word = Lib.IntTypes.uint32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 28, "start_col": 0, "start_line": 28 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.uint32" ]
[]
false
false
false
true
true
let word =
Lib.IntTypes.uint32
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.ws_opaque_aux
val ws_opaque_aux : a: Spec.Hash.Definitions.sha2_alg -> b: Spec.SHA2.block_w a -> t: Spec.SHA2.counter{t < Spec.SHA2.size_k_w a} -> Spec.Hash.Definitions.word a
let ws_opaque_aux = ws
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 38, "start_col": 7, "start_line": 38 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
a: Spec.Hash.Definitions.sha2_alg -> b: Spec.SHA2.block_w a -> t: Spec.SHA2.counter{t < Spec.SHA2.size_k_w a} -> Spec.Hash.Definitions.word a
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA2.Lemmas.ws" ]
[]
false
false
false
false
false
let ws_opaque_aux =
ws
false
Hacl.Impl.SecretBox.fst
Hacl.Impl.SecretBox.secretbox_detached_cipher
val secretbox_detached_cipher: mlen:size_t -> c:lbuffer uint8 mlen -> k:lbuffer uint8 32ul -> xkeys:lbuffer uint8 96ul -> n:lbuffer uint8 24ul -> m:lbuffer uint8 mlen -> Stack unit (requires fun h -> live h c /\ live h m /\ live h xkeys /\ live h n /\ live h k /\ eq_or_disjoint m c /\ disjoint...
val secretbox_detached_cipher: mlen:size_t -> c:lbuffer uint8 mlen -> k:lbuffer uint8 32ul -> xkeys:lbuffer uint8 96ul -> n:lbuffer uint8 24ul -> m:lbuffer uint8 mlen -> Stack unit (requires fun h -> live h c /\ live h m /\ live h xkeys /\ live h n /\ live h k /\ eq_or_disjoint m c /\ disjoint...
let secretbox_detached_cipher mlen c k xkeys n m = let h0 = ST.get () in push_frame (); let n1 = sub n 16ul 8ul in let subkey = sub xkeys 0ul 32ul in let mkey = sub xkeys 32ul 32ul in let ekey0 = sub xkeys 64ul 32ul in let mlen0 = get_len0 mlen in let mlen1 = mlen -! mlen0 in let m0 = sub m 0ul mlen0...
{ "file_name": "code/nacl-box/Hacl.Impl.SecretBox.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 105, "start_col": 0, "start_line": 73 }
module Hacl.Impl.SecretBox open FStar.HyperStack.All open FStar.HyperStack open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Salsa20 open Hacl.Poly1305_32 module ST = FStar.HyperStack.ST module Spec = Spec.SecretBox module LSeq = Lib.Sequence #set-options "--z3rlimit 50 --max_fuel 0 -...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Streaming.Poly1305_32.fsti.checked", "...
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Spec.SecretBox", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_mod...
{ "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
mlen: Lib.IntTypes.size_t -> c: Lib.Buffer.lbuffer Lib.IntTypes.uint8 mlen -> k: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> xkeys: Lib.Buffer.lbuffer Lib.IntTypes.uint8 96ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 24ul -> m: Lib.Buffer.lbuffer Lib.IntTypes.uint8 mlen -> FStar.HyperStac...
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Prims._assert", "Spec.SecretBox.tag", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "Lib.Sequence.length", "Lib.IntTypes...
[]
false
true
false
false
false
let secretbox_detached_cipher mlen c k xkeys n m =
let h0 = ST.get () in push_frame (); let n1 = sub n 16ul 8ul in let subkey = sub xkeys 0ul 32ul in let mkey = sub xkeys 32ul 32ul in let ekey0 = sub xkeys 64ul 32ul in let mlen0 = get_len0 mlen in let mlen1 = mlen -! mlen0 in let m0 = sub m 0ul mlen0 in let m1 = sub m mlen0 mlen1 in let block0 = create 32ul (u8 0) in u...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.shuffle_core_opaque_aux
val shuffle_core_opaque_aux : a: Spec.Hash.Definitions.sha2_alg -> block: Spec.SHA2.block_w a -> hash: Spec.Hash.Definitions.words_state a -> t: Spec.SHA2.counter{t < Spec.SHA2.size_k_w a} -> Spec.Hash.Definitions.words_state a
let shuffle_core_opaque_aux = shuffle_core
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 42, "start_col": 7, "start_line": 42 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
a: Spec.Hash.Definitions.sha2_alg -> block: Spec.SHA2.block_w a -> hash: Spec.Hash.Definitions.words_state a -> t: Spec.SHA2.counter{t < Spec.SHA2.size_k_w a} -> Spec.Hash.Definitions.words_state a
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA2.Lemmas.shuffle_core" ]
[]
false
false
false
false
false
let shuffle_core_opaque_aux =
shuffle_core
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.update_multi_opaque_aux
val update_multi_opaque_aux : a: Spec.Hash.Definitions.hash_alg -> hash: Spec.Hash.Definitions.words_state a -> prev: Spec.Hash.Definitions.extra_state a -> blocks: Spec.Hash.Definitions.bytes_blocks a -> Prims.Pure (Spec.Hash.Definitions.words_state a)
let update_multi_opaque_aux = opaque_make update_multi
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 46, "start_col": 19, "start_line": 46 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
a: Spec.Hash.Definitions.hash_alg -> hash: Spec.Hash.Definitions.words_state a -> prev: Spec.Hash.Definitions.extra_state a -> blocks: Spec.Hash.Definitions.bytes_blocks a -> Prims.Pure (Spec.Hash.Definitions.words_state a)
Prims.Pure
[]
[]
[ "Vale.Def.Opaque_s.opaque_make", "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.extra_state", "Spec.Hash.Definitions.bytes_blocks", "Prims.b2t", "Spec.Agile.Hash.update_multi_pre", "Prims.l_True", "Spec.Agile.Hash.update_multi" ]
[]
false
false
false
false
false
let update_multi_opaque_aux =
opaque_make update_multi
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.update_multi_reveal
val update_multi_reveal : _: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.update_multi_opaque_aux == Spec.Agile.Hash.update_multi)
let update_multi_reveal = opaque_revealer (`%update_multi_opaque_aux) update_multi_opaque_aux update_multi
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 118, "end_line": 47, "start_col": 12, "start_line": 47 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.update_multi_opaque_aux == Spec.Agile.Hash.update_multi)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Opaque_s.opaque_revealer", "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.extra_state", "Spec.Hash.Definitions.bytes_blocks", "Prims.b2t", "Spec.Agile.Hash.update_multi_pre", "Prims.l_True", "Vale.SHA.SHA_helpers.update_multi_opaque_aux", "S...
[]
true
false
true
false
false
let update_multi_reveal =
opaque_revealer (`%update_multi_opaque_aux) update_multi_opaque_aux update_multi
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.to_uint32
val to_uint32 (n: nat32) : Lib.IntTypes.uint32
val to_uint32 (n: nat32) : Lib.IntTypes.uint32
let to_uint32 (n:nat32) : Lib.IntTypes.uint32 = Lib.IntTypes.u32 n
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 27, "start_col": 0, "start_line": 27 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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: Vale.Def.Words_s.nat32 -> Lib.IntTypes.uint32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Words_s.nat32", "Lib.IntTypes.u32", "Lib.IntTypes.uint32" ]
[]
false
false
false
true
false
let to_uint32 (n: nat32) : Lib.IntTypes.uint32 =
Lib.IntTypes.u32 n
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.k
val k : (s:seq word {length s = size_k_w_256})
val k : (s:seq word {length s = size_k_w_256})
let k = (Spec.SHA2.k0 SHA2_256)
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 29, "start_col": 0, "start_line": 29 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
s: FStar.Seq.Base.seq Vale.SHA.SHA_helpers.word {FStar.Seq.Base.length s = Vale.SHA.SHA_helpers.size_k_w_256}
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA2.k0", "Spec.Hash.Definitions.SHA2_256" ]
[]
false
false
false
false
false
let k =
(Spec.SHA2.k0 SHA2_256)
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.add_mod32
val add_mod32 (x: word) (y: nat32) : nat32
val add_mod32 (x: word) (y: nat32) : nat32
let add_mod32 (x:word) (y:nat32) : nat32 = vv (add_mod x (to_uint32 y))
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 54, "start_col": 0, "start_line": 54 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
x: Vale.SHA.SHA_helpers.word -> y: Vale.Def.Words_s.nat32 -> Vale.Def.Words_s.nat32
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.word", "Vale.Def.Words_s.nat32", "Vale.SHA.SHA_helpers.vv", "FStar.UInt32.add_mod", "Vale.SHA.SHA_helpers.to_uint32" ]
[]
false
false
false
true
false
let add_mod32 (x: word) (y: nat32) : nat32 =
vv (add_mod x (to_uint32 y))
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.vv
val vv (u: Lib.IntTypes.uint32) : nat32
val vv (u: Lib.IntTypes.uint32) : nat32
let vv (u:Lib.IntTypes.uint32) : nat32 = Lib.IntTypes.v u
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 26, "start_col": 0, "start_line": 26 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
u8: Lib.IntTypes.uint32 -> Vale.Def.Words_s.nat32
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.uint32", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Vale.Def.Words_s.nat32" ]
[]
false
false
false
true
false
let vv (u: Lib.IntTypes.uint32) : nat32 =
Lib.IntTypes.v u
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.word_to_nat32
val word_to_nat32 (x:word) : nat32
val word_to_nat32 (x:word) : nat32
let word_to_nat32 = vv
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 55, "start_col": 0, "start_line": 55 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
x: Vale.SHA.SHA_helpers.word -> Vale.Def.Words_s.nat32
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.vv" ]
[]
false
false
false
true
false
let word_to_nat32 =
vv
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.nat32_to_word
val nat32_to_word (x:nat32) : word
val nat32_to_word (x:nat32) : word
let nat32_to_word = to_uint32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 56, "start_col": 0, "start_line": 56 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
x: Vale.Def.Words_s.nat32 -> Vale.SHA.SHA_helpers.word
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.to_uint32" ]
[]
false
false
false
true
false
let nat32_to_word =
to_uint32
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.shuffle_core_opaque
val shuffle_core_opaque (block:block_w) (hash:hash256) (t:counter{t < size_k_w_256}):hash256
val shuffle_core_opaque (block:block_w) (hash:hash256) (t:counter{t < size_k_w_256}):hash256
let shuffle_core_opaque (block:block_w) (hash:hash256) (t:counter{t < size_k_w_256}):hash256 = shuffle_core_opaque_aux SHA2_256 block hash t
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 44, "start_col": 0, "start_line": 43 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
block: Vale.SHA.SHA_helpers.block_w -> hash: Vale.SHA.SHA_helpers.hash256 -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256} -> Vale.SHA.SHA_helpers.hash256
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.counter", "Prims.b2t", "Prims.op_LessThan", "Vale.SHA.SHA_helpers.size_k_w_256", "Vale.SHA.SHA_helpers.shuffle_core_opaque_aux", "Spec.Hash.Definitions.SHA2_256" ]
[]
false
false
false
false
false
let shuffle_core_opaque (block: block_w) (hash: hash256) (t: counter{t < size_k_w_256}) : hash256 =
shuffle_core_opaque_aux SHA2_256 block hash t
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.sha256_rnds2_spec_quad32
val sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : quad32
val sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : quad32
let sha256_rnds2_spec_quad32 (src1 src2 wk:quad32) : quad32 = let abef', cdgh' = sha256_rnds2_spec_update_quad32 src2 src1 (to_uint32 wk.lo0) in let abef'', cdgh'' = sha256_rnds2_spec_update_quad32 abef' cdgh' (to_uint32 wk.lo1) in abef''
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 8, "end_line": 169, "start_col": 0, "start_line": 166 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
src1: Vale.Def.Types_s.quad32 -> src2: Vale.Def.Types_s.quad32 -> wk: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Pervasives.Native.tuple2", "Vale.SHA.SHA_helpers.sha256_rnds2_spec_update_quad32", "Vale.SHA.SHA_helpers.to_uint32", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Types_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__lo0" ]
[]
false
false
false
true
false
let sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : quad32 =
let abef', cdgh' = sha256_rnds2_spec_update_quad32 src2 src1 (to_uint32 wk.lo0) in let abef'', cdgh'' = sha256_rnds2_spec_update_quad32 abef' cdgh' (to_uint32 wk.lo1) in abef''
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.ws_opaque
val ws_opaque (b:block_w) (t:counter{t < size_k_w_256}):nat32
val ws_opaque (b:block_w) (t:counter{t < size_k_w_256}):nat32
let ws_opaque (b:block_w) (t:counter{t < size_k_w_256}) : nat32 = vv (ws_opaque_aux SHA2_256 b t)
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 40, "start_col": 0, "start_line": 39 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
b: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256} -> Vale.Def.Words_s.nat32
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.counter", "Prims.b2t", "Prims.op_LessThan", "Vale.SHA.SHA_helpers.size_k_w_256", "Vale.SHA.SHA_helpers.vv", "Vale.SHA.SHA_helpers.ws_opaque_aux", "Spec.Hash.Definitions.SHA2_256", "Vale.Def.Words_s.nat32" ]
[]
false
false
false
false
false
let ws_opaque (b: block_w) (t: counter{t < size_k_w_256}) : nat32 =
vv (ws_opaque_aux SHA2_256 b t)
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.update_multi_transparent
val update_multi_transparent (hash:hash256) (blocks:bytes_blocks):hash256
val update_multi_transparent (hash:hash256) (blocks:bytes_blocks):hash256
let update_multi_transparent (hash:hash256) (blocks:bytes_blocks) = update_multi SHA2_256 hash () blocks
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 52, "start_col": 0, "start_line": 51 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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: Vale.SHA.SHA_helpers.hash256 -> blocks: Vale.SHA.SHA_helpers.bytes_blocks -> Vale.SHA.SHA_helpers.hash256
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.bytes_blocks", "Spec.Agile.Hash.update_multi", "Spec.Hash.Definitions.SHA2_256" ]
[]
false
false
false
true
false
let update_multi_transparent (hash: hash256) (blocks: bytes_blocks) =
update_multi SHA2_256 hash () blocks
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.update_multi_opaque
val update_multi_opaque (hash:hash256) (blocks:bytes_blocks):hash256
val update_multi_opaque (hash:hash256) (blocks:bytes_blocks):hash256
let update_multi_opaque (hash:hash256) (blocks:bytes_blocks):hash256 = (update_multi_opaque_aux SHA2_256 hash () blocks)
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 49, "start_col": 0, "start_line": 48 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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: Vale.SHA.SHA_helpers.hash256 -> blocks: Vale.SHA.SHA_helpers.bytes_blocks -> Vale.SHA.SHA_helpers.hash256
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.bytes_blocks", "Vale.SHA.SHA_helpers.update_multi_opaque_aux", "Spec.Hash.Definitions.SHA2_256" ]
[]
false
false
false
true
false
let update_multi_opaque (hash: hash256) (blocks: bytes_blocks) : hash256 =
(update_multi_opaque_aux SHA2_256 hash () blocks)
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.byte_to_nat8
val byte_to_nat8 (b:byte) : nat8
val byte_to_nat8 (b:byte) : nat8
let byte_to_nat8 = UInt8.v
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 57, "start_col": 0, "start_line": 57 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
b: Vale.SHA.SHA_helpers.byte -> Vale.Def.Words_s.nat8
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt8.v" ]
[]
false
false
false
true
false
let byte_to_nat8 =
UInt8.v
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.add_mod_quad32
val add_mod_quad32 (q0 q1: quad32) : quad32
val add_mod_quad32 (q0 q1: quad32) : quad32
let add_mod_quad32 (q0 q1:quad32) : quad32 = Mkfour (vv (add_mod (to_uint32 q0.lo0) (to_uint32 q1.lo0))) (vv (add_mod (to_uint32 q0.lo1) (to_uint32 q1.lo1))) (vv (add_mod (to_uint32 q0.hi2) (to_uint32 q1.hi2))) (vv (add_mod (to_uint32 q0.hi3) (to_uint32 q1.hi3)))
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 61, "end_line": 435, "start_col": 0, "start_line": 431 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
q0: Vale.Def.Types_s.quad32 -> q1: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.SHA.SHA_helpers.vv", "FStar.UInt32.add_mod", "Vale.SHA.SHA_helpers.to_uint32", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2...
[]
false
false
false
true
false
let add_mod_quad32 (q0 q1: quad32) : quad32 =
Mkfour (vv (add_mod (to_uint32 q0.lo0) (to_uint32 q1.lo0))) (vv (add_mod (to_uint32 q0.lo1) (to_uint32 q1.lo1))) (vv (add_mod (to_uint32 q0.hi2) (to_uint32 q1.hi2))) (vv (add_mod (to_uint32 q0.hi3) (to_uint32 q1.hi3)))
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.sha256_rnds2_spec_update_quad32
val sha256_rnds2_spec_update_quad32 (abef cdgh: quad32) (wk: UInt32.t) : (quad32 & quad32)
val sha256_rnds2_spec_update_quad32 (abef cdgh: quad32) (wk: UInt32.t) : (quad32 & quad32)
let sha256_rnds2_spec_update_quad32 (abef cdgh:quad32) (wk:UInt32.t) : (quad32 & quad32) = let hash0 = make_hash abef cdgh in let a', b', c', d', e', f', g', h' = sha256_rnds2_spec_update hash0.[0] hash0.[1] hash0.[2] hash0.[3] hash0.[4] hash0.[5] hash0.[6] hash0.[7] wk in let abef' = Mkfour (vv f') (vv e') (vv b...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 164, "start_col": 0, "start_line": 159 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> wk: FStar.UInt32.t -> Vale.Def.Types_s.quad32 * Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.UInt32.t", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "FStar.Pervasives.Native.Mktuple2", "Vale.Def.Words_s.four", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.SHA.SHA_helpers.vv", "FStar.Pervasives.Na...
[]
false
false
false
true
false
let sha256_rnds2_spec_update_quad32 (abef cdgh: quad32) (wk: UInt32.t) : (quad32 & quad32) =
let hash0 = make_hash abef cdgh in let a', b', c', d', e', f', g', h' = sha256_rnds2_spec_update hash0.[ 0 ] hash0.[ 1 ] hash0.[ 2 ] hash0.[ 3 ] hash0.[ 4 ] hash0.[ 5 ] hash0.[ 6 ] hash0.[ 7 ] wk in let abef' = Mkfour (vv f') (vv e') (vv b') (vv a') in let cdgh' = Mkfour (vv h') (vv g'...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.nat8_to_byte
val nat8_to_byte (b:nat8) : byte
val nat8_to_byte (b:nat8) : byte
let nat8_to_byte = UInt8.uint_to_t
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 58, "start_col": 0, "start_line": 58 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
b: Vale.Def.Words_s.nat8 -> Vale.SHA.SHA_helpers.byte
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt8.uint_to_t" ]
[]
false
false
false
true
false
let nat8_to_byte =
UInt8.uint_to_t
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.make_hash_reveal
val make_hash_reveal : _: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.make_hash == Vale.SHA.SHA_helpers.make_hash_def)
let make_hash_reveal = opaque_revealer (`%make_hash) make_hash make_hash_def
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 88, "start_col": 12, "start_line": 88 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.make_hash == Vale.SHA.SHA_helpers.make_hash_def)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Opaque_s.opaque_revealer", "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.hash256", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "Vale.SHA.SHA_helpers.word", "Spec.SHA2.op_String_Access", "Vale.SHA.SHA_helpers.nat32_to_word", "Vale.Def.Words_s._...
[]
true
false
true
false
false
let make_hash_reveal =
opaque_revealer (`%make_hash) make_hash make_hash_def
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.make_ordered_hash_reveal
val make_ordered_hash_reveal : _: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.make_ordered_hash == Vale.SHA.SHA_helpers.make_ordered_hash_def)
let make_ordered_hash_reveal = opaque_revealer (`%make_ordered_hash) make_ordered_hash make_ordered_hash_def
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 120, "end_line": 118, "start_col": 12, "start_line": 118 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.make_ordered_hash == Vale.SHA.SHA_helpers.make_ordered_hash_def)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Opaque_s.opaque_revealer", "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.hash256", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "Vale.SHA.SHA_helpers.word", "Spec.SHA2.op_String_Access", "Vale.SHA.SHA_helpers.nat32_to_word", "Vale.Def.Words_s._...
[]
true
false
true
false
false
let make_ordered_hash_reveal =
opaque_revealer (`%make_ordered_hash) make_ordered_hash make_ordered_hash_def
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.make_hash
val make_hash (abef cdgh:quad32) : Pure (hash256) (requires True) (ensures fun hash -> length hash == 8 /\ hash.[0] == nat32_to_word abef.hi3 /\ hash.[1] == nat32_to_word abef.hi2 /\ hash.[2] == nat32_to_word cdgh.hi3 /\ hash.[3] == nat32_to_word cdgh.hi2 /\ has...
val make_hash (abef cdgh:quad32) : Pure (hash256) (requires True) (ensures fun hash -> length hash == 8 /\ hash.[0] == nat32_to_word abef.hi3 /\ hash.[1] == nat32_to_word abef.hi2 /\ hash.[2] == nat32_to_word cdgh.hi3 /\ hash.[3] == nat32_to_word cdgh.hi2 /\ has...
let make_hash = opaque_make make_hash_def
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 87, "start_col": 19, "start_line": 87 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> Prims.Pure Vale.SHA.SHA_helpers.hash256
Prims.Pure
[]
[]
[ "Vale.Def.Opaque_s.opaque_make", "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.hash256", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "Vale.SHA.SHA_helpers.word", "Spec.SHA2.op_String_Access", "Vale.SHA.SHA_helpers.nat32_to_word", "Vale.Def.Words_s.__pro...
[]
false
false
false
false
false
let make_hash =
opaque_make make_hash_def
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.make_ordered_hash
val make_ordered_hash (abcd efgh:quad32): Pure (hash256) (requires True) (ensures fun hash -> length hash == 8 /\ hash.[0] == nat32_to_word abcd.lo0 /\ hash.[1] == nat32_to_word abcd.lo1 /\ hash.[2] == nat32_to_word abcd.hi2 /\ hash.[3] == nat32_to_word abcd.hi3 /\ ...
val make_ordered_hash (abcd efgh:quad32): Pure (hash256) (requires True) (ensures fun hash -> length hash == 8 /\ hash.[0] == nat32_to_word abcd.lo0 /\ hash.[1] == nat32_to_word abcd.lo1 /\ hash.[2] == nat32_to_word abcd.hi2 /\ hash.[3] == nat32_to_word abcd.hi3 /\ ...
let make_ordered_hash = opaque_make make_ordered_hash_def
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 76, "end_line": 117, "start_col": 19, "start_line": 117 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abcd: Vale.Def.Types_s.quad32 -> efgh: Vale.Def.Types_s.quad32 -> Prims.Pure Vale.SHA.SHA_helpers.hash256
Prims.Pure
[]
[]
[ "Vale.Def.Opaque_s.opaque_make", "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.hash256", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "Vale.SHA.SHA_helpers.word", "Spec.SHA2.op_String_Access", "Vale.SHA.SHA_helpers.nat32_to_word", "Vale.Def.Words_s.__pro...
[]
false
false
false
false
false
let make_ordered_hash =
opaque_make make_ordered_hash_def
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers._sigma0_quad32
val _sigma0_quad32 (q: quad32) : quad32
val _sigma0_quad32 (q: quad32) : quad32
let _sigma0_quad32 (q:quad32) : quad32 = Mkfour (vv (_sigma0 SHA2_256 (to_uint32 q.lo0))) (vv (_sigma0 SHA2_256 (to_uint32 q.lo1))) (vv (_sigma0 SHA2_256 (to_uint32 q.hi2))) (vv (_sigma0 SHA2_256 (to_uint32 q.hi3)))
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 414, "start_col": 0, "start_line": 410 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
q: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.SHA.SHA_helpers.vv", "Spec.SHA2._sigma0", "Spec.Hash.Definitions.SHA2_256", "Vale.SHA.SHA_helpers.to_uint32", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def....
[]
false
false
false
true
false
let _sigma0_quad32 (q: quad32) : quad32 =
Mkfour (vv (_sigma0 SHA2_256 (to_uint32 q.lo0))) (vv (_sigma0 SHA2_256 (to_uint32 q.lo1))) (vv (_sigma0 SHA2_256 (to_uint32 q.hi2))) (vv (_sigma0 SHA2_256 (to_uint32 q.hi3)))
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.sha256_rnds2_spec_update_core_quad32
val sha256_rnds2_spec_update_core_quad32 (abef cdgh: quad32) (wk: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256}) : (quad32 & quad32)
val sha256_rnds2_spec_update_core_quad32 (abef cdgh: quad32) (wk: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256}) : (quad32 & quad32)
let sha256_rnds2_spec_update_core_quad32 (abef cdgh:quad32) (wk:UInt32.t) (block:block_w) (t:counter{t < size_k_w_256}) : (quad32 & quad32) = let hash0 = make_hash abef cdgh in let hash1 = shuffle_core_opaque block hash0 t in let abef' = Mkfour (vv hash1.[5]) (vv hash1.[4]) (vv hash1.[1]) (vv hash1.[0]) in let ...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 314, "start_col": 0, "start_line": 309 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> wk: FStar.UInt32.t -> block: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256} -> Vale.Def.Types_s.quad32 * Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.UInt32.t", "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.counter", "Prims.b2t", "Prims.op_LessThan", "Vale.SHA.SHA_helpers.size_k_w_256", "FStar.Pervasives.Native.Mktuple2", "Vale.Def.Words_s.four", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.Mkfour", ...
[]
false
false
false
false
false
let sha256_rnds2_spec_update_core_quad32 (abef cdgh: quad32) (wk: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256}) : (quad32 & quad32) =
let hash0 = make_hash abef cdgh in let hash1 = shuffle_core_opaque block hash0 t in let abef' = Mkfour (vv hash1.[ 5 ]) (vv hash1.[ 4 ]) (vv hash1.[ 1 ]) (vv hash1.[ 0 ]) in let cdgh' = Mkfour (vv hash1.[ 7 ]) (vv hash1.[ 6 ]) (vv hash1.[ 3 ]) (vv hash1.[ 2 ]) in (abef', cdgh')
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.make_ordered_hash_def
val make_ordered_hash_def (abcd efgh: quad32) : (hash: words_state SHA2_256 { length hash == 8 /\ hash.[ 0 ] == to_uint32 abcd.lo0 /\ hash.[ 1 ] == to_uint32 abcd.lo1 /\ hash.[ 2 ] == to_uint32 abcd.hi2 /\ hash.[ 3 ] == to_uint32 abcd.hi3 /\ hash.[ 4 ] == to_uint32 efgh.lo0 /\ hash...
val make_ordered_hash_def (abcd efgh: quad32) : (hash: words_state SHA2_256 { length hash == 8 /\ hash.[ 0 ] == to_uint32 abcd.lo0 /\ hash.[ 1 ] == to_uint32 abcd.lo1 /\ hash.[ 2 ] == to_uint32 abcd.hi2 /\ hash.[ 3 ] == to_uint32 abcd.hi3 /\ hash.[ 4 ] == to_uint32 efgh.lo0 /\ hash...
let make_ordered_hash_def (abcd efgh:quad32) : (hash:words_state SHA2_256 { length hash == 8 /\ hash.[0] == to_uint32 abcd.lo0 /\ hash.[1] == to_uint32 abcd.lo1 /\ hash.[2] == to_uint32 abcd.hi2 /\ hash.[3] == to_uint32 abcd.hi3 /\ hash.[4] == to_uint32 efgh.lo0 /...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 8, "end_line": 116, "start_col": 0, "start_line": 90 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abcd: Vale.Def.Types_s.quad32 -> efgh: Vale.Def.Types_s.quad32 -> hash: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA2_256 { FStar.Seq.Base.length hash == 8 /\ hash.[ 0 ] == Vale.SHA.SHA_helpers.to_uint32 (Mkfour?.lo0 abcd) /\ hash.[ 1 ] == Vale.SHA.SHA_helpers.to_uint32 (Mkfou...
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Prims.unit", "FStar.Seq.Properties.elim_of_list", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "Prims._assert", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "FStar.Seq.Base.seq", "Prims.nat", "FStar.List.Tot.Base.length", "FStar.Seq.Base.s...
[]
false
false
false
false
false
let make_ordered_hash_def (abcd efgh: quad32) : (hash: words_state SHA2_256 { length hash == 8 /\ hash.[ 0 ] == to_uint32 abcd.lo0 /\ hash.[ 1 ] == to_uint32 abcd.lo1 /\ hash.[ 2 ] == to_uint32 abcd.hi2 /\ hash.[ 3 ] == to_uint32 abcd.hi3 /\ hash.[ 4 ] == to_uint32 efgh.lo0 /\ hash...
let a = to_uint32 abcd.lo0 in let b = to_uint32 abcd.lo1 in let c = to_uint32 abcd.hi2 in let d = to_uint32 abcd.hi3 in let e = to_uint32 efgh.lo0 in let f = to_uint32 efgh.lo1 in let g = to_uint32 efgh.hi2 in let h = to_uint32 efgh.hi3 in let l = [a; b; c; d; e; f; g; h] in assert_norm (List.length l == 8); let hash =...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_rnds_quad32
val lemma_rnds_quad32 (abef cdgh: quad32) (wk: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256}) : Lemma (requires wk == to_uint32 (add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t))) (ensures sha256_rnds2_spec_update_core_quad32 abef cdgh wk block t == sha256_r...
val lemma_rnds_quad32 (abef cdgh: quad32) (wk: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256}) : Lemma (requires wk == to_uint32 (add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t))) (ensures sha256_rnds2_spec_update_core_quad32 abef cdgh wk block t == sha256_r...
let lemma_rnds_quad32 (abef cdgh:quad32) (wk:UInt32.t) (block:block_w) (t:counter{t < size_k_w_256}) : Lemma (requires wk == to_uint32 (add_mod32 (k0 SHA2_256).[t] (ws_opaque block t))) (ensures sha256_rnds2_spec_update_core_quad32 abef cdgh wk block t == sha256_rnds2_spec_update_quad32 abef cdgh wk) = let hash...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 328, "start_col": 0, "start_line": 316 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> wk: FStar.UInt32.t -> block: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256} -> FStar.Pervasives.Lemma (requires wk == Vale.SHA.SHA_helpers.to_uint32 (Val...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.UInt32.t", "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.counter", "Prims.b2t", "Prims.op_LessThan", "Vale.SHA.SHA_helpers.size_k_w_256", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "Prims.unit", "Vale.SHA.SHA_helpers.lemma_sha256_rnd...
[]
false
false
true
false
false
let lemma_rnds_quad32 (abef cdgh: quad32) (wk: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256}) : Lemma (requires wk == to_uint32 (add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t))) (ensures sha256_rnds2_spec_update_core_quad32 abef cdgh wk block t == sha256_r...
let hash0 = make_hash abef cdgh in let hash1 = shuffle_core_opaque block hash0 t in let a', b', c', d', e', f', g', h' = sha256_rnds2_spec_update hash0.[ 0 ] hash0.[ 1 ] hash0.[ 2 ] hash0.[ 3 ] hash0.[ 4 ] hash0.[ 5 ] hash0.[ 6 ] hash0.[ 7 ] wk in let l = [a'; b'; c'; d'; e'; f'; g'; h...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_add_wrap_is_add_mod
val lemma_add_wrap_is_add_mod (n0 n1: nat32) : Lemma (add_wrap n0 n1 == vv (add_mod (to_uint32 n0) (to_uint32 n1)))
val lemma_add_wrap_is_add_mod (n0 n1: nat32) : Lemma (add_wrap n0 n1 == vv (add_mod (to_uint32 n0) (to_uint32 n1)))
let lemma_add_wrap_is_add_mod (n0 n1:nat32) : Lemma (add_wrap n0 n1 == vv (add_mod (to_uint32 n0) (to_uint32 n1))) = assert_norm (pow2 32 == pow2_32); ()
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 221, "start_col": 0, "start_line": 217 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
n0: Vale.Def.Words_s.nat32 -> n1: Vale.Def.Words_s.nat32 -> FStar.Pervasives.Lemma (ensures Vale.Def.Types_s.add_wrap n0 n1 == Vale.SHA.SHA_helpers.vv (FStar.UInt32.add_mod (Vale.SHA.SHA_helpers.to_uint32 n0) (Vale.SHA.SHA_helpers.to_uint32 n1)))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Words_s.nat32", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.pow2", "Vale.Def.Words_s.pow2_32", "Prims.l_True", "Prims.squash", "Vale.Def.Words_s.natN", "Vale.Def.Types_s.add_wrap", "Vale.SHA.SHA_helpers.vv", "FStar.UInt32.add_mod", "Vale.SHA.SHA...
[]
true
false
true
false
false
let lemma_add_wrap_is_add_mod (n0 n1: nat32) : Lemma (add_wrap n0 n1 == vv (add_mod (to_uint32 n0) (to_uint32 n1))) =
assert_norm (pow2 32 == pow2_32); ()
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_add_mod_e
val lemma_add_mod_e (a b c d e f g h wk: UInt32.t) : Lemma (let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h d))) in let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (_Ch SHA2_256 e f g) wk)) in let core = add_mod d t1 in u == cor...
val lemma_add_mod_e (a b c d e f g h wk: UInt32.t) : Lemma (let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h d))) in let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (_Ch SHA2_256 e f g) wk)) in let core = add_mod d t1 in u == cor...
let lemma_add_mod_e (a b c d e f g h wk:UInt32.t) : Lemma ( let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h d))) in let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (_Ch SHA2_2...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 283, "start_col": 0, "start_line": 259 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
a: FStar.UInt32.t -> b: FStar.UInt32.t -> c: FStar.UInt32.t -> d: FStar.UInt32.t -> e: FStar.UInt32.t -> f: FStar.UInt32.t -> g: FStar.UInt32.t -> h: FStar.UInt32.t -> wk: FStar.UInt32.t -> FStar.Pervasives.Lemma (ensures (let u254 = FStar.UInt32.add_mod (Spec....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.UInt32.t", "Prims.unit", "Prims._assert", "Prims.eq2", "FStar.UInt32.add_mod", "Spec.SHA2._Ch", "Spec.Hash.Definitions.SHA2_256", "Spec.SHA2._Sigma1", "Vale.SHA.SHA_helpers.lemma_add_mod_associates_U32", "Vale.SHA.SHA_helpers.lemma_add_mod_commutes", "Prims.l_True", "Prims.squash", "P...
[]
true
false
true
false
false
let lemma_add_mod_e (a b c d e f g h wk: UInt32.t) : Lemma (let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h d))) in let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (_Ch SHA2_256 e f g) wk)) in let core = add_mod d t1 in u == cor...
let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (_Ch SHA2_256 e f g) wk)) in let core = add_mod d t1 in lemma_add_mod_commutes h (add_mod (_Sigma1 SHA2_256 e) (add_mod (_Ch SHA2_256 e f g) wk)); lemma_add_mod_commutes d t1; lemma_add_mod_associates_U32 (_Sigma1 SHA2_256 e) (_Ch SHA2_256 e f g) wk; assert (t1 ...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers._sigma1_quad32
val _sigma1_quad32 (q: quad32) : quad32
val _sigma1_quad32 (q: quad32) : quad32
let _sigma1_quad32 (q:quad32) : quad32 = Mkfour (vv (_sigma1 SHA2_256 (to_uint32 q.lo0))) (vv (_sigma1 SHA2_256 (to_uint32 q.lo1))) (vv (_sigma1 SHA2_256 (to_uint32 q.hi2))) (vv (_sigma1 SHA2_256 (to_uint32 q.hi3)))
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 420, "start_col": 0, "start_line": 416 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
q: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.SHA.SHA_helpers.vv", "Spec.SHA2._sigma1", "Spec.Hash.Definitions.SHA2_256", "Vale.SHA.SHA_helpers.to_uint32", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def....
[]
false
false
false
true
false
let _sigma1_quad32 (q: quad32) : quad32 =
Mkfour (vv (_sigma1 SHA2_256 (to_uint32 q.lo0))) (vv (_sigma1 SHA2_256 (to_uint32 q.lo1))) (vv (_sigma1 SHA2_256 (to_uint32 q.hi2))) (vv (_sigma1 SHA2_256 (to_uint32 q.hi3)))
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.ws_partial_def
val ws_partial_def (t:counter) (block:block_w) : quad32
val ws_partial_def (t:counter) (block:block_w) : quad32
let ws_partial_def (t:counter) (block:block_w) : quad32 = if 16 <= t && t < size_k_w_256 then (let init = ws_quad32 (t-16) block in let sigma0_in = ws_quad32 (t-15) block in let sigma0_out = _sigma0_quad32 sigma0_in in add_wrap_quad32 init sigma0_out) else Mkfour 0 0 0 0
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 429, "start_col": 0, "start_line": 422 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Prims.op_AmpAmp", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Vale.SHA.SHA_helpers.size_k_w_256", "Vale.Arch.Types.add_wrap_quad32", "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers._sigma0_quad32", "Vale.SHA.SHA_helpers.ws_qua...
[]
false
false
false
true
false
let ws_partial_def (t: counter) (block: block_w) : quad32 =
if 16 <= t && t < size_k_w_256 then (let init = ws_quad32 (t - 16) block in let sigma0_in = ws_quad32 (t - 15) block in let sigma0_out = _sigma0_quad32 sigma0_in in add_wrap_quad32 init sigma0_out) else Mkfour 0 0 0 0
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_add_mod_a
val lemma_add_mod_a (a b c d e f g h wk: UInt32.t) : Lemma (let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h (add_mod (_Maj SHA2_256 a b c) (_Sigma0 SHA2_256 a))))) in let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (...
val lemma_add_mod_a (a b c d e f g h wk: UInt32.t) : Lemma (let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h (add_mod (_Maj SHA2_256 a b c) (_Sigma0 SHA2_256 a))))) in let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (...
let lemma_add_mod_a (a b c d e f g h wk:UInt32.t) : Lemma ( let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h (add_mod (_Maj SHA2_256 a b c) (_Sigma0 SHA2_256 a))))) in ...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 257, "start_col": 0, "start_line": 229 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
a: FStar.UInt32.t -> b: FStar.UInt32.t -> c: FStar.UInt32.t -> d: FStar.UInt32.t -> e: FStar.UInt32.t -> f: FStar.UInt32.t -> g: FStar.UInt32.t -> h: FStar.UInt32.t -> wk: FStar.UInt32.t -> FStar.Pervasives.Lemma (ensures (let u228 = FStar.UInt32.add_mod (Spec....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.UInt32.t", "Prims.unit", "Vale.SHA.SHA_helpers.lemma_add_mod_associates_U32", "Spec.SHA2._Ch", "Spec.Hash.Definitions.SHA2_256", "Spec.SHA2._Sigma1", "FStar.UInt32.add_mod", "Spec.SHA2._Maj", "Spec.SHA2._Sigma0", "Prims._assert", "Prims.eq2", "Vale.SHA.SHA_helpers.lemma_add_mod_commutes...
[]
true
false
true
false
false
let lemma_add_mod_a (a b c d e f g h wk: UInt32.t) : Lemma (let u = add_mod (_Ch SHA2_256 e f g) (add_mod (_Sigma1 SHA2_256 e) (add_mod wk (add_mod h (add_mod (_Maj SHA2_256 a b c) (_Sigma0 SHA2_256 a))))) in let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (...
let t1 = add_mod h (add_mod (_Sigma1 SHA2_256 e) (add_mod (_Ch SHA2_256 e f g) wk)) in let t2 = add_mod (_Sigma0 SHA2_256 a) (_Maj SHA2_256 a b c) in let core = add_mod t1 t2 in lemma_add_mod_commutes (_Sigma0 SHA2_256 a) (_Maj SHA2_256 a b c); assert (t2 == add_mod (_Maj SHA2_256 a b c) (_Sigma0 SHA2_256 a)); lemma_ad...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_sha256_rnds2_spec_quad32
val lemma_sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : Lemma (sha256_rnds2_spec src1 src2 wk == sha256_rnds2_spec_quad32 src1 src2 wk)
val lemma_sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : Lemma (sha256_rnds2_spec src1 src2 wk == sha256_rnds2_spec_quad32 src1 src2 wk)
let lemma_sha256_rnds2_spec_quad32 (src1 src2 wk:quad32) : Lemma (sha256_rnds2_spec src1 src2 wk == sha256_rnds2_spec_quad32 src1 src2 wk) = sha256_rnds2_spec_reveal (); ()
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 175, "start_col": 0, "start_line": 171 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
src1: Vale.Def.Types_s.quad32 -> src2: Vale.Def.Types_s.quad32 -> wk: Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (ensures Vale.X64.CryptoInstructions_s.sha256_rnds2_spec src1 src2 wk == Vale.SHA.SHA_helpers.sha256_rnds2_spec_quad32 src1 src2 wk)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "Prims.unit", "Vale.X64.CryptoInstructions_s.sha256_rnds2_spec_reveal", "Prims.l_True", "Prims.squash", "Prims.eq2", "Vale.X64.CryptoInstructions_s.sha256_rnds2_spec", "Vale.SHA.SHA_helpers.sha256_rnds2_spec_quad32", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let lemma_sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : Lemma (sha256_rnds2_spec src1 src2 wk == sha256_rnds2_spec_quad32 src1 src2 wk) =
sha256_rnds2_spec_reveal (); ()
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.make_hash_def
val make_hash_def (abef cdgh: quad32) : (hash: words_state SHA2_256 { length hash == 8 /\ hash.[ 0 ] == to_uint32 abef.hi3 /\ hash.[ 1 ] == to_uint32 abef.hi2 /\ hash.[ 2 ] == to_uint32 cdgh.hi3 /\ hash.[ 3 ] == to_uint32 cdgh.hi2 /\ hash.[ 4 ] == to_uint32 abef.lo1 /\ hash.[ 5 ] =...
val make_hash_def (abef cdgh: quad32) : (hash: words_state SHA2_256 { length hash == 8 /\ hash.[ 0 ] == to_uint32 abef.hi3 /\ hash.[ 1 ] == to_uint32 abef.hi2 /\ hash.[ 2 ] == to_uint32 cdgh.hi3 /\ hash.[ 3 ] == to_uint32 cdgh.hi2 /\ hash.[ 4 ] == to_uint32 abef.lo1 /\ hash.[ 5 ] =...
let make_hash_def (abef cdgh:quad32) : (hash:words_state SHA2_256 { length hash == 8 /\ hash.[0] == to_uint32 abef.hi3 /\ hash.[1] == to_uint32 abef.hi2 /\ hash.[2] == to_uint32 cdgh.hi3 /\ hash.[3] == to_uint32 cdgh.hi2 /\ hash.[4] == to_uint32 abef.lo1 /\ ...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 8, "end_line": 86, "start_col": 0, "start_line": 60 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> hash: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA2_256 { FStar.Seq.Base.length hash == 8 /\ hash.[ 0 ] == Vale.SHA.SHA_helpers.to_uint32 (Mkfour?.hi3 abef) /\ hash.[ 1 ] == Vale.SHA.SHA_helpers.to_uint32 (Mkfou...
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Prims.unit", "FStar.Seq.Properties.elim_of_list", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "Prims._assert", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "FStar.Seq.Base.seq", "Prims.nat", "FStar.List.Tot.Base.length", "FStar.Seq.Base.s...
[]
false
false
false
false
false
let make_hash_def (abef cdgh: quad32) : (hash: words_state SHA2_256 { length hash == 8 /\ hash.[ 0 ] == to_uint32 abef.hi3 /\ hash.[ 1 ] == to_uint32 abef.hi2 /\ hash.[ 2 ] == to_uint32 cdgh.hi3 /\ hash.[ 3 ] == to_uint32 cdgh.hi2 /\ hash.[ 4 ] == to_uint32 abef.lo1 /\ hash.[ 5 ] =...
let a = to_uint32 abef.hi3 in let b = to_uint32 abef.hi2 in let c = to_uint32 cdgh.hi3 in let d = to_uint32 cdgh.hi2 in let e = to_uint32 abef.lo1 in let f = to_uint32 abef.lo0 in let g = to_uint32 cdgh.lo1 in let h = to_uint32 cdgh.lo0 in let l = [a; b; c; d; e; f; g; h] in assert_norm (List.length l == 8); let hash =...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_sha256_rnds2
val lemma_sha256_rnds2 (abef cdgh xmm0:quad32) (t:counter) (block:block_w) (hash_in:hash256) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (word_to_nat32 k.[t]) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (word_to_nat32 k.[t+1]) (ws_opaque block (t+1)) /\ make_ha...
val lemma_sha256_rnds2 (abef cdgh xmm0:quad32) (t:counter) (block:block_w) (hash_in:hash256) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (word_to_nat32 k.[t]) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (word_to_nat32 k.[t+1]) (ws_opaque block (t+1)) /\ make_ha...
let lemma_sha256_rnds2 (abef cdgh xmm0:quad32) (t:counter) (block:block_w) (hash_in:hash256) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (word_to_nat32 k.[t]) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (word_to_nat32 k.[t+1]) (ws_opaque block (t+1)) /\ make_ha...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 407, "start_col": 0, "start_line": 393 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> xmm0: Vale.Def.Types_s.quad32 -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> hash_in: Vale.SHA.SHA_helpers.hash256 -> FStar.Pervasives.Lemma (requires t + 1 < Vale.SHA.SHA_helpers.siz...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.hash256", "Prims.unit", "Spec.Loops.repeat_range_induction", "Prims.op_Addition", "Vale.SHA.SHA_helpers.shuffle_core_opaque", "Vale.SHA.SHA_helpers.lemma_sha256_rnds2_two_steps", "Vale....
[]
true
false
true
false
false
let lemma_sha256_rnds2 (abef cdgh xmm0: quad32) (t: counter) (block: block_w) (hash_in: hash256) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (word_to_nat32 k.[ t ]) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (word_to_nat32 k.[ t + 1 ]) (ws_opaque block (t + 1)) /\ m...
lemma_add_wrap_is_add_mod (vv (k0 SHA2_256).[ t ]) (ws_opaque block t); lemma_add_wrap_is_add_mod (vv (k0 SHA2_256).[ t + 1 ]) (ws_opaque block (t + 1)); lemma_sha256_rnds2_two_steps abef cdgh xmm0 t block; Spec.Loops.repeat_range_induction 0 (t + 1) (shuffle_core_opaque block) hash_in; Spec.Loops.repeat_range_inductio...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_add_wrap_quad32_is_add_mod_quad32
val lemma_add_wrap_quad32_is_add_mod_quad32 (q0 q1: quad32) : Lemma (add_mod_quad32 q0 q1 == add_wrap_quad32 q0 q1)
val lemma_add_wrap_quad32_is_add_mod_quad32 (q0 q1: quad32) : Lemma (add_mod_quad32 q0 q1 == add_wrap_quad32 q0 q1)
let lemma_add_wrap_quad32_is_add_mod_quad32 (q0 q1:quad32) : Lemma (add_mod_quad32 q0 q1 == add_wrap_quad32 q0 q1) = FStar.Classical.forall_intro_2 lemma_add_wrap_is_add_mod; ()
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 441, "start_col": 0, "start_line": 437 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
q0: Vale.Def.Types_s.quad32 -> q1: Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.add_mod_quad32 q0 q1 == Vale.Arch.Types.add_wrap_quad32 q0 q1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "Prims.unit", "FStar.Classical.forall_intro_2", "Vale.Def.Words_s.nat32", "Prims.eq2", "Vale.Def.Words_s.natN", "Vale.Def.Words_s.pow2_32", "Vale.Def.Types_s.add_wrap", "Vale.SHA.SHA_helpers.vv", "FStar.UInt32.add_mod", "Vale.SHA.SHA_helpers.to_uint32", "Vale.SHA.SHA...
[]
false
false
true
false
false
let lemma_add_wrap_quad32_is_add_mod_quad32 (q0 q1: quad32) : Lemma (add_mod_quad32 q0 q1 == add_wrap_quad32 q0 q1) =
FStar.Classical.forall_intro_2 lemma_add_wrap_is_add_mod; ()
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.sha256_rnds2_spec_quad32_is_shuffle_core_x2
val sha256_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh wk: quad32) (block: block_w) (t: counter{t < size_k_w_256 - 1}) : Lemma (requires wk.lo0 == add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t) /\ wk.lo1 == add_mod32 (k0 SHA2_256).[ t + 1 ] (ws_opaque block (t + 1))) ...
val sha256_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh wk: quad32) (block: block_w) (t: counter{t < size_k_w_256 - 1}) : Lemma (requires wk.lo0 == add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t) /\ wk.lo1 == add_mod32 (k0 SHA2_256).[ t + 1 ] (ws_opaque block (t + 1))) ...
let sha256_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh wk:quad32) (block:block_w) (t:counter{t < size_k_w_256 - 1}) : Lemma (requires wk.lo0 == add_mod32 (k0 SHA2_256).[t] (ws_opaque block t) /\ wk.lo1 == add_mod32 (k0 SHA2_256).[t+1] (ws_opaque block (t+1))) (ensures (let hash0 = make_hash abef c...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 372, "start_col": 0, "start_line": 361 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> wk: Vale.Def.Types_s.quad32 -> block: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256 - 1} -> FStar.Pervasives.Lemma (requires Mkfour?.lo0 wk == Vale.SHA.S...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.counter", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Subtraction", "Vale.SHA.SHA_helpers.size_k_w_256", "Prims.unit", "Vale.SHA.SHA_helpers.sha256_rnds2_spec_update_quad32_x2_shifts", "Vale.SHA.SHA_helpers.to_uint32"...
[]
true
false
true
false
false
let sha256_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh wk: quad32) (block: block_w) (t: counter{t < size_k_w_256 - 1}) : Lemma (requires wk.lo0 == add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t) /\ wk.lo1 == add_mod32 (k0 SHA2_256).[ t + 1 ] (ws_opaque block (t + 1))) ...
lemma_rnds2_spec_quad32_is_shuffle_core_x2 abef cdgh (to_uint32 wk.lo0) (to_uint32 wk.lo1) block t; sha256_rnds2_spec_update_quad32_x2_shifts abef cdgh (to_uint32 wk.lo0) (to_uint32 wk.lo1); ()
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_add_mod_associates_U32
val lemma_add_mod_associates_U32 (x y z: UInt32.t) : Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z)
val lemma_add_mod_associates_U32 (x y z: UInt32.t) : Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z)
let lemma_add_mod_associates_U32 (x y z:UInt32.t) : Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z) = let open Lib.IntTypes in calc (==) { v (x +. (y +. z)); (==) { } (v x + (v y + v z) % pow2 32) % pow2 32; (==) { FStar.Math.Lemmas.lemma_mod_add_distr (v x) (v y + v z) (pow2 32) } ...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 204, "start_col": 0, "start_line": 189 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
x: FStar.UInt32.t -> y: FStar.UInt32.t -> z: FStar.UInt32.t -> FStar.Pervasives.Lemma (ensures FStar.UInt32.add_mod x (FStar.UInt32.add_mod y z) == FStar.UInt32.add_mod (FStar.UInt32.add_mod x y) z)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.UInt32.t", "FStar.UInt32.v_inj", "Lib.IntTypes.op_Plus_Dot", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.unit", "FStar.Calc.calc_finish", "Lib.IntTypes.range_t", "Prims.eq2", "Lib.IntTypes.v", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "FStar.Calc.calc_step", "Prims....
[]
false
false
true
false
false
let lemma_add_mod_associates_U32 (x y z: UInt32.t) : Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z) =
let open Lib.IntTypes in calc ( == ) { v (x +. (y +. z)); ( == ) { () } (v x + (v y + v z) % pow2 32) % pow2 32; ( == ) { FStar.Math.Lemmas.lemma_mod_add_distr (v x) (v y + v z) (pow2 32) } ((v x + v y) + v z) % pow2 32; ( == ) { FStar.Math.Lemmas.lemma_mod_add_distr (v z) (v x + v y) (pow2 32) } ((v x + ...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_add_mod_ws_rearrangement
val lemma_add_mod_ws_rearrangement (a b c d: UInt32.t) : Lemma (let open Lib.IntTypes in a +. b +. c +. d == d +. c +. b +. a)
val lemma_add_mod_ws_rearrangement (a b c d: UInt32.t) : Lemma (let open Lib.IntTypes in a +. b +. c +. d == d +. c +. b +. a)
let lemma_add_mod_ws_rearrangement (a b c d:UInt32.t) : Lemma (let open Lib.IntTypes in a +. b +. c +. d == d +. c +. b +. a) = let open Lib.IntTypes in calc (==) { a +. b +. c +. d; (==) {} (((a +. b) +. c) +. d); (==) { lemma_add_mod_commutes ((a +. b) +. c) d; lemma_add_mod...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 478, "start_col": 0, "start_line": 461 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
a: FStar.UInt32.t -> b: FStar.UInt32.t -> c: FStar.UInt32.t -> d: FStar.UInt32.t -> FStar.Pervasives.Lemma (ensures a +. b +. c +. d == d +. c +. b +. a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.UInt32.t", "FStar.Calc.calc_finish", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Lib.IntTypes.op_Plus_Dot", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.Calc.calc_init", "FStar.Calc.calc_pack", "...
[]
false
false
true
false
false
let lemma_add_mod_ws_rearrangement (a b c d: UInt32.t) : Lemma (let open Lib.IntTypes in a +. b +. c +. d == d +. c +. b +. a) =
let open Lib.IntTypes in calc ( == ) { a +. b +. c +. d; ( == ) { () } (((a +. b) +. c) +. d); ( == ) { (lemma_add_mod_commutes ((a +. b) +. c) d; lemma_add_mod_commutes (a +. b) c; lemma_add_mod_commutes a b) } d +. (c +. (b +. a)); ( == ) { (lemma_add_mod_associates_U32 d c (b +. a); lemma_add...
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.ws_computed_quad32
val ws_computed_quad32 (t: counter{t < size_k_w_256 - 3}) (block: block_w) : quad32
val ws_computed_quad32 (t: counter{t < size_k_w_256 - 3}) (block: block_w) : quad32
let ws_computed_quad32 (t:counter{t < size_k_w_256 - 3}) (block:block_w) : quad32 = Mkfour (vv (ws_computed block t)) (vv (ws_computed block (t+1))) (vv (ws_computed block (t+2))) (vv (ws_computed block (t+3)))
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 524, "start_col": 0, "start_line": 520 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256 - 3} -> block: Vale.SHA.SHA_helpers.block_w -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.SHA.SHA_helpers.counter", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Subtraction", "Vale.SHA.SHA_helpers.size_k_w_256", "Vale.SHA.SHA_helpers.block_w", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.SHA.SHA_helpers.vv", "Vale.SHA.SHA_helpers.ws_computed", "Prims.op_Addition", ...
[]
false
false
false
false
false
let ws_computed_quad32 (t: counter{t < size_k_w_256 - 3}) (block: block_w) : quad32 =
Mkfour (vv (ws_computed block t)) (vv (ws_computed block (t + 1))) (vv (ws_computed block (t + 2))) (vv (ws_computed block (t + 3)))
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.shuffle_opaque
val shuffle_opaque : a: Spec.Hash.Definitions.sha2_alg -> hash: Spec.Hash.Definitions.words_state a -> block: Spec.SHA2.block_w a -> Spec.Hash.Definitions.words_state a
let shuffle_opaque = shuffle
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 649, "start_col": 7, "start_line": 649 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
a: Spec.Hash.Definitions.sha2_alg -> hash: Spec.Hash.Definitions.words_state a -> block: Spec.SHA2.block_w a -> Spec.Hash.Definitions.words_state a
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA2.shuffle" ]
[]
false
false
false
false
false
let shuffle_opaque =
shuffle
false