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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.disable_pclmulqdq | val disable_pclmulqdq: disabler | val disable_pclmulqdq: disabler | let disable_pclmulqdq () = B.recall cpu_has_pclmulqdq; B.upd cpu_has_pclmulqdq 0ul false | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 88,
"end_line": 245,
"start_col": 0,
"start_line": 245
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.disabler | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"LowStar.Monotonic.Buffer.upd",
"EverCrypt.AutoConfig2.flag",
"Vale.X64.CPU_Features_s.pclmulqdq_enabled",
"LowStar.Buffer.trivial_preorder",
"EverCrypt.AutoConfig2.cpu_has_pclmulqdq",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.recall"
] | [] | false | false | false | true | false | let disable_pclmulqdq () =
| B.recall cpu_has_pclmulqdq;
B.upd cpu_has_pclmulqdq 0ul false | false |
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.disable_rdrand | val disable_rdrand: disabler | val disable_rdrand: disabler | let disable_rdrand () = B.recall cpu_has_rdrand; B.upd cpu_has_rdrand 0ul false | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 79,
"end_line": 248,
"start_col": 0,
"start_line": 248
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.disabler | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"LowStar.Monotonic.Buffer.upd",
"EverCrypt.AutoConfig2.flag",
"Vale.X64.CPU_Features_s.rdrand_enabled",
"LowStar.Buffer.trivial_preorder",
"EverCrypt.AutoConfig2.cpu_has_rdrand",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.recall"
] | [] | false | false | false | true | false | let disable_rdrand () =
| B.recall cpu_has_rdrand;
B.upd cpu_has_rdrand 0ul false | false |
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.disable_avx512 | val disable_avx512: disabler | val disable_avx512: disabler | let disable_avx512 () = B.recall cpu_has_avx512; B.upd cpu_has_avx512 0ul false | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 79,
"end_line": 249,
"start_col": 0,
"start_line": 249
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.disabler | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"LowStar.Monotonic.Buffer.upd",
"EverCrypt.AutoConfig2.flag",
"Vale.X64.CPU_Features_s.avx512_enabled",
"LowStar.Buffer.trivial_preorder",
"EverCrypt.AutoConfig2.cpu_has_avx512",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.recall"
] | [] | false | false | false | true | false | let disable_avx512 () =
| B.recall cpu_has_avx512;
B.upd cpu_has_avx512 0ul false | false |
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.disable_adx | val disable_adx: disabler | val disable_adx: disabler | let disable_adx () = B.recall cpu_has_adx; B.upd cpu_has_adx 0ul false | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 70,
"end_line": 242,
"start_col": 0,
"start_line": 242
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.disabler | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"LowStar.Monotonic.Buffer.upd",
"EverCrypt.AutoConfig2.flag",
"Vale.X64.CPU_Features_s.adx_enabled",
"LowStar.Buffer.trivial_preorder",
"EverCrypt.AutoConfig2.cpu_has_adx",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.recall"
] | [] | false | false | false | true | false | let disable_adx () =
| B.recall cpu_has_adx;
B.upd cpu_has_adx 0ul false | false |
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.has_vec256 | val has_vec256: getter vec256_enabled | val has_vec256: getter vec256_enabled | let has_vec256 () =
let avx2 = has_avx2 () in
let other = has_vec256_not_avx2 () in
avx2 || other | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 259,
"start_col": 0,
"start_line": 256
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.getter EverCrypt.AutoConfig2.vec256_enabled | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.op_BarBar",
"Prims.bool",
"EverCrypt.TargetConfig.has_vec256_not_avx2",
"EverCrypt.AutoConfig2.has_avx2"
] | [] | false | false | false | true | false | let has_vec256 () =
| let avx2 = has_avx2 () in
let other = has_vec256_not_avx2 () in
avx2 || other | false |
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.disable_movbe | val disable_movbe: disabler | val disable_movbe: disabler | let disable_movbe () = B.recall cpu_has_movbe; B.upd cpu_has_movbe 0ul false | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 247,
"start_col": 0,
"start_line": 247
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.disabler | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"LowStar.Monotonic.Buffer.upd",
"EverCrypt.AutoConfig2.flag",
"Vale.X64.CPU_Features_s.movbe_enabled",
"LowStar.Buffer.trivial_preorder",
"EverCrypt.AutoConfig2.cpu_has_movbe",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.recall"
] | [] | false | false | false | true | false | let disable_movbe () =
| B.recall cpu_has_movbe;
B.upd cpu_has_movbe 0ul false | false |
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.has_vec128 | val has_vec128: getter vec128_enabled | val has_vec128: getter vec128_enabled | let has_vec128 () =
let avx = has_avx () in
let other = has_vec128_not_avx () in
avx || other | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 254,
"start_col": 0,
"start_line": 251
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.getter EverCrypt.AutoConfig2.vec128_enabled | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.op_BarBar",
"Prims.bool",
"EverCrypt.TargetConfig.has_vec128_not_avx",
"EverCrypt.AutoConfig2.has_avx"
] | [] | false | false | false | true | false | let has_vec128 () =
| let avx = has_avx () in
let other = has_vec128_not_avx () in
avx || other | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.extract | val extract (g: env) (p: st_term) : T.Tac (mlexpr & e_tag) | val extract (g: env) (p: st_term) : T.Tac (mlexpr & e_tag) | let rec extract (g:env) (p:st_term)
: T.Tac (mlexpr & e_tag)
= let erased_result = mle_unit, e_tag_erasable in
debug g (fun _ -> Printf.sprintf "Extracting term@%s:\n%s\n"
(T.range_to_string p.range)
(st_term_to_string p));
if is_erasable p
then erased_result
else begin
... | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 682,
"start_col": 0,
"start_line": 536
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Extract.Main.env -> p: Pulse.Syntax.Base.st_term
-> FStar.Tactics.Effect.Tac (Pulse.Extract.CompilerLib.mlexpr * Pulse.Extract.CompilerLib.e_tag) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Syntax.Base.st_term",
"FStar.Pervasives.Native.tuple2",
"Pulse.Extract.CompilerLib.mlexpr",
"Pulse.Extract.CompilerLib.e_tag",
"Prims.bool",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
"Pulse.Syntax.Base.st_term'__Tm_IntroPure__payload",
"Pulse.Syntax.Base.st_... | [
"recursion"
] | false | true | false | false | false | let rec extract (g: env) (p: st_term) : T.Tac (mlexpr & e_tag) =
| let erased_result = mle_unit, e_tag_erasable in
debug g
(fun _ ->
Printf.sprintf "Extracting term@%s:\n%s\n" (T.range_to_string p.range) (st_term_to_string p));
if is_erasable p
then erased_result
else
match p.term with
| Tm_IntroPure _ | Tm_ElimExists _ | Tm_IntroExists _ | Tm_Rewrite _ -> erased_result
... | false |
EverCrypt.AutoConfig2.fst | EverCrypt.AutoConfig2.disable_sse | val disable_sse: disabler | val disable_sse: disabler | let disable_sse () = B.recall cpu_has_sse; B.upd cpu_has_sse 0ul false | {
"file_name": "providers/evercrypt/fst/EverCrypt.AutoConfig2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 70,
"end_line": 246,
"start_col": 0,
"start_line": 246
} | module EverCrypt.AutoConfig2
module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
open FStar.HyperStack.ST
#set-options "--max_fuel 0 --max_ifuel 0"
(** Only partially specified; the flag may be false because it has been
intentionally disabled by the client, ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.Cpuid.fsti.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | EverCrypt.AutoConfig2.disabler | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"LowStar.Monotonic.Buffer.upd",
"EverCrypt.AutoConfig2.flag",
"Vale.X64.CPU_Features_s.sse_enabled",
"LowStar.Buffer.trivial_preorder",
"EverCrypt.AutoConfig2.cpu_has_sse",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.recall"
] | [] | false | false | false | true | false | let disable_sse () =
| B.recall cpu_has_sse;
B.upd cpu_has_sse 0ul false | false |
Spec.MD5.fst | Spec.MD5.f | val f (x y z: uint32) : Tot uint32 | val f (x y z: uint32) : Tot uint32 | let f (x y z: uint32) : Tot uint32 =
(x &. y) |. ((~. x) &. z) | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 24,
"start_col": 0,
"start_line": 23
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 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 | x: Lib.IntTypes.uint32 -> y: Lib.IntTypes.uint32 -> z: Lib.IntTypes.uint32 -> Lib.IntTypes.uint32 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint32",
"Lib.IntTypes.op_Bar_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Amp_Dot",
"Lib.IntTypes.op_Tilde_Dot"
] | [] | false | false | false | true | false | let f (x y z: uint32) : Tot uint32 =
| (x &. y) |. ((~.x) &. z) | false |
Spec.MD5.fst | Spec.MD5.i | val i (x y z: uint32) : Tot uint32 | val i (x y z: uint32) : Tot uint32 | let i (x y z: uint32) : Tot uint32 =
y ^. (x |. ~. z) | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 36,
"start_col": 0,
"start_line": 35
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 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 | x: Lib.IntTypes.uint32 -> y: Lib.IntTypes.uint32 -> z: Lib.IntTypes.uint32 -> Lib.IntTypes.uint32 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint32",
"Lib.IntTypes.op_Hat_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Bar_Dot",
"Lib.IntTypes.op_Tilde_Dot"
] | [] | false | false | false | true | false | let i (x y z: uint32) : Tot uint32 =
| y ^. (x |. ~.z) | false |
Spec.MD5.fst | Spec.MD5.h | val h (x y z: uint32) : Tot uint32 | val h (x y z: uint32) : Tot uint32 | let h (x y z: uint32) : Tot uint32 =
x ^. y ^. z | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 32,
"start_col": 0,
"start_line": 31
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 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 | x: Lib.IntTypes.uint32 -> y: Lib.IntTypes.uint32 -> z: Lib.IntTypes.uint32 -> Lib.IntTypes.uint32 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint32",
"Lib.IntTypes.op_Hat_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC"
] | [] | false | false | false | true | false | let h (x y z: uint32) : Tot uint32 =
| x ^. y ^. z | false |
Spec.MD5.fst | Spec.MD5.g | val g (x y z: uint32) : Tot uint32 | val g (x y z: uint32) : Tot uint32 | let g (x y z: uint32) : Tot uint32 =
(x &. z) |. (y &. (~. z)) | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 28,
"start_col": 0,
"start_line": 27
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 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 | x: Lib.IntTypes.uint32 -> y: Lib.IntTypes.uint32 -> z: Lib.IntTypes.uint32 -> Lib.IntTypes.uint32 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint32",
"Lib.IntTypes.op_Bar_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Amp_Dot",
"Lib.IntTypes.op_Tilde_Dot"
] | [] | false | false | false | true | false | let g (x y z: uint32) : Tot uint32 =
| (x &. z) |. (y &. (~.z)) | false |
Spec.MD5.fst | Spec.MD5.x_t | val x_t : Type0 | let x_t = Seq.lseq uint32 16 | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 122,
"start_col": 0,
"start_line": 122
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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",
"Lib.IntTypes.uint32"
] | [] | false | false | false | true | true | let x_t =
| Seq.lseq uint32 16 | false | |
Spec.MD5.fst | Spec.MD5.abcd_t | val abcd_t : Type0 | let abcd_t = Seq.lseq uint32 4 | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 119,
"start_col": 0,
"start_line": 119
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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",
"Lib.IntTypes.uint32"
] | [] | false | false | false | true | true | let abcd_t =
| Seq.lseq uint32 4 | false | |
Spec.MD5.fst | Spec.MD5.abcd_idx | val abcd_idx : Type0 | let abcd_idx = (n: nat { n < 4 } ) | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 117,
"start_col": 0,
"start_line": 117
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan"
] | [] | false | false | false | true | true | let abcd_idx =
| (n: nat{n < 4}) | false | |
Spec.MD5.fst | Spec.MD5.rotate_idx | val rotate_idx : Type0 | let rotate_idx = rotval U32 | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 127,
"start_col": 0,
"start_line": 127
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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"
] | [] | [
"Lib.IntTypes.rotval",
"Lib.IntTypes.U32"
] | [] | false | false | false | true | true | let rotate_idx =
| rotval U32 | false | |
Spec.MD5.fst | Spec.MD5.x_idx | val x_idx : Type0 | let x_idx = (n: nat { n < 16 } ) | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 121,
"start_col": 0,
"start_line": 121
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan"
] | [] | false | false | false | true | true | let x_idx =
| (n: nat{n < 16}) | false | |
Spec.MD5.fst | Spec.MD5.t_idx | val t_idx : Type0 | let t_idx = (n: nat { 1 <= n /\ n <= 64 } ) | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 43,
"end_line": 124,
"start_col": 0,
"start_line": 124
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual"
] | [] | false | false | false | true | true | let t_idx =
| (n: nat{1 <= n /\ n <= 64}) | false | |
Spec.MD5.fst | Spec.MD5.ia | val ia:abcd_idx | val ia:abcd_idx | let ia : abcd_idx = 0 | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 143,
"start_col": 0,
"start_line": 143
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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.MD5.abcd_idx | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let ia:abcd_idx =
| 0 | false |
Spec.MD5.fst | Spec.MD5.round1_op | val round1_op : abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | let round1_op = round_op_gen f | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 141,
"start_col": 0,
"start_line": 141
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 |
abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round_op_gen",
"Spec.MD5.f"
] | [] | false | false | false | true | false | let round1_op =
| round_op_gen f | false | |
Hacl.K256.Scalar.fsti | Hacl.K256.Scalar.qeval | val qeval (h: mem) (e: qelem) : GTot S.qelem | val qeval (h: mem) (e: qelem) : GTot S.qelem | let qeval (h:mem) (e:qelem) : GTot S.qelem = qas_nat h e % S.q | {
"file_name": "code/k256/Hacl.K256.Scalar.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 32,
"start_col": 0,
"start_line": 32
} | module Hacl.K256.Scalar
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module SG = Hacl.Spec.K256.GLV
module BD = Hacl.Bignum.Definitions
#set-options "--... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.GLV.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"F... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.Definitions",
"short_module": "BD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.GLV",
"short_module": "SG"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> e: Hacl.K256.Scalar.qelem
-> Prims.GTot Spec.K256.PointOps.qelem | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"Hacl.K256.Scalar.qelem",
"Prims.op_Modulus",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.q",
"Spec.K256.PointOps.qelem"
] | [] | false | false | false | false | false | let qeval (h: mem) (e: qelem) : GTot S.qelem =
| qas_nat h e % S.q | false |
Spec.MD5.fst | Spec.MD5.round_op_gen | val round_op_gen : f:
(_: Lib.IntTypes.uint32 -> _: Lib.IntTypes.uint32 -> _: Lib.IntTypes.uint32
-> Lib.IntTypes.uint32) ->
abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5... | let round_op_gen = round_op_gen_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 137,
"start_col": 0,
"start_line": 137
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f:
(_: Lib.IntTypes.uint32 -> _: Lib.IntTypes.uint32 -> _: Lib.IntTypes.uint32
-> Lib.IntTypes.uint32) ->
abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
... | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round_op_gen_aux"
] | [] | false | false | false | true | false | let round_op_gen =
| round_op_gen_aux | false | |
Spec.MD5.fst | Spec.MD5.ib | val ib:abcd_idx | val ib:abcd_idx | let ib : abcd_idx = 1 | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 144,
"start_col": 0,
"start_line": 144
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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.MD5.abcd_idx | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let ib:abcd_idx =
| 1 | false |
Spec.MD5.fst | Spec.MD5.id | val id:abcd_idx | val id:abcd_idx | let id : abcd_idx = 3 | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 146,
"start_col": 0,
"start_line": 146
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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.MD5.abcd_idx | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let id:abcd_idx =
| 3 | false |
Spec.MD5.fst | Spec.MD5.ic | val ic:abcd_idx | val ic:abcd_idx | let ic : abcd_idx = 2 | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 145,
"start_col": 0,
"start_line": 145
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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.MD5.abcd_idx | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let ic:abcd_idx =
| 2 | false |
Hacl.K256.Scalar.fsti | Hacl.K256.Scalar.qas_nat | val qas_nat (h: mem) (e: qelem) : GTot nat | val qas_nat (h: mem) (e: qelem) : GTot nat | let qas_nat (h:mem) (e:qelem) : GTot nat = BD.bn_v #U64 #qnlimb h e | {
"file_name": "code/k256/Hacl.K256.Scalar.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 67,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | module Hacl.K256.Scalar
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module SG = Hacl.Spec.K256.GLV
module BD = Hacl.Bignum.Definitions
#set-options "--... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.GLV.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"F... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.Definitions",
"short_module": "BD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.GLV",
"short_module": "SG"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> e: Hacl.K256.Scalar.qelem -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"Hacl.K256.Scalar.qelem",
"Hacl.Bignum.Definitions.bn_v",
"Lib.IntTypes.U64",
"Hacl.K256.Scalar.qnlimb",
"Prims.nat"
] | [] | false | false | false | false | false | let qas_nat (h: mem) (e: qelem) : GTot nat =
| BD.bn_v #U64 #qnlimb h e | false |
Spec.MD5.fst | Spec.MD5.round1 | val round1 : abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | let round1 = round1_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 172,
"start_col": 0,
"start_line": 172
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round1_aux"
] | [] | false | false | false | true | false | let round1 =
| round1_aux | false | |
Spec.MD5.fst | Spec.MD5.round2_op | val round2_op : abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | let round2_op = round_op_gen g | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 174,
"start_col": 0,
"start_line": 174
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 |
abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round_op_gen",
"Spec.MD5.g"
] | [] | false | false | false | true | false | let round2_op =
| round_op_gen g | false | |
Spec.MD5.fst | Spec.MD5.round2 | val round2 : abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | let round2 = round2_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 200,
"start_col": 0,
"start_line": 200
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round2_aux"
] | [] | false | false | false | true | false | let round2 =
| round2_aux | false | |
Spec.MD5.fst | Spec.MD5.round3_op | val round3_op : abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | let round3_op = round_op_gen h | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 202,
"start_col": 0,
"start_line": 202
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 |
abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round_op_gen",
"Spec.MD5.h"
] | [] | false | false | false | true | false | let round3_op =
| round_op_gen h | false | |
Spec.MD5.fst | Spec.MD5.round3 | val round3 : abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | let round3 = round3_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 228,
"start_col": 0,
"start_line": 228
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round3_aux"
] | [] | false | false | false | true | false | let round3 =
| round3_aux | false | |
Spec.MD5.fst | Spec.MD5.rounds | val rounds : abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | let rounds = rounds_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 266,
"start_col": 0,
"start_line": 266
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.rounds_aux"
] | [] | false | false | false | true | false | let rounds =
| rounds_aux | false | |
Spec.MD5.fst | Spec.MD5.round4 | val round4 : abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | let round4 = round4_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 256,
"start_col": 0,
"start_line": 256
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round4_aux"
] | [] | false | false | false | true | false | let round4 =
| round4_aux | false | |
Spec.MD5.fst | Spec.MD5.round4_op | val round4_op : abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | let round4_op = round_op_gen i | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 230,
"start_col": 0,
"start_line": 230
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 |
abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
s: Spec.MD5.rotate_idx ->
i: Spec.MD5.t_idx
-> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.round_op_gen",
"Spec.MD5.i"
] | [] | false | false | false | true | false | let round4_op =
| round_op_gen i | false | |
Spec.MD5.fst | Spec.MD5.rounds_aux | val rounds_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | val rounds_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | let rounds_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
let abcd = round1 abcd x in
let abcd = round2 abcd x in
let abcd = round3 abcd x in
let abcd = round4 abcd x in
abcd | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 263,
"start_col": 0,
"start_line": 258
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.abcd_t",
"Spec.MD5.x_t",
"Spec.MD5.round4",
"Spec.MD5.round3",
"Spec.MD5.round2",
"Spec.MD5.round1"
] | [] | false | false | false | true | false | let rounds_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
| let abcd = round1 abcd x in
let abcd = round2 abcd x in
let abcd = round3 abcd x in
let abcd = round4 abcd x in
abcd | false |
Spec.MD5.fst | Spec.MD5.t | val t:Seq.lseq uint32 64 | val t:Seq.lseq uint32 64 | let t : Seq.lseq uint32 64 =
assert_norm (L.length t_as_list == 64);
Seq.seq_of_list t_as_list | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 115,
"start_col": 0,
"start_line": 113
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Seq.Properties.lseq (Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.SEC) 64 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq_of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Spec.MD5.t_as_list",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let t:Seq.lseq uint32 64 =
| assert_norm (L.length t_as_list == 64);
Seq.seq_of_list t_as_list | false |
Spec.MD5.fst | Spec.MD5.overwrite | val overwrite : abcd: Spec.MD5.abcd_t ->
a': Lib.IntTypes.uint32 ->
b': Lib.IntTypes.uint32 ->
c': Lib.IntTypes.uint32 ->
d': Lib.IntTypes.uint32
-> Spec.MD5.abcd_t | let overwrite = overwrite_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 276,
"start_col": 0,
"start_line": 276
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 |
abcd: Spec.MD5.abcd_t ->
a': Lib.IntTypes.uint32 ->
b': Lib.IntTypes.uint32 ->
c': Lib.IntTypes.uint32 ->
d': Lib.IntTypes.uint32
-> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.overwrite_aux"
] | [] | false | false | false | true | false | let overwrite =
| overwrite_aux | false | |
Vale.AES.X64.GCMdecryptOpt.fst | Vale.AES.X64.GCMdecryptOpt.va_lemma_Gcm_blocks | val va_lemma_Gcm_blocks : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> offset:int ->
auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 ->
in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 ->
scratch_b:buffer128 -> key:(seq nat32) -> round_key... | val va_lemma_Gcm_blocks : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> offset:int ->
auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 ->
in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 ->
scratch_b:buffer128 -> key:(seq nat32) -> round_key... | let va_lemma_Gcm_blocks va_b0 va_s0 alg offset auth_b abytes_b in128x6_b out128x6_b in128_b
out128_b inout_b iv_b scratch_b key round_keys keys_b hkeys_b =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5;
va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mo... | {
"file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1117,
"start_col": 0,
"start_line": 987
} | module Vale.AES.X64.GCMdecryptOpt
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open FStar.Seq
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open Vale.AES.GCTR
open Vale.AES.GCM
open Vale.AES.GHash_s
open Vale.AE... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Stack.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.In... | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
offset: Prims.int ->
auth_b: Vale.X64.Memory.buffer128 ->
abytes_b: Vale.X64.Memory.buffer128 ->
in128x6_b: Vale.X64.Memory.buffer128 ->
out128x6_b: Vale.X64.Memory.buffer128 ->
... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Prims.int",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.quad32",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decl... | [] | false | false | false | false | false | let va_lemma_Gcm_blocks
va_b0
va_s0
alg
offset
auth_b
abytes_b
in128x6_b
out128x6_b
in128_b
out128_b
inout_b
iv_b
scratch_b
key
round_keys
keys_b
hkeys_b
=
| let va_mods:va_mods_t =
[
va_Mod_flags; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 3;
va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mod_xmm 15; va_Mod_xmm 14; va_Mod_xmm 13;
va_Mod_xmm 12; va_Mod_xmm 11; va_Mod_xmm 10; va_Mod_xmm 9; va_Mod_xmm 8; va_Mod_xmm 7;
va_Mod_xmm 6; va_Mod... | false |
Spec.MD5.fst | Spec.MD5.init | val init: init_t MD5 | val init: init_t MD5 | let init : words_state MD5 = Seq.seq_of_list init_as_list | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 18,
"start_col": 0,
"start_line": 18
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
] | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 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.MD5 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq_of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Spec.MD5.init_as_list",
"Spec.Hash.Definitions.words_state",
"Spec.Hash.Definitions.MD5"
] | [] | false | false | false | true | false | let init:words_state MD5 =
| Seq.seq_of_list init_as_list | false |
Spec.MD5.fst | Spec.MD5.round_op_gen_aux | val round_op_gen_aux
(f: (uint32 -> uint32 -> uint32 -> Tot uint32))
(abcd: abcd_t)
(x: x_t)
(a b c d: abcd_idx)
(k: x_idx)
(s: rotate_idx)
(i: t_idx)
: Tot abcd_t | val round_op_gen_aux
(f: (uint32 -> uint32 -> uint32 -> Tot uint32))
(abcd: abcd_t)
(x: x_t)
(a b c d: abcd_idx)
(k: x_idx)
(s: rotate_idx)
(i: t_idx)
: Tot abcd_t | let round_op_gen_aux (f: (uint32 -> uint32 -> uint32 -> Tot uint32)) (abcd: abcd_t) (x: x_t) (a b c d: abcd_idx) (k: x_idx) (s: rotate_idx) (i: t_idx) : Tot abcd_t =
let va = Seq.index abcd a in
let vb = Seq.index abcd b in
let vc = Seq.index abcd c in
let vd = Seq.index abcd d in
Seq.upd abcd a (vb +. ((va +... | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 92,
"end_line": 134,
"start_col": 0,
"start_line": 129
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f:
(_: Lib.IntTypes.uint32 -> _: Lib.IntTypes.uint32 -> _: Lib.IntTypes.uint32
-> Lib.IntTypes.uint32) ->
abcd: Spec.MD5.abcd_t ->
x: Spec.MD5.x_t ->
a: Spec.MD5.abcd_idx ->
b: Spec.MD5.abcd_idx ->
c: Spec.MD5.abcd_idx ->
d: Spec.MD5.abcd_idx ->
k: Spec.MD5.x_idx ->
... | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint32",
"Spec.MD5.abcd_t",
"Spec.MD5.x_t",
"Spec.MD5.abcd_idx",
"Spec.MD5.x_idx",
"Spec.MD5.rotate_idx",
"Spec.MD5.t_idx",
"FStar.Seq.Base.upd",
"Lib.IntTypes.op_Plus_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Less_Less_Less_Dot",
"FStar.Seq.Base.index",
... | [] | false | false | false | true | false | let round_op_gen_aux
(f: (uint32 -> uint32 -> uint32 -> Tot uint32))
(abcd: abcd_t)
(x: x_t)
(a b c d: abcd_idx)
(k: x_idx)
(s: rotate_idx)
(i: t_idx)
: Tot abcd_t =
| let va = Seq.index abcd a in
let vb = Seq.index abcd b in
let vc = Seq.index abcd c in
let vd = Seq.index abcd d in
Seq.upd abcd a (vb +. ((va +. f vb vc vd +. Seq.index x k +. Seq.index t (i - 1)) <<<. s)) | false |
Spec.MD5.fst | Spec.MD5.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;
] | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 16,
"start_col": 0,
"start_line": 11
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *) | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 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] | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.vale_stack | val vale_stack : Type u#0 | val vale_stack : Type u#0 | let vale_stack = BS.machine_stack | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 6,
"start_col": 0,
"start_line": 6
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Machine_Semantics_s.machine_stack"
] | [] | false | false | false | true | true | let vale_stack =
| BS.machine_stack | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.load_stack64 | val load_stack64 (ptr:int) (h:vale_stack) : GTot nat64 | val load_stack64 (ptr:int) (h:vale_stack) : GTot nat64 | let load_stack64 i st = BS.eval_stack i st | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 9,
"start_col": 0,
"start_line": 9
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> h: Vale.X64.Stack_i.vale_stack -> Prims.GTot Vale.X64.Memory.nat64 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.eval_stack",
"Vale.X64.Memory.nat64"
] | [] | false | false | false | false | false | let load_stack64 i st =
| BS.eval_stack i st | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.valid_src_stack64 | val valid_src_stack64 (ptr:int) (h:vale_stack) : GTot bool | val valid_src_stack64 (ptr:int) (h:vale_stack) : GTot bool | let valid_src_stack64 i st = BS.valid_src_stack64 i st | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 54,
"end_line": 8,
"start_col": 0,
"start_line": 8
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> h: Vale.X64.Stack_i.vale_stack -> Prims.GTot Prims.bool | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.valid_src_stack64",
"Prims.bool"
] | [] | false | false | false | false | false | let valid_src_stack64 i st =
| BS.valid_src_stack64 i st | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_detached | val crypto_box_detached:
c:buffer uint8
-> tag:lbuffer uint8 16ul
-> m:buffer uint8
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h sk /\ live h pk /... | val crypto_box_detached:
c:buffer uint8
-> tag:lbuffer uint8 16ul
-> m:buffer uint8
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h sk /\ live h pk /... | let crypto_box_detached c tag m mlen n pk sk =
Hacl.Impl.Box.box_detached mlen c tag sk pk n m | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 49,
"end_line": 207,
"start_col": 0,
"start_line": 206
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
tag: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul ->
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
mlen:
Lib.IntTypes.size_t
{Lib.Buffer.length c = Lib.IntTypes.v mlen /\ Lib.Buffer.length m = Lib.IntTypes.v mlen} ->
n: Lib.Buffer.lbuffer Lib.IntT... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"L... | [] | false | true | false | false | false | let crypto_box_detached c tag m mlen n pk sk =
| Hacl.Impl.Box.box_detached mlen c tag sk pk n m | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.valid_src_stack128 | val valid_src_stack128 (ptr:int) (h:vale_stack) : GTot bool | val valid_src_stack128 (ptr:int) (h:vale_stack) : GTot bool | let valid_src_stack128 i st = BS.valid_src_stack128 i st | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 13,
"start_col": 0,
"start_line": 13
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> h: Vale.X64.Stack_i.vale_stack -> Prims.GTot Prims.bool | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.valid_src_stack128",
"Prims.bool"
] | [] | false | false | false | false | false | let valid_src_stack128 i st =
| BS.valid_src_stack128 i st | false |
Spec.MD5.fst | Spec.MD5.t_as_list | val t_as_list:list uint32 | val t_as_list:list uint32 | let t_as_list : list uint32 = [
u32 0xd76aa478;
u32 0xe8c7b756;
u32 0x242070db;
u32 0xc1bdceee;
u32 0xf57c0faf;
u32 0x4787c62a;
u32 0xa8304613;
u32 0xfd469501;
u32 0x698098d8;
u32 0x8b44f7af;
u32 0xffff5bb1;
u32 0x895cd7be;
u32 0x6b901122;
u32 0xfd987193;
u32 0xa679438e;
u32 0x49b40821;
... | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 109,
"start_col": 0,
"start_line": 41
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 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 t_as_list:list uint32 =
| [
u32 0xd76aa478; u32 0xe8c7b756; u32 0x242070db; u32 0xc1bdceee; u32 0xf57c0faf; u32 0x4787c62a;
u32 0xa8304613; u32 0xfd469501; u32 0x698098d8; u32 0x8b44f7af; u32 0xffff5bb1; u32 0x895cd7be;
u32 0x6b901122; u32 0xfd987193; u32 0xa679438e; u32 0x49b40821; u32 0xf61e2562; u32 0xc040b340;
u32 0x265e5a51; u32 0x... | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_secretbox_open_detached | val crypto_secretbox_open_detached:
m:buffer uint8
-> c:buffer uint8
-> tag:lbuffer uint8 16ul
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
... | val crypto_secretbox_open_detached:
m:buffer uint8
-> c:buffer uint8
-> tag:lbuffer uint8 16ul
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
... | let crypto_secretbox_open_detached m c tag mlen n k =
Hacl.Impl.SecretBox.secretbox_open_detached mlen m k n c tag | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 78,
"start_col": 0,
"start_line": 77
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
tag: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul ->
mlen:
Lib.IntTypes.size_t
{Lib.Buffer.length c = Lib.IntTypes.v mlen /\ Lib.Buffer.length m = Lib.IntTypes.v mlen} ->
n: Lib.Buffer.lbuffer Lib.IntT... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"L... | [] | false | true | false | false | false | let crypto_secretbox_open_detached m c tag mlen n k =
| Hacl.Impl.SecretBox.secretbox_open_detached mlen m k n c tag | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.store_stack128 | val store_stack128 (ptr:int) (v:quad32) (h:vale_stack) : GTot vale_stack | val store_stack128 (ptr:int) (v:quad32) (h:vale_stack) : GTot vale_stack | let store_stack128 i v h = BS.update_stack128' i v h | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 15,
"start_col": 0,
"start_line": 15
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> v: Vale.X64.Memory.quad32 -> h: Vale.X64.Stack_i.vale_stack
-> Prims.GTot Vale.X64.Stack_i.vale_stack | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.X64.Memory.quad32",
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.update_stack128'"
] | [] | false | false | false | false | false | let store_stack128 i v h =
| BS.update_stack128' i v h | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.store_stack64 | val store_stack64 (ptr:int) (v:nat64) (h:vale_stack) : GTot vale_stack | val store_stack64 (ptr:int) (v:nat64) (h:vale_stack) : GTot vale_stack | let store_stack64 i v h = BS.update_stack64' i v h | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 10,
"start_col": 0,
"start_line": 10
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> v: Vale.X64.Memory.nat64 -> h: Vale.X64.Stack_i.vale_stack
-> Prims.GTot Vale.X64.Stack_i.vale_stack | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.X64.Memory.nat64",
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.update_stack64'"
] | [] | false | false | false | false | false | let store_stack64 i v h =
| BS.update_stack64' i v h | false |
Spec.MD5.fst | Spec.MD5.round2_aux | val round2_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | val round2_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | let round2_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
let abcd = round2_op abcd x ia ib ic id 1 5ul 17 in
let abcd = round2_op abcd x id ia ib ic 6 9ul 18 in
let abcd = round2_op abcd x ic id ia ib 11 14ul 19 in
let abcd = round2_op abcd x ib ic id ia 0 20ul 20 in
let abcd = round2_op abcd x ia ib ic id 5 5u... | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 197,
"start_col": 0,
"start_line": 176
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.abcd_t",
"Spec.MD5.x_t",
"Spec.MD5.round2_op",
"Spec.MD5.ib",
"Spec.MD5.ic",
"Spec.MD5.id",
"Spec.MD5.ia",
"FStar.UInt32.__uint_to_t"
] | [] | false | false | false | true | false | let round2_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
| let abcd = round2_op abcd x ia ib ic id 1 5ul 17 in
let abcd = round2_op abcd x id ia ib ic 6 9ul 18 in
let abcd = round2_op abcd x ic id ia ib 11 14ul 19 in
let abcd = round2_op abcd x ib ic id ia 0 20ul 20 in
let abcd = round2_op abcd x ia ib ic id 5 5ul 21 in
let abcd = round2_op abcd x id ia ib ic 10 9ul 22 in
let ... | false |
Spec.MD5.fst | Spec.MD5.round1_aux | val round1_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | val round1_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | let round1_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
let abcd = round1_op abcd x ia ib ic id 0 7ul 1 in
let abcd = round1_op abcd x id ia ib ic 1 12ul 2 in
let abcd = round1_op abcd x ic id ia ib 2 17ul 3 in
let abcd = round1_op abcd x ib ic id ia 3 22ul 4 in
let abcd = round1_op abcd x ia ib ic id... | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 169,
"start_col": 0,
"start_line": 148
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.abcd_t",
"Spec.MD5.x_t",
"Spec.MD5.round1_op",
"Spec.MD5.ib",
"Spec.MD5.ic",
"Spec.MD5.id",
"Spec.MD5.ia",
"FStar.UInt32.__uint_to_t"
] | [] | false | false | false | true | false | let round1_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
| let abcd = round1_op abcd x ia ib ic id 0 7ul 1 in
let abcd = round1_op abcd x id ia ib ic 1 12ul 2 in
let abcd = round1_op abcd x ic id ia ib 2 17ul 3 in
let abcd = round1_op abcd x ib ic id ia 3 22ul 4 in
let abcd = round1_op abcd x ia ib ic id 4 7ul 5 in
let abcd = round1_op abcd x id ia ib ic 5 12ul 6 in
let abcd =... | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.load_stack128 | val load_stack128 (ptr:int) (h:vale_stack) : GTot quad32 | val load_stack128 (ptr:int) (h:vale_stack) : GTot quad32 | let load_stack128 i st = BS.eval_stack128 i st | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 14,
"start_col": 0,
"start_line": 14
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> h: Vale.X64.Stack_i.vale_stack -> Prims.GTot Vale.X64.Memory.quad32 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.eval_stack128",
"Vale.X64.Memory.quad32"
] | [] | false | false | false | false | false | let load_stack128 i st =
| BS.eval_stack128 i st | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.init_rsp | val init_rsp (h:vale_stack) : (n:nat64{n >= 4096}) | val init_rsp (h:vale_stack) : (n:nat64{n >= 4096}) | let init_rsp h = h.BS.initial_rsp | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 17,
"start_col": 0,
"start_line": 17
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: Vale.X64.Stack_i.vale_stack -> n: Vale.X64.Memory.nat64{n >= 4096} | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.__proj__Machine_stack__item__initial_rsp",
"Vale.X64.Memory.nat64",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual"
] | [] | false | false | false | false | false | let init_rsp h =
| h.BS.initial_rsp | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.free_stack64 | val free_stack64 (start:int) (finish:int) (h:vale_stack) : GTot vale_stack | val free_stack64 (start:int) (finish:int) (h:vale_stack) : GTot vale_stack | let free_stack64 start finish h = BS.free_stack' start finish h | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 11,
"start_col": 0,
"start_line": 11
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | start: Prims.int -> finish: Prims.int -> h: Vale.X64.Stack_i.vale_stack
-> Prims.GTot Vale.X64.Stack_i.vale_stack | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.X64.Machine_Semantics_s.free_stack'"
] | [] | false | false | false | false | false | let free_stack64 start finish h =
| BS.free_stack' start finish h | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_beforenm | val crypto_box_beforenm:
k:lbuffer uint8 32ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h -> live h k /\ live h pk /\ live h sk /\
disjoint k pk /\ disjoint k sk)
(ensures fun h0 r h1 -> modifies1 k h0 h1 /\
(let key = SB.box_beforenm (as_seq h0 pk) (as_seq h0... | val crypto_box_beforenm:
k:lbuffer uint8 32ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h -> live h k /\ live h pk /\ live h sk /\
disjoint k pk /\ disjoint k sk)
(ensures fun h0 r h1 -> modifies1 k h0 h1 /\
(let key = SB.box_beforenm (as_seq h0 pk) (as_seq h0... | let crypto_box_beforenm k pk sk =
Hacl.Impl.Box.box_beforenm k pk sk | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 155,
"start_col": 0,
"start_line": 154
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
k: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
pk: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
sk: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul
-> FStar.HyperStack.ST.Stack Lib.IntTypes.size_t | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Box.box_beforenm",
"Lib.IntTypes.size_t"
] | [] | false | true | false | false | false | let crypto_box_beforenm k pk sk =
| Hacl.Impl.Box.box_beforenm k pk sk | false |
Spec.MD5.fst | Spec.MD5.round4_aux | val round4_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | val round4_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | let round4_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
let abcd = round4_op abcd x ia ib ic id 0 6ul 49 in
let abcd = round4_op abcd x id ia ib ic 7 10ul 50 in
let abcd = round4_op abcd x ic id ia ib 14 15ul 51 in
let abcd = round4_op abcd x ib ic id ia 5 21ul 52 in
let abcd = round4_op abcd x ia ib ic id 12 ... | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 253,
"start_col": 0,
"start_line": 232
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.abcd_t",
"Spec.MD5.x_t",
"Spec.MD5.round4_op",
"Spec.MD5.ib",
"Spec.MD5.ic",
"Spec.MD5.id",
"Spec.MD5.ia",
"FStar.UInt32.__uint_to_t"
] | [] | false | false | false | true | false | let round4_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
| let abcd = round4_op abcd x ia ib ic id 0 6ul 49 in
let abcd = round4_op abcd x id ia ib ic 7 10ul 50 in
let abcd = round4_op abcd x ic id ia ib 14 15ul 51 in
let abcd = round4_op abcd x ib ic id ia 5 21ul 52 in
let abcd = round4_op abcd x ia ib ic id 12 6ul 53 in
let abcd = round4_op abcd x id ia ib ic 3 10ul 54 in
le... | false |
Spec.MD5.fst | Spec.MD5.overwrite_aux | val overwrite_aux (abcd: abcd_t) (a' b' c' d': uint32) : Tot abcd_t | val overwrite_aux (abcd: abcd_t) (a' b' c' d': uint32) : Tot abcd_t | let overwrite_aux (abcd: abcd_t) (a' b' c' d' : uint32) : Tot abcd_t =
let abcd : abcd_t = Seq.upd abcd ia a' in
let abcd : abcd_t = Seq.upd abcd ib b' in
let abcd : abcd_t = Seq.upd abcd ic c' in
let abcd : abcd_t = Seq.upd abcd id d' in
abcd | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 273,
"start_col": 0,
"start_line": 268
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 |
abcd: Spec.MD5.abcd_t ->
a': Lib.IntTypes.uint32 ->
b': Lib.IntTypes.uint32 ->
c': Lib.IntTypes.uint32 ->
d': Lib.IntTypes.uint32
-> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.abcd_t",
"Lib.IntTypes.uint32",
"FStar.Seq.Base.upd",
"Spec.MD5.id",
"Spec.MD5.ic",
"Spec.MD5.ib",
"Spec.MD5.ia"
] | [] | false | false | false | true | false | let overwrite_aux (abcd: abcd_t) (a' b' c' d': uint32) : Tot abcd_t =
| let abcd:abcd_t = Seq.upd abcd ia a' in
let abcd:abcd_t = Seq.upd abcd ib b' in
let abcd:abcd_t = Seq.upd abcd ic c' in
let abcd:abcd_t = Seq.upd abcd id d' in
abcd | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.valid_taint_stack64 | val valid_taint_stack64 (ptr:int) (t:taint) (stackTaint:memtaint) : GTot prop0 | val valid_taint_stack64 (ptr:int) (t:taint) (stackTaint:memtaint) : GTot prop0 | let valid_taint_stack64 ptr t stackTaint =
Map.sel stackTaint ptr = t &&
Map.sel stackTaint (ptr + 1) = t &&
Map.sel stackTaint (ptr + 2) = t &&
Map.sel stackTaint (ptr + 3) = t &&
Map.sel stackTaint (ptr + 4) = t &&
Map.sel stackTaint (ptr + 5) = t &&
Map.sel stackTaint (ptr + 6) = t &&
Map.sel stackTa... | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 81,
"start_col": 0,
"start_line": 73
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> t: Vale.Arch.HeapTypes_s.taint -> stackTaint: Vale.X64.Memory.memtaint
-> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Memory.memtaint",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_Equality",
"FStar.Map.sel",
"Prims.op_Addition",
"Vale.Def.Prop_s.prop0"
] | [] | false | false | false | false | false | let valid_taint_stack64 ptr t stackTaint =
| Map.sel stackTaint ptr = t && Map.sel stackTaint (ptr + 1) = t && Map.sel stackTaint (ptr + 2) = t &&
Map.sel stackTaint (ptr + 3) = t &&
Map.sel stackTaint (ptr + 4) = t &&
Map.sel stackTaint (ptr + 5) = t &&
Map.sel stackTaint (ptr + 6) = t &&
Map.sel stackTaint (ptr + 7) = t | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.valid_taint_stack128 | val valid_taint_stack128 (ptr:int) (t:taint) (stackTaint:memtaint) : GTot prop0 | val valid_taint_stack128 (ptr:int) (t:taint) (stackTaint:memtaint) : GTot prop0 | let valid_taint_stack128 ptr t stackTaint =
valid_taint_stack64 ptr t stackTaint /\ valid_taint_stack64 (ptr + 8) t stackTaint | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 84,
"end_line": 84,
"start_col": 0,
"start_line": 83
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> t: Vale.Arch.HeapTypes_s.taint -> stackTaint: Vale.X64.Memory.memtaint
-> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Memory.memtaint",
"Prims.l_and",
"Vale.X64.Stack_i.valid_taint_stack64",
"Prims.op_Addition",
"Vale.Def.Prop_s.prop0"
] | [] | false | false | false | false | false | let valid_taint_stack128 ptr t stackTaint =
| valid_taint_stack64 ptr t stackTaint /\ valid_taint_stack64 (ptr + 8) t stackTaint | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.store_taint_stack64 | val store_taint_stack64 (ptr:int) (t:taint) (stackTaint:memtaint) : GTot memtaint | val store_taint_stack64 (ptr:int) (t:taint) (stackTaint:memtaint) : GTot memtaint | let store_taint_stack64 ptr t stackTaint = BS.update_n ptr 8 stackTaint t | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 73,
"end_line": 86,
"start_col": 0,
"start_line": 86
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> t: Vale.Arch.HeapTypes_s.taint -> stackTaint: Vale.X64.Memory.memtaint
-> Prims.GTot Vale.X64.Memory.memtaint | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.int",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Memory.memtaint",
"Vale.X64.Machine_Semantics_s.update_n"
] | [] | false | false | false | false | false | let store_taint_stack64 ptr t stackTaint =
| BS.update_n ptr 8 stackTaint t | false |
Spec.MD5.fst | Spec.MD5.round3_aux | val round3_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | val round3_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t | let round3_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
let abcd = round3_op abcd x ia ib ic id 5 4ul 33 in
let abcd = round3_op abcd x id ia ib ic 8 11ul 34 in
let abcd = round3_op abcd x ic id ia ib 11 16ul 35 in
let abcd = round3_op abcd x ib ic id ia 14 23ul 36 in
let abcd = round3_op abcd x ia ib ic id 1 ... | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 225,
"start_col": 0,
"start_line": 204
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | abcd: Spec.MD5.abcd_t -> x: Spec.MD5.x_t -> Spec.MD5.abcd_t | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.abcd_t",
"Spec.MD5.x_t",
"Spec.MD5.round3_op",
"Spec.MD5.ib",
"Spec.MD5.ic",
"Spec.MD5.id",
"Spec.MD5.ia",
"FStar.UInt32.__uint_to_t"
] | [] | false | false | false | true | false | let round3_aux (abcd: abcd_t) (x: x_t) : Tot abcd_t =
| let abcd = round3_op abcd x ia ib ic id 5 4ul 33 in
let abcd = round3_op abcd x id ia ib ic 8 11ul 34 in
let abcd = round3_op abcd x ic id ia ib 11 16ul 35 in
let abcd = round3_op abcd x ib ic id ia 14 23ul 36 in
let abcd = round3_op abcd x ia ib ic id 1 4ul 37 in
let abcd = round3_op abcd x id ia ib ic 4 11ul 38 in
le... | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_open_detached | val crypto_box_open_detached:
m:buffer uint8
-> c:buffer uint8
-> tag:lbuffer uint8 16ul
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h pk /\ live h... | val crypto_box_open_detached:
m:buffer uint8
-> c:buffer uint8
-> tag:lbuffer uint8 16ul
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h pk /\ live h... | let crypto_box_open_detached m c tag mlen n pk sk =
Hacl.Impl.Box.box_open_detached mlen m pk sk n c tag | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 54,
"end_line": 262,
"start_col": 0,
"start_line": 261
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
tag: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul ->
mlen:
Lib.IntTypes.size_t
{Lib.Buffer.length c = Lib.IntTypes.v mlen /\ Lib.Buffer.length m = Lib.IntTypes.v mlen} ->
n: Lib.Buffer.lbuffer Lib.IntT... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"L... | [] | false | true | false | false | false | let crypto_box_open_detached m c tag mlen n pk sk =
| Hacl.Impl.Box.box_open_detached mlen m pk sk n c tag | false |
Spec.MD5.fst | Spec.MD5.update | val update: update_t MD5 | val update: update_t MD5 | let update = update_aux | {
"file_name": "specs/Spec.MD5.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 293,
"start_col": 0,
"start_line": 293
} | module Spec.MD5
(* Source: https://tools.ietf.org/html/rfc1321 *)
open Lib.IntTypes
open Spec.Hash.Definitions
(* Section 3.3 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98badcfe;
u32 0x10325476;
]
let init : words_state MD5 = Seq.seq_of_list init_as_li... | {
"checked_file": "/",
"dependencies": [
"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"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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.MD5 | Prims.Tot | [
"total"
] | [] | [
"Spec.MD5.update_aux"
] | [] | false | false | false | true | false | let update =
| update_aux | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_open_detached_afternm | val crypto_box_open_detached_afternm:
m:buffer uint8
-> c:buffer uint8
-> tag:lbuffer uint8 16ul
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
... | val crypto_box_open_detached_afternm:
m:buffer uint8
-> c:buffer uint8
-> tag:lbuffer uint8 16ul
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
... | let crypto_box_open_detached_afternm m c tag mlen n k =
Hacl.Impl.Box.box_open_detached_afternm mlen m k n c tag | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 230,
"start_col": 0,
"start_line": 229
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
tag: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul ->
mlen:
Lib.IntTypes.size_t
{Lib.Buffer.length c = Lib.IntTypes.v mlen /\ Lib.Buffer.length m = Lib.IntTypes.v mlen} ->
n: Lib.Buffer.lbuffer Lib.IntT... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"L... | [] | false | true | false | false | false | let crypto_box_open_detached_afternm m c tag mlen n k =
| Hacl.Impl.Box.box_open_detached_afternm mlen m k n c tag | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_secretbox_detached | val crypto_secretbox_detached:
c:buffer uint8
-> tag:lbuffer uint8 16ul
-> m:buffer uint8
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
disj... | val crypto_secretbox_detached:
c:buffer uint8
-> tag:lbuffer uint8 16ul
-> m:buffer uint8
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
disj... | let crypto_secretbox_detached c tag m mlen n k =
Hacl.Impl.SecretBox.secretbox_detached mlen c tag k n m;
0ul | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 46,
"start_col": 0,
"start_line": 44
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
tag: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul ->
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
mlen:
Lib.IntTypes.size_t
{Lib.Buffer.length c = Lib.IntTypes.v mlen /\ Lib.Buffer.length m = Lib.IntTypes.v mlen} ->
n: Lib.Buffer.lbuffer Lib.IntT... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"L... | [] | false | true | false | false | false | let crypto_secretbox_detached c tag m mlen n k =
| Hacl.Impl.SecretBox.secretbox_detached mlen c tag k n m;
0ul | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.lemma_correct_store_load_stack64 | val lemma_correct_store_load_stack64 (ptr:int) (v:nat64) (h:vale_stack) : Lemma
(load_stack64 ptr (store_stack64 ptr v h) == v)
[SMTPat (load_stack64 ptr (store_stack64 ptr v h))] | val lemma_correct_store_load_stack64 (ptr:int) (v:nat64) (h:vale_stack) : Lemma
(load_stack64 ptr (store_stack64 ptr v h) == v)
[SMTPat (load_stack64 ptr (store_stack64 ptr v h))] | let lemma_correct_store_load_stack64 ptr v h =
let BS.Machine_stack _ mem = h in
correct_update_get64 ptr v mem | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 38,
"start_col": 0,
"start_line": 36
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> v: Vale.X64.Memory.nat64 -> h: Vale.X64.Stack_i.vale_stack
-> FStar.Pervasives.Lemma
(ensures Vale.X64.Stack_i.load_stack64 ptr (Vale.X64.Stack_i.store_stack64 ptr v h) == v)
[SMTPat (Vale.X64.Stack_i.load_stack64 ptr (Vale.X64.Stack_i.store_stack64 ptr v h))] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Memory.nat64",
"Vale.X64.Stack_i.vale_stack",
"Vale.Def.Types_s.nat64",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.Map.t",
"Vale.Def.Types_s.nat8",
"Vale.Arch.MachineHeap.correct_update_get64",
"Prims.unit"
] | [] | false | false | true | false | false | let lemma_correct_store_load_stack64 ptr v h =
| let BS.Machine_stack _ mem = h in
correct_update_get64 ptr v mem | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.lemma_free_stack_same_valid64 | val lemma_free_stack_same_valid64 (start:int) (finish:int) (ptr:int) (h:vale_stack) : Lemma
(requires valid_src_stack64 ptr h /\
(ptr >= finish \/ ptr + 8 <= start))
(ensures valid_src_stack64 ptr (free_stack64 start finish h))
[SMTPat (valid_src_stack64 ptr (free_stack64 start finish h))] | val lemma_free_stack_same_valid64 (start:int) (finish:int) (ptr:int) (h:vale_stack) : Lemma
(requires valid_src_stack64 ptr h /\
(ptr >= finish \/ ptr + 8 <= start))
(ensures valid_src_stack64 ptr (free_stack64 start finish h))
[SMTPat (valid_src_stack64 ptr (free_stack64 start finish h))] | let lemma_free_stack_same_valid64 start finish ptr h =
reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
let BS.Machine_stack _ mem = h in
let domain = Map.domain mem in
Classical.forall_intro (Vale.Lib.Set.remove_between_reveal domain start finish) | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 29,
"start_col": 0,
"start_line": 25
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | start: Prims.int -> finish: Prims.int -> ptr: Prims.int -> h: Vale.X64.Stack_i.vale_stack
-> FStar.Pervasives.Lemma
(requires Vale.X64.Stack_i.valid_src_stack64 ptr h /\ (ptr >= finish \/ ptr + 8 <= start))
(ensures Vale.X64.Stack_i.valid_src_stack64 ptr (Vale.X64.Stack_i.free_stack64 start finish h)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.Def.Types_s.nat64",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.Map.t",
"Vale.Def.Types_s.nat8",
"FStar.Classical.forall_intro",
"Prims.l_and",
"Prims.l_imp",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Negation",
"FSt... | [] | false | false | true | false | false | let lemma_free_stack_same_valid64 start finish ptr h =
| reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
let BS.Machine_stack _ mem = h in
let domain = Map.domain mem in
Classical.forall_intro (Vale.Lib.Set.remove_between_reveal domain start finish) | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.lemma_free_stack_same_load64 | val lemma_free_stack_same_load64 (start:int) (finish:int) (ptr:int) (h:vale_stack) : Lemma
(requires valid_src_stack64 ptr h /\
(ptr >= finish \/ ptr + 8 <= start))
(ensures load_stack64 ptr h == load_stack64 ptr (free_stack64 start finish h))
[SMTPat (load_stack64 ptr (free_stack64 start finish h))] | val lemma_free_stack_same_load64 (start:int) (finish:int) (ptr:int) (h:vale_stack) : Lemma
(requires valid_src_stack64 ptr h /\
(ptr >= finish \/ ptr + 8 <= start))
(ensures load_stack64 ptr h == load_stack64 ptr (free_stack64 start finish h))
[SMTPat (load_stack64 ptr (free_stack64 start finish h))] | let lemma_free_stack_same_load64 start finish ptr h =
reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
let BS.Machine_stack _ mem = h in
let domain = Map.domain mem in
Classical.forall_intro (Vale.Lib.Set.remove_between_reveal domain start finish);
BS.get_heap_val64_reveal () | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 50,
"start_col": 0,
"start_line": 45
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | start: Prims.int -> finish: Prims.int -> ptr: Prims.int -> h: Vale.X64.Stack_i.vale_stack
-> FStar.Pervasives.Lemma
(requires Vale.X64.Stack_i.valid_src_stack64 ptr h /\ (ptr >= finish \/ ptr + 8 <= start))
(ensures
Vale.X64.Stack_i.load_stack64 ptr h ==
Vale.X64.Stack_i.load_stack64 ptr (... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.Def.Types_s.nat64",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.Map.t",
"Vale.Def.Types_s.nat8",
"Vale.Arch.MachineHeap_s.get_heap_val64_reveal",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.l_and",
"Prims.l_imp",
"Prims.op_Les... | [] | false | false | true | false | false | let lemma_free_stack_same_load64 start finish ptr h =
| reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
let BS.Machine_stack _ mem = h in
let domain = Map.domain mem in
Classical.forall_intro (Vale.Lib.Set.remove_between_reveal domain start finish);
BS.get_heap_val64_reveal () | false |
Vale.AES.X64.GCMdecryptOpt.fst | Vale.AES.X64.GCMdecryptOpt.va_qcode_Gcm_blocks | val va_qcode_Gcm_blocks
(va_mods: va_mods_t)
(alg: algorithm)
(offset: int)
(auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b hkeys_b: buffer128)
: (va_quickCode unit (va_code_Gcm_... | val va_qcode_Gcm_blocks
(va_mods: va_mods_t)
(alg: algorithm)
(offset: int)
(auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b hkeys_b: buffer128)
: (va_quickCode unit (va_code_Gcm_... | let va_qcode_Gcm_blocks (va_mods:va_mods_t) (alg:algorithm) (offset:int) (auth_b:buffer128)
(abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (in128_b:buffer128)
(out128_b:buffer128) (inout_b:buffer128) (iv_b:buffer128) (scratch_b:buffer128) (key:(seq nat32))
(round_keys:(seq quad32)) (keys_b:buff... | {
"file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 823,
"start_col": 0,
"start_line": 584
} | module Vale.AES.X64.GCMdecryptOpt
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open FStar.Seq
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open Vale.AES.GCTR
open Vale.AES.GCM
open Vale.AES.GHash_s
open Vale.AE... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Stack.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.In... | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
alg: Vale.AES.AES_common_s.algorithm ->
offset: Prims.int ->
auth_b: Vale.X64.Memory.buffer128 ->
abytes_b: Vale.X64.Memory.buffer128 ->
in128x6_b: Vale.X64.Memory.buffer128 ->
out128x6_b: Vale.X64.Memory.buffer128 ->
in128_b: Vale.X64.Memory.buf... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.AES.AES_common_s.algorithm",
"Prims.int",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.quad32",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.InsBasic.va_code_Mo... | [] | false | false | false | false | false | let va_qcode_Gcm_blocks
(va_mods: va_mods_t)
(alg: algorithm)
(offset: int)
(auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b hkeys_b: buffer128)
: (va_quickCode unit (va_code_Gcm_... | (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let abytes_ptr:Vale.X64.Memory.nat64 =
Vale.X64.Stack_i.load_stack64 (va_get_reg64 rRsp va_s + offset + 0) (va_get_stack va_s)
in
let in128x6_ptr:Vale.X64.Memory.nat64 =
Vale.X64.Stack_i.load... | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_easy_afternm | val crypto_box_easy_afternm:
c:buffer uint8
-> m:buffer uint8
-> mlen:size_t{length c = v mlen + 16 /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint n m /\ disjoint n ... | val crypto_box_easy_afternm:
c:buffer uint8
-> m:buffer uint8
-> mlen:size_t{length c = v mlen + 16 /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint n m /\ disjoint n ... | let crypto_box_easy_afternm c m mlen n k =
Hacl.Impl.Box.box_easy_afternm mlen c k n m | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 281,
"start_col": 0,
"start_line": 280
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
mlen:
Lib.IntTypes.size_t
{ Lib.Buffer.length c = Lib.IntTypes.v mlen + 16 /\
Lib.Buffer.length m = Lib.IntTypes.v mlen } ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 24ul ->
k: Lib.Buffer.l... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Lib.Buffer.length",
"Lib.Buffer.MUT",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.l_or",
"Lib.IntTypes.range",
"Pri... | [] | false | true | false | false | false | let crypto_box_easy_afternm c m mlen n k =
| Hacl.Impl.Box.box_easy_afternm mlen c k n m | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.lemma_frame_store_load_stack64 | val lemma_frame_store_load_stack64 (ptr:int) (v:nat64) (h:vale_stack) (i:int) : Lemma
(requires valid_src_stack64 i h /\
(i >= ptr + 8 \/ i + 8 <= ptr))
(ensures (load_stack64 i (store_stack64 ptr v h) == load_stack64 i h))
[SMTPat (load_stack64 i (store_stack64 ptr v h))] | val lemma_frame_store_load_stack64 (ptr:int) (v:nat64) (h:vale_stack) (i:int) : Lemma
(requires valid_src_stack64 i h /\
(i >= ptr + 8 \/ i + 8 <= ptr))
(ensures (load_stack64 i (store_stack64 ptr v h) == load_stack64 i h))
[SMTPat (load_stack64 i (store_stack64 ptr v h))] | let lemma_frame_store_load_stack64 ptr v h i =
let BS.Machine_stack _ mem = h in
frame_update_heap64 ptr v mem;
BS.get_heap_val64_reveal () | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 43,
"start_col": 0,
"start_line": 40
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> v: Vale.X64.Memory.nat64 -> h: Vale.X64.Stack_i.vale_stack -> i: Prims.int
-> FStar.Pervasives.Lemma
(requires Vale.X64.Stack_i.valid_src_stack64 i h /\ (i >= ptr + 8 \/ i + 8 <= ptr))
(ensures
Vale.X64.Stack_i.load_stack64 i (Vale.X64.Stack_i.store_stack64 ptr v h) ==
Va... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Memory.nat64",
"Vale.X64.Stack_i.vale_stack",
"Vale.Def.Types_s.nat64",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.Map.t",
"Vale.Def.Types_s.nat8",
"Vale.Arch.MachineHeap_s.get_heap_val64_reveal",
"Prims.unit",
"Vale.Arch.MachineHeap.frame_update_heap64"
] | [] | false | false | true | false | false | let lemma_frame_store_load_stack64 ptr v h i =
| let BS.Machine_stack _ mem = h in
frame_update_heap64 ptr v mem;
BS.get_heap_val64_reveal () | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.lemma_store_stack_same_valid64 | val lemma_store_stack_same_valid64 (ptr:int) (v:nat64) (h:vale_stack) (i:int) : Lemma
(requires valid_src_stack64 i h /\
(i >= ptr + 8 \/ i + 8 <= ptr))
(ensures valid_src_stack64 i (store_stack64 ptr v h))
[SMTPat (valid_src_stack64 i (store_stack64 ptr v h))] | val lemma_store_stack_same_valid64 (ptr:int) (v:nat64) (h:vale_stack) (i:int) : Lemma
(requires valid_src_stack64 i h /\
(i >= ptr + 8 \/ i + 8 <= ptr))
(ensures valid_src_stack64 i (store_stack64 ptr v h))
[SMTPat (valid_src_stack64 i (store_stack64 ptr v h))] | let lemma_store_stack_same_valid64 ptr v h i =
reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
BS.update_heap64_reveal () | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 23,
"start_col": 0,
"start_line": 21
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> v: Vale.X64.Memory.nat64 -> h: Vale.X64.Stack_i.vale_stack -> i: Prims.int
-> FStar.Pervasives.Lemma
(requires Vale.X64.Stack_i.valid_src_stack64 i h /\ (i >= ptr + 8 \/ i + 8 <= ptr))
(ensures Vale.X64.Stack_i.valid_src_stack64 i (Vale.X64.Stack_i.store_stack64 ptr v h))
[SMTPat (... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Memory.nat64",
"Vale.X64.Stack_i.vale_stack",
"Vale.Arch.MachineHeap_s.update_heap64_reveal",
"Prims.unit",
"FStar.Pervasives.reveal_opaque",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.bool",
"Vale.Arch.MachineHeap_s.valid_addr64"
] | [] | true | false | true | false | false | let lemma_store_stack_same_valid64 ptr v h i =
| reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
BS.update_heap64_reveal () | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_detached_afternm | val crypto_box_detached_afternm:
c:buffer uint8
-> tag:lbuffer uint8 16ul
-> m:buffer uint8
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
di... | val crypto_box_detached_afternm:
c:buffer uint8
-> tag:lbuffer uint8 16ul
-> m:buffer uint8
-> mlen:size_t{length c = v mlen /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\ live h tag /\
di... | let crypto_box_detached_afternm c tag m mlen n k =
Hacl.Impl.Box.box_detached_afternm mlen c tag k n m | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 175,
"start_col": 0,
"start_line": 174
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
tag: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul ->
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
mlen:
Lib.IntTypes.size_t
{Lib.Buffer.length c = Lib.IntTypes.v mlen /\ Lib.Buffer.length m = Lib.IntTypes.v mlen} ->
n: Lib.Buffer.lbuffer Lib.IntT... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"L... | [] | false | true | false | false | false | let crypto_box_detached_afternm c tag m mlen n k =
| Hacl.Impl.Box.box_detached_afternm mlen c tag k n m | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.lemma_store_new_valid64 | val lemma_store_new_valid64 (ptr:int) (v:nat64) (h:vale_stack) : Lemma
(valid_src_stack64 ptr (store_stack64 ptr v h))
[SMTPat (valid_src_stack64 ptr (store_stack64 ptr v h))] | val lemma_store_new_valid64 (ptr:int) (v:nat64) (h:vale_stack) : Lemma
(valid_src_stack64 ptr (store_stack64 ptr v h))
[SMTPat (valid_src_stack64 ptr (store_stack64 ptr v h))] | let lemma_store_new_valid64 ptr v h =
reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
BS.update_heap64_reveal () | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 33,
"start_col": 0,
"start_line": 31
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: Prims.int -> v: Vale.X64.Memory.nat64 -> h: Vale.X64.Stack_i.vale_stack
-> FStar.Pervasives.Lemma
(ensures Vale.X64.Stack_i.valid_src_stack64 ptr (Vale.X64.Stack_i.store_stack64 ptr v h))
[SMTPat (Vale.X64.Stack_i.valid_src_stack64 ptr (Vale.X64.Stack_i.store_stack64 ptr v h))] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Memory.nat64",
"Vale.X64.Stack_i.vale_stack",
"Vale.Arch.MachineHeap_s.update_heap64_reveal",
"Prims.unit",
"FStar.Pervasives.reveal_opaque",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.bool",
"Vale.Arch.MachineHeap_s.valid_addr64"
] | [] | true | false | true | false | false | let lemma_store_new_valid64 ptr v h =
| reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
BS.update_heap64_reveal () | false |
Vale.X64.Stack_i.fst | Vale.X64.Stack_i.lemma_compose_free_stack64 | val lemma_compose_free_stack64 (start:int) (inter:int) (finish:int) (h:vale_stack) : Lemma
(requires start <= inter /\ inter <= finish)
(ensures free_stack64 inter finish (free_stack64 start inter h) == free_stack64 start finish h)
[SMTPat (free_stack64 inter finish (free_stack64 start inter h))] | val lemma_compose_free_stack64 (start:int) (inter:int) (finish:int) (h:vale_stack) : Lemma
(requires start <= inter /\ inter <= finish)
(ensures free_stack64 inter finish (free_stack64 start inter h) == free_stack64 start finish h)
[SMTPat (free_stack64 inter finish (free_stack64 start inter h))] | let lemma_compose_free_stack64 start inter finish h =
let BS.Machine_stack _ mem = h in
let domain = Map.domain mem in
let map_restr = Map.restrict (Vale.Lib.Set.remove_between domain start inter) mem in
let restrict = Map.domain map_restr in
let BS.Machine_stack _ mem1 = free_stack64 inter finish (free_stack... | {
"file_name": "vale/code/arch/x64/Vale.X64.Stack_i.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 67,
"start_col": 0,
"start_line": 52
} | module Vale.X64.Stack_i
open FStar.Mul
module BS = Vale.X64.Machine_Semantics_s
open Vale.Arch.MachineHeap
let vale_stack = BS.machine_stack
let valid_src_stack64 i st = BS.valid_src_stack64 i st
let load_stack64 i st = BS.eval_stack i st
let store_stack64 i v h = BS.update_stack64' i v h
let free_stack64 start finis... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.Lib.Set.fsti.checked",
"Vale.Arch.MachineHeap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Classical.fsti.check... | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | start: Prims.int -> inter: Prims.int -> finish: Prims.int -> h: Vale.X64.Stack_i.vale_stack
-> FStar.Pervasives.Lemma (requires start <= inter /\ inter <= finish)
(ensures
Vale.X64.Stack_i.free_stack64 inter finish (Vale.X64.Stack_i.free_stack64 start inter h) ==
Vale.X64.Stack_i.free_stack64 st... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Stack_i.vale_stack",
"Vale.Def.Types_s.nat64",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.Map.t",
"Vale.Def.Types_s.nat8",
"Prims._assert",
"FStar.Map.equal",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.l_and",
"Prims.op_Equality",
"Prims.bool",
"F... | [] | false | false | true | false | false | let lemma_compose_free_stack64 start inter finish h =
| let BS.Machine_stack _ mem = h in
let domain = Map.domain mem in
let map_restr = Map.restrict (Vale.Lib.Set.remove_between domain start inter) mem in
let restrict = Map.domain map_restr in
let BS.Machine_stack _ mem1 = free_stack64 inter finish (free_stack64 start inter h) in
let BS.Machine_stack _ mem2 = free_stack64 ... | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_easy | val crypto_box_easy:
c:buffer uint8
-> m:buffer uint8
-> mlen:size_t{length c = v mlen + 16 /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h sk /\ live h pk /\ live h n /\
disjoint ... | val crypto_box_easy:
c:buffer uint8
-> m:buffer uint8
-> mlen:size_t{length c = v mlen + 16 /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h sk /\ live h pk /\ live h n /\
disjoint ... | let crypto_box_easy c m mlen n pk sk =
Hacl.Impl.Box.box_easy mlen c sk pk n m | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 310,
"start_col": 0,
"start_line": 309
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
mlen:
Lib.IntTypes.size_t
{ Lib.Buffer.length c = Lib.IntTypes.v mlen + 16 /\
Lib.Buffer.length m = Lib.IntTypes.v mlen } ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 24ul ->
pk: Lib.Buffer.... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Lib.Buffer.length",
"Lib.Buffer.MUT",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.l_or",
"Lib.IntTypes.range",
"Pri... | [] | false | true | false | false | false | let crypto_box_easy c m mlen n pk sk =
| Hacl.Impl.Box.box_easy mlen c sk pk n m | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_secretbox_easy | val crypto_secretbox_easy:
c:buffer uint8
-> m:buffer uint8
-> mlen:size_t{length c = v mlen + 16 /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint n m /\ disjoint n c)... | val crypto_secretbox_easy:
c:buffer uint8
-> m:buffer uint8
-> mlen:size_t{length c = v mlen + 16 /\ length m = v mlen}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint n m /\ disjoint n c)... | let crypto_secretbox_easy c m mlen n k =
Hacl.Impl.SecretBox.secretbox_easy mlen c k n m;
0ul | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 104,
"start_col": 0,
"start_line": 102
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
mlen:
Lib.IntTypes.size_t
{ Lib.Buffer.length c = Lib.IntTypes.v mlen + 16 /\
Lib.Buffer.length m = Lib.IntTypes.v mlen } ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 24ul ->
k: Lib.Buffer.l... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Lib.Buffer.length",
"Lib.Buffer.MUT",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.l_or",
"Lib.IntTypes.range",
"Pri... | [] | false | true | false | false | false | let crypto_secretbox_easy c m mlen n k =
| Hacl.Impl.SecretBox.secretbox_easy mlen c k n m;
0ul | false |
Vale.AES.Types_helpers.fst | Vale.AES.Types_helpers.lemma_BitwiseXorWithZero64 | val lemma_BitwiseXorWithZero64 (n:nat64) : Lemma (ixor n 0 == n) | val lemma_BitwiseXorWithZero64 (n:nat64) : Lemma (ixor n 0 == n) | let lemma_BitwiseXorWithZero64 n =
lemma_ixor_nth_all 64;
lemma_zero_nth 64;
lemma_equal_nth 64 (ixor n 0) n | {
"file_name": "vale/code/crypto/aes/Vale.AES.Types_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 39,
"start_col": 0,
"start_line": 36
} | module Vale.AES.Types_helpers
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Seq
open Vale.Arch.TypesNative
let lemma_slices_le_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = le_quad32_to_bytes q in
q.lo0 == four_to_nat 8 (seq_to_four_LE (sl... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.TypesNative.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fs... | [
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"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 | n: Vale.Def.Types_s.nat64 -> FStar.Pervasives.Lemma (ensures Vale.Def.Types_s.ixor n 0 == n) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.nat64",
"Vale.Arch.TypesNative.lemma_equal_nth",
"Vale.Def.Types_s.ixor",
"Vale.Def.Words_s.pow2_64",
"Prims.unit",
"Vale.Arch.TypesNative.lemma_zero_nth",
"Vale.Arch.TypesNative.lemma_ixor_nth_all"
] | [] | true | false | true | false | false | let lemma_BitwiseXorWithZero64 n =
| lemma_ixor_nth_all 64;
lemma_zero_nth 64;
lemma_equal_nth 64 (ixor n 0) n | false |
Hacl.P256.PrecompTable.fsti | Hacl.P256.PrecompTable.g_aff | val g_aff:S.aff_point | val g_aff:S.aff_point | let g_aff : S.aff_point = S.to_aff_point S.base_point | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 50,
"start_col": 0,
"start_line": 50
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation.Definition
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation.Definitions
module S... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.PrecompBaseTable.fs... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.to_aff_point",
"Spec.P256.PointOps.base_point"
] | [] | false | false | false | true | false | let g_aff:S.aff_point =
| S.to_aff_point S.base_point | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_open_easy | val crypto_box_open_easy:
m:buffer uint8
-> c:buffer uint8
-> clen:size_t{length c = v clen /\ v clen = length m + 16}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h pk /\ live h sk /\ live h n /\
disj... | val crypto_box_open_easy:
m:buffer uint8
-> c:buffer uint8
-> clen:size_t{length c = v clen /\ v clen = length m + 16}
-> n:lbuffer uint8 24ul
-> pk:lbuffer uint8 32ul
-> sk:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h pk /\ live h sk /\ live h n /\
disj... | let crypto_box_open_easy m c clen n pk sk =
Hacl.Impl.Box.box_open_easy (clen -! 16ul) m pk sk n c | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 360,
"start_col": 0,
"start_line": 359
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
clen:
Lib.IntTypes.size_t
{ Lib.Buffer.length c = Lib.IntTypes.v clen /\
Lib.IntTypes.v clen = Lib.Buffer.length m + 16 } ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 24ul ->
pk: Lib.Buffer.... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"Lib.Buffer.MUT",
"Lib.IntTypes.v",
"Lib.IntTypes.PU... | [] | false | true | false | false | false | let crypto_box_open_easy m c clen n pk sk =
| Hacl.Impl.Box.box_open_easy (clen -! 16ul) m pk sk n c | false |
Hacl.P256.PrecompTable.fsti | Hacl.P256.PrecompTable.pow_point | val pow_point : k: Prims.nat -> p: Spec.P256.PointOps.aff_point -> Spec.P256.PointOps.aff_point | let pow_point (k:nat) (p:S.aff_point) =
LE.pow S.mk_p256_comm_monoid p k | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 45,
"start_col": 0,
"start_line": 44
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation.Definition
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation.Definitions
module S... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.PrecompBaseTable.fs... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | k: Prims.nat -> p: Spec.P256.PointOps.aff_point -> Spec.P256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Spec.P256.PointOps.aff_point",
"Lib.Exponentiation.Definition.pow",
"Spec.P256.mk_p256_comm_monoid"
] | [] | false | false | false | true | false | let pow_point (k: nat) (p: S.aff_point) =
| LE.pow S.mk_p256_comm_monoid p k | false | |
Vale.AES.Types_helpers.fst | Vale.AES.Types_helpers.lemma_slices_le_quad32_to_bytes | val lemma_slices_le_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = le_quad32_to_bytes q in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
q.hi3 == four_to_nat 8 (seq_... | val lemma_slices_le_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = le_quad32_to_bytes q in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
q.hi3 == four_to_nat 8 (seq_... | let lemma_slices_le_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = le_quad32_to_bytes q in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
q.hi3 == four_to_nat 8 (seq_... | {
"file_name": "vale/code/crypto/aes/Vale.AES.Types_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 21,
"start_col": 0,
"start_line": 10
} | module Vale.AES.Types_helpers
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Seq
open Vale.Arch.TypesNative | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.TypesNative.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fs... | [
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"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 | q: Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(ensures
(let s = Vale.Def.Types_s.le_quad32_to_bytes q in
Mkfour?.lo0 q ==
Vale.Def.Words.Four_s.four_to_nat 8
(Vale.Def.Words.Seq_s.seq_to_four_LE (FStar.Seq.Base.slice s 0 4)) /\
Mkfour?.lo1 q ==
Vale.Def.Words... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.quad32",
"Prims.unit",
"FStar.Pervasives.reveal_opaque",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat8",
"Prims.l_True",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"Vale.Def.Types_s.le_quad32_to_bytes",
"Vale.Def.Words_s.four",
"FStar.Mul.op_Star",
"Vale.Def.Words.Se... | [] | true | false | true | false | false | let lemma_slices_le_quad32_to_bytes (q: quad32)
: Lemma
(ensures
(let s = le_quad32_to_bytes q in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
q.hi... | reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq_LE #nat8);
reveal_opaque (`%le_quad32_to_bytes) le_quad32_to_bytes;
() | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_endian_relation | val lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t)
: Lemma
(requires
length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_quad32_seq quads /\
input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads))
(ensures quads_to_block_be qs == words_of_bytes SHA2_2... | val lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t)
: Lemma
(requires
length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_quad32_seq quads /\
input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads))
(ensures quads_to_block_be qs == words_of_bytes SHA2_2... | let lemma_endian_relation (quads qs:seq quad32) (input2:seq UInt8.t) : Lemma
(requires length qs == 4 /\ length input2 == 64 /\
qs == reverse_bytes_quad32_seq quads /\
input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads))
(ensures quads_to_block_be qs == words_of_bytes SHA2_256 #(... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 102,
"end_line": 766,
"start_col": 0,
"start_line": 697
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
qs: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
input2: FStar.Seq.Base.seq FStar.UInt8.t
-> FStar.Pervasives.Lemma
(requires
FStar.Seq.Base.length qs == 4 /\ FStar.Seq.Base.length input2 == 64 /\
qs == Vale.Arch.Types.reverse_by... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"FStar.UInt8.t",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Vale.SHA.PPC64LE.SHA_helpers.quads_to_block_be",
"Spec.Hash.Definitions.words_of_bytes",
"Spec.Hash.Definitions.SHA2_256",
"Spec.Hash.Definitions.block_w... | [] | false | false | true | false | false | let lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t)
: Lemma
(requires
length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_quad32_seq quads /\
input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads))
(ensures quads_to_block_be qs == words_of_bytes SHA2_2... | let fi (i: nat{i < length (quads_to_block_be qs)})
: Lemma
((quads_to_block_be qs).[ i ] ==
(words_of_bytes SHA2_256 #(block_word_length SHA2_256) input2).[ i ]) =
let open Vale.Def.Words.Four_s in
let open Vale.Lib.Seqs_s in
let ni = (seq_four_to_seq_LE quads).[ i ] in
let b = slice input2 (4 * i... | false |
Vale.AES.Types_helpers.fst | Vale.AES.Types_helpers.lemma_slices_be_quad32_to_bytes | val lemma_slices_be_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = be_quad32_to_bytes q in
q.hi3 == four_to_nat 8 (seq_to_four_BE (slice s 0 4)) /\
q.hi2 == four_to_nat 8 (seq_to_four_BE (slice s 4 8)) /\
q.lo1 == four_to_nat 8 (seq_to_four_BE (slice s 8 12)) /\
q.lo0 == four_to_nat 8 (seq_... | val lemma_slices_be_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = be_quad32_to_bytes q in
q.hi3 == four_to_nat 8 (seq_to_four_BE (slice s 0 4)) /\
q.hi2 == four_to_nat 8 (seq_to_four_BE (slice s 4 8)) /\
q.lo1 == four_to_nat 8 (seq_to_four_BE (slice s 8 12)) /\
q.lo0 == four_to_nat 8 (seq_... | let lemma_slices_be_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = be_quad32_to_bytes q in
q.hi3 == four_to_nat 8 (seq_to_four_BE (slice s 0 4)) /\
q.hi2 == four_to_nat 8 (seq_to_four_BE (slice s 4 8)) /\
q.lo1 == four_to_nat 8 (seq_to_four_BE (slice s 8 12)) /\
q.lo0 == four_to_nat 8 (seq_... | {
"file_name": "vale/code/crypto/aes/Vale.AES.Types_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 34,
"start_col": 0,
"start_line": 23
} | module Vale.AES.Types_helpers
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Seq
open Vale.Arch.TypesNative
let lemma_slices_le_quad32_to_bytes (q:quad32) : Lemma
(ensures (
let s = le_quad32_to_bytes q in
q.lo0 == four_to_nat 8 (seq_to_four_LE (sl... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.TypesNative.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fs... | [
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"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 | q: Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(ensures
(let s = Vale.Arch.Types.be_quad32_to_bytes q in
Mkfour?.hi3 q ==
Vale.Def.Words.Four_s.four_to_nat 8
(Vale.Def.Words.Seq_s.seq_to_four_BE (FStar.Seq.Base.slice s 0 4)) /\
Mkfour?.hi2 q ==
Vale.Def.Words.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.quad32",
"Prims.unit",
"FStar.Pervasives.reveal_opaque",
"Vale.Def.Words.Seq_s.seq16",
"Vale.Def.Words_s.nat8",
"Vale.Arch.Types.be_quad32_to_bytes",
"FStar.Seq.Base.seq",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"... | [] | true | false | true | false | false | let lemma_slices_be_quad32_to_bytes (q: quad32)
: Lemma
(ensures
(let s = be_quad32_to_bytes q in
q.hi3 == four_to_nat 8 (seq_to_four_BE (slice s 0 4)) /\
q.hi2 == four_to_nat 8 (seq_to_four_BE (slice s 4 8)) /\
q.lo1 == four_to_nat 8 (seq_to_four_BE (slice s 8 12)) /\
q.lo... | reveal_opaque (`%seq_four_to_seq_BE) (seq_four_to_seq_BE #nat8);
reveal_opaque (`%be_quad32_to_bytes) be_quad32_to_bytes;
() | false |
MiniParse.Impl.Base.fst | MiniParse.Impl.Base.buffer8 | val buffer8 : Type0 | let buffer8 = B.buffer U8.t | {
"file_name": "examples/miniparse/MiniParse.Impl.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | (*
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",
"MiniParse.Spec.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FS... | {
"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"
] | [] | [
"LowStar.Buffer.buffer",
"FStar.UInt8.t"
] | [] | false | false | false | true | true | let buffer8 =
| B.buffer U8.t | false | |
Hacl.P256.PrecompTable.fsti | Hacl.P256.PrecompTable.g_pow2_64 | val g_pow2_64:S.aff_point | val g_pow2_64:S.aff_point | let g_pow2_64 : S.aff_point = pow_point (pow2 64) g_aff | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 54,
"start_col": 0,
"start_line": 54
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation.Definition
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation.Definitions
module S... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.PrecompBaseTable.fs... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"Hacl.P256.PrecompTable.pow_point",
"Prims.pow2",
"Hacl.P256.PrecompTable.g_aff"
] | [] | false | false | false | true | false | let g_pow2_64:S.aff_point =
| pow_point (pow2 64) g_aff | false |
GlobalEnv.fst | GlobalEnv.nullary_macro | val nullary_macro : t: Ast.typ -> d: FStar.Pervasives.Native.option Ast.expr -> GlobalEnv.macro_signature | let nullary_macro t d = {
macro_arguments_t = [];
macro_result_t = t;
macro_defn_t = d
} | {
"file_name": "src/3d/GlobalEnv.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 56,
"start_col": 0,
"start_line": 52
} | (*
Copyright 2019 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 as copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Hashtable.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.All.fst.checked",
"Config.fst.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_f... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Ast",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
... | {
"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: Ast.typ -> d: FStar.Pervasives.Native.option Ast.expr -> GlobalEnv.macro_signature | Prims.Tot | [
"total"
] | [] | [
"Ast.typ",
"FStar.Pervasives.Native.option",
"Ast.expr",
"GlobalEnv.Mkmacro_signature",
"Prims.Nil",
"GlobalEnv.macro_signature"
] | [] | false | false | false | true | false | let nullary_macro t d =
| { macro_arguments_t = []; macro_result_t = t; macro_defn_t = d } | false | |
Hacl.P256.PrecompTable.fsti | Hacl.P256.PrecompTable.g_pow2_128 | val g_pow2_128:S.aff_point | val g_pow2_128:S.aff_point | let g_pow2_128 : S.aff_point = pow_point (pow2 128) g_aff | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 58,
"start_col": 0,
"start_line": 58
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation.Definition
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation.Definitions
module S... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.PrecompBaseTable.fs... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"Hacl.P256.PrecompTable.pow_point",
"Prims.pow2",
"Hacl.P256.PrecompTable.g_aff"
] | [] | false | false | false | true | false | let g_pow2_128:S.aff_point =
| pow_point (pow2 128) g_aff | false |
Hacl.P256.PrecompTable.fsti | Hacl.P256.PrecompTable.g_pow2_192 | val g_pow2_192:S.aff_point | val g_pow2_192:S.aff_point | let g_pow2_192 : S.aff_point = pow_point (pow2 192) g_aff | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 62,
"start_col": 0,
"start_line": 62
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation.Definition
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation.Definitions
module S... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.PrecompBaseTable.fs... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"Hacl.P256.PrecompTable.pow_point",
"Prims.pow2",
"Hacl.P256.PrecompTable.g_aff"
] | [] | false | false | false | true | false | let g_pow2_192:S.aff_point =
| pow_point (pow2 192) g_aff | false |
HyE.HCCA2.fst | HyE.HCCA2.access_pkraw | val access_pkraw (pk:pkey) : RSA.pkey | val access_pkraw (pk:pkey) : RSA.pkey | let access_pkraw (pk:pkey) =
PKey?.rawpk pk | {
"file_name": "examples/crypto/HyE.HCCA2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 37,
"start_col": 0,
"start_line": 36
} | (*
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",
"Platform.Bytes.fst.checked",
"HyE.RSA.fst.checked",
"HyE.PlainPKE.fst.checked",
"HyE.Plain.fsti.checked",
"HyE.CCA2.fsti.checked",
"HyE.AE.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "HyE.RSA",
"short_module": "RSA"
},
{
"abbrev": true,
"full_module": "HyE.AE",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "HyE.CCA2",
"short_module": "C"
},
{
"abbrev": true,
"full_module": "HyE.Plain",
"short_... | {
"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 | pk: HyE.HCCA2.pkey -> HyE.RSA.pkey | Prims.Tot | [
"total"
] | [] | [
"HyE.HCCA2.pkey",
"HyE.HCCA2.__proj__PKey__item__rawpk",
"HyE.RSA.pkey"
] | [] | false | false | false | true | false | let access_pkraw (pk: pkey) =
| PKey?.rawpk pk | false |
Hacl.P256.PrecompTable.fsti | Hacl.P256.PrecompTable.precomp_table_acc_inv | val precomp_table_acc_inv : p: Spec.P256.PointOps.aff_point ->
table_len: Prims.nat{table_len * 12 <= Lib.IntTypes.max_size_t} ->
table: Lib.Sequence.lseq Lib.IntTypes.uint64 (table_len * 12) ->
j: Prims.nat{j < table_len}
-> Prims.logical | let precomp_table_acc_inv
(p:S.aff_point)
(table_len:nat{table_len * 12 <= max_size_t})
(table:LSeq.lseq uint64 (table_len * 12))
(j:nat{j < table_len})
=
Math.Lemmas.lemma_mult_lt_right 12 j table_len;
Math.Lemmas.lemma_mult_le_right 12 (j + 1) table_len;
let bj = LSeq.sub table (j * 12) 12 in
point_in... | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 93,
"end_line": 112,
"start_col": 0,
"start_line": 103
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation.Definition
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation.Definitions
module S... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.PrecompBaseTable.fs... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: Spec.P256.PointOps.aff_point ->
table_len: Prims.nat{table_len * 12 <= Lib.IntTypes.max_size_t} ->
table: Lib.Sequence.lseq Lib.IntTypes.uint64 (table_len * 12) ->
j: Prims.nat{j < table_len}
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.aff_point",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.max_size_t",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Prims.op_LessThan",
"Prims.l_and",
"Hacl.Impl.P256.Point.point_inv_seq",
"Prims.eq2",
"Spec.P256.PointOps.to_aff_... | [] | false | false | false | false | true | let precomp_table_acc_inv
(p: S.aff_point)
(table_len: nat{table_len * 12 <= max_size_t})
(table: LSeq.lseq uint64 (table_len * 12))
(j: nat{j < table_len})
=
| Math.Lemmas.lemma_mult_lt_right 12 j table_len;
Math.Lemmas.lemma_mult_le_right 12 (j + 1) table_len;
let bj = LSeq.sub table (j * 12) 12 in
point_inv_seq bj /\ S.to_aff_point (from_mont_point (as_point_nat_seq bj)) == pow_point j p | false | |
Hacl.P256.PrecompTable.fsti | Hacl.P256.PrecompTable.mk_p256_precomp_base_table | val mk_p256_precomp_base_table:SPT.mk_precomp_base_table S.proj_point U64 12ul 0ul | val mk_p256_precomp_base_table:SPT.mk_precomp_base_table S.proj_point U64 12ul 0ul | let mk_p256_precomp_base_table: SPT.mk_precomp_base_table S.proj_point U64 12ul 0ul = {
SPT.concr_ops = S.mk_p256_concrete_ops;
SPT.to_cm = mk_to_p256_comm_monoid;
SPT.to_list = proj_point_to_list;
SPT.lemma_refl = lemma_refl;
} | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 41,
"start_col": 0,
"start_line": 36
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation.Definition
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation.Definitions
module S... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.PrecompBaseTable.fs... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Spec.PrecompBaseTable.mk_precomp_base_table Spec.P256.PointOps.proj_point
Lib.IntTypes.U64
(12ul <: FStar.UInt32.t)
(0ul <: FStar.UInt32.t) | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.PrecompBaseTable.Mkmk_precomp_base_table",
"Spec.P256.PointOps.proj_point",
"Lib.IntTypes.U64",
"FStar.UInt32.uint_to_t",
"Spec.P256.mk_p256_concrete_ops",
"Hacl.Impl.P256.Group.mk_to_p256_comm_monoid",
"Hacl.P256.PrecompTable.proj_point_to_list",
"Hacl.P256.PrecompTable.lemma_refl"
] | [] | false | false | false | false | false | let mk_p256_precomp_base_table:SPT.mk_precomp_base_table S.proj_point U64 12ul 0ul =
| {
SPT.concr_ops = S.mk_p256_concrete_ops;
SPT.to_cm = mk_to_p256_comm_monoid;
SPT.to_list = proj_point_to_list;
SPT.lemma_refl = lemma_refl
} | false |
MiniParse.Impl.Base.fst | MiniParse.Impl.Base.parser_impl | val parser_impl (#t: Type0) (p: parser_spec t) : Tot Type0 | val parser_impl (#t: Type0) (p: parser_spec t) : Tot Type0 | let parser_impl
(#t: Type0)
(p: parser_spec t)
: Tot Type0
= (input: buffer8) -> (l: U32.t { l == B.len input } ) -> HST.Stack (option (t * U32.t))
(requires (fun h -> B.live h input))
(ensures (fun h res h' ->
M.modifies M.loc_none h h' /\ (
match parse p (B.as_seq h input), res with
| None, None -... | {
"file_name": "examples/miniparse/MiniParse.Impl.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 42,
"start_col": 0,
"start_line": 30
} | (*
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",
"MiniParse.Spec.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FS... | {
"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: MiniParse.Spec.Base.parser_spec t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Mono... | [] | false | false | false | true | true | let parser_impl (#t: Type0) (p: parser_spec t) : Tot Type0 =
| input: buffer8 -> l: U32.t{l == B.len input}
-> HST.Stack (option (t * U32.t))
(requires (fun h -> B.live h input))
(ensures
(fun h res h' ->
M.modifies M.loc_none h h' /\
(match parse p (B.as_seq h input), res with
| None, None -> True
| Some (y... | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_box_open_easy_afternm | val crypto_box_open_easy_afternm:
m:buffer uint8
-> c:buffer uint8
-> clen:size_t{length c = v clen /\ v clen = length m + 16}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint m n /\ disjoi... | val crypto_box_open_easy_afternm:
m:buffer uint8
-> c:buffer uint8
-> clen:size_t{length c = v clen /\ v clen = length m + 16}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint m n /\ disjoi... | let crypto_box_open_easy_afternm m c clen n k =
Hacl.Impl.Box.box_open_easy_afternm (clen -! 16ul) m k n c | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 60,
"end_line": 331,
"start_col": 0,
"start_line": 330
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
clen:
Lib.IntTypes.size_t
{ Lib.Buffer.length c = Lib.IntTypes.v clen /\
Lib.IntTypes.v clen = Lib.Buffer.length m + 16 } ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 24ul ->
k: Lib.Buffer.l... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"Lib.Buffer.MUT",
"Lib.IntTypes.v",
"Lib.IntTypes.PU... | [] | false | true | false | false | false | let crypto_box_open_easy_afternm m c clen n k =
| Hacl.Impl.Box.box_open_easy_afternm (clen -! 16ul) m k n c | false |
MiniParse.Impl.Base.fst | MiniParse.Impl.Base.coerce_parser_impl | val coerce_parser_impl
(t2 #t1: Type0)
(#p: parser_spec t1)
(p32: parser_impl p)
(u: squash (t2 == t1))
: Tot (parser_impl (coerce_parser t2 p)) | val coerce_parser_impl
(t2 #t1: Type0)
(#p: parser_spec t1)
(p32: parser_impl p)
(u: squash (t2 == t1))
: Tot (parser_impl (coerce_parser t2 p)) | let coerce_parser_impl
(t2: Type0)
(#t1: Type0)
(#p: parser_spec t1)
(p32: parser_impl p)
(u: squash (t2 == t1))
: Tot (parser_impl (coerce_parser t2 p))
= p32 | {
"file_name": "examples/miniparse/MiniParse.Impl.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 52,
"start_col": 0,
"start_line": 45
} | (*
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",
"MiniParse.Spec.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FS... | {
"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 | t2: Type0 -> p32: MiniParse.Impl.Base.parser_impl p -> u18: Prims.squash (t2 == t1)
-> MiniParse.Impl.Base.parser_impl (MiniParse.Spec.Base.coerce_parser t2 p) | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Impl.Base.parser_impl",
"Prims.squash",
"Prims.eq2",
"MiniParse.Spec.Base.coerce_parser"
] | [] | false | false | false | false | false | let coerce_parser_impl
(t2 #t1: Type0)
(#p: parser_spec t1)
(p32: parser_impl p)
(u: squash (t2 == t1))
: Tot (parser_impl (coerce_parser t2 p)) =
| p32 | false |
MiniParse.Impl.Base.fst | MiniParse.Impl.Base.serializer_impl | val serializer_impl (#t: Type0) (#p: parser_spec t) (s: serializer_spec p) : Tot Type0 | val serializer_impl (#t: Type0) (#p: parser_spec t) (s: serializer_spec p) : Tot Type0 | let serializer_impl
(#t: Type0)
(#p: parser_spec t)
(s: serializer_spec p)
: Tot Type0
= (output: buffer8) -> (l: U32.t { l == B.len output } ) -> (x: t) -> HST.Stack (option U32.t)
(requires (fun h -> B.live h output))
(ensures (fun h res h' ->
B.live h output /\ B.live h' output /\ (
let len = Seq.l... | {
"file_name": "examples/miniparse/MiniParse.Impl.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 74,
"start_col": 0,
"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",
"MiniParse.Spec.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FS... | {
"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 | s: MiniParse.Spec.Base.serializer_spec p -> Type0 | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Spec.Base.serializer_spec",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pervasives.Native.option",
"FStar.Monotonic.HyperStack.mem",
"LowStar... | [] | false | false | false | false | true | let serializer_impl (#t: Type0) (#p: parser_spec t) (s: serializer_spec p) : Tot Type0 =
| output: buffer8 -> l: U32.t{l == B.len output} -> x: t
-> HST.Stack (option U32.t)
(requires (fun h -> B.live h output))
(ensures
(fun h res h' ->
B.live h output /\ B.live h' output /\
(let len = Seq.length (serialize s x) in
match res with
| No... | false |
Hacl.NaCl.fst | Hacl.NaCl.crypto_secretbox_open_easy | val crypto_secretbox_open_easy:
m:buffer uint8
-> c:buffer uint8
-> clen:size_t{length c = v clen /\ v clen = length m + 16}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint m n /\ disjoint... | val crypto_secretbox_open_easy:
m:buffer uint8
-> c:buffer uint8
-> clen:size_t{length c = v clen /\ v clen = length m + 16}
-> n:lbuffer uint8 24ul
-> k:lbuffer uint8 32ul ->
Stack size_t
(requires fun h ->
live h c /\ live h m /\ live h k /\ live h n /\
disjoint m c /\ disjoint m n /\ disjoint... | let crypto_secretbox_open_easy m c clen n k =
Hacl.Impl.SecretBox.secretbox_open_easy (clen -! 16ul) m k n c | {
"file_name": "code/nacl-box/Hacl.NaCl.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 64,
"end_line": 133,
"start_col": 0,
"start_line": 132
} | module Hacl.NaCl
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module SB = Spec.Box
module SS = Spec.SecretBox
#set-options "--max_fuel 50 --max_fuel 0 --max_ifuel 0"
[@@ Comment "Encr... | {
"checked_file": "/",
"dependencies": [
"Spec.SecretBox.fst.checked",
"Spec.Box.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.SecretBox.fst.checked",
"Hacl.Impl.Bo... | [
{
"abbrev": true,
"full_module": "Spec.SecretBox",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Spec.Box",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.H... | {
"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 |
m: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
c: Lib.Buffer.buffer Lib.IntTypes.uint8 ->
clen:
Lib.IntTypes.size_t
{ Lib.Buffer.length c = Lib.IntTypes.v clen /\
Lib.IntTypes.v clen = Lib.Buffer.length m + 16 } ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 24ul ->
k: Lib.Buffer.l... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"Lib.Buffer.MUT",
"Lib.IntTypes.v",
"Lib.IntTypes.PU... | [] | false | true | false | false | false | let crypto_secretbox_open_easy m c clen n k =
| Hacl.Impl.SecretBox.secretbox_open_easy (clen -! 16ul) m k n c | false |
HyE.HCCA2.fst | HyE.HCCA2.decrypt | val decrypt: skey -> c -> ML (option p ) | val decrypt: skey -> c -> ML (option p ) | let decrypt sk c =
let (c0,c1) = c in
match C.decrypt sk.cca_sk c0 with
| Some k -> A.decrypt k c1
| None -> None | {
"file_name": "examples/crypto/HyE.HCCA2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 58,
"start_col": 0,
"start_line": 54
} | (*
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",
"Platform.Bytes.fst.checked",
"HyE.RSA.fst.checked",
"HyE.PlainPKE.fst.checked",
"HyE.Plain.fsti.checked",
"HyE.CCA2.fsti.checked",
"HyE.AE.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "HyE.RSA",
"short_module": "RSA"
},
{
"abbrev": true,
"full_module": "HyE.AE",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "HyE.CCA2",
"short_module": "C"
},
{
"abbrev": true,
"full_module": "HyE.Plain",
"short_... | {
"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 | sk: HyE.HCCA2.skey -> c: HyE.HCCA2.c
-> FStar.HyperStack.All.ML (FStar.Pervasives.Native.option HyE.HCCA2.p) | FStar.HyperStack.All.ML | [] | [] | [
"HyE.HCCA2.skey",
"HyE.HCCA2.c",
"HyE.CCA2.cipher",
"HyE.AE.cipher",
"HyE.PlainPKE.t",
"HyE.AE.decrypt",
"FStar.Pervasives.Native.option",
"HyE.AE.msg",
"FStar.Pervasives.Native.None",
"HyE.HCCA2.p",
"HyE.CCA2.decrypt",
"HyE.HCCA2.__proj__SKey__item__cca_sk"
] | [] | false | true | false | false | false | let decrypt sk c =
| let c0, c1 = c in
match C.decrypt sk.cca_sk c0 with
| Some k -> A.decrypt k c1
| None -> None | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.