effect
stringclasses
48 values
original_source_type
stringlengths
0
23k
opens_and_abbrevs
listlengths
2
92
isa_cross_project_example
bool
1 class
source_definition
stringlengths
9
57.9k
partial_definition
stringlengths
7
23.3k
is_div
bool
2 classes
is_type
null
is_proof
bool
2 classes
completed_definiton
stringlengths
1
250k
dependencies
dict
effect_flags
listlengths
0
2
ideal_premises
listlengths
0
236
mutual_with
listlengths
0
11
file_context
stringlengths
0
407k
interleaved
bool
1 class
is_simply_typed
bool
2 classes
file_name
stringlengths
5
48
vconfig
dict
is_simple_lemma
null
source_type
stringlengths
10
23k
proof_features
listlengths
0
1
name
stringlengths
8
95
source
dict
verbose_type
stringlengths
1
7.42k
source_range
dict
Prims.Tot
val finish_sha384:finish_st SHA2_384
[ { "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...
false
let finish_sha384: finish_st SHA2_384 = F.mk_finish evercrypt_hash SHA2_384 (EverCrypt.Hash.state SHA2_384) (G.erased unit)
val finish_sha384:finish_st SHA2_384 let finish_sha384:finish_st SHA2_384 =
false
null
false
F.mk_finish evercrypt_hash SHA2_384 (EverCrypt.Hash.state SHA2_384) (G.erased unit)
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "total" ]
[ "Hacl.Streaming.Functor.mk_finish", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA2_384", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val finish_sha384:finish_st SHA2_384
[]
EverCrypt.Hash.Incremental.finish_sha384
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
EverCrypt.Hash.Incremental.finish_st Spec.Hash.Definitions.SHA2_384
{ "end_col": 123, "end_line": 217, "start_col": 40, "start_line": 217 }
Prims.Tot
val finish_sha3_512:finish_st SHA3_512
[ { "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...
false
let finish_sha3_512: finish_st SHA3_512 = F.mk_finish evercrypt_hash SHA3_512 (EverCrypt.Hash.state SHA3_512) (G.erased unit)
val finish_sha3_512:finish_st SHA3_512 let finish_sha3_512:finish_st SHA3_512 =
false
null
false
F.mk_finish evercrypt_hash SHA3_512 (EverCrypt.Hash.state SHA3_512) (G.erased unit)
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "total" ]
[ "Hacl.Streaming.Functor.mk_finish", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA3_512", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val finish_sha3_512:finish_st SHA3_512
[]
EverCrypt.Hash.Incremental.finish_sha3_512
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
EverCrypt.Hash.Incremental.finish_st Spec.Hash.Definitions.SHA3_512
{ "end_col": 125, "end_line": 215, "start_col": 42, "start_line": 215 }
Prims.Tot
val finish_sha3_384:finish_st SHA3_384
[ { "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...
false
let finish_sha3_384: finish_st SHA3_384 = F.mk_finish evercrypt_hash SHA3_384 (EverCrypt.Hash.state SHA3_384) (G.erased unit)
val finish_sha3_384:finish_st SHA3_384 let finish_sha3_384:finish_st SHA3_384 =
false
null
false
F.mk_finish evercrypt_hash SHA3_384 (EverCrypt.Hash.state SHA3_384) (G.erased unit)
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "total" ]
[ "Hacl.Streaming.Functor.mk_finish", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.SHA3_384", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val finish_sha3_384:finish_st SHA3_384
[]
EverCrypt.Hash.Incremental.finish_sha3_384
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
EverCrypt.Hash.Incremental.finish_st Spec.Hash.Definitions.SHA3_384
{ "end_col": 125, "end_line": 213, "start_col": 42, "start_line": 213 }
Prims.Tot
val finish_blake2b:finish_st Blake2B
[ { "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...
false
let finish_blake2b: finish_st Blake2B = F.mk_finish evercrypt_hash Blake2B (EverCrypt.Hash.state Blake2B) (G.erased unit)
val finish_blake2b:finish_st Blake2B let finish_blake2b:finish_st Blake2B =
false
null
false
F.mk_finish evercrypt_hash Blake2B (EverCrypt.Hash.state Blake2B) (G.erased unit)
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "total" ]
[ "Hacl.Streaming.Functor.mk_finish", "Spec.Hash.Definitions.fixed_len_alg", "EverCrypt.Hash.Incremental.evercrypt_hash", "Spec.Hash.Definitions.Blake2B", "EverCrypt.Hash.state", "FStar.Ghost.erased", "Prims.unit" ]
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val finish_blake2b:finish_st Blake2B
[]
EverCrypt.Hash.Incremental.finish_blake2b
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
EverCrypt.Hash.Incremental.finish_st Spec.Hash.Definitions.Blake2B
{ "end_col": 121, "end_line": 223, "start_col": 40, "start_line": 223 }
Prims.Tot
val hash_224: Hacl.Hash.Definitions.hash_st SHA2_224
[ { "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...
false
let hash_224 input input_len dst = 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 input input_len dst
val hash_224: Hacl.Hash.Definitions.hash_st SHA2_224 let hash_224 input input_len dst =
false
null
false
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 input input_len dst
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "total" ]
[ "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.Buffer.length", "LowStar.Buffer.trivial_preorder", "Lib.IntTypes.v", ...
[]
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...
false
true
EverCrypt.Hash.Incremental.fst
{ "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...
null
val hash_224: Hacl.Hash.Definitions.hash_st SHA2_224
[]
EverCrypt.Hash.Incremental.hash_224
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Hash.Definitions.hash_st Spec.Hash.Definitions.SHA2_224
{ "end_col": 80, "end_line": 276, "start_col": 2, "start_line": 274 }
FStar.HyperStack.ST.Stack
val update (i: G.erased Hash.alg) (s: F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (data: B.buffer uint8) (len: UInt32.t) : Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i s data len h0) (ensures fun h0 e h1 -> ...
[ { "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...
false
let update (i: G.erased Hash.alg) (s:F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (data: B.buffer uint8) (len: UInt32.t): Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i s data len h0) (ensures fun h0 e h1 -> match e with | EverCrypt.E...
val update (i: G.erased Hash.alg) (s: F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (data: B.buffer uint8) (len: UInt32.t) : Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i s data len h0) (ensures fun h0 e h1 -> ...
true
null
false
match F.update evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit) s data len with | Hacl.Streaming.Types.Success -> EverCrypt.Error.Success | Hacl.Streaming.Types.MaximumLengthExceeded -> EverCrypt.Error.MaximumLengthExceeded
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[]
[ "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",...
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val update (i: G.erased Hash.alg) (s: F.state evercrypt_hash i (EverCrypt.Hash.state i) (G.erased unit)) (data: B.buffer uint8) (len: UInt32.t) : Stack EverCrypt.Error.error_code (requires fun h0 -> F.update_pre evercrypt_hash i s data len h0) (ensures fun h0 e h1 -> ...
[]
EverCrypt.Hash.Incremental.update
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: FStar.Ghost.erased EverCrypt.Hash.alg -> s: 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) -> data: LowStar.Buffer.buffer Hacl.Streaming.Interface.ui...
{ "end_col": 87, "end_line": 193, "start_col": 2, "start_line": 191 }
Prims.Tot
val prev_length_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Incremental.prev_length_t a
[ { "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...
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
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 =
false
null
false
if is_keccak a then () else i
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "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" ]
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val prev_length_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Incremental.prev_length_t a
[]
EverCrypt.Hash.Incremental.prev_length_of_nat
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 5, "end_line": 96, "start_col": 2, "start_line": 93 }
Prims.Tot
val extra_state_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Definitions.extra_state a
[ { "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...
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 else ()
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 =
false
null
false
if is_blake a then i
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "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" ]
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val extra_state_of_nat (a: hash_alg) (i: nat{i % U32.v (block_len a) = 0}) : Spec.Hash.Definitions.extra_state a
[]
EverCrypt.Hash.Incremental.extra_state_of_nat
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 6, "end_line": 87, "start_col": 2, "start_line": 84 }
Prims.Tot
val hash_len (a: Hash.alg) : (x: UInt32.t{UInt32.v x == Spec.Agile.Hash.hash_length a})
[ { "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...
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_has...
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}) =
false
null
false
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...
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "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....
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val hash_len (a: Hash.alg) : (x: UInt32.t{UInt32.v x == Spec.Agile.Hash.hash_length a})
[]
EverCrypt.Hash.Incremental.hash_len
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: EverCrypt.Hash.alg -> x: FStar.UInt32.t{FStar.UInt32.v x == Spec.Hash.Definitions.hash_length a}
{ "end_col": 31, "end_line": 73, "start_col": 2, "start_line": 61 }
Prims.Tot
val hash_256: Hacl.Hash.Definitions.hash_st SHA2_256
[ { "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...
false
let hash_256 input input_len dst = 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 input input_len dst
val hash_256: Hacl.Hash.Definitions.hash_st SHA2_256 let hash_256 input input_len dst =
false
null
false
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 input input_len dst
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "total" ]
[ "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.Buffer.length", "LowStar.Buffer.trivial_preorder", "Lib.IntTypes.v", ...
[]
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...
false
true
EverCrypt.Hash.Incremental.fst
{ "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...
null
val hash_256: Hacl.Hash.Definitions.hash_st SHA2_256
[]
EverCrypt.Hash.Incremental.hash_256
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Hash.Definitions.hash_st Spec.Hash.Definitions.SHA2_256
{ "end_col": 80, "end_line": 268, "start_col": 2, "start_line": 265 }
FStar.HyperStack.ST.Stack
val hash: a:Hash.alg -> dst:B.buffer Lib.IntTypes.uint8 {B.length dst = hash_length a} -> input:B.buffer Lib.IntTypes.uint8 -> len:FStar.UInt32.t {B.length input = FStar.UInt32.v len /\ FStar.UInt32.v len `less_than_max_input_length` a} -> Stack unit (requires fun h0 -> B.live h0 dst /\ B.live h0 in...
[ { "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...
false
let hash a dst input len = match a with | MD5 -> Hacl.Hash.MD5.legacy_hash input len dst | SHA1 -> Hacl.Hash.SHA1.legacy_hash input len dst | SHA2_224 -> hash_224 input len dst | SHA2_256 -> hash_256 input len dst | SHA2_384 -> Hacl.Streaming.SHA2.hash_384 input len dst | SHA2_512 -> Hacl.Streaming.SHA2.h...
val hash: a:Hash.alg -> dst:B.buffer Lib.IntTypes.uint8 {B.length dst = hash_length a} -> input:B.buffer Lib.IntTypes.uint8 -> len:FStar.UInt32.t {B.length input = FStar.UInt32.v len /\ FStar.UInt32.v len `less_than_max_input_length` a} -> Stack unit (requires fun h0 -> B.live h0 dst /\ B.live h0 in...
true
null
false
match a with | MD5 -> Hacl.Hash.MD5.legacy_hash input len dst | SHA1 -> Hacl.Hash.SHA1.legacy_hash input len dst | SHA2_224 -> hash_224 input len dst | SHA2_256 -> hash_256 input len dst | SHA2_384 -> Hacl.Streaming.SHA2.hash_384 input len dst | SHA2_512 -> Hacl.Streaming.SHA2.hash_512 input len dst | SHA3_224 -> Hacl....
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[]
[ "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....
[]
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...
false
false
EverCrypt.Hash.Incremental.fst
{ "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...
null
val hash: a:Hash.alg -> dst:B.buffer Lib.IntTypes.uint8 {B.length dst = hash_length a} -> input:B.buffer Lib.IntTypes.uint8 -> len:FStar.UInt32.t {B.length input = FStar.UInt32.v len /\ FStar.UInt32.v len `less_than_max_input_length` a} -> Stack unit (requires fun h0 -> B.live h0 dst /\ B.live h0 in...
[]
EverCrypt.Hash.Incremental.hash
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: EverCrypt.Hash.alg -> dst: LowStar.Buffer.buffer Lib.IntTypes.uint8 {LowStar.Monotonic.Buffer.length dst = Spec.Hash.Definitions.hash_length a} -> input: LowStar.Buffer.buffer Lib.IntTypes.uint8 -> len: FStar.UInt32.t { LowStar.Monotonic.Buffer.length input = FStar.UInt32...
{ "end_col": 54, "end_line": 337, "start_col": 2, "start_line": 309 }
Prims.Tot
val evercrypt_hash:block Hash.alg
[ { "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...
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 // No vectorization (fun _ -> 0ul) (fun _ _ -> S.empty) (fun a _ -> S...
val evercrypt_hash:block Hash.alg let evercrypt_hash:block Hash.alg =
false
null
false
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_...
{ "checked_file": "EverCrypt.Hash.Incremental.fst.checked", "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....
[ "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...
[]
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...
false
true
EverCrypt.Hash.Incremental.fst
{ "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...
null
val evercrypt_hash:block Hash.alg
[]
EverCrypt.Hash.Incremental.evercrypt_hash
{ "file_name": "providers/evercrypt/fst/EverCrypt.Hash.Incremental.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Streaming.Interface.block Spec.Hash.Definitions.fixed_len_alg
{ "end_col": 55, "end_line": 148, "start_col": 2, "start_line": 102 }
Prims.Tot
val nat32_to_word (x:nat32) : word
[ { "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 }, { ...
false
let nat32_to_word = to_uint32
val nat32_to_word (x:nat32) : word let nat32_to_word =
false
null
false
to_uint32
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Vale.SHA.SHA_helpers.to_uint32" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val nat32_to_word (x:nat32) : word
[]
Vale.SHA.SHA_helpers.nat32_to_word
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Vale.Def.Words_s.nat32 -> Vale.SHA.SHA_helpers.word
{ "end_col": 29, "end_line": 56, "start_col": 20, "start_line": 56 }
Prims.Tot
val sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : quad32
[ { "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 }, { ...
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''
val sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : quad32 let sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : quad32 =
false
null
false
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''
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : quad32
[]
Vale.SHA.SHA_helpers.sha256_rnds2_spec_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
src1: Vale.Def.Types_s.quad32 -> src2: Vale.Def.Types_s.quad32 -> wk: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
{ "end_col": 8, "end_line": 167, "start_col": 61, "start_line": 164 }
Prims.Tot
[ { "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 }, { ...
false
let shuffle_opaque = shuffle
let shuffle_opaque =
false
null
false
shuffle
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Spec.SHA2.shuffle" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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
[]
Vale.SHA.SHA_helpers.shuffle_opaque
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 35, "end_line": 647, "start_col": 28, "start_line": 647 }
Prims.Tot
val word:Type0
[ { "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 }, { ...
false
let word = Lib.IntTypes.uint32
val word:Type0 let word =
false
null
false
Lib.IntTypes.uint32
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Lib.IntTypes.uint32" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val word:Type0
[]
Vale.SHA.SHA_helpers.word
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 30, "end_line": 28, "start_col": 11, "start_line": 28 }
Prims.Tot
val k : (s:seq word {length s = size_k_w_256})
[ { "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 }, { ...
false
let k = (Spec.SHA2.k0 SHA2_256)
val k : (s:seq word {length s = size_k_w_256}) let k =
false
null
false
(Spec.SHA2.k0 SHA2_256)
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Spec.SHA2.k0", "Spec.Hash.Definitions.SHA2_256" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val k : (s:seq word {length s = size_k_w_256})
[]
Vale.SHA.SHA_helpers.k
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: FStar.Seq.Base.seq Vale.SHA.SHA_helpers.word {FStar.Seq.Base.length s = Vale.SHA.SHA_helpers.size_k_w_256}
{ "end_col": 31, "end_line": 29, "start_col": 8, "start_line": 29 }
Prims.Tot
val to_uint32 (n: nat32) : Lib.IntTypes.uint32
[ { "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 }, { ...
false
let to_uint32 (n:nat32) : Lib.IntTypes.uint32 = Lib.IntTypes.u32 n
val to_uint32 (n: nat32) : Lib.IntTypes.uint32 let to_uint32 (n: nat32) : Lib.IntTypes.uint32 =
false
null
false
Lib.IntTypes.u32 n
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Vale.Def.Words_s.nat32", "Lib.IntTypes.u32", "Lib.IntTypes.uint32" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val to_uint32 (n: nat32) : Lib.IntTypes.uint32
[]
Vale.SHA.SHA_helpers.to_uint32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
n: Vale.Def.Words_s.nat32 -> Lib.IntTypes.uint32
{ "end_col": 66, "end_line": 27, "start_col": 48, "start_line": 27 }
Prims.Tot
val vv (u: Lib.IntTypes.uint32) : nat32
[ { "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 }, { ...
false
let vv (u:Lib.IntTypes.uint32) : nat32 = Lib.IntTypes.v u
val vv (u: Lib.IntTypes.uint32) : nat32 let vv (u: Lib.IntTypes.uint32) : nat32 =
false
null
false
Lib.IntTypes.v u
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Lib.IntTypes.uint32", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Vale.Def.Words_s.nat32" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val vv (u: Lib.IntTypes.uint32) : nat32
[]
Vale.SHA.SHA_helpers.vv
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
u4: Lib.IntTypes.uint32 -> Vale.Def.Words_s.nat32
{ "end_col": 57, "end_line": 26, "start_col": 41, "start_line": 26 }
FStar.Pervasives.Lemma
val lemma_ws_computed_is_ws_quad32 (b: block_w) (t: counter{t < size_k_w_256 - 3}) : Lemma (ws_computed_quad32 t b == ws_quad32 t b)
[ { "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 }, { ...
false
let lemma_ws_computed_is_ws_quad32 (b:block_w) (t:counter{t < size_k_w_256 - 3}) : Lemma (ws_computed_quad32 t b == ws_quad32 t b) = let w = ws_computed_quad32 t b in let w' = ws_quad32 t b in lemma_ws_computed_is_ws_opaque b t; lemma_ws_computed_is_ws_opaque b (t+1); lemma_ws_computed_is_ws_opaque b (t+2...
val lemma_ws_computed_is_ws_quad32 (b: block_w) (t: counter{t < size_k_w_256 - 3}) : Lemma (ws_computed_quad32 t b == ws_quad32 t b) let lemma_ws_computed_is_ws_quad32 (b: block_w) (t: counter{t < size_k_w_256 - 3}) : Lemma (ws_computed_quad32 t b == ws_quad32 t b) =
false
null
true
let w = ws_computed_quad32 t b in let w' = ws_quad32 t b in lemma_ws_computed_is_ws_opaque b t; lemma_ws_computed_is_ws_opaque b (t + 1); lemma_ws_computed_is_ws_opaque b (t + 2); lemma_ws_computed_is_ws_opaque b (t + 3); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "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.lemma_ws_computed_is_ws_opaque", "Prims.op_Addition", "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helper...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_ws_computed_is_ws_quad32 (b: block_w) (t: counter{t < size_k_w_256 - 3}) : Lemma (ws_computed_quad32 t b == ws_quad32 t b)
[]
Vale.SHA.SHA_helpers.lemma_ws_computed_is_ws_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256 - 3} -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.ws_computed_quad32 t b == Vale.SHA.SHA_helpers.ws_quad32 t b)
{ "end_col": 4, "end_line": 533, "start_col": 3, "start_line": 526 }
FStar.Pervasives.Lemma
val lemma_add_wrap_quad32_is_add_mod_quad32 (q0 q1: quad32) : Lemma (add_mod_quad32 q0 q1 == add_wrap_quad32 q0 q1)
[ { "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 }, { ...
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; ()
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) =
false
null
true
FStar.Classical.forall_intro_2 lemma_add_wrap_is_add_mod; ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_add_wrap_quad32_is_add_mod_quad32 (q0 q1: quad32) : Lemma (add_mod_quad32 q0 q1 == add_wrap_quad32 q0 q1)
[]
Vale.SHA.SHA_helpers.lemma_add_wrap_quad32_is_add_mod_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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)
{ "end_col": 4, "end_line": 439, "start_col": 2, "start_line": 438 }
Prims.Tot
val ws_computed_quad32 (t: counter{t < size_k_w_256 - 3}) (block: block_w) : quad32
[ { "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 }, { ...
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)))
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 =
false
null
false
Mkfour (vv (ws_computed block t)) (vv (ws_computed block (t + 1))) (vv (ws_computed block (t + 2))) (vv (ws_computed block (t + 3)))
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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", ...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val ws_computed_quad32 (t: counter{t < size_k_w_256 - 3}) (block: block_w) : quad32
[]
Vale.SHA.SHA_helpers.ws_computed_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 44, "end_line": 522, "start_col": 7, "start_line": 519 }
Prims.Tot
val byte_to_nat8 (b:byte) : nat8
[ { "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 }, { ...
false
let byte_to_nat8 = UInt8.v
val byte_to_nat8 (b:byte) : nat8 let byte_to_nat8 =
false
null
false
UInt8.v
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "FStar.UInt8.v" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val byte_to_nat8 (b:byte) : nat8
[]
Vale.SHA.SHA_helpers.byte_to_nat8
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.SHA.SHA_helpers.byte -> Vale.Def.Words_s.nat8
{ "end_col": 26, "end_line": 57, "start_col": 19, "start_line": 57 }
Prims.Tot
val sha256_rnds2_spec_update_quad32 (abef cdgh: quad32) (wk: UInt32.t) : (quad32 & quad32)
[ { "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 }, { ...
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...
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) =
false
null
false
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'...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val sha256_rnds2_spec_update_quad32 (abef cdgh: quad32) (wk: UInt32.t) : (quad32 & quad32)
[]
Vale.SHA.SHA_helpers.sha256_rnds2_spec_update_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 16, "end_line": 162, "start_col": 90, "start_line": 157 }
Prims.Tot
val _sigma0_quad32 (q: quad32) : quad32
[ { "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 }, { ...
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)))
val _sigma0_quad32 (q: quad32) : quad32 let _sigma0_quad32 (q: quad32) : quad32 =
false
null
false
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)))
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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....
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val _sigma0_quad32 (q: quad32) : quad32
[]
Vale.SHA.SHA_helpers._sigma0_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
q: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
{ "end_col": 50, "end_line": 412, "start_col": 2, "start_line": 409 }
Prims.Tot
val ws_computed (b: block_w) (t: counter{t < size_k_w_256}) : Tot (UInt32.t)
[ { "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 }, { ...
false
let ws_computed (b:block_w) (t:counter{t < size_k_w_256}): Tot (UInt32.t) = if t < block_word_length SHA2_256 then to_uint32 (ws_opaque b t) else let t16 = to_uint32 (ws_opaque b (t - 16)) in let t15 = to_uint32 (ws_opaque b (t - 15)) in let t7 = to_uint32 (ws_opaque b (t - 7)) in let t2 = to_uint...
val ws_computed (b: block_w) (t: counter{t < size_k_w_256}) : Tot (UInt32.t) let ws_computed (b: block_w) (t: counter{t < size_k_w_256}) : Tot (UInt32.t) =
false
null
false
if t < block_word_length SHA2_256 then to_uint32 (ws_opaque b t) else let t16 = to_uint32 (ws_opaque b (t - 16)) in let t15 = to_uint32 (ws_opaque b (t - 15)) in let t7 = to_uint32 (ws_opaque b (t - 7)) in let t2 = to_uint32 (ws_opaque b (t - 2)) in let s1 = _sigma1 SHA2_256 t2 in let s0 = _sigma0 SHA2_256 ...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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", "Spec.Hash.Definitions.block_word_length", "Spec.Hash.Definitions.SHA2_256", "Vale.SHA.SHA_helpers.to_uint32", "Vale.SHA.SHA_helpers.ws_opaque", "Prims.bool", "L...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val ws_computed (b: block_w) (t: counter{t < size_k_w_256}) : Tot (UInt32.t)
[]
Vale.SHA.SHA_helpers.ws_computed
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256} -> FStar.UInt32.t
{ "end_col": 27, "end_line": 488, "start_col": 2, "start_line": 479 }
Prims.Tot
val sha256_msg1_spec_t (t: counter{t < size_k_w_256 - 1}) (block: block_w) : quad32
[ { "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 }, { ...
false
let sha256_msg1_spec_t (t:counter{t < size_k_w_256 - 1}) (block:block_w) : quad32 = let init = ws_quad32 t block in let next = ws_quad32 (t + 1) block in let msg1 = add_mod_quad32 init (_sigma0_quad32 next) in msg1
val sha256_msg1_spec_t (t: counter{t < size_k_w_256 - 1}) (block: block_w) : quad32 let sha256_msg1_spec_t (t: counter{t < size_k_w_256 - 1}) (block: block_w) : quad32 =
false
null
false
let init = ws_quad32 t block in let next = ws_quad32 (t + 1) block in let msg1 = add_mod_quad32 init (_sigma0_quad32 next) in msg1
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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.Types_s.quad32", "Vale.SHA.SHA_helpers.add_mod_quad32", "Vale.SHA.SHA_helpers._sigma0_quad32", "Vale.SHA.SHA_helpers.ws_quad32", ...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val sha256_msg1_spec_t (t: counter{t < size_k_w_256 - 1}) (block: block_w) : quad32
[]
Vale.SHA.SHA_helpers.sha256_msg1_spec_t
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256 - 1} -> block: Vale.SHA.SHA_helpers.block_w -> Vale.Def.Types_s.quad32
{ "end_col": 6, "end_line": 553, "start_col": 83, "start_line": 549 }
Prims.Tot
val nat8_to_byte (b:nat8) : byte
[ { "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 }, { ...
false
let nat8_to_byte = UInt8.uint_to_t
val nat8_to_byte (b:nat8) : byte let nat8_to_byte =
false
null
false
UInt8.uint_to_t
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "FStar.UInt8.uint_to_t" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val nat8_to_byte (b:nat8) : byte
[]
Vale.SHA.SHA_helpers.nat8_to_byte
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Def.Words_s.nat8 -> Vale.SHA.SHA_helpers.byte
{ "end_col": 34, "end_line": 58, "start_col": 19, "start_line": 58 }
Prims.Tot
val update_multi_transparent (hash:hash256) (blocks:bytes_blocks):hash256
[ { "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 }, { ...
false
let update_multi_transparent (hash:hash256) (blocks:bytes_blocks) = update_multi SHA2_256 hash () blocks
val update_multi_transparent (hash:hash256) (blocks:bytes_blocks):hash256 let update_multi_transparent (hash: hash256) (blocks: bytes_blocks) =
false
null
false
update_multi SHA2_256 hash () blocks
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.bytes_blocks", "Spec.Agile.Hash.update_multi", "Spec.Hash.Definitions.SHA2_256" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val update_multi_transparent (hash:hash256) (blocks:bytes_blocks):hash256
[]
Vale.SHA.SHA_helpers.update_multi_transparent
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
hash: Vale.SHA.SHA_helpers.hash256 -> blocks: Vale.SHA.SHA_helpers.bytes_blocks -> Vale.SHA.SHA_helpers.hash256
{ "end_col": 38, "end_line": 52, "start_col": 2, "start_line": 52 }
Prims.Tot
val ws_partial_def (t:counter) (block:block_w) : quad32
[ { "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 }, { ...
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
val ws_partial_def (t:counter) (block:block_w) : quad32 let ws_partial_def (t: counter) (block: block_w) : quad32 =
false
null
false
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
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val ws_partial_def (t:counter) (block:block_w) : quad32
[]
Vale.SHA.SHA_helpers.ws_partial_def
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> Vale.Def.Types_s.quad32
{ "end_col": 21, "end_line": 427, "start_col": 4, "start_line": 421 }
FStar.Pervasives.Lemma
[ { "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 }, { ...
false
let make_ordered_hash_reveal = opaque_revealer (`%make_ordered_hash) make_ordered_hash make_ordered_hash_def
let make_ordered_hash_reveal =
false
null
true
opaque_revealer (`%make_ordered_hash) make_ordered_hash make_ordered_hash_def
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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._...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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)
[]
Vale.SHA.SHA_helpers.make_ordered_hash_reveal
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.make_ordered_hash == Vale.SHA.SHA_helpers.make_ordered_hash_def)
{ "end_col": 120, "end_line": 116, "start_col": 43, "start_line": 116 }
Prims.Tot
val shuffle_core_opaque (block:block_w) (hash:hash256) (t:counter{t < size_k_w_256}):hash256
[ { "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 }, { ...
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
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 =
false
null
false
shuffle_core_opaque_aux SHA2_256 block hash t
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val shuffle_core_opaque (block:block_w) (hash:hash256) (t:counter{t < size_k_w_256}):hash256
[]
Vale.SHA.SHA_helpers.shuffle_core_opaque
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 47, "end_line": 44, "start_col": 2, "start_line": 44 }
FStar.Pervasives.Lemma
val lemma_sha256_msg2 (src1 src2:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w_256 - 3 /\ (let step1 = ws_partial t block in let t_minus_7 = ws_quad32 (t-7) block in src1 == add_wrap_quad32 step1 t_minus_7 /\ src2.hi2 == ws_opaque blo...
[ { "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 }, { ...
false
let lemma_sha256_msg2 (src1 src2:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w(SHA2_256) - 3 /\ (let step1 = ws_partial t block in let t_minus_7 = ws_quad32 (t-7) block in src1 == add_wrap_quad32 step1 t_minus_7 /\ src2.hi2 == ws_opaq...
val lemma_sha256_msg2 (src1 src2:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w_256 - 3 /\ (let step1 = ws_partial t block in let t_minus_7 = ws_quad32 (t-7) block in src1 == add_wrap_quad32 step1 t_minus_7 /\ src2.hi2 == ws_opaque blo...
false
null
true
let step1 = ws_partial t block in let t_minus_7 = ws_quad32 (t - 7) block in lemma_sha256_msg1_spec_t_partial t block; lemma_add_wrap_quad32_is_add_mod_quad32 step1 t_minus_7; lemma_sha256_step2 src1 src2 t block; lemma_ws_computed_is_ws_quad32 block t; ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Prims.unit", "Vale.SHA.SHA_helpers.lemma_ws_computed_is_ws_quad32", "Vale.SHA.SHA_helpers.lemma_sha256_step2", "Vale.SHA.SHA_helpers.lemma_add_wrap_quad32_is_add_mod_quad32", "Vale.SHA.SHA_helpers.lemma_sha256_...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_sha256_msg2 (src1 src2:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w_256 - 3 /\ (let step1 = ws_partial t block in let t_minus_7 = ws_quad32 (t-7) block in src1 == add_wrap_quad32 step1 t_minus_7 /\ src2.hi2 == ws_opaque blo...
[]
Vale.SHA.SHA_helpers.lemma_sha256_msg2
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
src1: Vale.Def.Types_s.quad32 -> src2: Vale.Def.Types_s.quad32 -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> FStar.Pervasives.Lemma (requires 16 <= t /\ t < Vale.SHA.SHA_helpers.size_k_w_256 - 3 /\ (let step1 = Vale.SHA.SHA_helpers.ws_partial t blo...
{ "end_col": 4, "end_line": 615, "start_col": 3, "start_line": 607 }
FStar.Pervasives.Lemma
[ { "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 }, { ...
false
let make_hash_reveal = opaque_revealer (`%make_hash) make_hash make_hash_def
let make_hash_reveal =
false
null
true
opaque_revealer (`%make_hash) make_hash make_hash_def
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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._...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val make_hash_reveal : _: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.make_hash == Vale.SHA.SHA_helpers.make_hash_def)
[]
Vale.SHA.SHA_helpers.make_hash_reveal
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.make_hash == Vale.SHA.SHA_helpers.make_hash_def)
{ "end_col": 88, "end_line": 87, "start_col": 35, "start_line": 87 }
FStar.Pervasives.Lemma
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)
[ { "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 }, { ...
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...
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) =
false
null
true
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...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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", "...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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)
[]
Vale.SHA.SHA_helpers.lemma_add_mod_ws_rearrangement
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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)
{ "end_col": 3, "end_line": 476, "start_col": 2, "start_line": 463 }
FStar.Pervasives.Lemma
val lemma_sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : Lemma (sha256_rnds2_spec src1 src2 wk == sha256_rnds2_spec_quad32 src1 src2 wk)
[ { "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 }, { ...
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 (); ()
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) =
false
null
true
sha256_rnds2_spec_reveal (); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_sha256_rnds2_spec_quad32 (src1 src2 wk: quad32) : Lemma (sha256_rnds2_spec src1 src2 wk == sha256_rnds2_spec_quad32 src1 src2 wk)
[]
Vale.SHA.SHA_helpers.lemma_sha256_rnds2_spec_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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)
{ "end_col": 4, "end_line": 173, "start_col": 2, "start_line": 172 }
Prims.Tot
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)
[ { "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 }, { ...
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 ...
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}) ...
false
null
false
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')
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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", ...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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)
[]
Vale.SHA.SHA_helpers.sha256_rnds2_spec_update_core_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 16, "end_line": 312, "start_col": 141, "start_line": 307 }
Prims.Pure
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 /\ ...
[ { "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 }, { ...
false
let make_ordered_hash = opaque_make make_ordered_hash_def
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 /\ ...
false
null
false
opaque_make make_ordered_hash_def
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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.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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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 /\ ...
[]
Vale.SHA.SHA_helpers.make_ordered_hash
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
abcd: Vale.Def.Types_s.quad32 -> efgh: Vale.Def.Types_s.quad32 -> Prims.Pure Vale.SHA.SHA_helpers.hash256
{ "end_col": 76, "end_line": 115, "start_col": 43, "start_line": 115 }
FStar.Pervasives.Lemma
val lemma_le_bytes_to_seq_quad32_empty (b: seq nat8) : Lemma (requires b == empty) (ensures le_bytes_to_seq_quad32 b == empty)
[ { "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 }, { ...
false
let lemma_le_bytes_to_seq_quad32_empty (b:seq nat8) : Lemma (requires b == empty) (ensures le_bytes_to_seq_quad32 b == empty) = reveal_opaque (`%le_bytes_to_seq_quad32) le_bytes_to_seq_quad32; assert (equal (le_bytes_to_seq_quad32 b) empty)
val lemma_le_bytes_to_seq_quad32_empty (b: seq nat8) : Lemma (requires b == empty) (ensures le_bytes_to_seq_quad32 b == empty) let lemma_le_bytes_to_seq_quad32_empty (b: seq nat8) : Lemma (requires b == empty) (ensures le_bytes_to_seq_quad32 b == empty) =
false
null
true
reveal_opaque (`%le_bytes_to_seq_quad32) le_bytes_to_seq_quad32; assert (equal (le_bytes_to_seq_quad32 b) empty)
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat8", "Prims._assert", "FStar.Seq.Base.equal", "Vale.Def.Types_s.quad32", "Vale.Def.Types_s.le_bytes_to_seq_quad32", "FStar.Seq.Base.empty", "Prims.unit", "FStar.Pervasives.reveal_opaque", "Vale.Def.Types_s.nat8", "Prims.eq2", "Prims.int", "Prims.op_M...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_le_bytes_to_seq_quad32_empty (b: seq nat8) : Lemma (requires b == empty) (ensures le_bytes_to_seq_quad32 b == empty)
[]
Vale.SHA.SHA_helpers.lemma_le_bytes_to_seq_quad32_empty
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> FStar.Pervasives.Lemma (requires b == FStar.Seq.Base.empty) (ensures Vale.Def.Types_s.le_bytes_to_seq_quad32 b == FStar.Seq.Base.empty)
{ "end_col": 49, "end_line": 714, "start_col": 2, "start_line": 713 }
Prims.Pure
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...
[ { "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 }, { ...
false
let make_hash = opaque_make make_hash_def
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...
false
null
false
opaque_make make_hash_def
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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.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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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...
[]
Vale.SHA.SHA_helpers.make_hash
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> Prims.Pure Vale.SHA.SHA_helpers.hash256
{ "end_col": 60, "end_line": 86, "start_col": 35, "start_line": 86 }
FStar.Pervasives.Lemma
val lemma_sha256_msg1_spec_t (src1 src2: quad32) (t: counter) (block: block_w) : Lemma (requires t < size_k_w_256 - 4 /\ src1 == ws_quad32 t block /\ src2.lo0 == ws_opaque block (t + 4)) (ensures sha256_msg1_spec_t t block == sha256_msg1_spec src1 src2)
[ { "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 }, { ...
false
let lemma_sha256_msg1_spec_t (src1 src2:quad32) (t:counter) (block:block_w) : Lemma (requires t < size_k_w_256 - 4 /\ src1 == ws_quad32 t block /\ src2.lo0 == ws_opaque block (t+4)) (ensures sha256_msg1_spec_t t block == sha256_msg1_spec src1 src2) = sha256_msg1_spec_reveal (); ()
val lemma_sha256_msg1_spec_t (src1 src2: quad32) (t: counter) (block: block_w) : Lemma (requires t < size_k_w_256 - 4 /\ src1 == ws_quad32 t block /\ src2.lo0 == ws_opaque block (t + 4)) (ensures sha256_msg1_spec_t t block == sha256_msg1_spec src1 src2) let lemma_sha256_msg1_spec_t (src1 src2: q...
false
null
true
sha256_msg1_spec_reveal (); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Prims.unit", "Vale.X64.CryptoInstructions_s.sha256_msg1_spec_reveal", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Subtraction", "Vale.SHA.SHA_helpers.size_k_w_256", "Prims.eq2", "Vale.SHA...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_sha256_msg1_spec_t (src1 src2: quad32) (t: counter) (block: block_w) : Lemma (requires t < size_k_w_256 - 4 /\ src1 == ws_quad32 t block /\ src2.lo0 == ws_opaque block (t + 4)) (ensures sha256_msg1_spec_t t block == sha256_msg1_spec src1 src2)
[]
Vale.SHA.SHA_helpers.lemma_sha256_msg1_spec_t
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
src1: Vale.Def.Types_s.quad32 -> src2: Vale.Def.Types_s.quad32 -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> FStar.Pervasives.Lemma (requires t < Vale.SHA.SHA_helpers.size_k_w_256 - 4 /\ src1 == Vale.SHA.SHA_helpers.ws_quad32 t block /\ Mkfour?.lo0...
{ "end_col": 4, "end_line": 576, "start_col": 2, "start_line": 575 }
FStar.Pervasives.Lemma
val lemma_sha256_rnds2_two_steps (abef cdgh xmm0: quad32) (t: counter) (block: block_w) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (vv (k0 SHA2_256).[ t ]) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (vv (k0 SHA2_256).[ t + 1 ]) (ws_opaque block (t + 1))) (ensures ...
[ { "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 }, { ...
false
let lemma_sha256_rnds2_two_steps (abef cdgh xmm0:quad32) (t:counter) (block:block_w) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (vv (k0 SHA2_256).[t] ) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (vv (k0 SHA2_256).[t+1]) (ws_opaque block (t+1)) ) (ensures (let hash0 = ma...
val lemma_sha256_rnds2_two_steps (abef cdgh xmm0: quad32) (t: counter) (block: block_w) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (vv (k0 SHA2_256).[ t ]) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (vv (k0 SHA2_256).[ t + 1 ]) (ws_opaque block (t + 1))) (ensures ...
false
null
true
let hash0 = make_hash abef cdgh in let hash1 = shuffle_core_opaque block hash0 t in let hash2 = shuffle_core_opaque block hash1 (t + 1) in 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)); sha256_rnds2_spec_quad32_is...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Prims.unit", "Vale.SHA.SHA_helpers.lemma_sha256_rnds2_spec_quad32", "Vale.SHA.SHA_helpers.sha256_rnds2_spec_quad32_is_shuffle_core_x2", "Vale.SHA.SHA_helpers.lemma_add_wrap_is_add_mod", "Vale.SHA.SHA_helpers.vv...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_sha256_rnds2_two_steps (abef cdgh xmm0: quad32) (t: counter) (block: block_w) : Lemma (requires t + 1 < size_k_w_256 /\ xmm0.lo0 == add_wrap (vv (k0 SHA2_256).[ t ]) (ws_opaque block t) /\ xmm0.lo1 == add_wrap (vv (k0 SHA2_256).[ t + 1 ]) (ws_opaque block (t + 1))) (ensures ...
[]
Vale.SHA.SHA_helpers.lemma_sha256_rnds2_two_steps
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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 -> FStar.Pervasives.Lemma (requires t + 1 < Vale.SHA.SHA_helpers.size_k_w_256 /\ Mkfour?.lo0 xmm0 == ...
{ "end_col": 4, "end_line": 388, "start_col": 3, "start_line": 380 }
FStar.Pervasives.Lemma
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...
[ { "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 }, { ...
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_2...
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...
false
null
true
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 ...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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...
[]
Vale.SHA.SHA_helpers.lemma_add_mod_e
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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 u105 = FStar.UInt32.add_mod (Spec....
{ "end_col": 4, "end_line": 281, "start_col": 3, "start_line": 266 }
FStar.Pervasives.Lemma
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...
[ { "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 }, { ...
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_rnds2_spec_update_quad32 abef cdgh wk) = let hash...
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...
false
null
true
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...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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...
[]
Vale.SHA.SHA_helpers.lemma_rnds_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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...
{ "end_col": 4, "end_line": 326, "start_col": 3, "start_line": 317 }
Prims.Tot
[ { "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 }, { ...
false
let ws_opaque_aux = ws
let ws_opaque_aux =
false
null
false
ws
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Spec.SHA2.Lemmas.ws" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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
[]
Vale.SHA.SHA_helpers.ws_opaque_aux
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 29, "end_line": 38, "start_col": 27, "start_line": 38 }
Prims.Tot
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...
[ { "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 }, { ...
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 /...
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...
false
null
false
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 let hash = seq_of_list l in assert_norm (len...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Vale.Def.Types_s.quad32", "Prims.unit", "FStar.Seq.Properties.elim_of_list", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "FStar.Seq.Base.seq", "Prims.b2t", "Prims.op_Equality", "Prims.nat"...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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...
[]
Vale.SHA.SHA_helpers.make_ordered_hash_def
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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...
{ "end_col": 8, "end_line": 114, "start_col": 3, "start_line": 101 }
FStar.Pervasives.Lemma
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)
[ { "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 }, { ...
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) } ...
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) =
false
null
true
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 + ...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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....
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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)
[]
Vale.SHA.SHA_helpers.lemma_add_mod_associates_U32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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)
{ "end_col": 39, "end_line": 202, "start_col": 2, "start_line": 190 }
FStar.Pervasives.Lemma
val lemma_le_bytes_to_hash_quads (s: seq quad32) : Lemma (requires length s == 2) (ensures (let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in rhs.[ 0 ] == to_uint32 (s.[ 0 ]).lo0 /\ rhs.[ 1 ] == to_uint32 (s.[ 0 ]).lo1 /\ rhs.[ 2 ] == to_uint32 (s.[ 0 ]).hi2 /\ rhs.[ 3 ] == ...
[ { "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 }, { ...
false
let lemma_le_bytes_to_hash_quads (s:seq quad32) : Lemma (requires length s == 2) (ensures (let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in rhs.[0] == to_uint32 (s.[0]).lo0 /\ rhs.[1] == to_uint32 (s.[0]).lo1 /\ rhs.[2] == to_uint32 (s.[0]).hi2 /\ rhs.[3] == t...
val lemma_le_bytes_to_hash_quads (s: seq quad32) : Lemma (requires length s == 2) (ensures (let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in rhs.[ 0 ] == to_uint32 (s.[ 0 ]).lo0 /\ rhs.[ 1 ] == to_uint32 (s.[ 0 ]).lo1 /\ rhs.[ 2 ] == to_uint32 (s.[ 0 ]).hi2 /\ rhs.[ 3 ] == ...
false
null
true
reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq_LE #nat32); let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in lemma_le_bytes_to_hash_quads_part1 s; assert (rhs == Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s)); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Prims.unit", "Prims._assert", "Prims.eq2", "Vale.SHA.SHA_helpers.word", "Vale.Lib.Seqs_s.seq_map", "Vale.Def.Types_s.nat32", "Vale.SHA.SHA_helpers.nat32_to_word", "Vale.Def.Words.Seq_s.seq_four_to_seq_LE", "Vale.SHA.SHA_helpers.lemma_le_bytes_to_...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_le_bytes_to_hash_quads (s: seq quad32) : Lemma (requires length s == 2) (ensures (let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in rhs.[ 0 ] == to_uint32 (s.[ 0 ]).lo0 /\ rhs.[ 1 ] == to_uint32 (s.[ 0 ]).lo1 /\ rhs.[ 2 ] == to_uint32 (s.[ 0 ]).hi2 /\ rhs.[ 3 ] == ...
[]
Vale.SHA.SHA_helpers.lemma_le_bytes_to_hash_quads
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s == 2) (ensures (let rhs = Vale.SHA.SHA_helpers.le_bytes_to_hash (Vale.Def.Types_s.le_seq_quad32_to_bytes s) in rhs.[ 0 ] == Vale.SHA.SHA_helpers.to_uint32 (Mkfour?.lo...
{ "end_col": 4, "end_line": 1068, "start_col": 2, "start_line": 1064 }
FStar.Pervasives.Lemma
val lemma_update_multi_quads (s:seq quad32) (hash_orig:hash256) (bound:nat) : Lemma (requires bound + 4 <= length s) (ensures (let prefix_LE = slice s 0 bound in let prefix_BE = reverse_bytes_nat32_quad32_seq prefix_LE in let h_prefix = update_multi_quads prefix_BE hash_orig in ...
[ { "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 }, { ...
false
let lemma_update_multi_quads (s:seq quad32) (hash_orig:hash256) (bound:nat) : Lemma (requires bound + 4 <= length s) (ensures (let prefix_LE = slice s 0 bound in let prefix_BE = reverse_bytes_nat32_quad32_seq prefix_LE in let h_prefix = update_multi_quads prefix_BE hash_orig in ...
val lemma_update_multi_quads (s:seq quad32) (hash_orig:hash256) (bound:nat) : Lemma (requires bound + 4 <= length s) (ensures (let prefix_LE = slice s 0 bound in let prefix_BE = reverse_bytes_nat32_quad32_seq prefix_LE in let h_prefix = update_multi_quads prefix_BE hash_orig in ...
false
null
true
let prefix_LE = slice s 0 bound in let prefix_BE = reverse_bytes_nat32_quad32_seq prefix_LE in let h_prefix = update_multi_quads prefix_BE hash_orig in let block_quads_LE = slice s bound (bound + 4) in let block_quads_BE = reverse_bytes_nat32_quad32_seq block_quads_LE in let input_LE = slice s 0 (bound + 4) in let inpu...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.hash256", "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.bool", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "FStar.Pervasives.Native.tuple2", "FStar.Seq.Properties.split", "Prims.op_Subtraction", "FSta...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_update_multi_quads (s:seq quad32) (hash_orig:hash256) (bound:nat) : Lemma (requires bound + 4 <= length s) (ensures (let prefix_LE = slice s 0 bound in let prefix_BE = reverse_bytes_nat32_quad32_seq prefix_LE in let h_prefix = update_multi_quads prefix_BE hash_orig in ...
[]
Vale.SHA.SHA_helpers.lemma_update_multi_quads
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> hash_orig: Vale.SHA.SHA_helpers.hash256 -> bound: Prims.nat -> FStar.Pervasives.Lemma (requires bound + 4 <= FStar.Seq.Base.length s) (ensures (let prefix_LE = FStar.Seq.Base.slice s 0 bound in let prefix_BE = Vale.Arch.Types.revers...
{ "end_col": 3, "end_line": 1035, "start_col": 3, "start_line": 1016 }
FStar.Pervasives.Lemma
val lemma_quads_to_block (qs:seq quad32) : Lemma (requires length qs == 4) (ensures (let block = quads_to_block qs in forall i . {:pattern (index qs i)} 0 <= i /\ i < 4 ==> (qs.[i]).lo0 == ws_opaque block (4 * i + 0) /\ (qs.[i]).lo1 == ws_opaque block (4 * i + 1) /\ ...
[ { "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 }, { ...
false
let lemma_quads_to_block qs = reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq_LE #nat32); reveal_opaque (`%ws) ws
val lemma_quads_to_block (qs:seq quad32) : Lemma (requires length qs == 4) (ensures (let block = quads_to_block qs in forall i . {:pattern (index qs i)} 0 <= i /\ i < 4 ==> (qs.[i]).lo0 == ws_opaque block (4 * i + 0) /\ (qs.[i]).lo1 == ws_opaque block (4 * i + 1) /\ ...
false
null
true
reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq_LE #nat32); reveal_opaque (`%ws) ws
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "FStar.Pervasives.reveal_opaque", "Spec.Hash.Definitions.sha2_alg", "Spec.SHA2.block_w", "Spec.SHA2.counter", "Prims.b2t", "Prims.op_LessThan", "Spec.SHA2.size_k_w", "Spec.Hash.Definitions.word", "Spec.SHA2.Lemmas.ws", "Prims.unit", "Vale.Def....
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_quads_to_block (qs:seq quad32) : Lemma (requires length qs == 4) (ensures (let block = quads_to_block qs in forall i . {:pattern (index qs i)} 0 <= i /\ i < 4 ==> (qs.[i]).lo0 == ws_opaque block (4 * i + 0) /\ (qs.[i]).lo1 == ws_opaque block (4 * i + 1) /\ ...
[]
Vale.SHA.SHA_helpers.lemma_quads_to_block
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
qs: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length qs == 4) (ensures (let block = Vale.SHA.SHA_helpers.quads_to_block qs in forall (i: Prims.int { i >= 0 /\ i < FStar.Seq.Base.length qs /\ (i >= 0) /\ (i < FStar.Se...
{ "end_col": 25, "end_line": 624, "start_col": 2, "start_line": 623 }
Prims.Pure
[ { "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 }, { ...
false
let update_multi_opaque_aux = opaque_make update_multi
let update_multi_opaque_aux =
false
null
false
opaque_make update_multi
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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.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" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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)
[]
Vale.SHA.SHA_helpers.update_multi_opaque_aux
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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)
{ "end_col": 73, "end_line": 46, "start_col": 49, "start_line": 46 }
Prims.Tot
[ { "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 }, { ...
false
let shuffle_core_opaque_aux = shuffle_core
let shuffle_core_opaque_aux =
false
null
false
shuffle_core
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Spec.SHA2.Lemmas.shuffle_core" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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
[]
Vale.SHA.SHA_helpers.shuffle_core_opaque_aux
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 49, "end_line": 42, "start_col": 37, "start_line": 42 }
Prims.Tot
val word_to_nat32 (x:word) : nat32
[ { "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 }, { ...
false
let word_to_nat32 = vv
val word_to_nat32 (x:word) : nat32 let word_to_nat32 =
false
null
false
vv
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Vale.SHA.SHA_helpers.vv" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val word_to_nat32 (x:word) : nat32
[]
Vale.SHA.SHA_helpers.word_to_nat32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Vale.SHA.SHA_helpers.word -> Vale.Def.Words_s.nat32
{ "end_col": 22, "end_line": 55, "start_col": 20, "start_line": 55 }
Prims.Tot
val add_mod32 (x: word) (y: nat32) : nat32
[ { "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 }, { ...
false
let add_mod32 (x:word) (y:nat32) : nat32 = vv (add_mod x (to_uint32 y))
val add_mod32 (x: word) (y: nat32) : nat32 let add_mod32 (x: word) (y: nat32) : nat32 =
false
null
false
vv (add_mod x (to_uint32 y))
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val add_mod32 (x: word) (y: nat32) : nat32
[]
Vale.SHA.SHA_helpers.add_mod32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Vale.SHA.SHA_helpers.word -> y: Vale.Def.Words_s.nat32 -> Vale.Def.Words_s.nat32
{ "end_col": 71, "end_line": 54, "start_col": 43, "start_line": 54 }
FStar.Pervasives.Lemma
[ { "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 }, { ...
false
let update_multi_reveal = opaque_revealer (`%update_multi_opaque_aux) update_multi_opaque_aux update_multi
let update_multi_reveal =
false
null
true
opaque_revealer (`%update_multi_opaque_aux) update_multi_opaque_aux update_multi
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val update_multi_reveal : _: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.update_multi_opaque_aux == Spec.Agile.Hash.update_multi)
[]
Vale.SHA.SHA_helpers.update_multi_reveal
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.update_multi_opaque_aux == Spec.Agile.Hash.update_multi)
{ "end_col": 118, "end_line": 47, "start_col": 38, "start_line": 47 }
FStar.Pervasives.Lemma
val translate_hash_update (h0 h1 h0' h1' a0 a1: quad32) : Lemma (requires h0' == add_wrap_quad32 a0 h0 /\ h1' == add_wrap_quad32 a1 h1) (ensures (let h = make_hash h0 h1 in let a = make_hash a0 a1 in let h' = make_hash h0' h1' in let open Lib.IntTypes in let map...
[ { "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 }, { ...
false
let translate_hash_update (h0 h1 h0' h1' a0 a1:quad32) : Lemma (requires h0' == add_wrap_quad32 a0 h0 /\ h1' == add_wrap_quad32 a1 h1) (ensures ( let h = make_hash h0 h1 in let a = make_hash a0 a1 in let h' = make_hash h0' h1' in let open Lib.IntTypes in let ...
val translate_hash_update (h0 h1 h0' h1' a0 a1: quad32) : Lemma (requires h0' == add_wrap_quad32 a0 h0 /\ h1' == add_wrap_quad32 a1 h1) (ensures (let h = make_hash h0 h1 in let a = make_hash a0 a1 in let h' = make_hash h0' h1' in let open Lib.IntTypes in let map...
false
null
true
let h = make_hash h0 h1 in let a = make_hash a0 a1 in let h' = make_hash h0' h1' in let open Lib.IntTypes in let mapped = Spec.Loops.seq_map2 ( +. ) h a in FStar.Classical.forall_intro_2 lemma_add_wrap_is_add_mod; assert (equal mapped h'); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Types_s.quad32", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "Vale.SHA.SHA_helpers.word", "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", ...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val translate_hash_update (h0 h1 h0' h1' a0 a1: quad32) : Lemma (requires h0' == add_wrap_quad32 a0 h0 /\ h1' == add_wrap_quad32 a1 h1) (ensures (let h = make_hash h0 h1 in let a = make_hash a0 a1 in let h' = make_hash h0' h1' in let open Lib.IntTypes in let map...
[]
Vale.SHA.SHA_helpers.translate_hash_update
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h0: Vale.Def.Types_s.quad32 -> h1: Vale.Def.Types_s.quad32 -> h0': Vale.Def.Types_s.quad32 -> h1': Vale.Def.Types_s.quad32 -> a0: Vale.Def.Types_s.quad32 -> a1: Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires h0' == Vale.Arch.Types.add_wrap_quad32 a0 h0 /\ h1' == Val...
{ "end_col": 4, "end_line": 645, "start_col": 3, "start_line": 637 }
Prims.Tot
val add_mod_quad32 (q0 q1: quad32) : quad32
[ { "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 }, { ...
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)))
val add_mod_quad32 (q0 q1: quad32) : quad32 let add_mod_quad32 (q0 q1: quad32) : quad32 =
false
null
false
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)))
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val add_mod_quad32 (q0 q1: quad32) : quad32
[]
Vale.SHA.SHA_helpers.add_mod_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
q0: Vale.Def.Types_s.quad32 -> q1: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
{ "end_col": 61, "end_line": 433, "start_col": 2, "start_line": 430 }
FStar.Pervasives.Lemma
val update_lemma (src1 src2 src1' src2' h0 h1:quad32) (block:block_w) : Lemma (requires (let hash_orig = make_hash h0 h1 in make_hash src1 src2 == Spec.Loops.repeat_range 0 size_k_w_256 (shuffle_core_opaque block) hash_orig /\ src1' == add_wrap_quad32 src1 h0 /\ src...
[ { "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 }, { ...
false
let update_lemma (src1 src2 src1' src2' h0 h1:quad32) (block:block_w) : Lemma (requires (let hash_orig = make_hash h0 h1 in make_hash src1 src2 == Spec.Loops.repeat_range 0 64 (shuffle_core_opaque block) hash_orig /\ src1' == add_wrap_quad32 src1 h0 /\ src2' == add_...
val update_lemma (src1 src2 src1' src2' h0 h1:quad32) (block:block_w) : Lemma (requires (let hash_orig = make_hash h0 h1 in make_hash src1 src2 == Spec.Loops.repeat_range 0 size_k_w_256 (shuffle_core_opaque block) hash_orig /\ src1' == add_wrap_quad32 src1 h0 /\ src...
false
null
true
let hash_orig = make_hash h0 h1 in let hash_1 = shuffle_opaque SHA2_256 hash_orig block in Pervasives.reveal_opaque (`%shuffle) shuffle; Pervasives.reveal_opaque (`%shuffle_core) shuffle_core; let rec f (i: nat{i <= 64}) : Lemma (Spec.Loops.repeat_range 0 i (shuffle_core_opaque block) hash_orig == Spec.Lo...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.block_w", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "Vale.SHA.SHA_helpers.word", "Vale.SHA.SHA_helpers.make_hash", "Vale.SHA.SHA_helpers.update_block", "Spec.SHA2.Lemmas.shuffle_is_shuffle_pre", "Spec.Hash.Definitions.SHA2_256", "Vale...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val update_lemma (src1 src2 src1' src2' h0 h1:quad32) (block:block_w) : Lemma (requires (let hash_orig = make_hash h0 h1 in make_hash src1 src2 == Spec.Loops.repeat_range 0 size_k_w_256 (shuffle_core_opaque block) hash_orig /\ src1' == add_wrap_quad32 src1 h0 /\ src...
[]
Vale.SHA.SHA_helpers.update_lemma
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
src1: Vale.Def.Types_s.quad32 -> src2: Vale.Def.Types_s.quad32 -> src1': Vale.Def.Types_s.quad32 -> src2': Vale.Def.Types_s.quad32 -> h0: Vale.Def.Types_s.quad32 -> h1: Vale.Def.Types_s.quad32 -> block: Vale.SHA.SHA_helpers.block_w -> FStar.Pervasives.Lemma (requires (let ha...
{ "end_col": 4, "end_line": 706, "start_col": 3, "start_line": 672 }
FStar.Pervasives.Lemma
val lemma_sha256_rnds2_spec_update_is_shuffle_core (hash: hash256) (wk: UInt32.t) (t: counter) (block: block_w) : Lemma (requires t < size_k_w SHA2_256 /\ wk == to_uint32 (add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t)) ) (ensures (let a', b', c', d', e',...
[ { "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 }, { ...
false
let lemma_sha256_rnds2_spec_update_is_shuffle_core (hash:hash256) (wk:UInt32.t) (t:counter) (block:block_w) : Lemma (requires t < size_k_w SHA2_256 /\ wk == to_uint32 (add_mod32 (k0 SHA2_256).[t] (ws_opaque block t))) (ensures (let a', b', c', d', e', f', g', h' = sha256_rnds2_spec_update hash.[0...
val lemma_sha256_rnds2_spec_update_is_shuffle_core (hash: hash256) (wk: UInt32.t) (t: counter) (block: block_w) : Lemma (requires t < size_k_w SHA2_256 /\ wk == to_uint32 (add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t)) ) (ensures (let a', b', c', d', e',...
false
null
true
let a', b', c', d', e', f', g', h' = sha256_rnds2_spec_update hash.[ 0 ] hash.[ 1 ] hash.[ 2 ] hash.[ 3 ] hash.[ 4 ] hash.[ 5 ] hash.[ 6 ] hash.[ 7 ] wk in let l:list Lib.IntTypes.uint32 = [a'; b'; c'; d'; e'; f'; g'; h'] in let u:Seq.seq UInt32.t = seq_of_list l in assert_norm (List.l...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.SHA.SHA_helpers.hash256", "FStar.UInt32.t", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "Vale.SHA.SHA_helpers.lemma_add_mod_e", "Spec.SHA2.op_String_Access", "Vale.SHA.SHA_helpers.word", "Prims.unit", "Vale...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_sha256_rnds2_spec_update_is_shuffle_core (hash: hash256) (wk: UInt32.t) (t: counter) (block: block_w) : Lemma (requires t < size_k_w SHA2_256 /\ wk == to_uint32 (add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t)) ) (ensures (let a', b', c', d', e',...
[]
Vale.SHA.SHA_helpers.lemma_sha256_rnds2_spec_update_is_shuffle_core
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
hash: Vale.SHA.SHA_helpers.hash256 -> wk: FStar.UInt32.t -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> FStar.Pervasives.Lemma (requires t < Spec.SHA2.size_k_w Spec.Hash.Definitions.SHA2_256 /\ wk == Vale.SHA.SHA_helpers.to_uint32 (Vale.SHA....
{ "end_col": 92, "end_line": 305, "start_col": 3, "start_line": 291 }
FStar.Pervasives.Lemma
val shuffle_core_properties (block: block_w) (hash: hash256) (t: counter{t < size_k_w_256}) : Lemma (let h = shuffle_core_opaque block hash t in let open Lib.IntTypes in let a0 = hash.[ 0 ] in let b0 = hash.[ 1 ] in let c0 = hash.[ 2 ] in let d0 = hash.[ 3 ] in let e0 = hash....
[ { "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 }, { ...
false
let shuffle_core_properties (block:block_w) (hash:hash256) (t:counter{t < size_k_w_256}) : Lemma(let h = shuffle_core_opaque block hash t in let open Lib.IntTypes in let a0 = hash.[0] in let b0 = hash.[1] in let c0 = hash.[2] in let d0 = hash.[3] in let e0...
val shuffle_core_properties (block: block_w) (hash: hash256) (t: counter{t < size_k_w_256}) : Lemma (let h = shuffle_core_opaque block hash t in let open Lib.IntTypes in let a0 = hash.[ 0 ] in let b0 = hash.[ 1 ] in let c0 = hash.[ 2 ] in let d0 = hash.[ 3 ] in let e0 = hash....
false
null
true
Pervasives.reveal_opaque (`%shuffle_core) shuffle_core; let h = shuffle_core SHA2_256 block hash t in let a0 = hash.[ 0 ] in let b0 = hash.[ 1 ] in let c0 = hash.[ 2 ] in let d0 = hash.[ 3 ] in let e0 = hash.[ 4 ] in let f0 = hash.[ 5 ] in let g0 = hash.[ 6 ] in let h0 = hash.[ 7 ] in let t1 = h0 +. (_Sigma1 SHA2_256...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "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", "Prims.unit", "FStar.Seq.Properties.elim_of_list", "FStar.UInt32.t", "Prims._assert", "Prims.eq2", "FStar.Seq.Base.seq", "Pri...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val shuffle_core_properties (block: block_w) (hash: hash256) (t: counter{t < size_k_w_256}) : Lemma (let h = shuffle_core_opaque block hash t in let open Lib.IntTypes in let a0 = hash.[ 0 ] in let b0 = hash.[ 1 ] in let c0 = hash.[ 2 ] in let d0 = hash.[ 3 ] in let e0 = hash....
[]
Vale.SHA.SHA_helpers.shuffle_core_properties
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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} -> FStar.Pervasives.Lemma (ensures (let h = Vale.SHA.SHA_helpers.shuffle_core_opaque block hash t in let a0 = hash.[ 0 ] in let b0 ...
{ "end_col": 4, "end_line": 155, "start_col": 2, "start_line": 140 }
Prims.Tot
val ws_opaque (b:block_w) (t:counter{t < size_k_w_256}):nat32
[ { "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 }, { ...
false
let ws_opaque (b:block_w) (t:counter{t < size_k_w_256}) : nat32 = vv (ws_opaque_aux SHA2_256 b t)
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 =
false
null
false
vv (ws_opaque_aux SHA2_256 b t)
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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" ]
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val ws_opaque (b:block_w) (t:counter{t < size_k_w_256}):nat32
[]
Vale.SHA.SHA_helpers.ws_opaque
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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
{ "end_col": 33, "end_line": 40, "start_col": 2, "start_line": 40 }
Prims.Tot
val update_multi_opaque (hash:hash256) (blocks:bytes_blocks):hash256
[ { "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 }, { ...
false
let update_multi_opaque (hash:hash256) (blocks:bytes_blocks):hash256 = (update_multi_opaque_aux SHA2_256 hash () blocks)
val update_multi_opaque (hash:hash256) (blocks:bytes_blocks):hash256 let update_multi_opaque (hash: hash256) (blocks: bytes_blocks) : hash256 =
false
null
false
(update_multi_opaque_aux SHA2_256 hash () blocks)
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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" ]
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val update_multi_opaque (hash:hash256) (blocks:bytes_blocks):hash256
[]
Vale.SHA.SHA_helpers.update_multi_opaque
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
hash: Vale.SHA.SHA_helpers.hash256 -> blocks: Vale.SHA.SHA_helpers.bytes_blocks -> Vale.SHA.SHA_helpers.hash256
{ "end_col": 51, "end_line": 49, "start_col": 2, "start_line": 49 }
FStar.Pervasives.Lemma
val lemma_add_wrap_is_add_mod (n0 n1: nat32) : Lemma (add_wrap n0 n1 == vv (add_mod (to_uint32 n0) (to_uint32 n1)))
[ { "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 }, { ...
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); ()
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))) =
false
null
true
assert_norm (pow2 32 == pow2_32); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_add_wrap_is_add_mod (n0 n1: nat32) : Lemma (add_wrap n0 n1 == vv (add_mod (to_uint32 n0) (to_uint32 n1)))
[]
Vale.SHA.SHA_helpers.lemma_add_wrap_is_add_mod
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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)))
{ "end_col": 4, "end_line": 219, "start_col": 2, "start_line": 218 }
Prims.Tot
val _sigma1_quad32 (q: quad32) : quad32
[ { "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 }, { ...
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)))
val _sigma1_quad32 (q: quad32) : quad32 let _sigma1_quad32 (q: quad32) : quad32 =
false
null
false
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)))
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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....
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val _sigma1_quad32 (q: quad32) : quad32
[]
Vale.SHA.SHA_helpers._sigma1_quad32
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
q: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
{ "end_col": 50, "end_line": 418, "start_col": 2, "start_line": 415 }
FStar.Pervasives.Lemma
val lemma_ws_computed_is_ws_opaque (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (vv (ws_computed b t) == ws_opaque b t)
[ { "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 }, { ...
false
let lemma_ws_computed_is_ws_opaque (b:block_w) (t:counter{t < size_k_w_256}) : Lemma (vv (ws_computed b t) == ws_opaque b t) = lemma_ws_computed_is_ws b t; Pervasives.reveal_opaque (`%ws) ws; ()
val lemma_ws_computed_is_ws_opaque (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (vv (ws_computed b t) == ws_opaque b t) let lemma_ws_computed_is_ws_opaque (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (vv (ws_computed b t) == ws_opaque b t) =
false
null
true
lemma_ws_computed_is_ws b t; Pervasives.reveal_opaque (`%ws) ws; ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.counter", "Prims.b2t", "Prims.op_LessThan", "Vale.SHA.SHA_helpers.size_k_w_256", "Prims.unit", "FStar.Pervasives.reveal_opaque", "Spec.Hash.Definitions.sha2_alg", "Spec.SHA2.block_w", "Spec.SHA2.counter", "Spec.SHA2.size_k_w", "Spec.Hash.De...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_ws_computed_is_ws_opaque (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (vv (ws_computed b t) == ws_opaque b t)
[]
Vale.SHA.SHA_helpers.lemma_ws_computed_is_ws_opaque
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256} -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.vv (Vale.SHA.SHA_helpers.ws_computed b t) == Vale.SHA.SHA_helpers.ws_opaque b t)
{ "end_col": 4, "end_line": 516, "start_col": 2, "start_line": 514 }
Prims.Tot
val update_block (hash:hash256) (block:block_w): hash256
[ { "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 }, { ...
false
let update_block (hash:hash256) (block:block_w): Tot (hash256) = let hash_1 = shuffle_opaque SHA2_256 hash block in let open Lib.IntTypes in Spec.Loops.seq_map2 ( +. ) hash hash_1
val update_block (hash:hash256) (block:block_w): hash256 let update_block (hash: hash256) (block: block_w) : Tot (hash256) =
false
null
false
let hash_1 = shuffle_opaque SHA2_256 hash block in let open Lib.IntTypes in Spec.Loops.seq_map2 ( +. ) hash hash_1
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.block_w", "Spec.Loops.seq_map2", "Vale.SHA.SHA_helpers.word", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "Lib.IntTypes.op_Plus_Dot", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Spec.Hash.Definitions.words_state", "Vale.SHA.S...
[]
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...
false
true
Vale.SHA.SHA_helpers.fst
{ "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...
null
val update_block (hash:hash256) (block:block_w): hash256
[]
Vale.SHA.SHA_helpers.update_block
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
hash: Vale.SHA.SHA_helpers.hash256 -> block: Vale.SHA.SHA_helpers.block_w -> Vale.SHA.SHA_helpers.hash256
{ "end_col": 40, "end_line": 652, "start_col": 64, "start_line": 649 }
Prims.Tot
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 ] =...
[ { "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 }, { ...
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 /\ ...
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 ] =...
false
null
false
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 let hash = seq_of_list l in assert_norm (len...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "total" ]
[ "Vale.Def.Types_s.quad32", "Prims.unit", "FStar.Seq.Properties.elim_of_list", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA2_256", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "FStar.Seq.Base.seq", "Prims.b2t", "Prims.op_Equality", "Prims.nat"...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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 ] =...
[]
Vale.SHA.SHA_helpers.make_hash_def
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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...
{ "end_col": 8, "end_line": 85, "start_col": 9, "start_line": 71 }
FStar.Pervasives.Lemma
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 (...
[ { "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 }, { ...
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 ...
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 (...
false
null
true
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...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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 (...
[]
Vale.SHA.SHA_helpers.lemma_add_mod_a
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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 u97 = FStar.UInt32.add_mod (Spec.S...
{ "end_col": 4, "end_line": 255, "start_col": 3, "start_line": 238 }
FStar.Pervasives.Lemma
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...
[ { "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 }, { ...
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)) /\ 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...
false
null
true
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...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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....
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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...
[]
Vale.SHA.SHA_helpers.lemma_sha256_rnds2
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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...
{ "end_col": 4, "end_line": 405, "start_col": 2, "start_line": 400 }
FStar.Pervasives.Lemma
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))) ...
[ { "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 }, { ...
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))) (ensures (let hash0 = make_hash abef c...
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))) ...
false
null
true
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); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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"...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
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))) ...
[]
Vale.SHA.SHA_helpers.sha256_rnds2_spec_quad32_is_shuffle_core_x2
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
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...
{ "end_col": 4, "end_line": 370, "start_col": 2, "start_line": 368 }
FStar.Pervasives.Lemma
val lemma_le_bytes_to_hash_quads_part1 (s: seq quad32) : Lemma (requires length s == 2) (ensures le_bytes_to_hash (le_seq_quad32_to_bytes s) == Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s))
[ { "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 }, { ...
false
let lemma_le_bytes_to_hash_quads_part1 (s:seq quad32) : Lemma (requires length s == 2) (ensures le_bytes_to_hash (le_seq_quad32_to_bytes s) == Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s)) = let lhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in assert (lhs ...
val lemma_le_bytes_to_hash_quads_part1 (s: seq quad32) : Lemma (requires length s == 2) (ensures le_bytes_to_hash (le_seq_quad32_to_bytes s) == Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s)) let lemma_le_bytes_to_hash_quads_part1 (s: seq quad32) : Lemma ...
false
null
true
let lhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in assert (lhs == Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_nat8_to_seq_nat32_LE (le_seq_quad32_to_bytes s))); le_seq_quad32_to_bytes_reveal (); Vale.Def.Words.Seq.seq_nat8_to_seq_nat32_to_seq_nat8_LE (Vale.Def.Words.Seq_s.seq_four_to...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Prims.unit", "Vale.Def.Words.Seq.seq_nat8_to_seq_nat32_to_seq_nat8_LE", "Vale.Def.Words.Seq_s.seq_four_to_seq_LE", "Vale.Def.Types_s.nat32", "Vale.Def.Types_s.le_seq_quad32_to_bytes_reveal", "Prims._assert", "Prims.eq2", "Vale.SHA.SHA_helpers.word"...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_le_bytes_to_hash_quads_part1 (s: seq quad32) : Lemma (requires length s == 2) (ensures le_bytes_to_hash (le_seq_quad32_to_bytes s) == Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s))
[]
Vale.SHA.SHA_helpers.lemma_le_bytes_to_hash_quads_part1
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s == 2) (ensures Vale.SHA.SHA_helpers.le_bytes_to_hash (Vale.Def.Types_s.le_seq_quad32_to_bytes s) == Vale.Lib.Seqs_s.seq_map Vale.SHA.SHA_helpers.nat32_to_word (Vale.Def.Words.Seq_s...
{ "end_col": 4, "end_line": 1047, "start_col": 3, "start_line": 1042 }
FStar.Pervasives.Lemma
val lemma_le_bytes_to_seq_quad32_length (b: seq nat8) : Lemma (requires length b % 16 == 0) (ensures length (le_bytes_to_seq_quad32 b) == length b / 16)
[ { "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 }, { ...
false
let lemma_le_bytes_to_seq_quad32_length (b:seq nat8) : Lemma (requires length b % 16 == 0) (ensures length (le_bytes_to_seq_quad32 b) == length b / 16) = reveal_opaque (`%le_bytes_to_seq_quad32) le_bytes_to_seq_quad32; ()
val lemma_le_bytes_to_seq_quad32_length (b: seq nat8) : Lemma (requires length b % 16 == 0) (ensures length (le_bytes_to_seq_quad32 b) == length b / 16) let lemma_le_bytes_to_seq_quad32_length (b: seq nat8) : Lemma (requires length b % 16 == 0) (ensures length (le_bytes_to_seq_quad32 b) == length b ...
false
null
true
reveal_opaque (`%le_bytes_to_seq_quad32) le_bytes_to_seq_quad32; ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat8", "Prims.unit", "FStar.Pervasives.reveal_opaque", "Vale.Def.Types_s.nat8", "Vale.Def.Types_s.quad32", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "FStar.Seq.Base.length", "Prims.l_True", "Vale.Def.Types_s.le_bytes_to_seq_quad32", "Prims.squash",...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_le_bytes_to_seq_quad32_length (b: seq nat8) : Lemma (requires length b % 16 == 0) (ensures length (le_bytes_to_seq_quad32 b) == length b / 16)
[]
Vale.SHA.SHA_helpers.lemma_le_bytes_to_seq_quad32_length
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length b % 16 == 0) (ensures FStar.Seq.Base.length (Vale.Def.Types_s.le_bytes_to_seq_quad32 b) == FStar.Seq.Base.length b / 16)
{ "end_col": 4, "end_line": 721, "start_col": 2, "start_line": 720 }
FStar.Pervasives.Lemma
val lemma_slice_commutes_reverse_bytes_nat32_quad32_seq (s: seq quad32) (pivot: nat) : Lemma (requires pivot <= length s) (ensures slice (reverse_bytes_nat32_quad32_seq s) 0 pivot == reverse_bytes_nat32_quad32_seq (slice s 0 pivot))
[ { "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 }, { ...
false
let lemma_slice_commutes_reverse_bytes_nat32_quad32_seq (s:seq quad32) (pivot:nat) : Lemma (requires pivot <= length s) (ensures slice (reverse_bytes_nat32_quad32_seq s) 0 pivot == reverse_bytes_nat32_quad32_seq (slice s 0 pivot)) = let rs = reverse_bytes_nat32_quad32_seq s in let srs = slice (reverse_bytes_...
val lemma_slice_commutes_reverse_bytes_nat32_quad32_seq (s: seq quad32) (pivot: nat) : Lemma (requires pivot <= length s) (ensures slice (reverse_bytes_nat32_quad32_seq s) 0 pivot == reverse_bytes_nat32_quad32_seq (slice s 0 pivot)) let lemma_slice_commutes_reverse_bytes_nat32_quad32_seq (s: s...
false
null
true
let rs = reverse_bytes_nat32_quad32_seq s in let srs = slice (reverse_bytes_nat32_quad32_seq s) 0 pivot in let ss = slice s 0 pivot in let rss = reverse_bytes_nat32_quad32_seq ss in if pivot = 0 then (assert (equal ss empty); assert (equal srs empty); assert (equal empty (reverse_bytes_nat32_quad32_seq empty)...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "FStar.Seq.Base.empty", "Vale.Arch.Types.reverse_bytes_nat32_quad32_seq", "Prims.bool", "FStar.Seq.Base.slice", "Prims.b2t", "Prims.op_Less...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "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...
null
val lemma_slice_commutes_reverse_bytes_nat32_quad32_seq (s: seq quad32) (pivot: nat) : Lemma (requires pivot <= length s) (ensures slice (reverse_bytes_nat32_quad32_seq s) 0 pivot == reverse_bytes_nat32_quad32_seq (slice s 0 pivot))
[]
Vale.SHA.SHA_helpers.lemma_slice_commutes_reverse_bytes_nat32_quad32_seq
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> pivot: Prims.nat -> FStar.Pervasives.Lemma (requires pivot <= FStar.Seq.Base.length s) (ensures FStar.Seq.Base.slice (Vale.Arch.Types.reverse_bytes_nat32_quad32_seq s) 0 pivot == Vale.Arch.Types.reverse_bytes_nat32_quad32_seq (FStar.Seq.Base.slice...
{ "end_col": 3, "end_line": 739, "start_col": 3, "start_line": 727 }
FStar.Pervasives.Lemma
val lemma_update_block_equiv (hash: hash256) (block: bytes{length block = block_length}) : Lemma (update_block hash (words_of_bytes SHA2_256 #(block_word_length SHA2_256) block) == update SHA2_256 hash block)
[ { "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 }, { ...
false
let lemma_update_block_equiv (hash:hash256) (block:bytes{length block = block_length}) : Lemma (update_block hash (words_of_bytes SHA2_256 #(block_word_length SHA2_256) block) == update SHA2_256 hash block) = Pervasives.reveal_opaque (`%Spec.SHA2.update) Spec.SHA2.update; Pervasives.reveal_opaque (`%Spec.SHA2.s...
val lemma_update_block_equiv (hash: hash256) (block: bytes{length block = block_length}) : Lemma (update_block hash (words_of_bytes SHA2_256 #(block_word_length SHA2_256) block) == update SHA2_256 hash block) let lemma_update_block_equiv (hash: hash256) (block: bytes{length block = block_length}) : Le...
false
null
true
Pervasives.reveal_opaque (`%Spec.SHA2.update) Spec.SHA2.update; Pervasives.reveal_opaque (`%Spec.SHA2.shuffle) Spec.SHA2.shuffle; assert (equal (update_block hash (words_of_bytes SHA2_256 #(block_word_length SHA2_256) block)) (update SHA2_256 hash block)); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.bytes", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Vale.SHA.SHA_helpers.byte", "Vale.SHA.SHA_helpers.block_length", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "Vale.SHA.SHA_helpers.word", "Vale.SH...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_update_block_equiv (hash: hash256) (block: bytes{length block = block_length}) : Lemma (update_block hash (words_of_bytes SHA2_256 #(block_word_length SHA2_256) block) == update SHA2_256 hash block)
[]
Vale.SHA.SHA_helpers.lemma_update_block_equiv
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
hash: Vale.SHA.SHA_helpers.hash256 -> block: Vale.SHA.SHA_helpers.bytes{FStar.Seq.Base.length block = Vale.SHA.SHA_helpers.block_length} -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.update_block hash (Spec.Hash.Definitions.words_of_bytes Spec.Hash.Definitions.SHA2_256 block...
{ "end_col": 4, "end_line": 661, "start_col": 2, "start_line": 658 }
FStar.Pervasives.Lemma
val lemma_update_multi_opaque_vale_is_update_multi (hash:hash256) (blocks:bytes) : Lemma (requires length blocks % 64 = 0) (ensures update_multi_opaque_vale hash blocks == update_multi_transparent hash blocks)
[ { "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 }, { ...
false
let lemma_update_multi_opaque_vale_is_update_multi (hash:hash256) (blocks:bytes) : Lemma (requires length blocks % 64 = 0) (ensures update_multi_opaque_vale hash blocks == update_multi_transparent hash blocks) = update_multi_reveal (); ()
val lemma_update_multi_opaque_vale_is_update_multi (hash:hash256) (blocks:bytes) : Lemma (requires length blocks % 64 = 0) (ensures update_multi_opaque_vale hash blocks == update_multi_transparent hash blocks) let lemma_update_multi_opaque_vale_is_update_multi (hash: hash256) (blocks: bytes) : Lemma (requires ...
false
null
true
update_multi_reveal (); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.bytes", "Prims.unit", "Vale.SHA.SHA_helpers.update_multi_reveal", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "FStar.Seq.Base.length", "Vale.SHA.SHA_helpers.byte", "Prims.squash", "Prims.eq2", "Vale.SHA.SHA_helpers....
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_update_multi_opaque_vale_is_update_multi (hash:hash256) (blocks:bytes) : Lemma (requires length blocks % 64 = 0) (ensures update_multi_opaque_vale hash blocks == update_multi_transparent hash blocks)
[]
Vale.SHA.SHA_helpers.lemma_update_multi_opaque_vale_is_update_multi
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
hash: Vale.SHA.SHA_helpers.hash256 -> blocks: Vale.SHA.SHA_helpers.bytes -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length blocks % 64 = 0) (ensures Vale.SHA.SHA_helpers.update_multi_opaque_vale hash blocks == Vale.SHA.SHA_helpers.update_multi_transparent hash blocks)
{ "end_col": 4, "end_line": 1084, "start_col": 2, "start_line": 1083 }
FStar.Pervasives.Lemma
val update_multi_one (h: hash256) (b: bytes_blocks{length b = block_length}) : Lemma (ensures (update_multi SHA2_256 h () b == update SHA2_256 h b))
[ { "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 }, { ...
false
let update_multi_one (h:hash256) (b:bytes_blocks {length b = block_length}) : Lemma (ensures (update_multi SHA2_256 h () b == update SHA2_256 h b)) = update_multi_update SHA2_256 h b
val update_multi_one (h: hash256) (b: bytes_blocks{length b = block_length}) : Lemma (ensures (update_multi SHA2_256 h () b == update SHA2_256 h b)) let update_multi_one (h: hash256) (b: bytes_blocks{length b = block_length}) : Lemma (ensures (update_multi SHA2_256 h () b == update SHA2_256 h b)) =
false
null
true
update_multi_update SHA2_256 h b
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.SHA.SHA_helpers.hash256", "Vale.SHA.SHA_helpers.bytes_blocks", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Vale.SHA.SHA_helpers.byte", "Vale.SHA.SHA_helpers.block_length", "Spec.Hash.Lemmas.update_multi_update", "Spec.Hash.Definitions.SHA2_256", "Prims.unit", ...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "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...
null
val update_multi_one (h: hash256) (b: bytes_blocks{length b = block_length}) : Lemma (ensures (update_multi SHA2_256 h () b == update SHA2_256 h b))
[]
Vale.SHA.SHA_helpers.update_multi_one
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: Vale.SHA.SHA_helpers.hash256 -> b: Vale.SHA.SHA_helpers.bytes_blocks{FStar.Seq.Base.length b = Vale.SHA.SHA_helpers.block_length} -> FStar.Pervasives.Lemma (ensures Spec.Agile.Hash.update_multi Spec.Hash.Definitions.SHA2_256 h () b == Spec.Agile.Hash.update Spec.Hash.Definitions.SHA2...
{ "end_col": 34, "end_line": 759, "start_col": 2, "start_line": 759 }
FStar.Pervasives.Lemma
val lemma_be_to_n_4 (s: seq4 nat8) : Lemma (Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) == be_bytes_to_nat32 s)
[ { "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 }, { ...
false
let lemma_be_to_n_4 (s:seq4 nat8) : Lemma (Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) == be_bytes_to_nat32 s) = let open Lib.IntTypes in let open Vale.Def.Words.Four_s in assert (pow2 8 = 0x100); assert (pow2 16 = 0x10000); assert_norm (pow2 24 = 0x1000000); let x = s...
val lemma_be_to_n_4 (s: seq4 nat8) : Lemma (Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) == be_bytes_to_nat32 s) let lemma_be_to_n_4 (s: seq4 nat8) : Lemma (Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) == be_bytes_to_nat32 s...
false
null
true
let open Lib.IntTypes in let open Vale.Def.Words.Four_s in assert (pow2 8 = 0x100); assert (pow2 16 = 0x10000); assert_norm (pow2 24 = 0x1000000); let x = seq_nat8_to_seq_uint8 s in let f = Lib.ByteSequence.nat_from_intseq_be_ #U8 #SEC in calc ( == ) { f x <: nat; ( == ) { () } FStar.UInt8.v (last x) + pow2 8 * f...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Words.Seq_s.seq4", "Vale.Def.Words_s.nat8", "FStar.Calc.calc_finish", "Prims.nat", "Prims.eq2", "Vale.Def.Types_s.be_bytes_to_nat32", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "Vale.Def.Words.Four_s.four_to_nat_unfold", "Vale.Def.Wo...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "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...
null
val lemma_be_to_n_4 (s: seq4 nat8) : Lemma (Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) == be_bytes_to_nat32 s)
[]
Vale.SHA.SHA_helpers.lemma_be_to_n_4
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: Vale.Def.Words.Seq_s.seq4 Vale.Def.Words_s.nat8 -> FStar.Pervasives.Lemma (ensures Lib.ByteSequence.nat_from_bytes_be (Vale.Def.Words.Seq_s.seq_nat8_to_seq_uint8 s) == Vale.Def.Types_s.be_bytes_to_nat32 s)
{ "end_col": 3, "end_line": 794, "start_col": 2, "start_line": 769 }
FStar.Pervasives.Lemma
val lemma_update_multi_equiv_vale (hash hash':hash256) (quads:seq quad32) (r_quads:seq quad32) (nat8s:seq nat8) (blocks:seq byte) : Lemma (requires length quads % 4 == 0 /\ r_quads == reverse_bytes_nat32_quad32_seq quads /\ nat8s == le_seq_quad32_to_bytes quads /\ ...
[ { "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 }, { ...
false
let rec lemma_update_multi_equiv_vale (hash hash':hash256) (quads:seq quad32) (r_quads:seq quad32) (nat8s:seq nat8) (blocks:seq UInt8.t) : Lemma (requires length quads % 4 == 0 /\ r_quads == reverse_bytes_nat32_quad32_seq quads /\ nat8s == le_seq_quad32_to_bytes quads /\ ...
val lemma_update_multi_equiv_vale (hash hash':hash256) (quads:seq quad32) (r_quads:seq quad32) (nat8s:seq nat8) (blocks:seq byte) : Lemma (requires length quads % 4 == 0 /\ r_quads == reverse_bytes_nat32_quad32_seq quads /\ nat8s == le_seq_quad32_to_bytes quads /\ ...
false
null
true
lemma_mod_transform quads; assert (length blocks % 64 == 0); update_multi_reveal (); if length quads = 0 then (lemma_le_seq_quad32_to_bytes_length quads; lemma_update_multi_quads_short r_quads hash; assert (equal blocks empty); update_multi_zero SHA2_256 hash; ()) else let num_blocks = (length quads...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "", "lemma" ]
[ "Vale.SHA.SHA_helpers.hash256", "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Vale.Def.Words_s.nat8", "FStar.UInt8.t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims.unit", "Spec.Hash.Lemmas.update_multi_zero", "Spec.Hash.Definitions.SHA2_256", "Prims._assert", "FStar....
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_update_multi_equiv_vale (hash hash':hash256) (quads:seq quad32) (r_quads:seq quad32) (nat8s:seq nat8) (blocks:seq byte) : Lemma (requires length quads % 4 == 0 /\ r_quads == reverse_bytes_nat32_quad32_seq quads /\ nat8s == le_seq_quad32_to_bytes quads /\ ...
[ "recursion" ]
Vale.SHA.SHA_helpers.lemma_update_multi_equiv_vale
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
hash: Vale.SHA.SHA_helpers.hash256 -> hash': Vale.SHA.SHA_helpers.hash256 -> quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> r_quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> nat8s: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> blocks: FStar.Seq.Base.seq Vale.SHA.SHA_helpers.byte -> F...
{ "end_col": 5, "end_line": 1000, "start_col": 2, "start_line": 889 }
FStar.Pervasives.Lemma
val lemma_hash_to_bytes (s:seq quad32) : Lemma (requires length s == 2) (ensures make_ordered_hash s.[0] s.[1] == le_bytes_to_hash (le_seq_quad32_to_bytes s))
[ { "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 }, { ...
false
let lemma_hash_to_bytes (s:seq quad32) : Lemma (requires length s == 2) (ensures make_ordered_hash s.[0] s.[1] == le_bytes_to_hash (le_seq_quad32_to_bytes s)) = lemma_le_bytes_to_hash_quads s; assert (equal (make_ordered_hash s.[0] s.[1]) (le_bytes_to_hash (le_seq_quad32_to_bytes s))); ()
val lemma_hash_to_bytes (s:seq quad32) : Lemma (requires length s == 2) (ensures make_ordered_hash s.[0] s.[1] == le_bytes_to_hash (le_seq_quad32_to_bytes s)) let lemma_hash_to_bytes (s: seq quad32) : Lemma (requires length s == 2) (ensures make_ordered_hash s.[ 0 ] s.[ 1 ] == le_bytes_to_hash (le_seq_qua...
false
null
true
lemma_le_bytes_to_hash_quads s; assert (equal (make_ordered_hash s.[ 0 ] s.[ 1 ]) (le_bytes_to_hash (le_seq_quad32_to_bytes s))); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "Vale.SHA.SHA_helpers.word", "Vale.SHA.SHA_helpers.make_ordered_hash", "Spec.SHA2.op_String_Access", "Vale.SHA.SHA_helpers.le_bytes_to_hash", "Vale.Def.Types_s.le_seq_quad32_to_bytes", "Vale.S...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_hash_to_bytes (s:seq quad32) : Lemma (requires length s == 2) (ensures make_ordered_hash s.[0] s.[1] == le_bytes_to_hash (le_seq_quad32_to_bytes s))
[]
Vale.SHA.SHA_helpers.lemma_hash_to_bytes
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s == 2) (ensures Vale.SHA.SHA_helpers.make_ordered_hash s.[ 0 ] s.[ 1 ] == Vale.SHA.SHA_helpers.le_bytes_to_hash (Vale.Def.Types_s.le_seq_quad32_to_bytes s))
{ "end_col": 4, "end_line": 1077, "start_col": 2, "start_line": 1075 }
FStar.Pervasives.Lemma
val lemma_sha256_msg1 (dst src:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w_256 /\ dst == ws_quad32 (t-16) block /\ src.lo0 == ws_opaque block (t-12)) (ensures sha256_msg1_spec dst src == ws_partial t block)
[ { "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 }, { ...
false
let lemma_sha256_msg1 (dst src:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w(SHA2_256) /\ dst == ws_quad32 (t-16) block /\ src.lo0 == ws_opaque block (t-12)) (ensures sha256_msg1_spec dst src == ws_partial t block) = sha256_msg1_spec_reveal (); let init ...
val lemma_sha256_msg1 (dst src:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w_256 /\ dst == ws_quad32 (t-16) block /\ src.lo0 == ws_opaque block (t-12)) (ensures sha256_msg1_spec dst src == ws_partial t block) let lemma_sha256_msg1 (dst src: quad32) (t: counter...
false
null
true
sha256_msg1_spec_reveal (); 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 lemma_add_wrap_quad32_is_add_mod_quad32 init sigma0_out; ws_partial_reveal (); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Prims.unit", "Vale.SHA.SHA_helpers.ws_partial_reveal", "Vale.SHA.SHA_helpers.lemma_add_wrap_quad32_is_add_mod_quad32", "Vale.SHA.SHA_helpers._sigma0_quad32", "Vale.SHA.SHA_helpers.ws_quad32", "Prims.op_Subtra...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_sha256_msg1 (dst src:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w_256 /\ dst == ws_quad32 (t-16) block /\ src.lo0 == ws_opaque block (t-12)) (ensures sha256_msg1_spec dst src == ws_partial t block)
[]
Vale.SHA.SHA_helpers.lemma_sha256_msg1
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
dst: Vale.Def.Types_s.quad32 -> src: Vale.Def.Types_s.quad32 -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> FStar.Pervasives.Lemma (requires 16 <= t /\ t < Vale.SHA.SHA_helpers.size_k_w_256 /\ dst == Vale.SHA.SHA_helpers.ws_quad32 (t - 16) block /\ ...
{ "end_col": 4, "end_line": 455, "start_col": 2, "start_line": 449 }
FStar.Pervasives.Lemma
val lemma_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh: quad32) (wk0 wk1: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256 - 1}) : Lemma (requires vv wk0 == add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t) /\ vv wk1 == add_mod32 (k0 SHA2_256).[ t + 1 ] (ws_op...
[ { "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 }, { ...
false
let lemma_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh:quad32) (wk0 wk1:UInt32.t) (block:block_w) (t:counter{t < size_k_w_256 - 1}) : Lemma (requires vv wk0 == add_mod32 (k0 SHA2_256).[t] (ws_opaque block t) /\ vv wk1 == add_mod32 (k0 SHA2_256).[t+1] (ws_opaque block (t+1))) (ensures (let hash0 = mak...
val lemma_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh: quad32) (wk0 wk1: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256 - 1}) : Lemma (requires vv wk0 == add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t) /\ vv wk1 == add_mod32 (k0 SHA2_256).[ t + 1 ] (ws_op...
false
null
true
let hash0 = make_hash abef cdgh in let hash1 = shuffle_core_opaque block hash0 t in let hash2 = shuffle_core_opaque block hash1 (t + 1) in let abef', cdgh' = sha256_rnds2_spec_update_quad32 abef cdgh wk0 in let abef'', cdgh'' = sha256_rnds2_spec_update_quad32 abef' cdgh' wk1 in lemma_rnds_quad32 abef cdgh wk0 block t; ...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "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", "Prims.op_Subtraction", "Vale.SHA.SHA_helpers.size_k_w_256", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "Vale.SHA.SHA_helpers.word", "Val...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_rnds2_spec_quad32_is_shuffle_core_x2 (abef cdgh: quad32) (wk0 wk1: UInt32.t) (block: block_w) (t: counter{t < size_k_w_256 - 1}) : Lemma (requires vv wk0 == add_mod32 (k0 SHA2_256).[ t ] (ws_opaque block t) /\ vv wk1 == add_mod32 (k0 SHA2_256).[ t + 1 ] (ws_op...
[]
Vale.SHA.SHA_helpers.lemma_rnds2_spec_quad32_is_shuffle_core_x2
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
abef: Vale.Def.Types_s.quad32 -> cdgh: Vale.Def.Types_s.quad32 -> wk0: FStar.UInt32.t -> wk1: 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 - 1} -> FStar.Pervasives.Lemma (requires Vale.SHA.SHA_help...
{ "end_col": 4, "end_line": 349, "start_col": 3, "start_line": 339 }
FStar.Pervasives.Lemma
val lemma_ws_computed_is_ws (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (ws_computed b t == ws SHA2_256 b t)
[ { "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 }, { ...
false
let lemma_ws_computed_is_ws (b:block_w) (t:counter{t < size_k_w_256}) : Lemma (ws_computed b t == ws SHA2_256 b t) = Pervasives.reveal_opaque (`%ws) ws; if t < block_word_length SHA2_256 then ( assert (vv (ws_computed b t) == ws_opaque b t); assert (to_uint32 (ws_opaque b t) == ws SHA2_256 b t); () ...
val lemma_ws_computed_is_ws (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (ws_computed b t == ws SHA2_256 b t) let lemma_ws_computed_is_ws (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (ws_computed b t == ws SHA2_256 b t) =
false
null
true
Pervasives.reveal_opaque (`%ws) ws; if t < block_word_length SHA2_256 then (assert (vv (ws_computed b t) == ws_opaque b t); assert (to_uint32 (ws_opaque b t) == ws SHA2_256 b t); ()) else (let t16 = to_uint32 (ws_opaque b (t - 16)) in let t15 = to_uint32 (ws_opaque b (t - 15)) in let t7 = to_uint32 ...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "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.block_word_length", "Spec.Hash.Definitions.SHA2_256", "Prims.unit", "Prims._assert", "Prims.eq2", "FStar.UInt32.t", "Vale.SHA.SHA_helper...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "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...
null
val lemma_ws_computed_is_ws (b: block_w) (t: counter{t < size_k_w_256}) : Lemma (ws_computed b t == ws SHA2_256 b t)
[]
Vale.SHA.SHA_helpers.lemma_ws_computed_is_ws
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.SHA.SHA_helpers.block_w -> t: Vale.SHA.SHA_helpers.counter{t < Vale.SHA.SHA_helpers.size_k_w_256} -> FStar.Pervasives.Lemma (ensures Vale.SHA.SHA_helpers.ws_computed b t == Spec.SHA2.Lemmas.ws Spec.Hash.Definitions.SHA2_256 b t )
{ "end_col": 3, "end_line": 508, "start_col": 2, "start_line": 494 }
FStar.Pervasives.Lemma
val lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA...
[ { "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 }, { ...
false
let lemma_endian_relation (quads qs:seq quad32) (input2:seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA2_256...
val lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA...
false
null
true
let fi (i: nat{i < length (quads_to_block qs)}) : Lemma ((quads_to_block qs).[ i ] == (words_of_bytes SHA2_256 #(block_word_length SHA2_256) input2).[ i ]) = let open Vale.Def.Words.Four_s in let open Vale.Lib.Seqs_s in let ni = (seq_four_to_seq_LE quads).[ i ] in let b = slice input2 (4 * i) (4 *...
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "FStar.UInt8.t", "Prims._assert", "FStar.Seq.Base.equal", "Vale.SHA.SHA_helpers.word", "Vale.SHA.SHA_helpers.quads_to_block", "Spec.Hash.Definitions.words_of_bytes", "Spec.Hash.Definitions.SHA2_256", "Spec.Hash.Definitions.block_word_length", "Pri...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA...
[]
Vale.SHA.SHA_helpers.lemma_endian_relation
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> qs: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> input2: FStar.Seq.Base.seq FStar.UInt8.t -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length qs == 4 /\ FStar.Seq.Base.length input2 == 64 /\ qs == Vale.Arch.Types.reverse_by...
{ "end_col": 99, "end_line": 868, "start_col": 3, "start_line": 803 }
FStar.Pervasives.Lemma
val lemma_sha256_step2 (src1 src2: quad32) (t: counter) (block: block_w) : Lemma (requires 16 <= t /\ t < size_k_w (SHA2_256) - 3 /\ src2.hi2 == ws_opaque block (t - 2) /\ src2.hi3 == ws_opaque block (t - 1) /\ (let w = sha256_msg1_spec_t (t - 16) block in let mid = ws_quad32...
[ { "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 }, { ...
false
let lemma_sha256_step2 (src1 src2:quad32) (t:counter) (block:block_w) : Lemma (requires 16 <= t /\ t < size_k_w(SHA2_256) - 3 /\ src2.hi2 == ws_opaque block (t-2) /\ src2.hi3 == ws_opaque block (t-1) /\ (let w = sha256_msg1_spec_t (t-16) block in let mid = ws_quad32 (t...
val lemma_sha256_step2 (src1 src2: quad32) (t: counter) (block: block_w) : Lemma (requires 16 <= t /\ t < size_k_w (SHA2_256) - 3 /\ src2.hi2 == ws_opaque block (t - 2) /\ src2.hi3 == ws_opaque block (t - 1) /\ (let w = sha256_msg1_spec_t (t - 16) block in let mid = ws_quad32...
false
null
true
sha256_msg2_spec_reveal (); let w = sha256_msg1_spec_t (t - 16) block in let mid = ws_quad32 (t - 7) block in let final = sha256_msg2_spec src1 src2 in lemma_ws_computed_is_ws_opaque block (t); lemma_ws_computed_is_ws_opaque block (t + 1); ()
{ "checked_file": "Vale.SHA.SHA_helpers.fst.checked", "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",...
[ "lemma" ]
[ "Vale.Def.Types_s.quad32", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Prims.unit", "Vale.SHA.SHA_helpers.lemma_ws_computed_is_ws_opaque", "Prims.op_Addition", "Vale.X64.CryptoInstructions_s.sha256_msg2_spec", "Vale.SHA.SHA_helpers.ws_quad32", "Prims.op_Subtraction", "Vale.SHA...
[]
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...
false
false
Vale.SHA.SHA_helpers.fst
{ "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...
null
val lemma_sha256_step2 (src1 src2: quad32) (t: counter) (block: block_w) : Lemma (requires 16 <= t /\ t < size_k_w (SHA2_256) - 3 /\ src2.hi2 == ws_opaque block (t - 2) /\ src2.hi3 == ws_opaque block (t - 1) /\ (let w = sha256_msg1_spec_t (t - 16) block in let mid = ws_quad32...
[]
Vale.SHA.SHA_helpers.lemma_sha256_step2
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
src1: Vale.Def.Types_s.quad32 -> src2: Vale.Def.Types_s.quad32 -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> FStar.Pervasives.Lemma (requires 16 <= t /\ t < Spec.SHA2.size_k_w Spec.Hash.Definitions.SHA2_256 - 3 /\ Mkfour?.hi2 src2 == Vale.SHA.SHA_h...
{ "end_col": 4, "end_line": 594, "start_col": 2, "start_line": 588 }
Prims.Tot
val va_codegen_success_MulAdd_unroll_1way : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_codegen_success_MulAdd_unroll_1way () = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 1) (va_op_vec_opr_vec 0) (va_op_reg_opr_reg 7) Secret) (va_pbool_and (va_codegen_success_VPolyAdd (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and ...
val va_codegen_success_MulAdd_unroll_1way : va_dummy:unit -> Tot va_pbool let va_codegen_success_MulAdd_unroll_1way () =
false
null
false
(va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 1) (va_op_vec_opr_vec 0) (va_op_reg_opr_reg 7) Secret) (va_pbool_and (va_codegen_success_VPolyAdd (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_an...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.PPC64LE.InsVector.va_codegen_success_Load128_byte16_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.AES.PPC64LE.PolyOps....
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_codegen_success_MulAdd_unroll_1way : va_dummy:unit -> Tot va_pbool
[]
Vale.AES.PPC64LE.GHash.va_codegen_success_MulAdd_unroll_1way
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 67, "end_line": 58, "start_col": 2, "start_line": 52 }
Prims.Tot
val va_codegen_success_GhashUnroll_n : exactly2:bool -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_codegen_success_GhashUnroll_n exactly2 = (va_pbool_and (if exactly2 then va_pbool_and (va_codegen_success_MulAdd_unroll_2way ()) (va_ttrue ()) else va_pbool_and (va_codegen_success_MulAdd_unroll_1way ()) (va_ttrue ())) (va_pbool_and (va_codegen_success_Vspltisw (va_op_vec_opr_vec 8) 0) (va_pbool_and ...
val va_codegen_success_GhashUnroll_n : exactly2:bool -> Tot va_pbool let va_codegen_success_GhashUnroll_n exactly2 =
false
null
false
(va_pbool_and (if exactly2 then va_pbool_and (va_codegen_success_MulAdd_unroll_2way ()) (va_ttrue ()) else va_pbool_and (va_codegen_success_MulAdd_unroll_1way ()) (va_ttrue ())) (va_pbool_and (va_codegen_success_Vspltisw (va_op_vec_opr_vec 8) 0) (va_pbool_and (va_codegen_success_LoadImmShl64 (va...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.bool", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.AES.PPC64LE.GHash.va_codegen_success_MulAdd_unroll_2way", "Vale.PPC64LE.Decls.va_ttrue", "Vale.AES.PPC64LE.GHash.va_codegen_success_MulAdd_unroll_1way", "Vale.PPC64LE.Decls.va_pbool", "Vale.PPC64LE.InsVector.va_codegen_success_Vspltisw", "Vale.PPC...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_codegen_success_GhashUnroll_n : exactly2:bool -> Tot va_pbool
[]
Vale.AES.PPC64LE.GHash.va_codegen_success_GhashUnroll_n
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
exactly2: Prims.bool -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 98, "end_line": 819, "start_col": 2, "start_line": 812 }
Prims.Tot
val va_code_Ghash_buffer_loop_body : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_code_Ghash_buffer_loop_body () = (va_Block (va_CCons (va_Block (va_CNil ())) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_code_GhashUnroll_n true) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 7) (va_op_reg_opr_reg 7) 32) (va_CCons ...
val va_code_Ghash_buffer_loop_body : va_dummy:unit -> Tot va_code let va_code_Ghash_buffer_loop_body () =
false
null
false
(va_Block (va_CCons (va_Block (va_CNil ())) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_code_GhashUnroll_n true) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 7) (va_op_...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.PPC64LE.Decls.va_CNil", "Vale.AES.PPC64LE.GHash.va_code_GhashUnroll_n", "Vale.PPC64LE.InsBasic.va_code_AddImm", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.PPC64LE.InsBasic.va_code_SubImm", "Vale.PPC64LE.Decls.va_cod...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_code_Ghash_buffer_loop_body : va_dummy:unit -> Tot va_code
[]
Vale.AES.PPC64LE.GHash.va_code_Ghash_buffer_loop_body
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 87, "end_line": 1099, "start_col": 2, "start_line": 1096 }
Prims.Tot
val va_wp_MulAdd_unroll_2way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_wp_MulAdd_unroll_2way (in_b:buffer128) (index:nat) (h:poly) (prev:poly) (data:(seq quad32)) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (let (pdata:(Prims.int -> Vale.AES.GHash_BE.poly128)) = Vale.AES.GHash_BE.fun_seq_quad32_BE_poly128 data in FStar.Seq.Base.length #...
val va_wp_MulAdd_unroll_2way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 let va_wp_MulAdd_unroll_2way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) ...
false
null
false
(va_get_ok va_s0 /\ (let pdata:(Prims.int -> Vale.AES.GHash_BE.poly128) = Vale.AES.GHash_BE.fun_seq_quad32_BE_poly128 data in FStar.Seq.Base.length #quad32 data == 2 /\ in_b_blocks in_b index 2 (va_get_mem_heaplet 1 va_s0) (va_get_mem_layout va_s0) (va_get_reg 7 va_s0) ...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Vale.PPC64LE.Memory.buffer128", "Prims.nat", "Vale.Math.Poly2_s.poly", "FStar.Seq.Base.seq", "Vale.PPC64LE.Memory.quad32", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "Vale.AES....
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_wp_MulAdd_unroll_2way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[]
Vale.AES.PPC64LE.GHash.va_wp_MulAdd_unroll_2way
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
in_b: Vale.PPC64LE.Memory.buffer128 -> index: Prims.nat -> h: Vale.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
{ "end_col": 81, "end_line": 487, "start_col": 2, "start_line": 462 }
Prims.Tot
val va_code_MulAdd_unroll_2way : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_code_MulAdd_unroll_2way () = (va_Block (va_CCons (va_code_LoadImm64 (va_op_reg_opr_reg 10) 16) (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 1) (va_op_vec_opr_vec 0) (va_op_reg_opr_reg 7) Secret) (va_CCons (va_code_Load128_byte16_buffer_index (va_op_heaplet_mem_heaplet 1) (va_...
val va_code_MulAdd_unroll_2way : va_dummy:unit -> Tot va_code let va_code_MulAdd_unroll_2way () =
false
null
false
(va_Block (va_CCons (va_code_LoadImm64 (va_op_reg_opr_reg 10) 16) (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 1) (va_op_vec_opr_vec 0) (va_op_reg_opr_reg 7) Secret) (va_CCons (va_code_Load128_byte16_buffer_index (va_op_heaplet_m...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.PPC64LE.InsBasic.va_code_LoadImm64", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.PPC64LE.InsVector.va_code_Load128_byte16_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_vec_opr_vec",...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_code_MulAdd_unroll_2way : va_dummy:unit -> Tot va_code
[]
Vale.AES.PPC64LE.GHash.va_code_MulAdd_unroll_2way
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 21, "end_line": 235, "start_col": 2, "start_line": 220 }
Prims.Tot
val va_code_ReduceLast : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_code_ReduceLast () = (va_Block (va_CCons (va_code_Reduce ()) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_Block (va_CNil ())) (va_CNil ())))))
val va_code_ReduceLast : va_dummy:unit -> Tot va_code let va_code_ReduceLast () =
false
null
false
(va_Block (va_CCons (va_code_Reduce ()) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_Block (va_CNil ())) (va_CNil ())))))
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.AES.PPC64LE.GHash.va_code_Reduce", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_code_ReduceLast : va_dummy:unit -> Tot va_code
[]
Vale.AES.PPC64LE.GHash.va_code_ReduceLast
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 34, "end_line": 721, "start_col": 2, "start_line": 720 }
Prims.Tot
val va_code_Reduce : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_code_Reduce () = (va_Block (va_CCons (va_code_Vspltisw (va_op_vec_opr_vec 0) 0) (va_CCons (va_code_Low64ToHigh (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 3)) (va_CCons (va_code_VPolyAdd (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 9)) (va_CCons (va_code_VSwap (va_op_vec_opr_vec 10) ...
val va_code_Reduce : va_dummy:unit -> Tot va_code let va_code_Reduce () =
false
null
false
(va_Block (va_CCons (va_code_Vspltisw (va_op_vec_opr_vec 0) 0) (va_CCons (va_code_Low64ToHigh (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 3)) (va_CCons (va_code_VPolyAdd (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 9)) (va_CCons ...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.PPC64LE.InsVector.va_code_Vspltisw", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.AES.PPC64LE.GF128_Mul.va_code_Low64ToHigh", "Vale.AES.PPC64LE.PolyOps.va_code_VPolyAdd", "Vale.AES.PPC64LE.PolyOps.va_code_VSwap", "Val...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_code_Reduce : va_dummy:unit -> Tot va_code
[]
Vale.AES.PPC64LE.GHash.va_code_Reduce
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 33, "end_line": 534, "start_col": 2, "start_line": 523 }
Prims.Tot
val va_codegen_success_Ghash_register : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_codegen_success_Ghash_register () = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 5) (va_op_reg_opr_reg 5) Secret) (va_pbool_and (va_codegen_success_Vspltisw (va_op_vec_opr_vec 0) 0) (va_pbool_and (va_codegen_success_VSwap (va_op_vec_opr_vec 5)...
val va_codegen_success_Ghash_register : va_dummy:unit -> Tot va_pbool let va_codegen_success_Ghash_register () =
false
null
false
(va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 5) (va_op_reg_opr_reg 5) Secret) (va_pbool_and (va_codegen_success_Vspltisw (va_op_vec_opr_vec 0) 0) (va_pbool_and (va_codegen_success_VSwap (va_op_vec_opr_vec 5) (va_op_vec_opr_v...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.PPC64LE.InsVector.va_codegen_success_Load128_byte16_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.InsVector.va...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_codegen_success_Ghash_register : va_dummy:unit -> Tot va_pbool
[]
Vale.AES.PPC64LE.GHash.va_codegen_success_Ghash_register
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 22, "end_line": 929, "start_col": 2, "start_line": 913 }
Prims.Tot
val va_code_GhashUnroll_n : exactly2:bool -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_code_GhashUnroll_n exactly2 = (va_Block (va_CCons (if exactly2 then va_Block (va_CCons (va_code_MulAdd_unroll_2way ()) (va_CNil ())) else va_Block (va_CCons (va_code_MulAdd_unroll_1way ()) (va_CNil ()))) (va_CCons (va_code_Vspltisw (va_op_vec_opr_vec 8) 0) (va_CCons (va_code_LoadImmShl64 (va_op_reg_opr...
val va_code_GhashUnroll_n : exactly2:bool -> Tot va_code let va_code_GhashUnroll_n exactly2 =
false
null
false
(va_Block (va_CCons (if exactly2 then va_Block (va_CCons (va_code_MulAdd_unroll_2way ()) (va_CNil ())) else va_Block (va_CCons (va_code_MulAdd_unroll_1way ()) (va_CNil ()))) (va_CCons (va_code_Vspltisw (va_op_vec_opr_vec 8) 0) (va_CCons (va_code_LoadImmShl64 (va_op_reg_opr_reg 10...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.bool", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.AES.PPC64LE.GHash.va_code_MulAdd_unroll_2way", "Vale.PPC64LE.Decls.va_CNil", "Vale.AES.PPC64LE.GHash.va_code_MulAdd_unroll_1way", "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.InsVector.va_code_Vspltisw", "Vale.PPC64LE.D...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_code_GhashUnroll_n : exactly2:bool -> Tot va_code
[]
Vale.AES.PPC64LE.GHash.va_code_GhashUnroll_n
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
exactly2: Prims.bool -> Vale.PPC64LE.Decls.va_code
{ "end_col": 58, "end_line": 808, "start_col": 2, "start_line": 802 }
Prims.Tot
val va_codegen_success_Reduce : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_codegen_success_Reduce () = (va_pbool_and (va_codegen_success_Vspltisw (va_op_vec_opr_vec 0) 0) (va_pbool_and (va_codegen_success_Low64ToHigh (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 3)) (va_pbool_and (va_codegen_success_VPolyAdd (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 9)) (v...
val va_codegen_success_Reduce : va_dummy:unit -> Tot va_pbool let va_codegen_success_Reduce () =
false
null
false
(va_pbool_and (va_codegen_success_Vspltisw (va_op_vec_opr_vec 0) 0) (va_pbool_and (va_codegen_success_Low64ToHigh (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 3)) (va_pbool_and (va_codegen_success_VPolyAdd (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 9)) ...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.PPC64LE.InsVector.va_codegen_success_Vspltisw", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.AES.PPC64LE.GF128_Mul.va_codegen_success_Low64ToHigh", "Vale.AES.PPC64LE.PolyOps.va_codegen_success_VPolyAdd", "Vale.AES.PPC64LE.PolyOps.va_codegen_success...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_codegen_success_Reduce : va_dummy:unit -> Tot va_pbool
[]
Vale.AES.PPC64LE.GHash.va_codegen_success_Reduce
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 74, "end_line": 552, "start_col": 2, "start_line": 539 }
Prims.Tot
val va_wp_MulAdd_unroll_1way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_wp_MulAdd_unroll_1way (in_b:buffer128) (index:nat) (h:poly) (prev:poly) (data:(seq quad32)) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (let (pdata:(Prims.int -> Vale.AES.GHash_BE.poly128)) = Vale.AES.GHash_BE.fun_seq_quad32_BE_poly128 data in FStar.Seq.Base.length #...
val va_wp_MulAdd_unroll_1way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 let va_wp_MulAdd_unroll_1way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) ...
false
null
false
(va_get_ok va_s0 /\ (let pdata:(Prims.int -> Vale.AES.GHash_BE.poly128) = Vale.AES.GHash_BE.fun_seq_quad32_BE_poly128 data in FStar.Seq.Base.length #quad32 data == 1 /\ in_b_blocks in_b index 1 (va_get_mem_heaplet 1 va_s0) (va_get_mem_layout va_s0) (va_get_reg 7 va_s0) ...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Vale.PPC64LE.Memory.buffer128", "Prims.nat", "Vale.Math.Poly2_s.poly", "FStar.Seq.Base.seq", "Vale.PPC64LE.Memory.quad32", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "Vale.AES....
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_wp_MulAdd_unroll_1way (in_b: buffer128) (index: nat) (h prev: poly) (data: (seq quad32)) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[]
Vale.AES.PPC64LE.GHash.va_wp_MulAdd_unroll_1way
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
in_b: Vale.PPC64LE.Memory.buffer128 -> index: Prims.nat -> h: Vale.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
{ "end_col": 89, "end_line": 188, "start_col": 2, "start_line": 172 }
Prims.Tot
val va_code_MulAdd_unroll_1way : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_code_MulAdd_unroll_1way () = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 1) (va_op_vec_opr_vec 0) (va_op_reg_opr_reg 7) Secret) (va_CCons (va_code_VPolyAdd (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_VPolyMulLow (va_op_vec_...
val va_code_MulAdd_unroll_1way : va_dummy:unit -> Tot va_code let va_code_MulAdd_unroll_1way () =
false
null
false
(va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 1) (va_op_vec_opr_vec 0) (va_op_reg_opr_reg 7) Secret) (va_CCons (va_code_VPolyAdd (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.PPC64LE.InsVector.va_code_Load128_byte16_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.AE...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_code_MulAdd_unroll_1way : va_dummy:unit -> Tot va_code
[]
Vale.AES.PPC64LE.GHash.va_code_MulAdd_unroll_1way
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 26, "end_line": 47, "start_col": 2, "start_line": 41 }
Prims.Tot
val va_wp_Reduce (f: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_wp_Reduce (f:poly) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (let (g:Vale.Math.Poly2_s.poly) = add (Vale.Math.Poly2_s.monomial 128) f in let (c:Vale.Math.Poly2_s.poly) = Vale.Math.Poly2_s.reverse (Vale.Math.Poly2_s.shift f (-1)) 63 in let (a0:Vale.Math.Poly2_s.po...
val va_wp_Reduce (f: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 let va_wp_Reduce (f: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
false
null
false
(va_get_ok va_s0 /\ (let g:Vale.Math.Poly2_s.poly = add (Vale.Math.Poly2_s.monomial 128) f in let c:Vale.Math.Poly2_s.poly = Vale.Math.Poly2_s.reverse (Vale.Math.Poly2_s.shift f (- 1)) 63 in let a0:Vale.Math.Poly2_s.poly = Vale.Math.Poly2.Bits_s.of_quad32 (va_get_vec 2 va_s0) in let a1:Vale.Math.Poly2_s.p...
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Vale.Math.Poly2_s.poly", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Prims.eq2", "Vale.Math.Poly2_s.shift", "Vale.Math.Poly2.Bits_s.of_quad32", "Vale.PPC64LE.Decls.va_get_vec", "Prims.op_Minus", "Vale.Math.Poly2_s.zero", "Vale.Ma...
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_wp_Reduce (f: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[]
Vale.AES.PPC64LE.GHash.va_wp_Reduce
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
f: Vale.Math.Poly2_s.poly -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
{ "end_col": 98, "end_line": 689, "start_col": 2, "start_line": 668 }
Prims.Tot
val va_codegen_success_Ghash_buffer_while0 : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_codegen_success_Ghash_buffer_while0 () = (va_pbool_and (va_codegen_success_Ghash_buffer_body0 ()) (va_ttrue ()))
val va_codegen_success_Ghash_buffer_while0 : va_dummy:unit -> Tot va_pbool let va_codegen_success_Ghash_buffer_while0 () =
false
null
false
(va_pbool_and (va_codegen_success_Ghash_buffer_body0 ()) (va_ttrue ()))
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.AES.PPC64LE.GHash.va_codegen_success_Ghash_buffer_body0", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_codegen_success_Ghash_buffer_while0 : va_dummy:unit -> Tot va_pbool
[]
Vale.AES.PPC64LE.GHash.va_codegen_success_Ghash_buffer_while0
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 73, "end_line": 1631, "start_col": 2, "start_line": 1631 }
Prims.Tot
val va_codegen_success_Mod_cr0 : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_codegen_success_Mod_cr0 () = (va_ttrue ())
val va_codegen_success_Mod_cr0 : va_dummy:unit -> Tot va_pbool let va_codegen_success_Mod_cr0 () =
false
null
false
(va_ttrue ())
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_codegen_success_Mod_cr0 : va_dummy:unit -> Tot va_pbool
[]
Vale.AES.PPC64LE.GHash.va_codegen_success_Mod_cr0
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 15, "end_line": 1335, "start_col": 2, "start_line": 1335 }
Prims.Tot
val va_code_Ghash_buffer_body0 : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GF128", "short_module": null }, { ...
false
let va_code_Ghash_buffer_body0 () = (va_Block (va_CCons (va_code_Mod_cr0 ()) (va_CCons (va_code_Ghash_buffer_loop_body ()) (va_CNil ()))))
val va_code_Ghash_buffer_body0 : va_dummy:unit -> Tot va_code let va_code_Ghash_buffer_body0 () =
false
null
false
(va_Block (va_CCons (va_code_Mod_cr0 ()) (va_CCons (va_code_Ghash_buffer_loop_body ()) (va_CNil ())) ))
{ "checked_file": "Vale.AES.PPC64LE.GHash.fst.checked", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.ch...
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.AES.PPC64LE.GHash.va_code_Mod_cr0", "Vale.AES.PPC64LE.GHash.va_code_Ghash_buffer_loop_body", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.AES.PPC64LE.GHash open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_BE_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE....
false
true
Vale.AES.PPC64LE.GHash.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val va_code_Ghash_buffer_body0 : va_dummy:unit -> Tot va_code
[]
Vale.AES.PPC64LE.GHash.va_code_Ghash_buffer_body0
{ "file_name": "obj/Vale.AES.PPC64LE.GHash.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 10, "end_line": 1389, "start_col": 2, "start_line": 1388 }