file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
MerkleTree.fsti
MerkleTree.merkle_tree
val merkle_tree : Type0
let merkle_tree = MTNL.merkle_tree
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 34, "end_line": 30, "start_col": 0, "start_line": 30 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "MerkleTree.Low.merkle_tree" ]
[]
false
false
false
true
true
let merkle_tree =
MTNL.merkle_tree
false
MerkleTree.fsti
MerkleTree.pt
val pt : _: _ -> _: _ -> _: _ -> Prims.logical
let pt = fun _ _ _ -> True
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 26, "end_line": 37, "start_col": 0, "start_line": 37 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: _ -> _: _ -> _: _ -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.l_True", "Prims.logical" ]
[]
false
false
false
true
true
let pt =
fun _ _ _ -> True
false
MerkleTree.fsti
MerkleTree.hash
val hash : Type0
let hash #hash_size = MTNLD.hash #hash_size
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 43, "end_line": 24, "start_col": 0, "start_line": 24 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.Low.Datastructures.hash" ]
[]
false
false
false
true
true
let hash #hash_size =
MTNLD.hash #hash_size
false
MerkleTree.fsti
MerkleTree.mt_p
val mt_p : Type0
let mt_p = MTNL.mt_p
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 20, "end_line": 31, "start_col": 0, "start_line": 31 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "MerkleTree.Low.mt_p" ]
[]
false
false
false
true
true
let mt_p =
MTNL.mt_p
false
LowParse.Spec.ConstInt32.fst
LowParse.Spec.ConstInt32.parse_constint32le_unfold
val parse_constint32le_unfold (v: nat{0 <= v /\ v < 4294967296}) (input: bytes) : Lemma (parse (parse_constint32le v) input == (let res = parse parse_int32le input in match res with | Some (x, consumed) -> if U32.v x = v && consumed = 4 then Some (x, consumed) else None | None -> N...
val parse_constint32le_unfold (v: nat{0 <= v /\ v < 4294967296}) (input: bytes) : Lemma (parse (parse_constint32le v) input == (let res = parse parse_int32le input in match res with | Some (x, consumed) -> if U32.v x = v && consumed = 4 then Some (x, consumed) else None | None -> N...
let parse_constint32le_unfold (v: nat { 0 <= v /\ v < 4294967296 } ) (input: bytes) : Lemma (parse (parse_constint32le v) input == (let res = parse parse_int32le input in match res with | Some (x, consumed) -> if U32.v x = v && consumed = 4 then Some (x, consumed) else ...
{ "file_name": "src/lowparse/LowParse.Spec.ConstInt32.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 98, "start_col": 0, "start_line": 78 }
module LowParse.Spec.ConstInt32 (* LowParse specification module for parsing 32 bits = 4 bytes unsigned constants Examples: uint32 foo = 5 uint32_le foo = 7 *) (* TODO: support big endian constants *) include FStar.Endianness include LowParse.Spec.Base include LowParse.Spec.Combinators include LowParse....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int32le.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Spec.Base.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked...
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.UInt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Prims.nat{0 <= v /\ v < 4294967296} -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.parse (LowParse.Spec.ConstInt32.parse_constint32le v) input == (let res = LowParse.Spec.Base.parse LowParse.Spec.Int32le.parse_int32le input in (match res with ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Bytes.bytes", "FStar.UInt32.t", "LowParse.Spec.Base.consumed_length", "Prims.op_AmpAmp", "Prims.op_Equality", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.op_Grea...
[]
false
false
true
false
false
let parse_constint32le_unfold (v: nat{0 <= v /\ v < 4294967296}) (input: bytes) : Lemma (parse (parse_constint32le v) input == (let res = parse parse_int32le input in match res with | Some (x, consumed) -> if U32.v x = v && consumed = 4 then Some (x, consumed) else None | None -> N...
let res = parse parse_int32le input in match res with | Some (x, consumed) -> if U32.v x = v && consumed = 4 then () | None -> ()
false
Hacl.Poly1305.Field32xN.Lemmas0.fst
Hacl.Poly1305.Field32xN.Lemmas0.mul_felem5_lemma_2
val mul_felem5_lemma_2: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
val mul_felem5_lemma_2: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
let mul_felem5_lemma_2 f1 r = let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in let tmp = v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v f13 * pow78 * as_nat5 r + v f14 * pow104 * as_nat5 r in calc (==) { (as_nat5 f1 * as_nat5 r) % prime; (==) { mul_fe...
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas0.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 117, "end_line": 552, "start_col": 0, "start_line": 528 }
module Hacl.Poly1305.Field32xN.Lemmas0 open Lib.IntTypes open Lib.IntVector open Lib.Sequence open FStar.Mul open FStar.Calc open Hacl.Spec.Poly1305.Vec include Hacl.Spec.Poly1305.Field32xN #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_prime: unit -> Lemma (po...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Spec.Poly1305.Field32xN.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Field32xN", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f1: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 r (2, 2, 2, 2, 2)} -> FStar.Pervasives.Lemma (ensures (let _ = f1 in (let F...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Poly1305.Field32xN.tup64_5", "Hacl.Spec.Poly1305.Field32xN.tup64_fits5", "FStar.Pervasives.Native.Mktuple5", "Prims.nat", "Lib.IntTypes.uint64", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "Hacl.Spec.Poly1305.Field32xN.as_nat5", "Hacl.Spec.Pol...
[]
false
false
true
false
false
let mul_felem5_lemma_2 f1 r =
let f10, f11, f12, f13, f14 = f1 in let r0, r1, r2, r3, r4 = r in let tmp = v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + (v f13 * pow78) * as_nat5 r + (v f14 * pow104) * as_nat5 r in calc ( == ) { (as_nat5 f1 * as_nat5 r) % prime; ( == ) { mul_felem5_lemma_1 f1 r } (tmp + (v f12 * pow52...
false
Vale.Wrapper.X64.GCTR.fsti
Vale.Wrapper.X64.GCTR.gctr_bytes_st
val gctr_bytes_st : a: Vale.AES.AES_common_s.algorithm {a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256} -> Type0
let gctr_bytes_st (a: algorithm { a = AES_128 \/ a = AES_256 }) = key:Ghost.erased (Seq.seq nat32) -> in_b:uint8_p -> num_bytes:uint64 -> out_b:uint8_p -> keys_b:uint8_p -> ctr_b:uint8_p -> Stack unit (requires fun h0 -> B.disjoint in_b out_b /\ B.disjoint keys_b out_b /\ B.disjoint in_b keys_b...
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCTR.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 64, "start_col": 0, "start_line": 23 }
module Vale.Wrapper.X64.GCTR open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.AES.AES_s open Vale.AES.GCTR open Vale...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "...
[ { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Vale.AES.AES_common_s.algorithm {a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256} -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "Prims.l_or", "Prims.b2t", "Prims.op_Equality", "Vale.AES.AES_common_s.AES_128", "Vale.AES.AES_common_s.AES_256", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat32", "Vale.Wrapper.X64.GCTR.uint8_p", "Vale.Wrapper.X64.GCTR.uint64", "Prims.uni...
[]
false
false
false
false
true
let gctr_bytes_st (a: algorithm{a = AES_128 \/ a = AES_256}) =
key: Ghost.erased (Seq.seq nat32) -> in_b: uint8_p -> num_bytes: uint64 -> out_b: uint8_p -> keys_b: uint8_p -> ctr_b: uint8_p -> Stack unit (requires fun h0 -> B.disjoint in_b out_b /\ B.disjoint keys_b out_b /\ B.disjoint in_b keys_b /\ B.disjoint ctr_b in_...
false
Hacl.Poly1305.Field32xN.Lemmas0.fst
Hacl.Poly1305.Field32xN.Lemmas0.mul_felem5_lemma_1
val mul_felem5_lemma_1: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
val mul_felem5_lemma_1: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
let mul_felem5_lemma_1 f1 r = let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in let tmp = v f10 * as_nat5 r + v f12 * pow52 * as_nat5 r + v f13 * pow78 * as_nat5 r + v f14 * pow104 * as_nat5 r in calc (==) { (as_nat5 f1 * as_nat5 r) % prime; (==) { } (v f10 + v f11 * pow26 + v f...
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas0.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 108, "end_line": 513, "start_col": 0, "start_line": 488 }
module Hacl.Poly1305.Field32xN.Lemmas0 open Lib.IntTypes open Lib.IntVector open Lib.Sequence open FStar.Mul open FStar.Calc open Hacl.Spec.Poly1305.Vec include Hacl.Spec.Poly1305.Field32xN #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_prime: unit -> Lemma (po...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Spec.Poly1305.Field32xN.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Field32xN", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f1: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 r (2, 2, 2, 2, 2)} -> FStar.Pervasives.Lemma (ensures (let _ = f1 in (let F...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Poly1305.Field32xN.tup64_5", "Hacl.Spec.Poly1305.Field32xN.tup64_fits5", "FStar.Pervasives.Native.Mktuple5", "Prims.nat", "Lib.IntTypes.uint64", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "Hacl.Spec.Poly1305.Field32xN.as_nat5", "Hacl.Spec.Pol...
[]
false
false
true
false
false
let mul_felem5_lemma_1 f1 r =
let f10, f11, f12, f13, f14 = f1 in let r0, r1, r2, r3, r4 = r in let tmp = v f10 * as_nat5 r + (v f12 * pow52) * as_nat5 r + (v f13 * pow78) * as_nat5 r + (v f14 * pow104) * as_nat5 r in calc ( == ) { (as_nat5 f1 * as_nat5 r) % prime; ( == ) { () } (v f10 + v f11 * pow26 + v f12 * pow52 + v f13 * pow78 + v f...
false
MerkleTree.fsti
MerkleTree.mt_free_path
val mt_free_path (path: path_p) : HST.ST unit pf pt
val mt_free_path (path: path_p) : HST.ST unit pf pt
let mt_free_path (path:path_p): HST.ST unit pf pt = MTNL.free_path path
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 71, "end_line": 50, "start_col": 0, "start_line": 50 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
path: MerkleTree.path_p -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.path_p", "MerkleTree.Low.free_path", "Prims.unit", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_free_path (path: path_p) : HST.ST unit pf pt =
MTNL.free_path path
false
MerkleTree.fsti
MerkleTree.mt_init_path
val mt_init_path (hash_size: hash_size_t) (mtr: HH.rid) (r: HST.erid) : HST.ST path_p pf pt
val mt_init_path (hash_size: hash_size_t) (mtr: HH.rid) (r: HST.erid) : HST.ST path_p pf pt
let mt_init_path (hash_size:hash_size_t) (mtr:HH.rid) (r:HST.erid): HST.ST path_p pf pt = MTNL.init_path hash_size mtr r
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 120, "end_line": 47, "start_col": 0, "start_line": 47 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hash_size: MerkleTree.hash_size_t -> mtr: FStar.Monotonic.HyperHeap.rid -> r: FStar.HyperStack.ST.erid -> FStar.HyperStack.ST.ST MerkleTree.path_p
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.hash_size_t", "FStar.Monotonic.HyperHeap.rid", "FStar.HyperStack.ST.erid", "MerkleTree.Low.init_path", "MerkleTree.Low.path_p", "MerkleTree.path_p", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_init_path (hash_size: hash_size_t) (mtr: HH.rid) (r: HST.erid) : HST.ST path_p pf pt =
MTNL.init_path hash_size mtr r
false
MerkleTree.fsti
MerkleTree.mt_get_path_length
val mt_get_path_length (mtr: HH.rid) (path: const_path_p) : HST.ST U32.t pf pt
val mt_get_path_length (mtr: HH.rid) (path: const_path_p) : HST.ST U32.t pf pt
let mt_get_path_length (mtr:HH.rid) (path:const_path_p): HST.ST U32.t pf pt = MTNL.mt_get_path_length mtr path
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 110, "end_line": 57, "start_col": 0, "start_line": 57 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mtr: FStar.Monotonic.HyperHeap.rid -> path: MerkleTree.const_path_p -> FStar.HyperStack.ST.ST FStar.UInt32.t
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperHeap.rid", "MerkleTree.const_path_p", "MerkleTree.Low.mt_get_path_length", "LowStar.Vector.uint32_t", "FStar.UInt32.t", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_get_path_length (mtr: HH.rid) (path: const_path_p) : HST.ST U32.t pf pt =
MTNL.mt_get_path_length mtr path
false
MerkleTree.fsti
MerkleTree.tree_hash_size
val tree_hash_size : mt: MerkleTree.mt_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
let tree_hash_size (#h:HS.mem) (mt:mt_p) = MTNL.MT?.hash_size (B.get h mt 0)
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 76, "end_line": 77, "start_col": 0, "start_line": 77 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.mt_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.mt_p", "MerkleTree.Low.__proj__MT__item__hash_size", "LowStar.Monotonic.Buffer.get", "MerkleTree.Low.merkle_tree", "LowStar.Buffer.trivial_preorder", "MerkleTree.Low.Datastructures.hash_size_t" ]
[]
false
false
false
false
false
let tree_hash_size (#h: HS.mem) (mt: mt_p) =
MTNL.MT?.hash_size (B.get h mt 0)
false
MerkleTree.fsti
MerkleTree.mt_free_hash
val mt_free_hash (#hash_size: Ghost.erased hash_size_t) (h: hash #hash_size) : HST.ST unit pf pt
val mt_free_hash (#hash_size: Ghost.erased hash_size_t) (h: hash #hash_size) : HST.ST unit pf pt
let mt_free_hash (#hash_size:Ghost.erased hash_size_t) (h:hash #hash_size): HST.ST unit pf pt = MTNLHF.free_hash h
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 114, "end_line": 43, "start_col": 0, "start_line": 43 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Ghost.erased", "MerkleTree.hash_size_t", "MerkleTree.hash", "FStar.Ghost.reveal", "MerkleTree.Low.Hashfunctions.free_hash", "Prims.unit", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_free_hash (#hash_size: Ghost.erased hash_size_t) (h: hash #hash_size) : HST.ST unit pf pt =
MTNLHF.free_hash h
false
MerkleTree.fsti
MerkleTree.mt_init_hash
val mt_init_hash (hash_size: hash_size_t) (r: HST.erid) : HST.ST (hash #hash_size) pf pt
val mt_init_hash (hash_size: hash_size_t) (r: HST.erid) : HST.ST (hash #hash_size) pf pt
let mt_init_hash (hash_size:hash_size_t) (r:HST.erid): HST.ST (hash #hash_size) pf pt = MTNLHF.init_hash hash_size r
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 116, "end_line": 40, "start_col": 0, "start_line": 40 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hash_size: MerkleTree.hash_size_t -> r: FStar.HyperStack.ST.erid -> FStar.HyperStack.ST.ST MerkleTree.hash
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.hash_size_t", "FStar.HyperStack.ST.erid", "MerkleTree.Low.Hashfunctions.init_hash", "MerkleTree.Low.Datastructures.hash", "MerkleTree.hash", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_init_hash (hash_size: hash_size_t) (r: HST.erid) : HST.ST (hash #hash_size) pf pt =
MTNLHF.init_hash hash_size r
false
MerkleTree.fsti
MerkleTree.const_tree_hash_size
val const_tree_hash_size : mt: MerkleTree.const_mt_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
let const_tree_hash_size (#h:HS.mem) (mt:const_mt_p) = tree_hash_size #h (CB.cast mt)
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 85, "end_line": 79, "start_col": 0, "start_line": 79 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_mt_p", "MerkleTree.tree_hash_size", "LowStar.ConstBuffer.cast", "MerkleTree.Low.merkle_tree", "MerkleTree.Low.Datastructures.hash_size_t" ]
[]
false
false
false
false
false
let const_tree_hash_size (#h: HS.mem) (mt: const_mt_p) =
tree_hash_size #h (CB.cast mt)
false
MerkleTree.fsti
MerkleTree.mt_get_path_step
val mt_get_path_step (#h: HS.mem) (#mtr: HH.rid) (path: const_path_p) (i: U32.t) : HST.ST (hash #(const_path_hash_size #h path)) pf pt
val mt_get_path_step (#h: HS.mem) (#mtr: HH.rid) (path: const_path_p) (i: U32.t) : HST.ST (hash #(const_path_hash_size #h path)) pf pt
let mt_get_path_step (#h:HS.mem) (#mtr:HH.rid) (path:const_path_p) (i:U32.t) : HST.ST (hash #(const_path_hash_size #h path)) pf pt = let hash_size = MTNL.Path?.hash_size (B.index (CB.cast path) 0ul) in MTNL.mt_get_path_step #hash_size mtr path i
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 45, "end_line": 94, "start_col": 0, "start_line": 87 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
path: MerkleTree.const_path_p -> i: FStar.UInt32.t -> FStar.HyperStack.ST.ST MerkleTree.hash
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "FStar.Monotonic.HyperHeap.rid", "MerkleTree.const_path_p", "FStar.UInt32.t", "MerkleTree.Low.mt_get_path_step", "FStar.Ghost.hide", "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.Low.Datastructures.hash", "FStar.Ghost.reveal", "MerkleTree.Low.__proj__Pa...
[]
false
true
false
false
false
let mt_get_path_step (#h: HS.mem) (#mtr: HH.rid) (path: const_path_p) (i: U32.t) : HST.ST (hash #(const_path_hash_size #h path)) pf pt =
let hash_size = MTNL.Path?.hash_size (B.index (CB.cast path) 0ul) in MTNL.mt_get_path_step #hash_size mtr path i
false
MerkleTree.fsti
MerkleTree.path_hash_size
val path_hash_size : path: MerkleTree.path_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
let path_hash_size (#h:HS.mem) (path:path_p) = MTNL.Path?.hash_size (B.get h path 0)
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 84, "end_line": 73, "start_col": 0, "start_line": 73 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
path: MerkleTree.path_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.path_p", "MerkleTree.Low.__proj__Path__item__hash_size", "LowStar.Monotonic.Buffer.get", "MerkleTree.path", "LowStar.Buffer.trivial_preorder", "MerkleTree.Low.Datastructures.hash_size_t" ]
[]
false
false
false
false
false
let path_hash_size (#h: HS.mem) (path: path_p) =
MTNL.Path?.hash_size (B.get h path 0)
false
MerkleTree.fsti
MerkleTree.const_path_hash_size
val const_path_hash_size : path: MerkleTree.const_path_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
let const_path_hash_size (#h:HS.mem) (path:const_path_p) = path_hash_size #h (CB.cast path)
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 91, "end_line": 75, "start_col": 0, "start_line": 75 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
path: MerkleTree.const_path_p -> Prims.GTot MerkleTree.Low.Datastructures.hash_size_t
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_path_p", "MerkleTree.path_hash_size", "LowStar.ConstBuffer.cast", "MerkleTree.path", "MerkleTree.Low.Datastructures.hash_size_t" ]
[]
false
false
false
false
false
let const_path_hash_size (#h: HS.mem) (path: const_path_p) =
path_hash_size #h (CB.cast path)
false
Hacl.Poly1305.Field32xN.Lemmas0.fst
Hacl.Poly1305.Field32xN.Lemmas0.mul_felem5_lemma_3
val mul_felem5_lemma_3: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
val mul_felem5_lemma_3: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
let mul_felem5_lemma_3 f1 r = let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in let tmp = v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v f12 * as_nat5 (r3 *! u64 5, r4 *! u64 5, r0, r1, r2) + v f14 * pow104 * as_nat5 r in calc (==) { (as_nat5 f1 * as_nat5 ...
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas0.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 126, "end_line": 592, "start_col": 0, "start_line": 568 }
module Hacl.Poly1305.Field32xN.Lemmas0 open Lib.IntTypes open Lib.IntVector open Lib.Sequence open FStar.Mul open FStar.Calc open Hacl.Spec.Poly1305.Vec include Hacl.Spec.Poly1305.Field32xN #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_prime: unit -> Lemma (po...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Spec.Poly1305.Field32xN.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Field32xN", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f1: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 r (2, 2, 2, 2, 2)} -> FStar.Pervasives.Lemma (ensures (let _ = f1 in (let F...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Poly1305.Field32xN.tup64_5", "Hacl.Spec.Poly1305.Field32xN.tup64_fits5", "FStar.Pervasives.Native.Mktuple5", "Prims.nat", "Lib.IntTypes.uint64", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "Hacl.Spec.Poly1305.Field32xN.as_nat5", "Hacl.Spec.Pol...
[]
false
false
true
false
false
let mul_felem5_lemma_3 f1 r =
let f10, f11, f12, f13, f14 = f1 in let r0, r1, r2, r3, r4 = r in let tmp = v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v f12 * as_nat5 (r3 *! u64 5, r4 *! u64 5, r0, r1, r2) + (v f14 * pow104) * as_nat5 r in calc ( == ) { (as_nat5 f1 * as_nat5 r) % prime; ( == ) { mul_felem5_lemma_2 f...
false
MerkleTree.fsti
MerkleTree.mt_get_path_step_pre
val mt_get_path_step_pre (#h: HS.mem) (mtr: HH.rid) (path: const_path_p) (i: U32.t) : HST.ST bool pf pt
val mt_get_path_step_pre (#h: HS.mem) (mtr: HH.rid) (path: const_path_p) (i: U32.t) : HST.ST bool pf pt
let mt_get_path_step_pre (#h:HS.mem) (mtr:HH.rid) (path:const_path_p) (i:U32.t) : HST.ST bool pf pt = let hash_size = MTNL.Path?.hash_size (B.index (CB.cast path) 0ul) in MTNL.mt_get_path_step_pre #hash_size mtr path i
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 49, "end_line": 104, "start_col": 0, "start_line": 97 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mtr: FStar.Monotonic.HyperHeap.rid -> path: MerkleTree.const_path_p -> i: FStar.UInt32.t -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "FStar.Monotonic.HyperHeap.rid", "MerkleTree.const_path_p", "FStar.UInt32.t", "MerkleTree.Low.mt_get_path_step_pre", "FStar.Ghost.hide", "MerkleTree.Low.Datastructures.hash_size_t", "Prims.bool", "MerkleTree.Low.__proj__Path__item__hash_size", "MerkleTree.Low.path...
[]
false
true
false
false
false
let mt_get_path_step_pre (#h: HS.mem) (mtr: HH.rid) (path: const_path_p) (i: U32.t) : HST.ST bool pf pt =
let hash_size = MTNL.Path?.hash_size (B.index (CB.cast path) 0ul) in MTNL.mt_get_path_step_pre #hash_size mtr path i
false
MerkleTree.fsti
MerkleTree.mt_free
val mt_free (mt: mt_p) : HST.ST unit pf pt
val mt_free (mt: mt_p) : HST.ST unit pf pt
let mt_free (mt:mt_p): HST.ST unit pf pt = MTNL.mt_free mt
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 58, "end_line": 126, "start_col": 0, "start_line": 126 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.mt_p -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.mt_p", "MerkleTree.Low.mt_free", "Prims.unit", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_free (mt: mt_p) : HST.ST unit pf pt =
MTNL.mt_free mt
false
Vale.X64.InsSha.fsti
Vale.X64.InsSha.va_wp_SHA256_msg1
val va_wp_SHA256_msg1 (dst src: va_operand_xmm) (t: counter) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_SHA256_msg1 (dst src: va_operand_xmm) (t: counter) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_SHA256_msg1 (dst:va_operand_xmm) (src:va_operand_xmm) (t:counter) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ sha_enabled /\ ((16 <= t && t < size_k_w_256)) /\ va_eval_xmm va_s0 dst == ws_quad32...
{ "file_name": "obj/Vale.X64.InsSha.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 84, "start_col": 0, "start_line": 78 }
module Vale.X64.InsSha open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Spec.SHA2 open Spec.Hash.Definitions open Vale.SHA.SHA_helpers open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.InsVector open FStar.UInt32 open FStar.Seq open Spec.Loops op...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.SHA.SHA_helpers.fsti.checked", "V...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.sha_enabled",...
[]
false
false
false
true
true
let va_wp_SHA256_msg1 (dst src: va_operand_xmm) (t: counter) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ sha_enabled /\ ((16 <= t && t < size_k_w_256)) /\ va_eval_xmm va_s0 dst == ws_quad32 (t - 16) block /\ (va_eval_xmm va_s0 src).lo0 == ws_opaque block (t - 12) /\ (forall (va_x_dst: va_value_xmm). let va_sM = va_upd_operand_xmm dst va_...
false
MerkleTree.fsti
MerkleTree.mt_create_custom
val mt_create_custom (hash_size: hash_size_t) (hash_spec: Ghost.erased (MTS.hash_fun_t #(U32.v hash_size))) (r: HST.erid) (i: hash #hash_size) (hash_fun: MTNLHF.hash_fun_t #hash_size #hash_spec) : HST.ST mt_p pf pt
val mt_create_custom (hash_size: hash_size_t) (hash_spec: Ghost.erased (MTS.hash_fun_t #(U32.v hash_size))) (r: HST.erid) (i: hash #hash_size) (hash_fun: MTNLHF.hash_fun_t #hash_size #hash_spec) : HST.ST mt_p pf pt
let mt_create_custom (hash_size:hash_size_t) (hash_spec:Ghost.erased (MTS.hash_fun_t #(U32.v hash_size))) (r:HST.erid) (i:hash #hash_size) (hash_fun:MTNLHF.hash_fun_t #hash_size #hash_spec) : HST.ST mt_p pf pt = MTNL.mt_create_custom hash_size hash_spec r i hash_fun
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 56, "end_line": 120, "start_col": 0, "start_line": 113 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hash_size: MerkleTree.hash_size_t -> hash_spec: FStar.Ghost.erased MerkleTree.Spec.hash_fun_t -> r: FStar.HyperStack.ST.erid -> i: MerkleTree.hash -> hash_fun: MerkleTree.Low.Hashfunctions.hash_fun_t -> FStar.HyperStack.ST.ST MerkleTree.mt_p
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.hash_size_t", "FStar.Ghost.erased", "MerkleTree.Spec.hash_fun_t", "FStar.UInt32.v", "FStar.HyperStack.ST.erid", "MerkleTree.hash", "MerkleTree.Low.Hashfunctions.hash_fun_t", "MerkleTree.Low.mt_create_custom", "MerkleTree.Low.mt_p", "MerkleTree.mt_p", "MerkleTree.pf", "FStar.Monoton...
[]
false
true
false
false
false
let mt_create_custom (hash_size: hash_size_t) (hash_spec: Ghost.erased (MTS.hash_fun_t #(U32.v hash_size))) (r: HST.erid) (i: hash #hash_size) (hash_fun: MTNLHF.hash_fun_t #hash_size #hash_spec) : HST.ST mt_p pf pt =
MTNL.mt_create_custom hash_size hash_spec r i hash_fun
false
MerkleTree.fsti
MerkleTree.mt_path_insert
val mt_path_insert (#h: HS.mem) (#mtr: HH.rid) (path: path_p) (hash: hash #(MTNL.Path?.hash_size (B.get h path 0))) : HST.ST unit pf pt
val mt_path_insert (#h: HS.mem) (#mtr: HH.rid) (path: path_p) (hash: hash #(MTNL.Path?.hash_size (B.get h path 0))) : HST.ST unit pf pt
let mt_path_insert (#h:HS.mem) (#mtr:HH.rid) (path:path_p) (hash:hash #(MTNL.Path?.hash_size (B.get h path 0))) : HST.ST unit pf pt = let hash_size = MTNL.Path?.hash_size (B.index path 0ul) in MTNL.mt_path_insert #hash_size mtr path hash
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 46, "end_line": 70, "start_col": 0, "start_line": 63 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
path: MerkleTree.path_p -> hash: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "FStar.Monotonic.HyperHeap.rid", "MerkleTree.path_p", "MerkleTree.hash", "MerkleTree.Low.__proj__Path__item__hash_size", "LowStar.Monotonic.Buffer.get", "MerkleTree.path", "LowStar.Buffer.trivial_preorder", "MerkleTree.Low.mt_path_insert", "Prims.unit", "MerkleT...
[]
false
true
false
false
false
let mt_path_insert (#h: HS.mem) (#mtr: HH.rid) (path: path_p) (hash: hash #(MTNL.Path?.hash_size (B.get h path 0))) : HST.ST unit pf pt =
let hash_size = MTNL.Path?.hash_size (B.index path 0ul) in MTNL.mt_path_insert #hash_size mtr path hash
false
MerkleTree.fsti
MerkleTree.mt_get_root
val mt_get_root (#h: HS.mem) (mt: const_mt_p) (root: hash #(const_tree_hash_size #h mt)) : HST.ST unit pf pt
val mt_get_root (#h: HS.mem) (mt: const_mt_p) (root: hash #(const_tree_hash_size #h mt)) : HST.ST unit pf pt
let mt_get_root (#h:HS.mem) (mt:const_mt_p) (root:hash #(const_tree_hash_size #h mt)) : HST.ST unit pf pt = let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_root #hash_size mt root
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 37, "end_line": 163, "start_col": 0, "start_line": 157 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> root: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_mt_p", "MerkleTree.hash", "MerkleTree.const_tree_hash_size", "MerkleTree.Low.mt_get_root", "FStar.Ghost.hide", "MerkleTree.Low.Datastructures.hash_size_t", "Prims.unit", "MerkleTree.Low.__proj__MT__item__hash_size", "MerkleTree.Low.merkle_tree", ...
[]
false
true
false
false
false
let mt_get_root (#h: HS.mem) (mt: const_mt_p) (root: hash #(const_tree_hash_size #h mt)) : HST.ST unit pf pt =
let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_root #hash_size mt root
false
MerkleTree.fsti
MerkleTree.mt_insert
val mt_insert (#h: HS.mem) (mt: mt_p) (v: hash #(tree_hash_size #h mt)) : HST.ST unit pf pt
val mt_insert (#h: HS.mem) (mt: mt_p) (v: hash #(tree_hash_size #h mt)) : HST.ST unit pf pt
let mt_insert (#h:HS.mem) (mt:mt_p) (v:hash #(tree_hash_size #h mt)) : HST.ST unit pf pt = let hash_size = MTNL.MT?.hash_size (B.index mt 0ul) in MTNL.mt_insert hash_size mt v
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 31, "end_line": 141, "start_col": 0, "start_line": 135 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.mt_p -> v: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.mt_p", "MerkleTree.hash", "MerkleTree.tree_hash_size", "MerkleTree.Low.mt_insert", "FStar.Ghost.hide", "MerkleTree.Low.Datastructures.hash_size_t", "Prims.unit", "MerkleTree.Low.__proj__MT__item__hash_size", "MerkleTree.Low.merkle_tree", "LowStar.Mon...
[]
false
true
false
false
false
let mt_insert (#h: HS.mem) (mt: mt_p) (v: hash #(tree_hash_size #h mt)) : HST.ST unit pf pt =
let hash_size = MTNL.MT?.hash_size (B.index mt 0ul) in MTNL.mt_insert hash_size mt v
false
Vale.X64.InsSha.fsti
Vale.X64.InsSha.va_quick_SHA256_msg1
val va_quick_SHA256_msg1 (dst src: va_operand_xmm) (t: counter) (block: block_w) : (va_quickCode unit (va_code_SHA256_msg1 dst src))
val va_quick_SHA256_msg1 (dst src: va_operand_xmm) (t: counter) (block: block_w) : (va_quickCode unit (va_code_SHA256_msg1 dst src))
let va_quick_SHA256_msg1 (dst:va_operand_xmm) (src:va_operand_xmm) (t:counter) (block:block_w) : (va_quickCode unit (va_code_SHA256_msg1 dst src)) = (va_QProc (va_code_SHA256_msg1 dst src) ([va_mod_xmm dst]) (va_wp_SHA256_msg1 dst src t block) (va_wpProof_SHA256_msg1 dst src t block))
{ "file_name": "obj/Vale.X64.InsSha.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 96, "start_col": 0, "start_line": 93 }
module Vale.X64.InsSha open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Spec.SHA2 open Spec.Hash.Definitions open Vale.SHA.SHA_helpers open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.InsVector open FStar.UInt32 open FStar.Seq open Spec.Loops op...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.SHA.SHA_helpers.fsti.checked", "V...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.X64.InsSha.va_code_SHA256_msg1 dst src)
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.X64.InsSha.va_code_SHA256_msg1", "Prims.Cons", "Vale.X64.QuickCode.mod_t", "Vale.X64.QuickCode.va_mod_xmm", "Prims.Nil", "Vale.X64.InsSha.va_wp_SHA2...
[]
false
false
false
false
false
let va_quick_SHA256_msg1 (dst src: va_operand_xmm) (t: counter) (block: block_w) : (va_quickCode unit (va_code_SHA256_msg1 dst src)) =
(va_QProc (va_code_SHA256_msg1 dst src) ([va_mod_xmm dst]) (va_wp_SHA256_msg1 dst src t block) (va_wpProof_SHA256_msg1 dst src t block))
false
MerkleTree.fsti
MerkleTree.mt_insert_pre
val mt_insert_pre (#h: HS.mem) (mt: const_mt_p) (v: hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt
val mt_insert_pre (#h: HS.mem) (mt: const_mt_p) (v: hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt
let mt_insert_pre (#h:HS.mem) (mt:const_mt_p) (v:hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt = let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_insert_pre #hash_size mt v
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 36, "end_line": 150, "start_col": 0, "start_line": 144 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> v: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_mt_p", "MerkleTree.hash", "MerkleTree.const_tree_hash_size", "MerkleTree.Low.mt_insert_pre", "FStar.Ghost.hide", "MerkleTree.Low.Datastructures.hash_size_t", "Prims.bool", "MerkleTree.Low.__proj__MT__item__hash_size", "MerkleTree.Low.merkle_tree"...
[]
false
true
false
false
false
let mt_insert_pre (#h: HS.mem) (mt: const_mt_p) (v: hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt =
let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_insert_pre #hash_size mt v
false
MerkleTree.fsti
MerkleTree.mt_flush
val mt_flush (mt: mt_p) : HST.ST unit pf pt
val mt_flush (mt: mt_p) : HST.ST unit pf pt
let mt_flush (mt:mt_p): HST.ST unit pf pt = MTNL.mt_flush mt
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 60, "end_line": 214, "start_col": 0, "start_line": 214 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.mt_p -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.mt_p", "MerkleTree.Low.mt_flush", "Prims.unit", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_flush (mt: mt_p) : HST.ST unit pf pt =
MTNL.mt_flush mt
false
MerkleTree.fsti
MerkleTree.mt_flush_pre
val mt_flush_pre (mt: const_mt_p) : HST.ST bool pf pt
val mt_flush_pre (mt: const_mt_p) : HST.ST bool pf pt
let mt_flush_pre (mt:const_mt_p): HST.ST bool pf pt = MTNL.mt_flush_pre mt
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 74, "end_line": 217, "start_col": 0, "start_line": 217 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.const_mt_p", "MerkleTree.Low.mt_flush_pre", "Prims.bool", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_flush_pre (mt: const_mt_p) : HST.ST bool pf pt =
MTNL.mt_flush_pre mt
false
MerkleTree.fsti
MerkleTree.mt_flush_to
val mt_flush_to (mt: mt_p) (idx: offset_t) : HST.ST unit pf pt
val mt_flush_to (mt: mt_p) (idx: offset_t) : HST.ST unit pf pt
let mt_flush_to (mt:mt_p) (idx:offset_t): HST.ST unit pf pt = MTNL.mt_flush_to mt idx
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 85, "end_line": 224, "start_col": 0, "start_line": 224 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.mt_p -> idx: MerkleTree.offset_t -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.mt_p", "MerkleTree.offset_t", "MerkleTree.Low.mt_flush_to", "Prims.unit", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_flush_to (mt: mt_p) (idx: offset_t) : HST.ST unit pf pt =
MTNL.mt_flush_to mt idx
false
MerkleTree.fsti
MerkleTree.mt_flush_to_pre
val mt_flush_to_pre (mt: const_mt_p) (idx: offset_t) : HST.ST bool pf pt
val mt_flush_to_pre (mt: const_mt_p) (idx: offset_t) : HST.ST bool pf pt
let mt_flush_to_pre (mt:const_mt_p) (idx:offset_t): HST.ST bool pf pt = MTNL.mt_flush_to_pre mt idx
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 99, "end_line": 227, "start_col": 0, "start_line": 227 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> idx: MerkleTree.offset_t -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.const_mt_p", "MerkleTree.offset_t", "MerkleTree.Low.mt_flush_to_pre", "Prims.bool", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_flush_to_pre (mt: const_mt_p) (idx: offset_t) : HST.ST bool pf pt =
MTNL.mt_flush_to_pre mt idx
false
MerkleTree.fsti
MerkleTree.mt_get_root_pre
val mt_get_root_pre (#h: HS.mem) (mt: const_mt_p) (root: hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt
val mt_get_root_pre (#h: HS.mem) (mt: const_mt_p) (root: hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt
let mt_get_root_pre (#h:HS.mem) (mt:const_mt_p) (root:hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt = let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_root_pre #hash_size mt root
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 41, "end_line": 172, "start_col": 0, "start_line": 166 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> root: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_mt_p", "MerkleTree.hash", "MerkleTree.const_tree_hash_size", "MerkleTree.Low.mt_get_root_pre", "FStar.Ghost.hide", "MerkleTree.Low.Datastructures.hash_size_t", "Prims.bool", "MerkleTree.Low.__proj__MT__item__hash_size", "MerkleTree.Low.merkle_tre...
[]
false
true
false
false
false
let mt_get_root_pre (#h: HS.mem) (mt: const_mt_p) (root: hash #(const_tree_hash_size #h mt)) : HST.ST bool pf pt =
let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_root_pre #hash_size mt root
false
MerkleTree.fsti
MerkleTree.mt_serialize_size
val mt_serialize_size (mt: const_mt_p) : HST.ST UInt64.t pf pt
val mt_serialize_size (mt: const_mt_p) : HST.ST UInt64.t pf pt
let mt_serialize_size (mt:const_mt_p): HST.ST UInt64.t pf pt = MTNLS.mt_serialize_size mt
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 89, "end_line": 287, "start_col": 0, "start_line": 287 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> FStar.HyperStack.ST.ST FStar.UInt64.t
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.const_mt_p", "MerkleTree.Low.Serialization.mt_serialize_size", "MerkleTree.Low.Serialization.uint64_t", "FStar.UInt64.t", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_serialize_size (mt: const_mt_p) : HST.ST UInt64.t pf pt =
MTNLS.mt_serialize_size mt
false
Vale.X64.InsSha.fsti
Vale.X64.InsSha.va_wp_SHA256_msg2
val va_wp_SHA256_msg2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_SHA256_msg2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_SHA256_msg2 (dst:va_operand_xmm) (src:va_operand_xmm) (t:counter) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ sha_enabled /\ ((16 <= t && t < size_k_w_256 - 3)) /\ (let step1 = ws_partial t bloc...
{ "file_name": "obj/Vale.X64.InsSha.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 87, "end_line": 123, "start_col": 0, "start_line": 116 }
module Vale.X64.InsSha open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Spec.SHA2 open Spec.Hash.Definitions open Vale.SHA.SHA_helpers open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.InsVector open FStar.UInt32 open FStar.Seq open Spec.Loops op...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.SHA.SHA_helpers.fsti.checked", "V...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.sha_enabled",...
[]
false
false
false
true
true
let va_wp_SHA256_msg2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ sha_enabled /\ ((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 va_eval_xmm va_s0 dst == add_wrap_quad32 step1 t_minus_7) /\ (va_eval_xmm va_s0 src).hi2 == ws_opaqu...
false
MerkleTree.fsti
MerkleTree.mt_get_path_pre
val mt_get_path_pre (#h: HS.mem) (mt: const_mt_p) (idx: offset_t) (path: const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(const_path_hash_size #h path)) : HST.ST bool pf pt
val mt_get_path_pre (#h: HS.mem) (mt: const_mt_p) (idx: offset_t) (path: const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(const_path_hash_size #h path)) : HST.ST bool pf pt
let mt_get_path_pre (#h:HS.mem) (mt:const_mt_p) (idx:offset_t) (path:const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root:hash #(const_path_hash_size #h path)) : HST.ST bool pf pt = let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_path_pre #hash_size mt ...
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 50, "end_line": 208, "start_col": 0, "start_line": 200 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> idx: MerkleTree.offset_t -> path: MerkleTree.const_path_p {MerkleTree.const_path_hash_size path = MerkleTree.const_tree_hash_size mt} -> root: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_mt_p", "MerkleTree.offset_t", "MerkleTree.const_path_p", "Prims.b2t", "Prims.op_Equality", "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.const_path_hash_size", "MerkleTree.const_tree_hash_size", "MerkleTree.hash", "MerkleTree.Low.mt_...
[]
false
true
false
false
false
let mt_get_path_pre (#h: HS.mem) (mt: const_mt_p) (idx: offset_t) (path: const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(const_path_hash_size #h path)) : HST.ST bool pf pt =
let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_path_pre #hash_size mt idx path root
false
Vale.X64.InsSha.fsti
Vale.X64.InsSha.va_wp_SHA256_rnds2
val va_wp_SHA256_rnds2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (hash_orig: hash256) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_SHA256_rnds2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (hash_orig: hash256) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_SHA256_rnds2 (dst:va_operand_xmm) (src:va_operand_xmm) (t:counter) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ sha_enabled /\ t + 1 < size_k_w_256 /\ (va_get_xmm 0 va_s0).lo0...
{ "file_name": "obj/Vale.X64.InsSha.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 47, "start_col": 0, "start_line": 38 }
module Vale.X64.InsSha open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Spec.SHA2 open Spec.Hash.Definitions open Vale.SHA.SHA_helpers open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.InsVector open FStar.UInt32 open FStar.Seq open Spec.Loops op...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.SHA.SHA_helpers.fsti.checked", "V...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> hash_orig: Vale.SHA.SHA_helpers.hash256 -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -...
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.hash256", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Val...
[]
false
false
false
true
true
let va_wp_SHA256_rnds2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (hash_orig: hash256) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ sha_enabled /\ t + 1 < size_k_w_256 /\ (va_get_xmm 0 va_s0).lo0 == add_wrap (word_to_nat32 (index k t)) (ws_opaque block t) /\ (va_get_xmm 0 va_s0).lo1 == add_wrap (word_to_nat32 (index k (t + 1))) (ws_opaque block (t + 1)) /\ make_hash (...
false
MerkleTree.fsti
MerkleTree.mt_serialize
val mt_serialize (mt: const_mt_p) (buf: MTNLS.uint8_p) (len: UInt64.t) : HST.ST UInt64.t pf pt
val mt_serialize (mt: const_mt_p) (buf: MTNLS.uint8_p) (len: UInt64.t) : HST.ST UInt64.t pf pt
let mt_serialize (mt:const_mt_p) (buf:MTNLS.uint8_p) (len:UInt64.t): HST.ST UInt64.t pf pt = MTNLS.mt_serialize mt buf len
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 122, "end_line": 300, "start_col": 0, "start_line": 300 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> buf: MerkleTree.Low.Serialization.uint8_p -> len: FStar.UInt64.t -> FStar.HyperStack.ST.ST FStar.UInt64.t
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.const_mt_p", "MerkleTree.Low.Serialization.uint8_p", "FStar.UInt64.t", "MerkleTree.Low.Serialization.mt_serialize", "MerkleTree.Low.Serialization.uint64_t", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_serialize (mt: const_mt_p) (buf: MTNLS.uint8_p) (len: UInt64.t) : HST.ST UInt64.t pf pt =
MTNLS.mt_serialize mt buf len
false
MerkleTree.fsti
MerkleTree.mt_retract_to_pre
val mt_retract_to_pre (mt: const_mt_p) (idx: offset_t) : HST.ST bool pf pt
val mt_retract_to_pre (mt: const_mt_p) (idx: offset_t) : HST.ST bool pf pt
let mt_retract_to_pre (mt:const_mt_p) (idx:offset_t): HST.ST bool pf pt = MTNL.mt_retract_to_pre mt idx
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 103, "end_line": 239, "start_col": 0, "start_line": 239 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> idx: MerkleTree.offset_t -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.const_mt_p", "MerkleTree.offset_t", "MerkleTree.Low.mt_retract_to_pre", "Prims.bool", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_retract_to_pre (mt: const_mt_p) (idx: offset_t) : HST.ST bool pf pt =
MTNL.mt_retract_to_pre mt idx
false
Hacl.Poly1305.Field32xN.Lemmas0.fst
Hacl.Poly1305.Field32xN.Lemmas0.mul_felem5_lemma_4
val mul_felem5_lemma_4: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
val mul_felem5_lemma_4: f1:tup64_5{tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r:tup64_5{tup64_fits5 r (2, 2, 2, 2, 2)} -> Lemma (let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in (as_nat5 f1 * as_nat5 r) % prime == (v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v ...
let mul_felem5_lemma_4 f1 r = let (f10, f11, f12, f13, f14) = f1 in let (r0, r1, r2, r3, r4) = r in let tmp = v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v f12 * as_nat5 (r3 *! u64 5, r4 *! u64 5, r0, r1, r2) + v f13 * as_nat5 (r2 *! u64 5, r3 *! u64 5, r4 *! u64 5, r0, r1) in c...
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas0.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 135, "end_line": 632, "start_col": 0, "start_line": 608 }
module Hacl.Poly1305.Field32xN.Lemmas0 open Lib.IntTypes open Lib.IntVector open Lib.Sequence open FStar.Mul open FStar.Calc open Hacl.Spec.Poly1305.Vec include Hacl.Spec.Poly1305.Field32xN #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_prime: unit -> Lemma (po...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Spec.Poly1305.Field32xN.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Field32xN", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f1: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 f1 (3, 3, 3, 3, 3)} -> r: Hacl.Spec.Poly1305.Field32xN.tup64_5 {Hacl.Spec.Poly1305.Field32xN.tup64_fits5 r (2, 2, 2, 2, 2)} -> FStar.Pervasives.Lemma (ensures (let _ = f1 in (let F...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Poly1305.Field32xN.tup64_5", "Hacl.Spec.Poly1305.Field32xN.tup64_fits5", "FStar.Pervasives.Native.Mktuple5", "Prims.nat", "Lib.IntTypes.uint64", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "Hacl.Spec.Poly1305.Field32xN.as_nat5", "Hacl.Spec.Pol...
[]
false
false
true
false
false
let mul_felem5_lemma_4 f1 r =
let f10, f11, f12, f13, f14 = f1 in let r0, r1, r2, r3, r4 = r in let tmp = v f10 * as_nat5 r + v f11 * as_nat5 (r4 *! u64 5, r0, r1, r2, r3) + v f12 * as_nat5 (r3 *! u64 5, r4 *! u64 5, r0, r1, r2) + v f13 * as_nat5 (r2 *! u64 5, r3 *! u64 5, r4 *! u64 5, r0, r1) in calc ( == ) { (as_nat5 f1 * as_nat5 r) % pri...
false
MerkleTree.fsti
MerkleTree.mt_get_path
val mt_get_path (#h: HS.mem) (mt: const_mt_p) (idx: offset_t) (path: path_p{path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(path_hash_size #h path)) : HST.ST index_t pf pt
val mt_get_path (#h: HS.mem) (mt: const_mt_p) (idx: offset_t) (path: path_p{path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(path_hash_size #h path)) : HST.ST index_t pf pt
let mt_get_path (#h:HS.mem) (mt:const_mt_p) (idx:offset_t) (path:path_p{path_hash_size #h path = const_tree_hash_size #h mt}) (root:hash #(path_hash_size #h path)) : HST.ST index_t pf pt = let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_path #hash_size mt idx path root
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 46, "end_line": 197, "start_col": 0, "start_line": 189 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> idx: MerkleTree.offset_t -> path: MerkleTree.path_p{MerkleTree.path_hash_size path = MerkleTree.const_tree_hash_size mt} -> root: MerkleTree.hash -> FStar.HyperStack.ST.ST MerkleTree.index_t
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_mt_p", "MerkleTree.offset_t", "MerkleTree.path_p", "Prims.b2t", "Prims.op_Equality", "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.path_hash_size", "MerkleTree.const_tree_hash_size", "MerkleTree.hash", "MerkleTree.Low.mt_get_path", ...
[]
false
true
false
false
false
let mt_get_path (#h: HS.mem) (mt: const_mt_p) (idx: offset_t) (path: path_p{path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(path_hash_size #h path)) : HST.ST index_t pf pt =
let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_get_path #hash_size mt idx path root
false
MerkleTree.fsti
MerkleTree.mt_retract_to
val mt_retract_to (mt: mt_p) (idx: offset_t) : HST.ST unit pf pt
val mt_retract_to (mt: mt_p) (idx: offset_t) : HST.ST unit pf pt
let mt_retract_to (mt:mt_p) (idx:offset_t): HST.ST unit pf pt = MTNL.mt_retract_to mt idx
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 89, "end_line": 236, "start_col": 0, "start_line": 236 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.mt_p -> idx: MerkleTree.offset_t -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.mt_p", "MerkleTree.offset_t", "MerkleTree.Low.mt_retract_to", "Prims.unit", "MerkleTree.pf", "FStar.Monotonic.HyperStack.mem", "MerkleTree.pt" ]
[]
false
true
false
false
false
let mt_retract_to (mt: mt_p) (idx: offset_t) : HST.ST unit pf pt =
MTNL.mt_retract_to mt idx
false
Vale.X64.InsSha.fsti
Vale.X64.InsSha.va_quick_SHA256_rnds2
val va_quick_SHA256_rnds2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_SHA256_rnds2 dst src))
val va_quick_SHA256_rnds2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_SHA256_rnds2 dst src))
let va_quick_SHA256_rnds2 (dst:va_operand_xmm) (src:va_operand_xmm) (t:counter) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_SHA256_rnds2 dst src)) = (va_QProc (va_code_SHA256_rnds2 dst src) ([va_mod_xmm dst]) (va_wp_SHA256_rnds2 dst src t block hash_orig) (va_wpProof_SHA256_rnds2 dst src t...
{ "file_name": "obj/Vale.X64.InsSha.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 67, "end_line": 59, "start_col": 0, "start_line": 56 }
module Vale.X64.InsSha open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Spec.SHA2 open Spec.Hash.Definitions open Vale.SHA.SHA_helpers open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.InsVector open FStar.UInt32 open FStar.Seq open Spec.Loops op...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.SHA.SHA_helpers.fsti.checked", "V...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> hash_orig: Vale.SHA.SHA_helpers.hash256 -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.X64.InsSha.va_code_SHA256_rnds2 dst src)
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Vale.SHA.SHA_helpers.hash256", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.X64.InsSha.va_code_SHA256_rnds2", "Prims.Cons", "Vale.X64.QuickCode.mod_t", "Vale.X64.QuickCode.va_mod_xmm", "Prims....
[]
false
false
false
false
false
let va_quick_SHA256_rnds2 (dst src: va_operand_xmm) (t: counter) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_SHA256_rnds2 dst src)) =
(va_QProc (va_code_SHA256_rnds2 dst src) ([va_mod_xmm dst]) (va_wp_SHA256_rnds2 dst src t block hash_orig) (va_wpProof_SHA256_rnds2 dst src t block hash_orig))
false
Vale.X64.InsSha.fsti
Vale.X64.InsSha.va_quick_SHA256_msg2
val va_quick_SHA256_msg2 (dst src: va_operand_xmm) (t: counter) (block: block_w) : (va_quickCode unit (va_code_SHA256_msg2 dst src))
val va_quick_SHA256_msg2 (dst src: va_operand_xmm) (t: counter) (block: block_w) : (va_quickCode unit (va_code_SHA256_msg2 dst src))
let va_quick_SHA256_msg2 (dst:va_operand_xmm) (src:va_operand_xmm) (t:counter) (block:block_w) : (va_quickCode unit (va_code_SHA256_msg2 dst src)) = (va_QProc (va_code_SHA256_msg2 dst src) ([va_mod_xmm dst]) (va_wp_SHA256_msg2 dst src t block) (va_wpProof_SHA256_msg2 dst src t block))
{ "file_name": "obj/Vale.X64.InsSha.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 135, "start_col": 0, "start_line": 132 }
module Vale.X64.InsSha open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Spec.SHA2 open Spec.Hash.Definitions open Vale.SHA.SHA_helpers open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.InsVector open FStar.UInt32 open FStar.Seq open Spec.Loops op...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.SHA.SHA_helpers.fsti.checked", "V...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> t: Vale.SHA.SHA_helpers.counter -> block: Vale.SHA.SHA_helpers.block_w -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.X64.InsSha.va_code_SHA256_msg2 dst src)
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.SHA.SHA_helpers.counter", "Vale.SHA.SHA_helpers.block_w", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.X64.InsSha.va_code_SHA256_msg2", "Prims.Cons", "Vale.X64.QuickCode.mod_t", "Vale.X64.QuickCode.va_mod_xmm", "Prims.Nil", "Vale.X64.InsSha.va_wp_SHA2...
[]
false
false
false
false
false
let va_quick_SHA256_msg2 (dst src: va_operand_xmm) (t: counter) (block: block_w) : (va_quickCode unit (va_code_SHA256_msg2 dst src)) =
(va_QProc (va_code_SHA256_msg2 dst src) ([va_mod_xmm dst]) (va_wp_SHA256_msg2 dst src t block) (va_wpProof_SHA256_msg2 dst src t block))
false
MerkleTree.fsti
MerkleTree.mt_serialize_path
val mt_serialize_path (path: const_path_p) (buf: MTNLS.uint8_p) (len: UInt64.t) : HST.ST UInt64.t pf pt
val mt_serialize_path (path: const_path_p) (buf: MTNLS.uint8_p) (len: UInt64.t) : HST.ST UInt64.t pf pt
let mt_serialize_path (path:const_path_p) (buf:MTNLS.uint8_p) (len:UInt64.t) : HST.ST UInt64.t pf pt = let hash_size = MTNL.Path?.hash_size (B.index (CB.cast path) 0ul) in MTNLS.mt_serialize_path #hash_size path buf len
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 49, "end_line": 337, "start_col": 0, "start_line": 331 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
path: MerkleTree.const_path_p -> buf: MerkleTree.Low.Serialization.uint8_p -> len: FStar.UInt64.t -> FStar.HyperStack.ST.ST FStar.UInt64.t
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.const_path_p", "MerkleTree.Low.Serialization.uint8_p", "FStar.UInt64.t", "MerkleTree.Low.Serialization.mt_serialize_path", "FStar.Ghost.hide", "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.Low.Serialization.uint64_t", "MerkleTree.Low.__proj__Path__item__hash_size", "MerkleTree...
[]
false
true
false
false
false
let mt_serialize_path (path: const_path_p) (buf: MTNLS.uint8_p) (len: UInt64.t) : HST.ST UInt64.t pf pt =
let hash_size = MTNL.Path?.hash_size (B.index (CB.cast path) 0ul) in MTNLS.mt_serialize_path #hash_size path buf len
false
MerkleTree.fsti
MerkleTree.mt_verify_pre
val mt_verify_pre (#h: HS.mem) (mt: const_mt_p) (tgt max: UInt64.t) (mtr: HH.rid) (path: const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(const_path_hash_size #h path)) : HST.ST bool pf pt
val mt_verify_pre (#h: HS.mem) (mt: const_mt_p) (tgt max: UInt64.t) (mtr: HH.rid) (path: const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(const_path_hash_size #h path)) : HST.ST bool pf pt
let mt_verify_pre (#h:HS.mem) (mt:const_mt_p) (tgt:UInt64.t) (max:UInt64.t) (mtr:HH.rid) (path:const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root:hash #(const_path_hash_size #h path)) : HST.ST bool pf pt = let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL....
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 56, "end_line": 279, "start_col": 0, "start_line": 269 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> tgt: FStar.UInt64.t -> max: FStar.UInt64.t -> mtr: FStar.Monotonic.HyperHeap.rid -> path: MerkleTree.const_path_p {MerkleTree.const_path_hash_size path = MerkleTree.const_tree_hash_size mt} -> root: MerkleTree.hash -> FStar.HyperStack.ST.ST Prims.boo...
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "MerkleTree.const_mt_p", "FStar.UInt64.t", "FStar.Monotonic.HyperHeap.rid", "MerkleTree.const_path_p", "Prims.b2t", "Prims.op_Equality", "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.const_path_hash_size", "MerkleTree.const_tree_hash_size", "MerkleTre...
[]
false
true
false
false
false
let mt_verify_pre (#h: HS.mem) (mt: const_mt_p) (tgt max: UInt64.t) (mtr: HH.rid) (path: const_path_p{const_path_hash_size #h path = const_tree_hash_size #h mt}) (root: hash #(const_path_hash_size #h path)) : HST.ST bool pf pt =
let hash_size = MTNL.MT?.hash_size (B.index (CB.cast mt) 0ul) in MTNL.mt_verify_pre #hash_size mt tgt max mtr path root
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.apply_swap
val apply_swap : xs: Prims.list a -> s: FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs + 0) -> Prims.Pure (Prims.list a)
let apply_swap (#a:Type) = apply_swap_aux #a 0
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 31, "start_col": 0, "start_line": 31 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
xs: Prims.list a -> s: FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs + 0) -> Prims.Pure (Prims.list a)
Prims.Pure
[ "" ]
[]
[ "FStar.Tactics.CanonCommSwaps.apply_swap_aux", "Prims.list", "FStar.Tactics.CanonCommSwaps.swap", "Prims.op_Addition", "FStar.List.Tot.Base.length", "Prims.l_True", "Prims.eq2", "Prims.nat" ]
[]
false
false
false
false
false
let apply_swap (#a: Type) =
apply_swap_aux #a 0
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.rotc_t
val rotc_t : Type0
let rotc_t = rotval U64
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 8, "start_col": 0, "start_line": 8 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.rotval", "Lib.IntTypes.U64" ]
[]
false
false
false
true
true
let rotc_t =
rotval U64
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.equal_counts
val equal_counts (#a: eqtype) (xs ys: list a) : Type0
val equal_counts (#a: eqtype) (xs ys: list a) : Type0
let equal_counts (#a:eqtype) (xs ys:list a) : Type0 = (forall (e:a).{:pattern (count e xs) \/ (count e ys)} count e xs == count e ys)
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 81, "end_line": 41, "start_col": 0, "start_line": 40 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
xs: Prims.list a -> ys: Prims.list a -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "Prims.list", "Prims.l_Forall", "Prims.eq2", "Prims.nat", "FStar.List.Tot.Base.count" ]
[]
false
false
false
false
true
let equal_counts (#a: eqtype) (xs ys: list a) : Type0 =
(forall (e: a). {:pattern (count e xs)\/(count e ys)} count e xs == count e ys)
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.piln_t
val piln_t : Type0
let piln_t = x:size_t{size_v x < 25}
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 19, "start_col": 0, "start_line": 19 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" let rotc_t = rotval U64 unfold let rotc_list: list rotc_t = [1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul;...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.size_v" ]
[]
false
false
false
true
true
let piln_t =
x: size_t{size_v x < 25}
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.swap_for
val swap_for : xs: Prims.list a -> Type0
let swap_for (#a:eqtype) (xs:list a) = swap (length xs)
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 62, "end_line": 55, "start_col": 7, "start_line": 55 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
xs: Prims.list a -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Tactics.CanonCommSwaps.swap", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
true
let swap_for (#a: eqtype) (xs: list a) =
swap (length xs)
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.rndc_list
val rndc_list:list pub_uint64
val rndc_list:list pub_uint64
let rndc_list: list pub_uint64 = [0x0000000000000001uL; 0x0000000000008082uL; 0x800000000000808auL; 0x8000000080008000uL; 0x000000000000808buL; 0x0000000080000001uL; 0x8000000080008081uL; 0x8000000000008009uL; 0x000000000000008auL; 0x0000000000000088uL; 0x0000000080008009uL; 0x000000008000000auL; 0x000000008...
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 90, "end_line": 36, "start_col": 7, "start_line": 30 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" let rotc_t = rotval U64 unfold let rotc_list: list rotc_t = [1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul;...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list (Lib.IntTypes.int_t Lib.IntTypes.U64 Lib.IntTypes.PUB)
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.PUB", "FStar.UInt64.__uint_to_t", "Prims.Nil" ]
[]
false
false
false
true
false
let rndc_list:list pub_uint64 =
[ 0x0000000000000001uL; 0x0000000000008082uL; 0x800000000000808auL; 0x8000000080008000uL; 0x000000000000808buL; 0x0000000080000001uL; 0x8000000080008081uL; 0x8000000000008009uL; 0x000000000000008auL; 0x0000000000000088uL; 0x0000000080008009uL; 0x000000008000000auL; 0x000000008000808buL; 0x800000000000008buL; 0x...
false
Hacl.Poly1305.Field32xN.Lemmas0.fst
Hacl.Poly1305.Field32xN.Lemmas0.smul_add_felem5_fits_lemma_i
val smul_add_felem5_fits_lemma_i: #w:lanes -> #m1:scale32 -> #m2:scale32 -> #m3:scale64{m3 + m1 * m2 <= 4096} -> u1:uint64xN w{felem_fits1 u1 m1} -> f2:uint64xN w{felem_fits1 f2 m2} -> acc1:uint64xN w{felem_wide_fits1 acc1 m3} -> i:nat{i < w} -> Lemma ((uint64xN_v (vec_add_mod acc1 (vec_mul_mod f2 u...
val smul_add_felem5_fits_lemma_i: #w:lanes -> #m1:scale32 -> #m2:scale32 -> #m3:scale64{m3 + m1 * m2 <= 4096} -> u1:uint64xN w{felem_fits1 u1 m1} -> f2:uint64xN w{felem_fits1 f2 m2} -> acc1:uint64xN w{felem_wide_fits1 acc1 m3} -> i:nat{i < w} -> Lemma ((uint64xN_v (vec_add_mod acc1 (vec_mul_mod f2 u...
let smul_add_felem5_fits_lemma_i #w #m1 #m2 #m3 u1 f2 acc1 i = let o = vec_add_mod acc1 (vec_mul_mod f2 u1) in smul_add_mod_lemma #m1 #m2 #m3 (uint64xN_v u1).[i] (uint64xN_v f2).[i] (uint64xN_v acc1).[i]; assert ((uint64xN_v o).[i] == (uint64xN_v acc1).[i] + (uint64xN_v u1).[i] * (uint64xN_v f2).[i]); lemma_mul...
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas0.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 232, "start_col": 0, "start_line": 227 }
module Hacl.Poly1305.Field32xN.Lemmas0 open Lib.IntTypes open Lib.IntVector open Lib.Sequence open FStar.Mul open FStar.Calc open Hacl.Spec.Poly1305.Vec include Hacl.Spec.Poly1305.Field32xN #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_prime: unit -> Lemma (po...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Spec.Poly1305.Field32xN.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Field32xN", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
u1: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_fits1 u1 m1} -> f2: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_fits1 f2 m2} -> acc1: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_wide_fits1 acc1 m3}...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Spec.Poly1305.Field32xN.scale32", "Hacl.Spec.Poly1305.Field32xN.scale64", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Poly1305.Field32xN.uint64xN", "Hacl.Spec.Poly1305.Field32xN.felem_fits1", "Hacl.Spec.P...
[]
true
false
true
false
false
let smul_add_felem5_fits_lemma_i #w #m1 #m2 #m3 u1 f2 acc1 i =
let o = vec_add_mod acc1 (vec_mul_mod f2 u1) in smul_add_mod_lemma #m1 #m2 #m3 (uint64xN_v u1).[ i ] (uint64xN_v f2).[ i ] (uint64xN_v acc1).[ i ]; assert ((uint64xN_v o).[ i ] == (uint64xN_v acc1).[ i ] + (uint64xN_v u1).[ i ] * (uint64xN_v f2).[ i ]); lemma_mult_le (uint64xN_v u1).[ i ] (m1 * max26) (uint64xN_v f...
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.swaps_for
val swaps_for : xs: Prims.list a -> Type0
let swaps_for (#a:eqtype) (xs:list a) = list (swap_for xs)
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 56, "start_col": 7, "start_line": 56 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
xs: Prims.list a -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Tactics.CanonCommSwaps.swap_for" ]
[]
false
false
false
false
true
let swaps_for (#a: eqtype) (xs: list a) =
list (swap_for xs)
false
MerkleTree.fsti
MerkleTree.mt_deserialize_path
val mt_deserialize_path (rid: HST.erid) (buf: MTNLS.const_uint8_p) (len: UInt64.t{CB.length buf = U64.v len}) : HST.ST (B.pointer_or_null (path)) pf pt
val mt_deserialize_path (rid: HST.erid) (buf: MTNLS.const_uint8_p) (len: UInt64.t{CB.length buf = U64.v len}) : HST.ST (B.pointer_or_null (path)) pf pt
let mt_deserialize_path (rid:HST.erid) (buf:MTNLS.const_uint8_p) (len:UInt64.t{CB.length buf = U64.v len}) : HST.ST (B.pointer_or_null (path)) pf pt = MTNLS.mt_deserialize_path rid buf len
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 39, "end_line": 353, "start_col": 0, "start_line": 348 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
rid: FStar.HyperStack.ST.erid -> buf: MerkleTree.Low.Serialization.const_uint8_p -> len: FStar.UInt64.t{LowStar.ConstBuffer.length buf = FStar.UInt64.v len} -> FStar.HyperStack.ST.ST (LowStar.Buffer.pointer_or_null MerkleTree.path)
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.HyperStack.ST.erid", "MerkleTree.Low.Serialization.const_uint8_p", "FStar.UInt64.t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "FStar.UInt.size", "FStar.UInt64.n", "LowStar.ConstBuffer.length", "MerkleTree.Low.Serialization.uint8_t", "...
[]
false
true
false
false
false
let mt_deserialize_path (rid: HST.erid) (buf: MTNLS.const_uint8_p) (len: UInt64.t{CB.length buf = U64.v len}) : HST.ST (B.pointer_or_null (path)) pf pt =
MTNLS.mt_deserialize_path rid buf len
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.apply_swaps
val apply_swaps (#a: Type) (xs: list a) (ss: list (swap (length xs))) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases ss)
val apply_swaps (#a: Type) (xs: list a) (ss: list (swap (length xs))) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases ss)
let rec apply_swaps (#a:Type) (xs:list a) (ss:list (swap (length xs))) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases ss) = match ss with | [] -> xs | s::ss' -> apply_swaps (apply_swap xs s) ss'
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 38, "start_col": 0, "start_line": 33 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
xs: Prims.list a -> ss: Prims.list (FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs)) -> Prims.Pure (Prims.list a)
Prims.Pure
[ "" ]
[]
[ "Prims.list", "FStar.Tactics.CanonCommSwaps.swap", "FStar.List.Tot.Base.length", "FStar.Tactics.CanonCommSwaps.apply_swaps", "FStar.Tactics.CanonCommSwaps.apply_swap", "Prims.l_True", "Prims.eq2", "Prims.nat" ]
[ "recursion" ]
false
false
false
false
false
let rec apply_swaps (#a: Type) (xs: list a) (ss: list (swap (length xs))) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases ss) =
match ss with | [] -> xs | s :: ss' -> apply_swaps (apply_swap xs s) ss'
false
MerkleTree.fsti
MerkleTree.mt_deserialize
val mt_deserialize (#hsz: Ghost.erased hash_size_t) (rid: HST.erid) (buf: MTNLS.const_uint8_p) (len: UInt64.t{CB.length buf = U64.v len}) (hash_spec: Ghost.erased (MTS.hash_fun_t #(U32.v hsz))) (hash_fun: MTNLHF.hash_fun_t #hsz #hash_spec) : HST.ST (B.pointer_or_null merkle_tree)...
val mt_deserialize (#hsz: Ghost.erased hash_size_t) (rid: HST.erid) (buf: MTNLS.const_uint8_p) (len: UInt64.t{CB.length buf = U64.v len}) (hash_spec: Ghost.erased (MTS.hash_fun_t #(U32.v hsz))) (hash_fun: MTNLHF.hash_fun_t #hsz #hash_spec) : HST.ST (B.pointer_or_null merkle_tree)...
let mt_deserialize (#hsz:Ghost.erased hash_size_t) (rid:HST.erid) (buf:MTNLS.const_uint8_p) (len:UInt64.t{CB.length buf = U64.v len}) (hash_spec:Ghost.erased(MTS.hash_fun_t #(U32.v hsz))) (hash_fun:MTNLHF.hash_fun_t #hsz #hash_spec) : HST.ST (B.pointer_or_null merkle_tree) pf pt = MTNLS.mt_deserialize #hsz ...
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 58, "end_line": 321, "start_col": 0, "start_line": 313 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
rid: FStar.HyperStack.ST.erid -> buf: MerkleTree.Low.Serialization.const_uint8_p -> len: FStar.UInt64.t{LowStar.ConstBuffer.length buf = FStar.UInt64.v len} -> hash_spec: FStar.Ghost.erased MerkleTree.Spec.hash_fun_t -> hash_fun: MerkleTree.Low.Hashfunctions.hash_fun_t -> FStar.HyperStack.ST.ST (...
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Ghost.erased", "MerkleTree.hash_size_t", "FStar.HyperStack.ST.erid", "MerkleTree.Low.Serialization.const_uint8_p", "FStar.UInt64.t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "FStar.UInt.size", "FStar.UInt64.n", "LowStar.ConstBuffer.le...
[]
false
true
false
false
false
let mt_deserialize (#hsz: Ghost.erased hash_size_t) (rid: HST.erid) (buf: MTNLS.const_uint8_p) (len: UInt64.t{CB.length buf = U64.v len}) (hash_spec: Ghost.erased (MTS.hash_fun_t #(U32.v hsz))) (hash_fun: MTNLHF.hash_fun_t #hsz #hash_spec) : HST.ST (B.pointer_or_null merkle_tree)...
MTNLS.mt_deserialize #hsz rid buf len hash_spec hash_fun
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.retract_equal_counts
val retract_equal_counts (#a: eqtype) (h: a) (xs ys: list a) : Lemma (requires equal_counts (h :: xs) (h :: ys)) (ensures equal_counts xs ys)
val retract_equal_counts (#a: eqtype) (h: a) (xs ys: list a) : Lemma (requires equal_counts (h :: xs) (h :: ys)) (ensures equal_counts xs ys)
let retract_equal_counts (#a:eqtype) (h:a) (xs ys:list a) : Lemma (requires equal_counts (h::xs) (h::ys)) (ensures equal_counts xs ys) = assert (forall (e:a).{:pattern (count e xs) \/ (count e ys)} count e (h::xs) == count e (h::ys))
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 98, "end_line": 53, "start_col": 0, "start_line": 49 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: a -> xs: Prims.list a -> ys: Prims.list a -> FStar.Pervasives.Lemma (requires FStar.Tactics.CanonCommSwaps.equal_counts (h :: xs) (h :: ys)) (ensures FStar.Tactics.CanonCommSwaps.equal_counts xs ys)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "Prims._assert", "Prims.l_Forall", "Prims.eq2", "Prims.nat", "FStar.List.Tot.Base.count", "Prims.Cons", "Prims.unit", "FStar.Tactics.CanonCommSwaps.equal_counts", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let retract_equal_counts (#a: eqtype) (h: a) (xs ys: list a) : Lemma (requires equal_counts (h :: xs) (h :: ys)) (ensures equal_counts xs ys) =
assert (forall (e: a). {:pattern (count e xs)\/(count e ys)} count e (h :: xs) == count e (h :: ys))
false
Hacl.Poly1305.Field32xN.Lemmas0.fst
Hacl.Poly1305.Field32xN.Lemmas0.lemma_fmul5_pow26
val lemma_fmul5_pow26: r:tup64_5 -> Lemma (requires (let (r0, r1, r2, r3, r4) = r in v r4 * 5 <= 10 * pow26)) (ensures (let (r0, r1, r2, r3, r4) = r in (pow26 * as_nat5 r) % prime == as_nat5 (r4 *! u64 5, r0, r1, r2, r3) % prime))
val lemma_fmul5_pow26: r:tup64_5 -> Lemma (requires (let (r0, r1, r2, r3, r4) = r in v r4 * 5 <= 10 * pow26)) (ensures (let (r0, r1, r2, r3, r4) = r in (pow26 * as_nat5 r) % prime == as_nat5 (r4 *! u64 5, r0, r1, r2, r3) % prime))
let lemma_fmul5_pow26 r = let (r0, r1, r2, r3, r4) = r in calc (==) { (pow26 * as_nat5 r) % prime; (==) { } (pow26 * (v r0 + v r1 * pow26 + v r2 * pow52 + v r3 * pow78 + v r4 * pow104)) % prime; (==) { lemma_mul5_distr_l pow26 (v r0) (v r1 * pow26) (v r2 * pow52) (v r3 * pow78) (v r4 * pow104) } (v ...
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas0.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 84, "end_line": 395, "start_col": 0, "start_line": 367 }
module Hacl.Poly1305.Field32xN.Lemmas0 open Lib.IntTypes open Lib.IntVector open Lib.Sequence open FStar.Mul open FStar.Calc open Hacl.Spec.Poly1305.Vec include Hacl.Spec.Poly1305.Field32xN #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_prime: unit -> Lemma (po...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Spec.Poly1305.Field32xN.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Field32xN", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Hacl.Spec.Poly1305.Field32xN.tup64_5 -> FStar.Pervasives.Lemma (requires (let _ = r in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ _ _ _ _ r4 = _ in Lib.IntTypes.v r4 * 5 <= 10 * Hacl.Spec.Poly1305.Field32xN.pow26) <: Type0)) (ensures (...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Poly1305.Field32xN.tup64_5", "Lib.IntTypes.uint64", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "Hacl.Spec.Poly1305.Field32xN.pow26", "Hacl.Spec.Poly1305.Field32xN.as_nat5", "Hacl.Spec.Poly1305.Vec.prime", "Prims.op_Addition", "Lib.IntTypes.v"...
[]
false
false
true
false
false
let lemma_fmul5_pow26 r =
let r0, r1, r2, r3, r4 = r in calc ( == ) { (pow26 * as_nat5 r) % prime; ( == ) { () } (pow26 * (v r0 + v r1 * pow26 + v r2 * pow52 + v r3 * pow78 + v r4 * pow104)) % prime; ( == ) { lemma_mul5_distr_l pow26 (v r0) (v r1 * pow26) (v r2 * pow52) (v r3 * pow78) (v r4 * pow104) } (v r0 * pow2...
false
MerkleTree.fsti
MerkleTree.mt_verify
val mt_verify (#h: HS.mem) (#hash_size: Ghost.erased hash_size_t) (#hash_spec: MTS.hash_fun_t #(U32.v hash_size)) (mt: const_mt_p) (tgt max: UInt64.t) (mtr: HH.rid) (path: const_path_p { let phs = const_path_hash_size #h path in phs = const_t...
val mt_verify (#h: HS.mem) (#hash_size: Ghost.erased hash_size_t) (#hash_spec: MTS.hash_fun_t #(U32.v hash_size)) (mt: const_mt_p) (tgt max: UInt64.t) (mtr: HH.rid) (path: const_path_p { let phs = const_path_hash_size #h path in phs = const_t...
let mt_verify (#h:HS.mem) (#hash_size:Ghost.erased hash_size_t) (#hash_spec:MTS.hash_fun_t #(U32.v hash_size)) (mt:const_mt_p) (tgt:UInt64.t) (max:UInt64.t) (mtr:HH.rid) (path:const_path_p{let phs = const_path_hash_size #h path in phs = const_tree_hash_size #h mt /\ phs = Ghost.reveal hash_size}) (roo...
{ "file_name": "src/MerkleTree.fsti", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 57, "end_line": 266, "start_col": 0, "start_line": 253 }
module MerkleTree module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module HH = FStar.Monotonic.HyperHeap module B = LowStar.Buffer module CB = LowStar.ConstBuffer module U32 = FStar.UInt32 module U64 = FStar.UInt64 module MTS = MerkleTree.Spec module MTNL = MerkleTree.Low module MTNLHF = MerkleTree.Low...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.Low.Serialization.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "MerkleTree.Low.fst.checked", "MerkleTree.EverCrypt.fsti.check...
[ { "abbrev": true, "full_module": "MerkleTree.Low.Serialization", "short_module": "MTNLS" }, { "abbrev": true, "full_module": "MerkleTree.Low.Datastructures", "short_module": "MTNLD" }, { "abbrev": true, "full_module": "MerkleTree.EverCrypt", "short_module": "MTNLE" }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.const_mt_p -> tgt: FStar.UInt64.t -> max: FStar.UInt64.t -> mtr: FStar.Monotonic.HyperHeap.rid -> path: MerkleTree.const_path_p { let phs = MerkleTree.const_path_hash_size path in phs = MerkleTree.const_tree_hash_size mt /\ phs = FStar.Ghost.reveal hash_size }...
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "FStar.Ghost.erased", "MerkleTree.hash_size_t", "MerkleTree.Spec.hash_fun_t", "FStar.UInt32.v", "FStar.Ghost.reveal", "MerkleTree.const_mt_p", "FStar.UInt64.t", "FStar.Monotonic.HyperHeap.rid", "MerkleTree.const_path_p", "Prims.l_and", "Prims.b2t", "Prims.op...
[]
false
true
false
false
false
let mt_verify (#h: HS.mem) (#hash_size: Ghost.erased hash_size_t) (#hash_spec: MTS.hash_fun_t #(U32.v hash_size)) (mt: const_mt_p) (tgt max: UInt64.t) (mtr: HH.rid) (path: const_path_p { let phs = const_path_hash_size #h path in phs = const_t...
let dmt = B.index (CB.cast mt) 0ul in let hsz = MTNL.MT?.hash_size dmt in MTNL.mt_verify #hsz #hash_spec mt tgt max mtr path root
false
Spec.Agile.HPKE.fst
Spec.Agile.HPKE.openBase
val openBase: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> Tot (option (AEAD.decrypted #(aead_alg_of cs) ct))
val openBase: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> Tot (option (AEAD.decrypted #(aead_alg_of cs) ct))
let openBase cs enc skR info aad ct = match setupBaseR cs enc skR info with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
{ "file_name": "specs/Spec.Agile.HPKE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 476, "start_col": 0, "start_line": 470 }
module Spec.Agile.HPKE open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module DH = Spec.Agile.DH module AEAD = Spec.Agile.AEAD module Hash = Spec.Agile.Hash module HKDF = Spec.Agile.HKDF let pow2_61 : _:unit{pow2 61 == 2305843009213693952} = assert_norm(pow2 61 == 23058...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "Spec.Agile.HKDF.fsti.checked", "Spec.Agile.Hash.fsti.checked", "Spec.Agile.DH.fst.checked", "Spec.Agile.AEAD.fsti.checked"...
[ { "abbrev": true, "full_module": "Spec.Agile.HKDF", "short_module": "HKDF" }, { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Spec.Agile.AEAD", "short_module": "AEAD" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cs: Spec.Agile.HPKE.ciphersuite_not_export_only -> enc: Spec.Agile.HPKE.key_dh_public_s cs -> skR: Spec.Agile.HPKE.key_dh_secret_s cs -> info: Spec.Agile.HPKE.info_s cs -> aad: Spec.Agile.AEAD.ad (Spec.Agile.HPKE.aead_alg_of cs) -> ct: Spec.Agile.AEAD.cipher (Spec.Agile.HPKE.aead_alg_of cs) -...
Prims.Tot
[ "total" ]
[]
[ "Spec.Agile.HPKE.ciphersuite_not_export_only", "Spec.Agile.HPKE.key_dh_public_s", "Spec.Agile.HPKE.key_dh_secret_s", "Spec.Agile.HPKE.info_s", "Spec.Agile.AEAD.ad", "Spec.Agile.HPKE.aead_alg_of", "Spec.Agile.AEAD.cipher", "Spec.Agile.HPKE.setupBaseR", "FStar.Pervasives.Native.None", "Spec.Agile.AE...
[]
false
false
false
false
false
let openBase cs enc skR info aad ct =
match setupBaseR cs enc skR info with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.apply_swap_aux
val apply_swap_aux (#a: Type) (n: nat) (xs: list a) (s: swap (length xs + n)) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases xs)
val apply_swap_aux (#a: Type) (n: nat) (xs: list a) (s: swap (length xs + n)) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases xs)
let rec apply_swap_aux (#a:Type) (n:nat) (xs:list a) (s:swap (length xs + n)) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases xs) = match xs with | [] | [_] -> xs | x1 :: x2 :: xs' -> if n = (s <: nat) then x2 :: x1 :: xs' ...
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 68, "end_line": 29, "start_col": 0, "start_line": 22 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> xs: Prims.list a -> s: FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs + n) -> Prims.Pure (Prims.list a)
Prims.Pure
[ "" ]
[]
[ "Prims.nat", "Prims.list", "FStar.Tactics.CanonCommSwaps.swap", "Prims.op_Addition", "FStar.List.Tot.Base.length", "Prims.op_Equality", "Prims.Cons", "Prims.bool", "FStar.Tactics.CanonCommSwaps.apply_swap_aux", "Prims.l_True", "Prims.eq2" ]
[ "recursion" ]
false
false
false
false
false
let rec apply_swap_aux (#a: Type) (n: nat) (xs: list a) (s: swap (length xs + n)) : Pure (list a) (requires True) (ensures (fun zs -> length zs == length xs)) (decreases xs) =
match xs with | [] | [_] -> xs | x1 :: x2 :: xs' -> if n = (s <: nat) then x2 :: x1 :: xs' else x1 :: apply_swap_aux (n + 1) (x2 :: xs') s
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.lift_swaps_cons
val lift_swaps_cons (#a: eqtype) (h: a) (xs: list a) (ss: swaps_for xs) : Pure (swaps_for (h :: xs)) (requires True) (ensures (fun ss' -> apply_swaps (h :: xs) ss' == h :: (apply_swaps xs ss))) (decreases ss)
val lift_swaps_cons (#a: eqtype) (h: a) (xs: list a) (ss: swaps_for xs) : Pure (swaps_for (h :: xs)) (requires True) (ensures (fun ss' -> apply_swaps (h :: xs) ss' == h :: (apply_swaps xs ss))) (decreases ss)
let rec lift_swaps_cons (#a:eqtype) (h:a) (xs:list a) (ss:swaps_for xs) : Pure (swaps_for (h::xs)) (requires True) (ensures (fun ss' -> apply_swaps (h::xs) ss' == h::(apply_swaps xs ss) )) (decreases ss) = match ss with | [] -> [] | s::st -> ( lift_swap_cons 0 h xs s; (s + 1)::(lift_...
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 88, "start_col": 0, "start_line": 75 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: a -> xs: Prims.list a -> ss: FStar.Tactics.CanonCommSwaps.swaps_for xs -> Prims.Pure (FStar.Tactics.CanonCommSwaps.swaps_for (h :: xs))
Prims.Pure
[ "" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Tactics.CanonCommSwaps.swaps_for", "Prims.Nil", "FStar.Tactics.CanonCommSwaps.swap_for", "Prims.Cons", "FStar.Tactics.CanonCommSwaps.apply_swap", "Prims.op_Addition", "FStar.Tactics.CanonCommSwaps.lift_swaps_cons", "Prims.unit", "FStar.Tactics.CanonCommSwaps....
[ "recursion" ]
false
false
false
false
false
let rec lift_swaps_cons (#a: eqtype) (h: a) (xs: list a) (ss: swaps_for xs) : Pure (swaps_for (h :: xs)) (requires True) (ensures (fun ss' -> apply_swaps (h :: xs) ss' == h :: (apply_swaps xs ss))) (decreases ss) =
match ss with | [] -> [] | s :: st -> (lift_swap_cons 0 h xs s; (s + 1) :: (lift_swaps_cons h (apply_swap xs s) st))
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.lift_swap_cons
val lift_swap_cons (#a: eqtype) (n: nat) (h: a) (xs: list a) (s: swap (length xs + n)) : Lemma (requires n <= s) (ensures apply_swap_aux n (h :: xs) (s + 1) == h :: (apply_swap_aux n xs s)) (decreases xs)
val lift_swap_cons (#a: eqtype) (n: nat) (h: a) (xs: list a) (s: swap (length xs + n)) : Lemma (requires n <= s) (ensures apply_swap_aux n (h :: xs) (s + 1) == h :: (apply_swap_aux n xs s)) (decreases xs)
let rec lift_swap_cons (#a:eqtype) (n:nat) (h:a) (xs:list a) (s:swap (length xs + n)) : Lemma (requires n <= s) (ensures apply_swap_aux n (h::xs) (s + 1) == h::(apply_swap_aux n xs s)) (decreases xs) = match xs with | [] -> () | x::xt -> if n < s then lift_swap_cons (n + 1) x xt s
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 73, "start_col": 0, "start_line": 66 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> h: a -> xs: Prims.list a -> s: FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs + n) -> FStar.Pervasives.Lemma (requires n <= s) (ensures FStar.Tactics.CanonCommSwaps.apply_swap_aux n (h :: xs) (s + 1) == h :: FStar.Tactics.CanonCommSwaps.apply_sw...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.eqtype", "Prims.nat", "Prims.list", "FStar.Tactics.CanonCommSwaps.swap", "Prims.op_Addition", "FStar.List.Tot.Base.length", "Prims.op_LessThan", "FStar.Tactics.CanonCommSwaps.lift_swap_cons", "Prims.bool", "Prims.unit", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.squash", "Prims...
[ "recursion" ]
false
false
true
false
false
let rec lift_swap_cons (#a: eqtype) (n: nat) (h: a) (xs: list a) (s: swap (length xs + n)) : Lemma (requires n <= s) (ensures apply_swap_aux n (h :: xs) (s + 1) == h :: (apply_swap_aux n xs s)) (decreases xs) =
match xs with | [] -> () | x :: xt -> if n < s then lift_swap_cons (n + 1) x xt s
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.equal_counts_implies_swaps
val equal_counts_implies_swaps (#a: eqtype) (xs ys: list a) : Pure (swaps_for xs) (requires equal_counts xs ys) (ensures (fun ss -> ys == apply_swaps xs ss)) (decreases ys)
val equal_counts_implies_swaps (#a: eqtype) (xs ys: list a) : Pure (swaps_for xs) (requires equal_counts xs ys) (ensures (fun ss -> ys == apply_swaps xs ss)) (decreases ys)
let rec equal_counts_implies_swaps (#a:eqtype) (xs ys:list a) : Pure (swaps_for xs) (requires equal_counts xs ys) (ensures (fun ss -> ys == apply_swaps xs ss)) (decreases ys) = match ys with | [] -> ( match xs with | [] -> [] | x::xt -> ( assert (count x xs >= 1); ...
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 143, "start_col": 0, "start_line": 114 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
xs: Prims.list a -> ys: Prims.list a -> Prims.Pure (FStar.Tactics.CanonCommSwaps.swaps_for xs)
Prims.Pure
[ "" ]
[]
[ "Prims.eqtype", "Prims.list", "Prims.Nil", "FStar.Tactics.CanonCommSwaps.swap_for", "Prims.unit", "Prims._assert", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.List.Tot.Base.count", "FStar.Tactics.CanonCommSwaps.swaps_for", "FStar.List.Tot.Base.op_At", "FStar.Tactics.CanonCommSwaps.appen...
[ "recursion" ]
false
false
false
false
false
let rec equal_counts_implies_swaps (#a: eqtype) (xs ys: list a) : Pure (swaps_for xs) (requires equal_counts xs ys) (ensures (fun ss -> ys == apply_swaps xs ss)) (decreases ys) =
match ys with | [] -> (match xs with | [] -> [] | x :: xt -> (assert (count x xs >= 1); [])) | y :: yt -> (assert (count y ys >= 1); assert (count y xs >= 1); let ss0 = swap_to_front y xs in let xs' = apply_swaps xs ss0 in let xt = tl xs' in retract_equal_counts y xt yt; ...
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.append_swaps
val append_swaps (#a: eqtype) (xs: list a) (ss1 ss2: swaps_for xs) : Lemma (ensures apply_swaps xs (ss1 @ ss2) == apply_swaps (apply_swaps xs ss1) ss2) (decreases ss1)
val append_swaps (#a: eqtype) (xs: list a) (ss1 ss2: swaps_for xs) : Lemma (ensures apply_swaps xs (ss1 @ ss2) == apply_swaps (apply_swaps xs ss1) ss2) (decreases ss1)
let rec append_swaps (#a:eqtype) (xs:list a) (ss1 ss2:swaps_for xs) : Lemma (ensures apply_swaps xs (ss1 @ ss2) == apply_swaps (apply_swaps xs ss1) ss2) (decreases ss1) = match ss1 with | [] -> () | h::t -> append_swaps (apply_swap xs h) t ss2
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 64, "start_col": 0, "start_line": 58 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
xs: Prims.list a -> ss1: FStar.Tactics.CanonCommSwaps.swaps_for xs -> ss2: FStar.Tactics.CanonCommSwaps.swaps_for xs -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSwaps.apply_swaps xs (ss1 @ ss2) == FStar.Tactics.CanonCommSwaps.apply_swaps (FStar.Tactics.CanonCommSwaps.a...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Tactics.CanonCommSwaps.swaps_for", "FStar.Tactics.CanonCommSwaps.swap_for", "FStar.Tactics.CanonCommSwaps.append_swaps", "FStar.Tactics.CanonCommSwaps.apply_swap", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "FStar.Tactics.CanonCommSwaps.apply_...
[ "recursion" ]
false
false
true
false
false
let rec append_swaps (#a: eqtype) (xs: list a) (ss1 ss2: swaps_for xs) : Lemma (ensures apply_swaps xs (ss1 @ ss2) == apply_swaps (apply_swaps xs ss1) ss2) (decreases ss1) =
match ss1 with | [] -> () | h :: t -> append_swaps (apply_swap xs h) t ss2
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.rotc_list
val rotc_list:list rotc_t
val rotc_list:list rotc_t
let rotc_list: list rotc_t = [1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul; 20ul; 44ul]
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 13, "start_col": 7, "start_line": 10 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" let rotc_t = rotval U64
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list Spec.SHA3.Constants.rotc_t
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "Spec.SHA3.Constants.rotc_t", "FStar.UInt32.__uint_to_t", "Prims.Nil" ]
[]
false
false
false
true
false
let rotc_list:list rotc_t =
[ 1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul; 20ul; 44ul ]
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.keccak_rotc
val keccak_rotc:lseq rotc_t 24
val keccak_rotc:lseq rotc_t 24
let keccak_rotc:lseq rotc_t 24 = assert_norm (List.Tot.length rotc_list == 24); of_list rotc_list
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 17, "start_col": 0, "start_line": 15 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" let rotc_t = rotval U64 unfold let rotc_list: list rotc_t = [1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul;...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq Spec.SHA3.Constants.rotc_t 24
Prims.Tot
[ "total" ]
[]
[ "Lib.Sequence.of_list", "Spec.SHA3.Constants.rotc_t", "Spec.SHA3.Constants.rotc_list", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
false
let keccak_rotc:lseq rotc_t 24 =
assert_norm (List.Tot.length rotc_list == 24); of_list rotc_list
false
FStar.Tactics.CanonCommSwaps.fst
FStar.Tactics.CanonCommSwaps.swap_to_front
val swap_to_front (#a: eqtype) (h: a) (xs: list a) : Pure (swaps_for xs) (requires count h xs >= 1) (ensures (fun ss -> let ys = apply_swaps xs ss in equal_counts xs ys /\ Cons? ys /\ hd ys == h))
val swap_to_front (#a: eqtype) (h: a) (xs: list a) : Pure (swaps_for xs) (requires count h xs >= 1) (ensures (fun ss -> let ys = apply_swaps xs ss in equal_counts xs ys /\ Cons? ys /\ hd ys == h))
let rec swap_to_front (#a:eqtype) (h:a) (xs:list a) : Pure (swaps_for xs) (requires count h xs >= 1) (ensures (fun ss -> let ys = apply_swaps xs ss in equal_counts xs ys /\ Cons? ys /\ hd ys == h )) = match xs with | [] -> [] | x::xt -> ( if x = h then [] else ( ...
{ "file_name": "ulib/FStar.Tactics.CanonCommSwaps.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 112, "start_col": 0, "start_line": 90 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.CanonCommSwaps.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: a -> xs: Prims.list a -> Prims.Pure (FStar.Tactics.CanonCommSwaps.swaps_for xs)
Prims.Pure
[]
[]
[ "Prims.eqtype", "Prims.list", "Prims.Nil", "FStar.Tactics.CanonCommSwaps.swap_for", "Prims.op_Equality", "Prims.bool", "FStar.List.Tot.Base.op_At", "Prims.Cons", "Prims.unit", "FStar.Tactics.CanonCommSwaps.append_swaps", "FStar.Tactics.CanonCommSwaps.swap", "FStar.List.Tot.Base.length", "FSt...
[ "recursion" ]
false
false
false
false
false
let rec swap_to_front (#a: eqtype) (h: a) (xs: list a) : Pure (swaps_for xs) (requires count h xs >= 1) (ensures (fun ss -> let ys = apply_swaps xs ss in equal_counts xs ys /\ Cons? ys /\ hd ys == h)) =
match xs with | [] -> [] | x :: xt -> (if x = h then [] else (let ss = swap_to_front h xt in let ss' = lift_swaps_cons x xt ss in let s:swap_for xs = 0 in append_swaps xs ss' [s]; ss' @ [s]))
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.keccak_rndc
val keccak_rndc:lseq pub_uint64 24
val keccak_rndc:lseq pub_uint64 24
let keccak_rndc: lseq pub_uint64 24 = assert_norm (List.Tot.length rndc_list == 24); of_list rndc_list
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 40, "start_col": 0, "start_line": 38 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" let rotc_t = rotval U64 unfold let rotc_list: list rotc_t = [1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul;...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U64 Lib.IntTypes.PUB) 24
Prims.Tot
[ "total" ]
[]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.PUB", "Spec.SHA3.Constants.rndc_list", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
false
let keccak_rndc:lseq pub_uint64 24 =
assert_norm (List.Tot.length rndc_list == 24); of_list rndc_list
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.keccak_piln
val keccak_piln:lseq piln_t 24
val keccak_piln:lseq piln_t 24
let keccak_piln: lseq piln_t 24 = assert_norm (List.Tot.length piln_list == 24); of_list piln_list
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 28, "start_col": 0, "start_line": 26 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" let rotc_t = rotval U64 unfold let rotc_list: list rotc_t = [1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul;...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq Spec.SHA3.Constants.piln_t 24
Prims.Tot
[ "total" ]
[]
[ "Lib.Sequence.of_list", "Spec.SHA3.Constants.piln_t", "Spec.SHA3.Constants.piln_list", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
false
let keccak_piln:lseq piln_t 24 =
assert_norm (List.Tot.length piln_list == 24); of_list piln_list
false
Spec.Agile.HPKE.fst
Spec.Agile.HPKE.openAuth
val openAuth: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> pkS:DH.serialized_point (kem_dh_of_cs cs) -> Tot (option (AEAD.decrypted #(aead_alg_of cs) ct))
val openAuth: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> pkS:DH.serialized_point (kem_dh_of_cs cs) -> Tot (option (AEAD.decrypted #(aead_alg_of cs) ct))
let openAuth cs enc skR info aad ct pkS = match setupAuthR cs enc skR info pkS with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
{ "file_name": "specs/Spec.Agile.HPKE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 572, "start_col": 0, "start_line": 566 }
module Spec.Agile.HPKE open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module DH = Spec.Agile.DH module AEAD = Spec.Agile.AEAD module Hash = Spec.Agile.Hash module HKDF = Spec.Agile.HKDF let pow2_61 : _:unit{pow2 61 == 2305843009213693952} = assert_norm(pow2 61 == 23058...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "Spec.Agile.HKDF.fsti.checked", "Spec.Agile.Hash.fsti.checked", "Spec.Agile.DH.fst.checked", "Spec.Agile.AEAD.fsti.checked"...
[ { "abbrev": true, "full_module": "Spec.Agile.HKDF", "short_module": "HKDF" }, { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Spec.Agile.AEAD", "short_module": "AEAD" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cs: Spec.Agile.HPKE.ciphersuite_not_export_only -> enc: Spec.Agile.HPKE.key_dh_public_s cs -> skR: Spec.Agile.HPKE.key_dh_secret_s cs -> info: Spec.Agile.HPKE.info_s cs -> aad: Spec.Agile.AEAD.ad (Spec.Agile.HPKE.aead_alg_of cs) -> ct: Spec.Agile.AEAD.cipher (Spec.Agile.HPKE.aead_alg_of cs) -> ...
Prims.Tot
[ "total" ]
[]
[ "Spec.Agile.HPKE.ciphersuite_not_export_only", "Spec.Agile.HPKE.key_dh_public_s", "Spec.Agile.HPKE.key_dh_secret_s", "Spec.Agile.HPKE.info_s", "Spec.Agile.AEAD.ad", "Spec.Agile.HPKE.aead_alg_of", "Spec.Agile.AEAD.cipher", "Spec.Agile.DH.serialized_point", "Spec.Agile.HPKE.kem_dh_of_cs", "Spec.Agil...
[]
false
false
false
false
false
let openAuth cs enc skR info aad ct pkS =
match setupAuthR cs enc skR info pkS with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
false
Spec.SHA3.Constants.fst
Spec.SHA3.Constants.piln_list
val piln_list:list piln_t
val piln_list:list piln_t
let piln_list: list piln_t = [10ul; 7ul; 11ul; 17ul; 18ul; 3ul; 5ul; 16ul; 8ul; 21ul; 24ul; 4ul; 15ul; 23ul; 19ul; 13ul; 12ul; 2ul; 20ul; 14ul; 22ul; 9ul; 6ul; 1ul]
{ "file_name": "specs/Spec.SHA3.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 24, "start_col": 7, "start_line": 21 }
module Spec.SHA3.Constants open Lib.IntTypes open Lib.Sequence #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" let rotc_t = rotval U64 unfold let rotc_list: list rotc_t = [1ul; 3ul; 6ul; 10ul; 15ul; 21ul; 28ul; 36ul; 45ul; 55ul; 2ul; 14ul; 27ul; 41ul; 56ul; 8ul; 25ul; 43ul; 62ul; 18ul; 39ul; 61ul;...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file":...
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Spec.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list Spec.SHA3.Constants.piln_t
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "Spec.SHA3.Constants.piln_t", "FStar.UInt32.__uint_to_t", "Prims.Nil" ]
[]
false
false
false
true
false
let piln_list:list piln_t =
[ 10ul; 7ul; 11ul; 17ul; 18ul; 3ul; 5ul; 16ul; 8ul; 21ul; 24ul; 4ul; 15ul; 23ul; 19ul; 13ul; 12ul; 2ul; 20ul; 14ul; 22ul; 9ul; 6ul; 1ul ]
false
Spec.Agile.HPKE.fst
Spec.Agile.HPKE.openPSK
val openPSK: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> psk:psk_s cs -> psk_id:psk_id_s cs -> Tot (option (AEAD.decrypted #(aead_alg_of cs) ct))
val openPSK: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> psk:psk_s cs -> psk_id:psk_id_s cs -> Tot (option (AEAD.decrypted #(aead_alg_of cs) ct))
let openPSK cs enc skR info aad ct psk psk_id = match setupPSKR cs enc skR info psk psk_id with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
{ "file_name": "specs/Spec.Agile.HPKE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 525, "start_col": 0, "start_line": 519 }
module Spec.Agile.HPKE open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module DH = Spec.Agile.DH module AEAD = Spec.Agile.AEAD module Hash = Spec.Agile.Hash module HKDF = Spec.Agile.HKDF let pow2_61 : _:unit{pow2 61 == 2305843009213693952} = assert_norm(pow2 61 == 23058...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "Spec.Agile.HKDF.fsti.checked", "Spec.Agile.Hash.fsti.checked", "Spec.Agile.DH.fst.checked", "Spec.Agile.AEAD.fsti.checked"...
[ { "abbrev": true, "full_module": "Spec.Agile.HKDF", "short_module": "HKDF" }, { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Spec.Agile.AEAD", "short_module": "AEAD" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cs: Spec.Agile.HPKE.ciphersuite_not_export_only -> enc: Spec.Agile.HPKE.key_dh_public_s cs -> skR: Spec.Agile.HPKE.key_dh_secret_s cs -> info: Spec.Agile.HPKE.info_s cs -> aad: Spec.Agile.AEAD.ad (Spec.Agile.HPKE.aead_alg_of cs) -> ct: Spec.Agile.AEAD.cipher (Spec.Agile.HPKE.aead_alg_of cs) -> ...
Prims.Tot
[ "total" ]
[]
[ "Spec.Agile.HPKE.ciphersuite_not_export_only", "Spec.Agile.HPKE.key_dh_public_s", "Spec.Agile.HPKE.key_dh_secret_s", "Spec.Agile.HPKE.info_s", "Spec.Agile.AEAD.ad", "Spec.Agile.HPKE.aead_alg_of", "Spec.Agile.AEAD.cipher", "Spec.Agile.HPKE.psk_s", "Spec.Agile.HPKE.psk_id_s", "Spec.Agile.HPKE.setupP...
[]
false
false
false
false
false
let openPSK cs enc skR info aad ct psk psk_id =
match setupPSKR cs enc skR info psk psk_id with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
false
Spec.SHA1.fst
Spec.SHA1.step3_body'
val step3_body' : mi: Spec.SHA1.word_block -> st: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> t: Lib.IntTypes.size_t{Lib.IntTypes.v t < 80} -> wt: Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1 {wt == Spec.SHA1.w mi t} -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.S...
let step3_body' = step3_body'_aux
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 171, "start_col": 0, "start_line": 171 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> st: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> t: Lib.IntTypes.size_t{Lib.IntTypes.v t < 80} -> wt: Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1 {wt == Spec.SHA1.w mi t} -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.step3_body'_aux" ]
[]
false
false
false
false
false
let step3_body' =
step3_body'_aux
false
Spec.SHA1.fst
Spec.SHA1.f
val f (t: size_t{v t <= 79}) (x y z: word SHA1) : Tot (word SHA1)
val f (t: size_t{v t <= 79}) (x y z: word SHA1) : Tot (word SHA1)
let f (t: size_t {v t <= 79}) (x y z: word SHA1) : Tot (word SHA1) = if t <. 20ul then (x &. y) ^. (~. x &. z) else if 39ul <. t && t <. 60ul then (x &. y) ^. (x &. z) ^. (y &. z) else x ^. y ^. z
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 125, "start_col": 0, "start_line": 117 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Lib.IntTypes.size_t{Lib.IntTypes.v t <= 79} -> x: Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1 -> y: Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1 -> z: Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1 -> Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Lib.IntTypes.op_Less_Dot", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.op_Hat_Dot", "Spec.Hash.Definitions.word_t...
[]
false
false
false
false
false
let f (t: size_t{v t <= 79}) (x y z: word SHA1) : Tot (word SHA1) =
if t <. 20ul then (x &. y) ^. (~.x &. z) else if 39ul <. t && t <. 60ul then (x &. y) ^. (x &. z) ^. (y &. z) else x ^. y ^. z
false
Steel.ST.SeqMatch.fst
Steel.ST.SeqMatch.seq_seq_match_item_match_option_init
val seq_seq_match_item_match_option_init (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s: Seq.seq t1) : STGhostT unit opened emp (fun _ -> seq_seq_match (item_match_option p) s (Seq.create (Seq.length s) None) 0 (Seq.length s)) (decreases (Seq.lengt...
val seq_seq_match_item_match_option_init (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s: Seq.seq t1) : STGhostT unit opened emp (fun _ -> seq_seq_match (item_match_option p) s (Seq.create (Seq.length s) None) 0 (Seq.length s)) (decreases (Seq.lengt...
let rec seq_seq_match_item_match_option_init (#opened: _) (#t1 #t2: Type) (p: t1 -> t2 -> vprop) (s: Seq.seq t1) : STGhostT unit opened emp (fun _ -> seq_seq_match (item_match_option p) s (Seq.create (Seq.length s) None) 0 (Seq.length s)) (decreases (Seq.length s)) = if Seq.length s = 0 then o...
{ "file_name": "lib/steel/Steel.ST.SeqMatch.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 686, "start_col": 0, "start_line": 651 }
module Steel.ST.SeqMatch include Steel.ST.OnRange open Steel.ST.GenElim module Seq = FStar.Seq module SZ = FStar.SizeT (* `seq_list_match` describes how to match a sequence of low-level values (the low-level contents of an array) with a list of high-level values. `seq_list_match` is carefully designed to be usable wi...
{ "checked_file": "/", "dependencies": [ "Steel.ST.OnRange.fsti.checked", "Steel.ST.GenElim.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "Steel.ST.GenElim", "short_module": null }, { "abbrev": false, "full_module": "Stee...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: t1 -> _: t2 -> Steel.Effect.Common.vprop) -> s: FStar.Seq.Base.seq t1 -> Steel.ST.Effect.Ghost.STGhostT Prims.unit
Steel.ST.Effect.Ghost.STGhostT
[ "" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Seq.Base.seq", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Steel.ST.OnRange.on_range_empty", "Steel.ST.SeqMatch.seq_seq_match_item", "FStar.Pervasives.Native.option", "Steel.ST.SeqMatch.item_match_option", "FStar.Seq.Base...
[ "recursion" ]
false
true
false
false
false
let rec seq_seq_match_item_match_option_init (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s: Seq.seq t1) : STGhostT unit opened emp (fun _ -> seq_seq_match (item_match_option p) s (Seq.create (Seq.length s) None) 0 (Seq.length s)) (decreases (Seq.l...
if Seq.length s = 0 then on_range_empty (seq_seq_match_item (item_match_option p) s (Seq.create (Seq.length s) None)) 0 (Seq.length s) else (seq_seq_match_item_match_option_init p (Seq.tail s); on_range_weaken_and_shift (seq_seq_match_item (item_match_option p) (Seq.tail s) (Seq.crea...
false
Spec.SHA1.fst
Spec.SHA1.step4
val step4 : mi: Spec.SHA1.word_block -> h: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
let step4 = step4_aux
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 227, "start_col": 0, "start_line": 227 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> h: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.step4_aux" ]
[]
false
false
false
true
false
let step4 =
step4_aux
false
Spec.SHA1.fst
Spec.SHA1.step3
val step3 : mi: Spec.SHA1.word_block -> h: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
let step3 = step3_aux
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 204, "start_col": 0, "start_line": 204 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> h: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.step3_aux" ]
[]
false
false
false
true
false
let step3 =
step3_aux
false
Spec.SHA1.fst
Spec.SHA1.w
val w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: size_t{v t <= 79}) : GTot (word SHA1)
val w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: size_t{v t <= 79}) : GTot (word SHA1)
let w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: size_t {v t <= 79}) : GTot (word SHA1) = w' mi (v t)
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 114, "end_line": 30, "start_col": 0, "start_line": 30 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) (Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) -> t: Lib.IntTypes.size_t{Lib.IntTypes.v t <= 79} -> Prims.GTot (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1)
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.SHA1.w'" ]
[]
false
false
false
false
false
let w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: size_t{v t <= 79}) : GTot (word SHA1) =
w' mi (v t)
false
Spec.SHA1.fst
Spec.SHA1.update
val update: update_t SHA1
val update: update_t SHA1
let update = update_aux
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 242, "start_col": 0, "start_line": 242 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Spec.Hash.Definitions.update_t Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.update_aux" ]
[]
false
false
false
true
false
let update =
update_aux
false
Spec.SHA1.fst
Spec.SHA1.word_block
val word_block : Type0
let word_block = Seq.lseq (word SHA1) (block_word_length SHA1)
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 141, "start_col": 0, "start_line": 141 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length" ]
[]
false
false
false
true
true
let word_block =
Seq.lseq (word SHA1) (block_word_length SHA1)
false
Spec.SHA1.fst
Spec.SHA1.init
val init: init_t SHA1
val init: init_t SHA1
let init : words_state SHA1 = Seq.seq_of_list init_as_list
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 21, "start_col": 0, "start_line": 21 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Spec.Hash.Definitions.init_t Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq_of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Spec.SHA1.init_as_list", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.SHA1" ]
[]
false
false
false
true
false
let init:words_state SHA1 =
Seq.seq_of_list init_as_list
false
Spec.Agile.HPKE.fst
Spec.Agile.HPKE.openAuthPSK
val openAuthPSK: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> psk:psk_s cs -> psk_id:psk_id_s cs -> pkS:DH.serialized_point (kem_dh_of_cs cs) -> Tot (option (AEAD.decrypted...
val openAuthPSK: cs:ciphersuite_not_export_only -> enc:key_dh_public_s cs -> skR:key_dh_secret_s cs -> info:info_s cs -> aad:AEAD.ad (aead_alg_of cs) -> ct:AEAD.cipher (aead_alg_of cs) -> psk:psk_s cs -> psk_id:psk_id_s cs -> pkS:DH.serialized_point (kem_dh_of_cs cs) -> Tot (option (AEAD.decrypted...
let openAuthPSK cs enc skR info aad ct psk psk_id pkS = match setupAuthPSKR cs enc skR info psk psk_id pkS with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
{ "file_name": "specs/Spec.Agile.HPKE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 619, "start_col": 0, "start_line": 613 }
module Spec.Agile.HPKE open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module DH = Spec.Agile.DH module AEAD = Spec.Agile.AEAD module Hash = Spec.Agile.Hash module HKDF = Spec.Agile.HKDF let pow2_61 : _:unit{pow2 61 == 2305843009213693952} = assert_norm(pow2 61 == 23058...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "Spec.Agile.HKDF.fsti.checked", "Spec.Agile.Hash.fsti.checked", "Spec.Agile.DH.fst.checked", "Spec.Agile.AEAD.fsti.checked"...
[ { "abbrev": true, "full_module": "Spec.Agile.HKDF", "short_module": "HKDF" }, { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Spec.Agile.AEAD", "short_module": "AEAD" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cs: Spec.Agile.HPKE.ciphersuite_not_export_only -> enc: Spec.Agile.HPKE.key_dh_public_s cs -> skR: Spec.Agile.HPKE.key_dh_secret_s cs -> info: Spec.Agile.HPKE.info_s cs -> aad: Spec.Agile.AEAD.ad (Spec.Agile.HPKE.aead_alg_of cs) -> ct: Spec.Agile.AEAD.cipher (Spec.Agile.HPKE.aead_alg_of cs) -> ...
Prims.Tot
[ "total" ]
[]
[ "Spec.Agile.HPKE.ciphersuite_not_export_only", "Spec.Agile.HPKE.key_dh_public_s", "Spec.Agile.HPKE.key_dh_secret_s", "Spec.Agile.HPKE.info_s", "Spec.Agile.AEAD.ad", "Spec.Agile.HPKE.aead_alg_of", "Spec.Agile.AEAD.cipher", "Spec.Agile.HPKE.psk_s", "Spec.Agile.HPKE.psk_id_s", "Spec.Agile.DH.serializ...
[]
false
false
false
false
false
let openAuthPSK cs enc skR info aad ct psk psk_id pkS =
match setupAuthPSKR cs enc skR info psk psk_id pkS with | None -> None | Some ctx -> match context_open cs ctx aad ct with | None -> None | Some (_, pt) -> Some pt
false
Spec.SHA1.fst
Spec.SHA1.index_compute_w
val index_compute_w (mi: word_block) (cwt: Seq.lseq (word SHA1) 80 {compute_w_post mi 80 cwt}) : Tot (step3_body_w_t mi)
val index_compute_w (mi: word_block) (cwt: Seq.lseq (word SHA1) 80 {compute_w_post mi 80 cwt}) : Tot (step3_body_w_t mi)
let index_compute_w (mi: word_block) (cwt: Seq.lseq (word SHA1) 80 { compute_w_post mi 80 cwt } ) : Tot (step3_body_w_t mi) = fun (t: nat {t < 80}) -> (Seq.index cwt t <: (wt: word SHA1 { wt == w' mi t }))
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 81, "end_line": 194, "start_col": 0, "start_line": 190 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> cwt: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) 80 {Spec.SHA1.compute_w_post mi 80 cwt} -> Spec.SHA1.step3_body_w_t mi
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.word_block", "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.SHA1.compute_w_post", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.index", "Prims.eq2", "Spec.SHA1.w'", "Spec.SHA1.step3_body_w_t" ]
[]
false
false
false
false
false
let index_compute_w (mi: word_block) (cwt: Seq.lseq (word SHA1) 80 {compute_w_post mi 80 cwt}) : Tot (step3_body_w_t mi) =
fun (t: nat{t < 80}) -> (Seq.index cwt t <: (wt: word SHA1 {wt == w' mi t}))
false
Spec.SHA1.fst
Spec.SHA1.step4_aux
val step4_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1)
val step4_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1)
let step4_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1) = let st = step3 mi h in let sta = Seq.index st 0 in let stb = Seq.index st 1 in let stc = Seq.index st 2 in let std = Seq.index st 3 in let ste = Seq.index st 4 in Seq.seq_of_list [ sta +. Seq.index h 0; stb +. Seq....
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 224, "start_col": 0, "start_line": 208 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> h: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.word_block", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.SHA1", "FStar.Seq.Base.seq_of_list", "Spec.Hash.Definitions.word", "Prims.Cons", "Lib.IntTypes.op_Plus_Dot", "Spec.Hash.Definitions.word_t", "Lib.IntTypes.SEC", "FStar.Seq.Base.index", "Prims.Nil", "Spec.SHA1.s...
[]
false
false
false
true
false
let step4_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1) =
let st = step3 mi h in let sta = Seq.index st 0 in let stb = Seq.index st 1 in let stc = Seq.index st 2 in let std = Seq.index st 3 in let ste = Seq.index st 4 in Seq.seq_of_list [ sta +. Seq.index h 0; stb +. Seq.index h 1; stc +. Seq.index h 2; std +. Seq.index h 3; ste +. Seq.index h 4 ]
false
Spec.SHA1.fst
Spec.SHA1.compute_w_post
val compute_w_post (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) : GTot Type0
val compute_w_post (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) : GTot Type0
let compute_w_post (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) : GTot Type0 = (n <= 80 /\ ( forall (i: nat) . i < n ==> Seq.index res i == w' mi i ))
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 39, "start_col": 0, "start_line": 32 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) (Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) -> n: Prims.nat -> res: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) n -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.l_Forall", "Prims.l_imp", "Prims.op_LessThan", "Prims.eq2", "FStar.Seq.Base.index", ...
[]
false
false
false
false
true
let compute_w_post (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) : GTot Type0 =
(n <= 80 /\ (forall (i: nat). i < n ==> Seq.index res i == w' mi i))
false
Spec.SHA1.fst
Spec.SHA1.step3_body'_aux
val step3_body'_aux (mi: word_block) (st: words_state SHA1) (t: size_t{v t < 80}) (wt: word SHA1 {wt == w mi t}) : Tot (words_state SHA1)
val step3_body'_aux (mi: word_block) (st: words_state SHA1) (t: size_t{v t < 80}) (wt: word SHA1 {wt == w mi t}) : Tot (words_state SHA1)
let step3_body'_aux (mi: word_block) (st: words_state SHA1) (t: size_t {v t < 80}) (wt: word SHA1 { wt == w mi t } ) : Tot (words_state SHA1) = let sta = Seq.index st 0 in let stb = Seq.index st 1 in let stc = Seq.index st 2 in let std = Seq.index st 3 in let ste = Seq.index st 4 in let _T = (sta <<<....
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 168, "start_col": 0, "start_line": 143 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> st: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> t: Lib.IntTypes.size_t{Lib.IntTypes.v t < 80} -> wt: Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1 {wt == Spec.SHA1.w mi t} -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.word_block", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.SHA1", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.Hash.Definitions.word", "Prims.eq2", "Spec.SHA1.w", "FStar.Seq.Base.seq_of_list"...
[]
false
false
false
false
false
let step3_body'_aux (mi: word_block) (st: words_state SHA1) (t: size_t{v t < 80}) (wt: word SHA1 {wt == w mi t}) : Tot (words_state SHA1) =
let sta = Seq.index st 0 in let stb = Seq.index st 1 in let stc = Seq.index st 2 in let std = Seq.index st 3 in let ste = Seq.index st 4 in let _T = (sta <<<. 5ul) +. f t stb stc std +. ste +. k t +. wt in let e = std in let d = stc in let c = stb <<<. 30ul in let b = sta in let a = _T in let l:list uint32 = [a; b; c; ...
false
Spec.SHA1.fst
Spec.SHA1.step3_body
val step3_body (mi: word_block) (w: step3_body_w_t mi) (st: words_state SHA1) (t: nat{t < 80}) : Tot (words_state SHA1)
val step3_body (mi: word_block) (w: step3_body_w_t mi) (st: words_state SHA1) (t: nat{t < 80}) : Tot (words_state SHA1)
let step3_body (mi: word_block) (w: step3_body_w_t mi) (st: words_state SHA1) (t: nat {t < 80}) : Tot (words_state SHA1) = step3_body' mi st (size t) (w t)
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 187, "start_col": 0, "start_line": 181 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> w: Spec.SHA1.step3_body_w_t mi -> st: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> t: Prims.nat{t < 80} -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.word_block", "Spec.SHA1.step3_body_w_t", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.SHA1", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Spec.SHA1.step3_body'", "Lib.IntTypes.size" ]
[]
false
false
false
false
false
let step3_body (mi: word_block) (w: step3_body_w_t mi) (st: words_state SHA1) (t: nat{t < 80}) : Tot (words_state SHA1) =
step3_body' mi st (size t) (w t)
false
Spec.SHA1.fst
Spec.SHA1.step3_aux
val step3_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1)
val step3_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1)
let step3_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1) = let cwt = compute_w mi 0 Seq.empty in Spec.Loops.repeat_range 0 80 (step3_body mi (index_compute_w mi cwt)) h
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 201, "start_col": 0, "start_line": 196 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: Spec.SHA1.word_block -> h: Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1 -> Spec.Hash.Definitions.words_state Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA1.word_block", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.SHA1", "Spec.Loops.repeat_range", "Spec.SHA1.step3_body", "Spec.SHA1.index_compute_w", "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.SHA1.compute_w", "FStar.Seq.Base.empty" ]
[]
false
false
false
true
false
let step3_aux (mi: word_block) (h: words_state SHA1) : Tot (words_state SHA1) =
let cwt = compute_w mi 0 Seq.empty in Spec.Loops.repeat_range 0 80 (step3_body mi (index_compute_w mi cwt)) h
false
Spec.SHA1.fst
Spec.SHA1.init_as_list
val init_as_list:list uint32
val init_as_list:list uint32
let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98badcfe; u32 0x10325476; u32 0xc3d2e1f0; ]
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 19, "start_col": 0, "start_line": 13 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *)
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list (Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.SEC)
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Lib.IntTypes.u32", "Prims.Nil" ]
[]
false
false
false
true
false
let init_as_list:list uint32 =
[u32 0x67452301; u32 0xefcdab89; u32 0x98badcfe; u32 0x10325476; u32 0xc3d2e1f0]
false
Spec.SHA1.fst
Spec.SHA1.w'
val w' (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: nat{t <= 79}) : GTot (word SHA1) (decreases (t))
val w' (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: nat{t <= 79}) : GTot (word SHA1) (decreases (t))
let rec w' (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: nat {t <= 79}) : GTot (word SHA1) (decreases (t)) = if t < 16 then Seq.index mi (t) else (w' mi (t - 3) ^. w' mi (t - 8) ^. w' mi (t - 14) ^. w' mi (t - 16)) <<<. 1ul
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 84, "end_line": 28, "start_col": 0, "start_line": 25 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) (Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) -> t: Prims.nat{t <= 79} -> Prims.GTot (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1)
Prims.GTot
[ "sometrivial", "" ]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "FStar.Seq.Base.index", "Prims.bool", "Lib.IntTypes.op_Less_Less_Less_Dot", "Spec.Hash....
[ "recursion" ]
false
false
false
false
false
let rec w' (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (t: nat{t <= 79}) : GTot (word SHA1) (decreases (t)) =
if t < 16 then Seq.index mi (t) else (w' mi (t - 3) ^. w' mi (t - 8) ^. w' mi (t - 14) ^. w' mi (t - 16)) <<<. 1ul
false
Spec.SHA1.fst
Spec.SHA1.compute_w_n
val compute_w_n (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat{n <= 79}) (accu: Seq.lseq (word SHA1) n) : Pure (word SHA1) (requires (compute_w_post mi n accu)) (ensures (fun y -> n <= 79 /\ y == w' mi n))
val compute_w_n (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat{n <= 79}) (accu: Seq.lseq (word SHA1) n) : Pure (word SHA1) (requires (compute_w_post mi n accu)) (ensures (fun y -> n <= 79 /\ y == w' mi n))
let compute_w_n (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat { n <= 79 } ) (accu: Seq.lseq (word SHA1) n) : Pure (word SHA1) (requires (compute_w_post mi n accu)) (ensures (fun y -> n <= 79 /\ y == w' mi n)) = [@inline_let] let w (i: nat {i < n}) : Tot (y: word SHA1 {y == w' mi i}) = Seq.inde...
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 76, "start_col": 0, "start_line": 67 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) (Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) -> n: Prims.nat{n <= 79} -> accu: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) n -> Prims.Pure (Spe...
Prims.Pure
[]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Spec.SHA1.compute_w_n'", "Prims.op_LessThan", "Prims.eq2", "Spec.SHA1.w'", "FStar.Seq.Base.index", "Spec....
[]
false
false
false
false
false
let compute_w_n (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat{n <= 79}) (accu: Seq.lseq (word SHA1) n) : Pure (word SHA1) (requires (compute_w_post mi n accu)) (ensures (fun y -> n <= 79 /\ y == w' mi n)) =
[@@ inline_let ]let w (i: nat{i < n}) : Tot (y: word SHA1 {y == w' mi i}) = Seq.index accu i in compute_w_n' mi n w
false
Spec.SHA1.fst
Spec.SHA1.k
val k (t: size_t{v t <= 79}) : Tot (word SHA1)
val k (t: size_t{v t <= 79}) : Tot (word SHA1)
let k (t: size_t { v t <= 79 } ) : Tot (word SHA1) = if t <. 20ul then u32 0x5a827999 else if t <. 40ul then u32 0x6ed9eba1 else if t <. 60ul then u32 0x8f1bbcdc else u32 0xca62c1d6
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 137, "start_col": 0, "start_line": 130 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Lib.IntTypes.size_t{Lib.IntTypes.v t <= 79} -> Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.IntTypes.op_Less_Dot", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.u32", "Prims.bool", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1" ]
[]
false
false
false
false
false
let k (t: size_t{v t <= 79}) : Tot (word SHA1) =
if t <. 20ul then u32 0x5a827999 else if t <. 40ul then u32 0x6ed9eba1 else if t <. 60ul then u32 0x8f1bbcdc else u32 0xca62c1d6
false
Spec.SHA1.fst
Spec.SHA1.words_of_bytes_block
val words_of_bytes_block (l: bytes{Seq.length l == block_length SHA1}) : Tot word_block
val words_of_bytes_block (l: bytes{Seq.length l == block_length SHA1}) : Tot word_block
let words_of_bytes_block (l: bytes { Seq.length l == block_length SHA1 } ) : Tot word_block = words_of_bytes SHA1 #((block_word_length SHA1)) l
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 234, "start_col": 0, "start_line": 231 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Spec.Hash.Definitions.bytes {FStar.Seq.Base.length l == Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA1} -> Spec.SHA1.word_block
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.bytes", "Prims.eq2", "Prims.int", "Prims.l_or", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Prims.op_disEquality", "FStar.Seq.Base.length", "Lib.IntTypes.uint8", "Spec.Hash.Definitions.block_length", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.words_of_bytes", ...
[]
false
false
false
false
false
let words_of_bytes_block (l: bytes{Seq.length l == block_length SHA1}) : Tot word_block =
words_of_bytes SHA1 #((block_word_length SHA1)) l
false
Spec.SHA1.fst
Spec.SHA1.compute_w_next
val compute_w_next (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat{n <= 79}) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) (n + 1)) (requires (compute_w_post mi n accu)) (ensures (fun accu' -> compute_w_post mi (n + 1) accu'))
val compute_w_next (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat{n <= 79}) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) (n + 1)) (requires (compute_w_post mi n accu)) (ensures (fun accu' -> compute_w_post mi (n + 1) accu'))
let compute_w_next (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat { n <= 79 } ) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) (n + 1)) (requires (compute_w_post mi n accu)) (ensures (fun accu' -> compute_w_post mi (n + 1) accu')) = let wn = compute_w_n mi n accu in let accu' = Seq...
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 99, "start_col": 0, "start_line": 79 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) (Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) -> n: Prims.nat{n <= 79} -> accu: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) n -> Prims.Pure ...
Prims.Pure
[]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.unit", "Spec.SHA1.compute_w_post_intro", "Prims.op_Addition", "Prims.op_LessThan", "Prims.squash", ...
[]
false
false
false
false
false
let compute_w_next (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat{n <= 79}) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) (n + 1)) (requires (compute_w_post mi n accu)) (ensures (fun accu' -> compute_w_post mi (n + 1) accu')) =
let wn = compute_w_n mi n accu in let accu' = Seq.snoc accu wn in assert (n + 1 <= 80); let g (i: nat) : Lemma (requires (i < n + 1)) (ensures (i < n + 1 /\ Seq.index accu' i == w' mi i)) = if i = n then () in compute_w_post_intro mi (n + 1) accu' () g; accu'
false
Spec.SHA1.fst
Spec.SHA1.compute_w_post_intro
val compute_w_post_intro (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) (u: squash (n <= 80)) (f: (i: nat -> Lemma (requires (i < n)) (ensures (i < n /\ Seq.index res i == w' mi i)))) : Lemma (compute_w_post mi n res)
val compute_w_post_intro (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) (u: squash (n <= 80)) (f: (i: nat -> Lemma (requires (i < n)) (ensures (i < n /\ Seq.index res i == w' mi i)))) : Lemma (compute_w_post mi n res)
let compute_w_post_intro (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) (u: squash (n <= 80)) (f: (i: nat) -> Lemma (requires (i < n)) (ensures (i < n /\ Seq.index res i == w' mi i))) : Lemma (compute_w_post mi n res) = Classical.forall_intro (Classica...
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 51, "start_col": 0, "start_line": 41 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) (Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) -> n: Prims.nat -> res: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) n -> u32: Prims.squash (n <=...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length", "Prims.nat", "Prims.squash", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.unit", "Prims.op_LessThan", "Prims.l_and", "Prims.eq2", "FStar.Seq.Base.index", "...
[]
false
false
true
false
false
let compute_w_post_intro (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (res: Seq.lseq (word SHA1) n) (u: squash (n <= 80)) (f: (i: nat -> Lemma (requires (i < n)) (ensures (i < n /\ Seq.index res i == w' mi i)))) : Lemma (compute_w_post mi n res) =
Classical.forall_intro (Classical.move_requires f)
false
LList32.fst
LList32.is_list
val is_list : ll: LList32.llist -> l: Prims.list LList32.u32 -> Steel.Effect.Common.vprop
let is_list (ll:llist) (l:list u32) = is_list ll l
{ "file_name": "share/steel/examples/steel/LList32.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 50, "end_line": 40, "start_col": 0, "start_line": 40 }
(* Copyright 2021 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Effect.fsti.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "LList.ST.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface...
[ { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": false, "full_module": "LList.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ll: LList32.llist -> l: Prims.list LList32.u32 -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "LList32.llist", "Prims.list", "LList32.u32", "LList.ST.is_list", "Steel.Effect.Common.vprop" ]
[]
false
false
false
true
false
let is_list (ll: llist) (l: list u32) =
is_list ll l
false
LList32.fst
LList32.llist_node
val llist_node : Type0
let llist_node = llist_node u32
{ "file_name": "share/steel/examples/steel/LList32.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 35, "start_col": 0, "start_line": 35 }
(* Copyright 2021 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Effect.fsti.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "LList.ST.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface...
[ { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": false, "full_module": "LList.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "LList.ST.llist_node", "LList32.u32" ]
[]
false
false
false
true
true
let llist_node =
llist_node u32
false
Spec.SHA1.fst
Spec.SHA1.compute_w
val compute_w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) 80) (requires (compute_w_post mi n accu)) (ensures (fun res -> compute_w_post mi 80 res)) (decreases (80 - n))
val compute_w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) 80) (requires (compute_w_post mi n accu)) (ensures (fun res -> compute_w_post mi 80 res)) (decreases (80 - n))
let rec compute_w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) 80) (requires (compute_w_post mi n accu)) (ensures (fun res -> compute_w_post mi 80 res)) (decreases (80 - n)) = assert (n <= 80); // this assert is necessary for Z3 to ...
{ "file_name": "specs/Spec.SHA1.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 112, "start_col": 0, "start_line": 101 }
module Spec.SHA1 open Lib.IntTypes module H = Spec.Hash.Definitions module Seq = FStar.Seq open Spec.Hash.Definitions (* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *) (* Section 5.3.1 *) inline_for_extraction let init_as_list : list uint32 = [ u32 0x67452301; u32 0xefcdab89; u32 0x98ba...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Cl...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Spec.Hash.Definitions", "short_module": "H" }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mi: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) (Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) -> n: Prims.nat -> accu: FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1) n -> Prims.Pure (FStar.Se...
Prims.Pure
[ "" ]
[]
[ "FStar.Seq.Properties.lseq", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.block_word_length", "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.bool", "Spec.SHA1.compute_w", "Prims.op_Addition", "Spec.SHA1.compute_w_next", "Prims.unit", "Prims._asser...
[ "recursion" ]
false
false
false
false
false
let rec compute_w (mi: Seq.lseq (word SHA1) (block_word_length SHA1)) (n: nat) (accu: Seq.lseq (word SHA1) n) : Pure (Seq.lseq (word SHA1) 80) (requires (compute_w_post mi n accu)) (ensures (fun res -> compute_w_post mi 80 res)) (decreases (80 - n)) =
assert (n <= 80); if n = 80 then accu else compute_w mi (n + 1) (compute_w_next mi n accu)
false