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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Vale.Interop.Base.fst | Vale.Interop.Base.mk_mem | val mk_mem (args: list arg) (h: mem_roots args) : GTot interop_heap | val mk_mem (args: list arg) (h: mem_roots args) : GTot interop_heap | let mk_mem (args:list arg) (h:mem_roots args) : GTot interop_heap =
liveness_disjointness args h;
mem_of_hs_roots (args_b8 args) h | {
"file_name": "vale/specs/interop/Vale.Interop.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 400,
"start_col": 0,
"start_line": 398
} | module Vale.Interop.Base
open Vale.Arch.HeapTypes_s
include Vale.Interop.Types
include Vale.Interop.Heap_s
module MB = LowStar.Monotonic.Buffer
module DV = LowStar.BufferView.Down
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
include Vale.Arch.Heap
module BS = Vale.X64.Machine_Semantics_s
module BV = Lo... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Vale.Def.Words_s",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"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 | args: Prims.list Vale.Interop.Base.arg -> h: Vale.Interop.Base.mem_roots args
-> Prims.GTot Vale.Interop.Heap_s.interop_heap | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.Interop.Base.mem_roots",
"Vale.Interop.Heap_s.mem_of_hs_roots",
"Vale.Interop.Base.args_b8",
"Prims.unit",
"Vale.Interop.Base.liveness_disjointness",
"Vale.Interop.Heap_s.interop_heap"
] | [] | false | false | false | false | false | let mk_mem (args: list arg) (h: mem_roots args) : GTot interop_heap =
| liveness_disjointness args h;
mem_of_hs_roots (args_b8 args) h | false |
Vale.Interop.Base.fst | Vale.Interop.Base.create_memtaint | val create_memtaint (mem: interop_heap) (ps: list b8) (ts: (b8 -> GTot taint)) : GTot MS.memTaint_t | val create_memtaint (mem: interop_heap) (ps: list b8) (ts: (b8 -> GTot taint)) : GTot MS.memTaint_t | let create_memtaint
(mem:interop_heap)
(ps:list b8)
(ts:b8 -> GTot taint)
: GTot MS.memTaint_t
= List.Tot.fold_right_gtot ps (write_taint 0 mem ts) (FStar.Map.const Public) | {
"file_name": "vale/specs/interop/Vale.Interop.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 79,
"end_line": 468,
"start_col": 0,
"start_line": 463
} | module Vale.Interop.Base
open Vale.Arch.HeapTypes_s
include Vale.Interop.Types
include Vale.Interop.Heap_s
module MB = LowStar.Monotonic.Buffer
module DV = LowStar.BufferView.Down
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
include Vale.Arch.Heap
module BS = Vale.X64.Machine_Semantics_s
module BV = Lo... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Vale.Def.Words_s",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
mem: Vale.Interop.Heap_s.interop_heap ->
ps: Prims.list Vale.Interop.Types.b8 ->
ts: (_: Vale.Interop.Types.b8 -> Prims.GTot Vale.Arch.HeapTypes_s.taint)
-> Prims.GTot Vale.Arch.HeapTypes_s.memTaint_t | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Interop.Heap_s.interop_heap",
"Prims.list",
"Vale.Interop.Types.b8",
"Vale.Arch.HeapTypes_s.taint",
"FStar.List.Tot.Base.fold_right_gtot",
"Vale.Arch.HeapTypes_s.memTaint_t",
"Vale.Interop.Base.write_taint",
"FStar.Map.const",
"Prims.int",
"Vale.Arch.HeapTypes_s.Public"
] | [] | false | false | false | false | false | let create_memtaint (mem: interop_heap) (ps: list b8) (ts: (b8 -> GTot taint)) : GTot MS.memTaint_t =
| List.Tot.fold_right_gtot ps (write_taint 0 mem ts) (FStar.Map.const Public) | false |
Vale.Interop.Base.fst | Vale.Interop.Base.args_b8_live | val args_b8_live (hs: HS.mem) (args: list arg {all_live hs args})
: Lemma (list_live hs (args_b8 args)) | val args_b8_live (hs: HS.mem) (args: list arg {all_live hs args})
: Lemma (list_live hs (args_b8 args)) | let rec args_b8_live (hs:HS.mem) (args:list arg{all_live hs args})
: Lemma (list_live hs (args_b8 args))
= match args with
| [] -> ()
| hd::tl ->
all_live_cons hd tl hs;
assert (live_arg hs hd);
assert (all_live hs tl);
args_b8_live hs tl;
match hd with
| (| TD_Base _ , _... | {
"file_name": "vale/specs/interop/Vale.Interop.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 60,
"end_line": 390,
"start_col": 0,
"start_line": 373
} | module Vale.Interop.Base
open Vale.Arch.HeapTypes_s
include Vale.Interop.Types
include Vale.Interop.Heap_s
module MB = LowStar.Monotonic.Buffer
module DV = LowStar.BufferView.Down
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
include Vale.Arch.Heap
module BS = Vale.X64.Machine_Semantics_s
module BV = Lo... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Vale.Def.Words_s",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"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 |
hs: FStar.Monotonic.HyperStack.mem ->
args: Prims.list Vale.Interop.Base.arg {Vale.Interop.Base.all_live hs args}
-> FStar.Pervasives.Lemma
(ensures Vale.Interop.Heap_s.list_live hs (Vale.Interop.Base.args_b8 args)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.Interop.Base.all_live",
"Vale.Interop.Base.valid_base_type",
"Vale.Interop.Base.td_as_type",
"Vale.Interop.Base.TD_Base",
"Prims._assert",
"Prims.eq2",
"Vale.Interop.Types.b8",
"Vale.Interop.Base.args_b8",
"Vale.Arc... | [
"recursion"
] | false | false | true | false | false | let rec args_b8_live (hs: HS.mem) (args: list arg {all_live hs args})
: Lemma (list_live hs (args_b8 args)) =
| match args with
| [] -> ()
| hd :: tl ->
all_live_cons hd tl hs;
assert (live_arg hs hd);
assert (all_live hs tl);
args_b8_live hs tl;
match hd with
| (| TD_Base _ , _ |) -> assert (args_b8 args == args_b8 tl)
| (| TD_Buffer t _ _ , x |) ->
assert (B.live hs x);
assert (args_b8 args == Buffer true... | false |
Vale.Interop.Base.fst | Vale.Interop.Base.disjoint_or_eq_fresh | val disjoint_or_eq_fresh (#t: _) (x: buf_t TUInt64 t) (args: list arg) (h0: HS.mem)
: Lemma (requires all_live h0 args /\ x `B.unused_in` h0)
(ensures BigOps.big_and' (disjoint_or_eq_1 (arg_of_sb x)) args) | val disjoint_or_eq_fresh (#t: _) (x: buf_t TUInt64 t) (args: list arg) (h0: HS.mem)
: Lemma (requires all_live h0 args /\ x `B.unused_in` h0)
(ensures BigOps.big_and' (disjoint_or_eq_1 (arg_of_sb x)) args) | let rec disjoint_or_eq_fresh
#t
(x:buf_t TUInt64 t)
(args:list arg)
(h0:HS.mem)
: Lemma
(requires
all_live h0 args /\
x `B.unused_in` h0)
(ensures
BigOps.big_and' (disjoint_or_eq_1 (arg_of_sb x)) args)
= match args with
| [] -> ()
| hd::tl ->
all_l... | {
"file_name": "vale/specs/interop/Vale.Interop.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 448,
"start_col": 0,
"start_line": 430
} | module Vale.Interop.Base
open Vale.Arch.HeapTypes_s
include Vale.Interop.Types
include Vale.Interop.Heap_s
module MB = LowStar.Monotonic.Buffer
module DV = LowStar.BufferView.Down
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
include Vale.Arch.Heap
module BS = Vale.X64.Machine_Semantics_s
module BV = Lo... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Vale.Def.Words_s",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"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 |
x: Vale.Interop.Base.buf_t Vale.Arch.HeapTypes_s.TUInt64 t ->
args: Prims.list Vale.Interop.Base.arg ->
h0: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires Vale.Interop.Base.all_live h0 args /\ LowStar.Monotonic.Buffer.unused_in x h0)
(ensures
FStar.BigOps.big_and' ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.buf_t",
"Vale.Arch.HeapTypes_s.TUInt64",
"Prims.list",
"Vale.Interop.Base.arg",
"FStar.Monotonic.HyperStack.mem",
"Vale.Interop.Base.buffer_qualifiers",
"Vale.Interop.Base.td_as_type",
"Vale.Interop.Base.TD_ImmBuffer",
"Prims.dtuple2",
"Vale.I... | [
"recursion"
] | false | false | true | false | false | let rec disjoint_or_eq_fresh #t (x: buf_t TUInt64 t) (args: list arg) (h0: HS.mem)
: Lemma (requires all_live h0 args /\ x `B.unused_in` h0)
(ensures BigOps.big_and' (disjoint_or_eq_1 (arg_of_sb x)) args) =
| match args with
| [] -> ()
| hd :: tl ->
all_live_cons hd tl h0;
disjoint_or_eq_fresh x tl h0;
match hd with
| (| TD_ImmBuffer _ _ _ , y |) -> ()
| _ -> () | false |
Vale.Interop.Base.fst | Vale.Interop.Base.write_taint | val write_taint
(i: nat)
(mem: interop_heap)
(ts: (b8 -> GTot taint))
(b: b8{i <= DV.length (get_downview b.bsrc)})
(accu: MS.memTaint_t)
: GTot MS.memTaint_t (decreases %[DV.length (get_downview b.bsrc) - i]) | val write_taint
(i: nat)
(mem: interop_heap)
(ts: (b8 -> GTot taint))
(b: b8{i <= DV.length (get_downview b.bsrc)})
(accu: MS.memTaint_t)
: GTot MS.memTaint_t (decreases %[DV.length (get_downview b.bsrc) - i]) | let rec write_taint
(i:nat)
(mem:interop_heap)
(ts:b8 -> GTot taint)
(b:b8{i <= DV.length (get_downview b.bsrc)})
(accu:MS.memTaint_t)
: GTot MS.memTaint_t
(decreases %[DV.length (get_downview b.bsrc) - i]) =
if i = DV.length (get_downview b.bsrc) then accu
else write_taint (i + 1) mem... | {
"file_name": "vale/specs/interop/Vale.Interop.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 88,
"end_line": 461,
"start_col": 0,
"start_line": 452
} | module Vale.Interop.Base
open Vale.Arch.HeapTypes_s
include Vale.Interop.Types
include Vale.Interop.Heap_s
module MB = LowStar.Monotonic.Buffer
module DV = LowStar.BufferView.Down
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
include Vale.Arch.Heap
module BS = Vale.X64.Machine_Semantics_s
module BV = Lo... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Vale.Def.Words_s",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"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 |
i: Prims.nat ->
mem: Vale.Interop.Heap_s.interop_heap ->
ts: (_: Vale.Interop.Types.b8 -> Prims.GTot Vale.Arch.HeapTypes_s.taint) ->
b:
Vale.Interop.Types.b8
{i <= LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b))} ->
accu: Vale.Arch.HeapTypes_s.memTain... | Prims.GTot | [
"sometrivial",
""
] | [] | [
"Prims.nat",
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.Types.b8",
"Vale.Arch.HeapTypes_s.taint",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowStar.BufferView.Down.length",
"FStar.UInt8.t",
"Vale.Interop.Types.get_downview",
"Vale.Interop.Types.__proj__Buffer__item__src",
"Vale.Interop.Ty... | [
"recursion"
] | false | false | false | false | false | let rec write_taint
(i: nat)
(mem: interop_heap)
(ts: (b8 -> GTot taint))
(b: b8{i <= DV.length (get_downview b.bsrc)})
(accu: MS.memTaint_t)
: GTot MS.memTaint_t (decreases %[DV.length (get_downview b.bsrc) - i]) =
| if i = DV.length (get_downview b.bsrc)
then accu
else write_taint (i + 1) mem ts b (Map.upd accu (InteropHeap?.addrs mem b + i) (ts b)) | false |
Vale.Interop.Base.fst | Vale.Interop.Base.args_b8_mem | val args_b8_mem (l: list arg) (y: b8)
: Lemma
(L.memP y (args_b8 l) <==>
(exists (a: arg). {:pattern L.memP a l}
L.memP a l /\
(match a with
| (| TD_Base _ , _ |) -> False
| (| TD_Buffer src _ _ , x |) -> mut_to_b8 src x == y
| (| TD_ImmBuffer src _ ... | val args_b8_mem (l: list arg) (y: b8)
: Lemma
(L.memP y (args_b8 l) <==>
(exists (a: arg). {:pattern L.memP a l}
L.memP a l /\
(match a with
| (| TD_Base _ , _ |) -> False
| (| TD_Buffer src _ _ , x |) -> mut_to_b8 src x == y
| (| TD_ImmBuffer src _ ... | let rec args_b8_mem (l:list arg) (y:b8)
: Lemma (L.memP y (args_b8 l) <==>
(exists (a:arg). {:pattern L.memP a l}
L.memP a l /\
(match a with
| (| TD_Base _, _|) -> False
| (| TD_Buffer src _ _, x|) -> mut_to_b8 src x == y
| (| TD_ImmBuffer... | {
"file_name": "vale/specs/interop/Vale.Interop.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 357,
"start_col": 0,
"start_line": 310
} | module Vale.Interop.Base
open Vale.Arch.HeapTypes_s
include Vale.Interop.Types
include Vale.Interop.Heap_s
module MB = LowStar.Monotonic.Buffer
module DV = LowStar.BufferView.Down
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
include Vale.Arch.Heap
module BS = Vale.X64.Machine_Semantics_s
module BV = Lo... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Vale.Def.Words_s",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"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 | l: Prims.list Vale.Interop.Base.arg -> y: Vale.Interop.Types.b8
-> FStar.Pervasives.Lemma
(ensures
FStar.List.Tot.Base.memP y (Vale.Interop.Base.args_b8 l) <==>
(exists (a: Vale.Interop.Base.arg). {:pattern FStar.List.Tot.Base.memP a l}
FStar.List.Tot.Base.memP a l /\
(match a with... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.Interop.Types.b8",
"Vale.Interop.Base.valid_base_type",
"Vale.Interop.Base.td_as_type",
"Vale.Interop.Base.TD_Base",
"Prims._assert",
"Prims.l_imp",
"Prims.l_Exists",
"Prims.unit",
"Vale.Interop.Base.args_b8_mem",
"Vale.Arch.HeapTypes_s.base_typ",
... | [
"recursion"
] | false | false | true | false | false | let rec args_b8_mem (l: list arg) (y: b8)
: Lemma
(L.memP y (args_b8 l) <==>
(exists (a: arg). {:pattern L.memP a l}
L.memP a l /\
(match a with
| (| TD_Base _ , _ |) -> False
| (| TD_Buffer src _ _ , x |) -> mut_to_b8 src x == y
| (| TD_ImmBuffer sr... | let goal (l: list arg) (a: arg) =
L.memP a l /\
(match a with
| (| TD_Base _ , _ |) -> False
| (| TD_Buffer src _ _ , x |) -> mut_to_b8 src x == y
| (| TD_ImmBuffer src _ _ , x |) -> imm_to_b8 src x == y)
in
match l with
| [] -> ()
| hd :: tl ->
match hd with
| (| TD_Base _ , _ |) ->
args_b8_mem... | false |
Vale.Interop.Base.fst | Vale.Interop.Base.args_b8_disjoint_or_eq | val args_b8_disjoint_or_eq (args: list arg)
: Lemma (requires (disjoint_or_eq args)) (ensures (list_disjoint_or_eq (args_b8 args))) | val args_b8_disjoint_or_eq (args: list arg)
: Lemma (requires (disjoint_or_eq args)) (ensures (list_disjoint_or_eq (args_b8 args))) | let rec args_b8_disjoint_or_eq (args:list arg)
: Lemma
(requires (disjoint_or_eq args))
(ensures (list_disjoint_or_eq (args_b8 args)))
=
list_disjoint_or_eq_reveal ();
match args with
| [] -> ()
| hd::tl ->
disjoint_or_eq_cons hd tl;
args_b8_disjoint_or_eq tl;
BigOps.big_an... | {
"file_name": "vale/specs/interop/Vale.Interop.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 371,
"start_col": 0,
"start_line": 359
} | module Vale.Interop.Base
open Vale.Arch.HeapTypes_s
include Vale.Interop.Types
include Vale.Interop.Heap_s
module MB = LowStar.Monotonic.Buffer
module DV = LowStar.BufferView.Down
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
include Vale.Arch.Heap
module BS = Vale.X64.Machine_Semantics_s
module BV = Lo... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Heap_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Vale.Def.Words_s",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"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 | args: Prims.list Vale.Interop.Base.arg
-> FStar.Pervasives.Lemma (requires Vale.Interop.Base.disjoint_or_eq args)
(ensures Vale.Interop.Heap_s.list_disjoint_or_eq (Vale.Interop.Base.args_b8 args)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"Vale.Interop.Base.arg",
"FStar.Classical.forall_intro",
"Vale.Interop.Types.b8",
"Prims.l_iff",
"FStar.List.Tot.Base.memP",
"Vale.Interop.Base.args_b8",
"Prims.l_Exists",
"Prims.l_and",
"Vale.Interop.Base.valid_base_type",
"Vale.Interop.Base.td_as_type",
"Vale.Interop.Base.TD_Ba... | [
"recursion"
] | false | false | true | false | false | let rec args_b8_disjoint_or_eq (args: list arg)
: Lemma (requires (disjoint_or_eq args)) (ensures (list_disjoint_or_eq (args_b8 args))) =
| list_disjoint_or_eq_reveal ();
match args with
| [] -> ()
| hd :: tl ->
disjoint_or_eq_cons hd tl;
args_b8_disjoint_or_eq tl;
BigOps.big_and'_forall (disjoint_or_eq_1 hd) tl;
FStar.Classical.forall_intro (args_b8_mem tl) | false |
LowParse.Spec.Array.fst | LowParse.Spec.Array.parse_vlarray_eq_some | val parse_vlarray_eq_some
(array_byte_size_min array_byte_size_max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(elem_count_min elem_count_max: nat)
(u:
unit
{ vldata_vlarray_precond array_byte_size_min
array_byte_s... | val parse_vlarray_eq_some
(array_byte_size_min array_byte_size_max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(elem_count_min elem_count_max: nat)
(u:
unit
{ vldata_vlarray_precond array_byte_size_min
array_byte_s... | let parse_vlarray_eq_some
(array_byte_size_min: nat)
(array_byte_size_max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(elem_count_min: nat)
(elem_count_max: nat)
(u: unit {
vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_count_min elem_count_max == t... | {
"file_name": "src/lowparse/LowParse.Spec.Array.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 55,
"end_line": 480,
"start_col": 0,
"start_line": 441
} | module LowParse.Spec.Array
include LowParse.Spec.FLData
include LowParse.Spec.VLData
include LowParse.Spec.List
module Seq = FStar.Seq
module L = FStar.List.Tot
module M = LowParse.Math
module U32 = FStar.UInt32
open FStar.Mul // for Prims.op_Multiply
// arith lemmas must be called explicitly
#reset-options "--z3cl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.ch... | [
{
"abbrev": false,
"full_module": "FStar.Mul // for Prims.op_Multiply",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"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 |
array_byte_size_min: Prims.nat ->
array_byte_size_max: Prims.nat ->
s: LowParse.Spec.Base.serializer p ->
elem_count_min: Prims.nat ->
elem_count_max: Prims.nat ->
u443:
u469:
Prims.unit
{ LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min
array_byte_... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.unit",
"Prims.eq2",
"Prims.bool",
"LowParse.Spec.Array.vldata_vlarray_precond",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.parser_kind_prop_equiv",
"Prims.list",
"LowParse.Spec.... | [] | true | false | true | false | false | let parse_vlarray_eq_some
(array_byte_size_min array_byte_size_max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(elem_count_min elem_count_max: nat)
(u:
unit
{ vldata_vlarray_precond array_byte_size_min
array_byte_s... | parser_kind_prop_equiv k p;
vldata_to_vlarray_inj array_byte_size_min array_byte_size_max s elem_count_min elem_count_max ();
parse_synth_eq (parse_bounded_vldata_strong array_byte_size_min
array_byte_size_max
(serialize_list _ s))
(vldata_to_vlarray array_byte_size_min array_byte_size_max s elem_count_mi... | false |
OPLSS.AES.fst | OPLSS.AES.iv | val iv : Type0 | let iv = lbytes ivsize | {
"file_name": "examples/crypto/OPLSS.AES.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | (*
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",
"OPLSS.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS.AES.fst"
} | [
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"... | {
"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"
] | [] | [
"OPLSS.lbytes",
"OPLSS.AES.ivsize"
] | [] | false | false | false | true | true | let iv =
| lbytes ivsize | false | |
OPLSS.AES.fst | OPLSS.AES.cipher | val cipher : Type0 | let cipher = lbytes cipher_size | {
"file_name": "examples/crypto/OPLSS.AES.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 36,
"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",
"OPLSS.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS.AES.fst"
} | [
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"... | {
"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"
] | [] | [
"OPLSS.lbytes",
"OPLSS.AES.cipher_size"
] | [] | false | false | false | true | true | let cipher =
| lbytes cipher_size | false | |
OPLSS.AES.fst | OPLSS.AES.key | val key : Type0 | let key = lbytes keysize | {
"file_name": "examples/crypto/OPLSS.AES.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | (*
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",
"OPLSS.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS.AES.fst"
} | [
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"... | {
"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"
] | [] | [
"OPLSS.lbytes",
"OPLSS.AES.keysize"
] | [] | false | false | false | true | true | let key =
| lbytes keysize | false | |
OPLSS.AES.fst | OPLSS.AES.plain | val plain : Type0 | let plain = lbytes keysize | {
"file_name": "examples/crypto/OPLSS.AES.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | (*
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",
"OPLSS.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS.AES.fst"
} | [
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"... | {
"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"
] | [] | [
"OPLSS.lbytes",
"OPLSS.AES.keysize"
] | [] | false | false | false | true | true | let plain =
| lbytes keysize | false | |
Hacl.Streaming.Blake2.Common.fst | Hacl.Streaming.Blake2.Common.update_multi_associative | val update_multi_associative:
#a : alg ->
acc: t a ->
prevlen1:nat ->
prevlen2:nat ->
input1:S.seq uint8 ->
input2:S.seq uint8 ->
Lemma
(requires (
(**) Math.Lemmas.pos_times_pos_is_pos Spec.size_block_w (Spec.size_word a);
prevlen1 % Spec.size_block a = 0 /\
S.length input1 % Spec.size_bloc... | val update_multi_associative:
#a : alg ->
acc: t a ->
prevlen1:nat ->
prevlen2:nat ->
input1:S.seq uint8 ->
input2:S.seq uint8 ->
Lemma
(requires (
(**) Math.Lemmas.pos_times_pos_is_pos Spec.size_block_w (Spec.size_word a);
prevlen1 % Spec.size_block a = 0 /\
S.length input1 % Spec.size_bloc... | let update_multi_associative #a acc prevlen1 prevlen2 input1 input2 =
let input = S.append input1 input2 in
let nb = S.length input / U32.v (block_len a) in
let nb1 = S.length input1 / U32.v (block_len a) in
let nb2 = S.length input2 / U32.v (block_len a) in
let f = Spec.blake2_update1 a prevlen1 input in
l... | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 373,
"start_col": 0,
"start_line": 334
} | module Hacl.Streaming.Blake2.Common
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module I = Hacl.Streaming.Interface
module ST = FStar.HyperStack.ST
open FStar.Mul
module Loops = Li... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.che... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": "Core"
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"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 |
acc: Hacl.Streaming.Blake2.Common.t a ->
prevlen1: Prims.nat ->
prevlen2: Prims.nat ->
input1: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8 ->
input2: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8
-> FStar.Pervasives.Lemma
(requires
(FStar.Math.Lemmas.pos_times_pos_... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Streaming.Blake2.Common.alg",
"Hacl.Streaming.Blake2.Common.t",
"Prims.nat",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.Common.uint8",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Hacl.Streaming.Blake2.Common.update_multi_s",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit... | [] | false | false | true | false | false | let update_multi_associative #a acc prevlen1 prevlen2 input1 input2 =
| let input = S.append input1 input2 in
let nb = S.length input / U32.v (block_len a) in
let nb1 = S.length input1 / U32.v (block_len a) in
let nb2 = S.length input2 / U32.v (block_len a) in
let f = Spec.blake2_update1 a prevlen1 input in
let f1 = Spec.blake2_update1 a prevlen1 input1 in
let f2 = Spec.blake2_update1 a pr... | false |
OPLSS.AES.fst | OPLSS.AES.iv_cipher | val iv_cipher : Type0 | let iv_cipher = lbytes (ivsize + cipher_size) | {
"file_name": "examples/crypto/OPLSS.AES.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 38,
"start_col": 0,
"start_line": 38
} | (*
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",
"OPLSS.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS.AES.fst"
} | [
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"... | {
"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"
] | [] | [
"OPLSS.lbytes",
"Prims.op_Addition",
"OPLSS.AES.ivsize",
"OPLSS.AES.cipher_size"
] | [] | false | false | false | true | true | let iv_cipher =
| lbytes (ivsize + cipher_size) | false | |
Steel.ST.Printf.fst | Steel.ST.Printf.print_frags | val print_frags (acc: list frag_t) : STT unit (live_frags acc) (fun _ -> live_frags acc) | val print_frags (acc: list frag_t) : STT unit (live_frags acc) (fun _ -> live_frags acc) | let rec print_frags (acc:list frag_t)
: STT unit
(live_frags acc)
(fun _ -> live_frags acc)
= match acc with
| [] -> noop ()
| hd::tl ->
rewrite (live_frags acc) (live_frag hd `star` live_frags tl);
print_frags tl;
print_frag hd;
rewrite (live_frag hd `star` live_frags tl... | {
"file_name": "lib/steel/Steel.ST.Printf.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 66,
"end_line": 437,
"start_col": 0,
"start_line": 427
} | (*
Copyright 2008-2022 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": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Array.fsti.checked",
"Steel.Effect.Common.fsti.checked",
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "Steel.ST.Array",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Ste... | {
"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 | acc: Prims.list Steel.ST.Printf.frag_t -> Steel.ST.Effect.STT Prims.unit | Steel.ST.Effect.STT | [] | [] | [
"Prims.list",
"Steel.ST.Printf.frag_t",
"Steel.ST.Util.noop",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Prims.unit",
"Steel.ST.Util.rewrite",
"Steel.Effect.Common.star",
"Steel.ST.Printf.live_frag",
"Steel.ST.Printf.live_frags",
"Steel.ST.Printf.print_fra... | [
"recursion"
] | false | true | false | false | false | let rec print_frags (acc: list frag_t) : STT unit (live_frags acc) (fun _ -> live_frags acc) =
| match acc with
| [] -> noop ()
| hd :: tl ->
rewrite (live_frags acc) ((live_frag hd) `star` (live_frags tl));
print_frags tl;
print_frag hd;
rewrite ((live_frag hd) `star` (live_frags tl)) (live_frags acc) | false |
Hacl.Streaming.Blake2.Common.fst | Hacl.Streaming.Blake2.Common.blake2_hash_incremental_s | val blake2_hash_incremental_s :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
output:S.seq uint8 { S.length output = output_size a } | val blake2_hash_incremental_s :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
output:S.seq uint8 { S.length output = output_size a } | let blake2_hash_incremental_s a kk k input0 =
let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
assert (key_block_len = (if kk = 0 then 0 else Spec.size_block a));
(**) Math.Lemmas.modulo_lemma 0 (U3... | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 398,
"start_col": 0,
"start_line": 387
} | module Hacl.Streaming.Blake2.Common
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module I = Hacl.Streaming.Interface
module ST = FStar.HyperStack.ST
open FStar.Mul
module Loops = Li... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.che... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": "Core"
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Hacl.Streaming.Blake2.Common.alg ->
kk: Hacl.Streaming.Blake2.Common.size_nat{kk <= Hacl.Streaming.Blake2.Common.max_key a} ->
k: Hacl.Streaming.Blake2.Common.lbytes kk ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8
{ (match kk = 0 with
| true -> FStar.Seq.... | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Blake2.Common.alg",
"Hacl.Streaming.Blake2.Common.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Hacl.Streaming.Blake2.Common.max_key",
"Hacl.Streaming.Blake2.Common.lbytes",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.Common.uint8",
"Prims.op_Equality",
"Prims.int",
"FSta... | [] | false | false | false | false | false | let blake2_hash_incremental_s a kk k input0 =
| let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
assert (key_block_len = (if kk = 0 then 0 else Spec.size_block a));
Math.Lemmas.modulo_lemma 0 (U32.v (block_len a));
let bs, l = Lib.UpdateMulti.split_at_last... | false |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.uint8 | val uint8 : Type0 | let uint8 = Lib.IntTypes.uint8 | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint8"
] | [] | false | false | false | true | true | let uint8 =
| Lib.IntTypes.uint8 | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.uint32 | val uint32 : Type0 | let uint32 = Lib.IntTypes.uint32 | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 32,
"start_col": 0,
"start_line": 32
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint32"
] | [] | false | false | false | true | true | let uint32 =
| Lib.IntTypes.uint32 | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.state_s' | val state_s' : c: Hacl.Streaming.Interface.block _ -> i: _ -> Type0 | let state_s' c i = state_s c i (c.state.s i) (optional_key i c.km c.key) | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 72,
"end_line": 47,
"start_col": 0,
"start_line": 47
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 | c: Hacl.Streaming.Interface.block _ -> i: _ -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Hacl.Streaming.Functor.state_s",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__... | [] | false | false | false | true | true | let state_s' c i =
| state_s c i (c.state.s i) (optional_key i c.km c.key) | false | |
Hacl.Streaming.Blake2.Common.fst | Hacl.Streaming.Blake2.Common.spec_is_incremental | val spec_is_incremental :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
Lemma(
blake2_hash_incremental_s a kk k input ==
Spec.blake2 a input (Sp... | val spec_is_incremental :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
Lemma(
blake2_hash_incremental_s a kk k input ==
Spec.blake2 a input (Sp... | let spec_is_incremental a kk k input0 =
let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
let n_blocks, l_last = Spec.split a (S.length input) in
let blocks, last = Lib.UpdateMulti.split_at_last_lazy... | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 481,
"start_col": 0,
"start_line": 464
} | module Hacl.Streaming.Blake2.Common
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module I = Hacl.Streaming.Interface
module ST = FStar.HyperStack.ST
open FStar.Mul
module Loops = Li... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.che... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": "Core"
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Hacl.Streaming.Blake2.Common.alg ->
kk: Hacl.Streaming.Blake2.Common.size_nat{kk <= Hacl.Streaming.Blake2.Common.max_key a} ->
k: Hacl.Streaming.Blake2.Common.lbytes kk ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8
{ (match kk = 0 with
| true -> FStar.Seq.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Streaming.Blake2.Common.alg",
"Hacl.Streaming.Blake2.Common.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Hacl.Streaming.Blake2.Common.max_key",
"Hacl.Streaming.Blake2.Common.lbytes",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.Common.uint8",
"Prims.op_Equality",
"Prims.int",
"FSta... | [] | false | false | true | false | false | let spec_is_incremental a kk k input0 =
| let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
let n_blocks, l_last = Spec.split a (S.length input) in
let blocks, last = Lib.UpdateMulti.split_at_last_lazy (U32.v (block_len a)) input in
let s = init_s a k... | false |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.state' | val state' : c: Hacl.Streaming.Interface.block _ -> i: _ -> Type0 | let state' c i = state c i (c.state.s i) (optional_key i c.km c.key) | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 68,
"end_line": 61,
"start_col": 0,
"start_line": 61
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 | c: Hacl.Streaming.Interface.block _ -> i: _ -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Hacl.Streaming.Functor.state",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Bl... | [] | false | false | false | true | true | let state' c i =
| state c i (c.state.s i) (optional_key i c.km c.key) | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.state | val state : c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | let state #index (c: block index) (i: index)
(t: Type0 { t == c.state.s i })
(t': Type0 { t' == optional_key i c.km c.key })
=
B.pointer (state_s c i t t') | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 58,
"start_col": 0,
"start_line": 54
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Block__item__key",
... | [] | false | false | false | false | true | let state
#index
(c: block index)
(i: index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key i c.km c.key})
=
| B.pointer (state_s c i t t') | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.preserves_freeable | val preserves_freeable (#index: Type0) (c: block index) (i: index) (s: state' c i) (h0 h1: HS.mem)
: Type0 | val preserves_freeable (#index: Type0) (c: block index) (i: index) (s: state' c i) (h0 h1: HS.mem)
: Type0 | let preserves_freeable (#index : Type0) (c: block index) (i: index) (s: state' c i) (h0 h1 : HS.mem): Type0 =
freeable c i h0 s ==> freeable c i h1 s | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 96,
"start_col": 0,
"start_line": 95
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
s: Hacl.Streaming.Functor.state' c i ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Hacl.Streaming.Functor.state'",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_imp",
"Hacl.Streaming.Functor.freeable"
] | [] | false | false | false | false | true | let preserves_freeable (#index: Type0) (c: block index) (i: index) (s: state' c i) (h0 h1: HS.mem)
: Type0 =
| freeable c i h0 s ==> freeable c i h1 s | false |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.bytes | val bytes : Type0 | let bytes = S.seq uint8 | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 72,
"start_col": 0,
"start_line": 72
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Functor.uint8"
] | [] | false | false | false | true | true | let bytes =
| S.seq uint8 | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.footprint | val footprint : c: Hacl.Streaming.Interface.block index ->
i: index ->
m: FStar.Monotonic.HyperStack.mem ->
s: Hacl.Streaming.Functor.state' c i
-> Prims.GTot LowStar.Monotonic.Buffer.loc | let footprint (#index: Type0) (c: block index) (i: index) (m: HS.mem) (s: state' c i) =
B.(loc_union (loc_addr_of_buffer s) (footprint_s c i m (B.deref m s))) | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 72,
"end_line": 66,
"start_col": 0,
"start_line": 65
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
m: FStar.Monotonic.HyperStack.mem ->
s: Hacl.Streaming.Functor.state' c i
-> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"Hacl.Streaming.Interface.block",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Streaming.Functor.state'",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_addr_of_buffer",
"Hacl.Streaming.Functor.state_s",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__... | [] | false | false | false | false | false | let footprint (#index: Type0) (c: block index) (i: index) (m: HS.mem) (s: state' c i) =
| let open B in loc_union (loc_addr_of_buffer s) (footprint_s c i m (B.deref m s)) | false | |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.salsa20_core | val salsa20_core:
k:state
-> ctx0:state
-> ctr:size_t ->
Stack unit
(requires fun h -> live h ctx0 /\ live h k /\ disjoint ctx0 k)
(ensures fun h0 _ h1 -> modifies (loc k) h0 h1 /\
as_seq h1 k == Spec.salsa20_core (v ctr) (as_seq h0 ctx0)) | val salsa20_core:
k:state
-> ctx0:state
-> ctr:size_t ->
Stack unit
(requires fun h -> live h ctx0 /\ live h k /\ disjoint ctx0 k)
(ensures fun h0 _ h1 -> modifies (loc k) h0 h1 /\
as_seq h1 k == Spec.salsa20_core (v ctr) (as_seq h0 ctx0)) | let salsa20_core k ctx ctr =
copy_state k ctx;
let ctr_u32 = size_to_uint32 ctr in
k.(8ul) <- k.(8ul) +. ctr_u32;
rounds k;
sum_state k ctx;
k.(8ul) <- k.(8ul) +. ctr_u32 | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 67,
"start_col": 0,
"start_line": 61
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
k: Hacl.Impl.Salsa20.Core32.state ->
ctx0: Hacl.Impl.Salsa20.Core32.state ->
ctr: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Salsa20.Core32.state",
"Lib.IntTypes.size_t",
"Lib.Buffer.op_Array_Assignment",
"Lib.IntTypes.uint32",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Plus_Dot",
"Lib.Buffer.op_Array_Access",
"Lib.Buffer.MUT",
... | [] | false | true | false | false | false | let salsa20_core k ctx ctr =
| copy_state k ctx;
let ctr_u32 = size_to_uint32 ctr in
k.(8ul) <- k.(8ul) +. ctr_u32;
rounds k;
sum_state k ctx;
k.(8ul) <- k.(8ul) +. ctr_u32 | false |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.rounds | val rounds: st:state ->
Stack unit
(requires fun h -> live h st)
(ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\
as_seq h1 st == Spec.rounds (as_seq h0 st)) | val rounds: st:state ->
Stack unit
(requires fun h -> live h st)
(ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\
as_seq h1 st == Spec.rounds (as_seq h0 st)) | let rounds st =
let h0 = ST.get () in
Loop.eq_repeat0 #Spec.state Spec.double_round (as_seq h0 st);
Loop.unfold_repeat 10 Spec.double_round (as_seq h0 st) 0;
Loop.unfold_repeat 10 Spec.double_round (as_seq h0 st) 1;
Loop.unfold_repeat 10 Spec.double_round (as_seq h0 st) 2;
Loop.unfold_repeat 10 Spec.double_... | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 49,
"start_col": 0,
"start_line": 27
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | st: Hacl.Impl.Salsa20.Core32.state -> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Salsa20.Core32.state",
"Hacl.Impl.Salsa20.Core32.double_round",
"Prims.unit",
"Lib.LoopCombinators.unfold_repeat",
"Spec.Salsa20.state",
"Spec.Salsa20.double_round",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint32",
"FStar.UInt32.__uint_to_t",
"Lib.LoopCombinators.eq_repea... | [] | false | true | false | false | false | let rounds st =
| let h0 = ST.get () in
Loop.eq_repeat0 #Spec.state Spec.double_round (as_seq h0 st);
Loop.unfold_repeat 10 Spec.double_round (as_seq h0 st) 0;
Loop.unfold_repeat 10 Spec.double_round (as_seq h0 st) 1;
Loop.unfold_repeat 10 Spec.double_round (as_seq h0 st) 2;
Loop.unfold_repeat 10 Spec.double_round (as_seq h0 st) 3;
Loop... | false |
Hacl.Streaming.Blake2.Common.fst | Hacl.Streaming.Blake2.Common.blake2 | val blake2
(a: alg)
(m: valid_m_spec a)
(kk: key_size a)
(init: blake2_init_st a m)
(update_multi: blake2_update_multi_st a m)
(update_last: blake2_update_last_st a m)
(finish: blake2_finish_st a m)
: I.block unit | val blake2
(a: alg)
(m: valid_m_spec a)
(kk: key_size a)
(init: blake2_init_st a m)
(update_multi: blake2_update_multi_st a m)
(update_last: blake2_update_last_st a m)
(finish: blake2_finish_st a m)
: I.block unit | let blake2 (a : alg)
(m : valid_m_spec a)
(kk : key_size a)
(init : blake2_init_st a m)
(update_multi : blake2_update_multi_st a m)
(update_last : blake2_update_last_st a m)
(finish : blake2_finish_st a m) :
I.block unit =
I.Block
I.Erased (* key... | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 613,
"start_col": 0,
"start_line": 551
} | module Hacl.Streaming.Blake2.Common
module HS = FStar.HyperStack
module B = LowStar.Buffer
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module I = Hacl.Streaming.Interface
module ST = FStar.HyperStack.ST
open FStar.Mul
module Loops = Li... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.che... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": "Core"
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Hacl.Streaming.Blake2.Common.alg ->
m: Hacl.Impl.Blake2.Generic.valid_m_spec a ->
kk: Hacl.Streaming.Blake2.Common.key_size a ->
init: Hacl.Impl.Blake2.Generic.blake2_init_st a m ->
update_multi: Hacl.Impl.Blake2.Generic.blake2_update_multi_st a m ->
update_last: Hacl.Impl.Blake2.Generic.bla... | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Blake2.Common.alg",
"Hacl.Impl.Blake2.Generic.valid_m_spec",
"Hacl.Streaming.Blake2.Common.key_size",
"Hacl.Impl.Blake2.Generic.blake2_init_st",
"Hacl.Impl.Blake2.Generic.blake2_update_multi_st",
"Hacl.Impl.Blake2.Generic.blake2_update_last_st",
"Hacl.Impl.Blake2.Generic.blake2_finish_st... | [] | false | false | false | false | false | let blake2
(a: alg)
(m: valid_m_spec a)
(kk: key_size a)
(init: blake2_init_st a m)
(update_multi: blake2_update_multi_st a m)
(update_last: blake2_update_last_st a m)
(finish: blake2_finish_st a m)
: I.block unit =
| I.Block I.Erased
(stateful_blake2 a m)
(stateful_key a kk)
unit
(fun () -> max_input_len a)
(fun () () -> output_size a)
(fun () -> block_len a)
(fun () -> block_len a)
(fun () -> if kk > 0 then block_len a else 0ul)
(fun () k -> if kk > 0 then Spec.blake2_key_block a kk k else S.empty)
(fun () _k -... | false |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.update_post | val update_post : c: Hacl.Streaming.Interface.block index ->
i: index ->
s: Hacl.Streaming.Functor.state' c i ->
data: LowStar.Buffer.buffer Hacl.Streaming.Functor.uint8 ->
len: FStar.UInt32.t ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let update_post
#index
(c: block index)
(i: index)
(s: state' c i)
(data: B.buffer uint8)
(len: UInt32.t)
(h0 h1: HS.mem)
=
invariant c i h1 s /\
B.(modifies (footprint c i h0 s) h0 h1) /\
footprint c i h0 s == footprint c i h1 s /\
seen c i h1 s == seen c i h0 s `S.append` B.as_seq h0 data /\
r... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 409,
"start_col": 0,
"start_line": 395
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
s: Hacl.Streaming.Functor.state' c i ->
data: LowStar.Buffer.buffer Hacl.Streaming.Functor.uint8 ->
len: FStar.UInt32.t ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Hacl.Streaming.Functor.state'",
"LowStar.Buffer.buffer",
"Hacl.Streaming.Functor.uint8",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Hacl.Streaming.Functor.invariant",
"LowStar.Monotonic.Buffer.modifies",
"Hacl.Streaming.Functor.footprint"... | [] | false | false | false | false | true | let update_post
#index
(c: block index)
(i: index)
(s: state' c i)
(data: B.buffer uint8)
(len: UInt32.t)
(h0: HS.mem)
(h1: HS.mem)
=
| invariant c i h1 s /\ B.(modifies (footprint c i h0 s) h0 h1) /\
footprint c i h0 s == footprint c i h1 s /\
seen c i h1 s == (seen c i h0 s) `S.append` (B.as_seq h0 data) /\
reveal_key c i h1 s == reveal_key c i h0 s /\ preserves_freeable c i s h0 h1 | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.loc_includes_union_l_footprint_s | val loc_includes_union_l_footprint_s
(#index: _)
(c: block index)
(i: index)
(m: HS.mem)
(l1 l2: B.loc)
(s: state_s' c i)
: Lemma
(requires (B.loc_includes l1 (footprint_s c i m s) \/ B.loc_includes l2 (footprint_s c i m s))
)
(ensures (B.loc_includes (B.loc_uni... | val loc_includes_union_l_footprint_s
(#index: _)
(c: block index)
(i: index)
(m: HS.mem)
(l1 l2: B.loc)
(s: state_s' c i)
: Lemma
(requires (B.loc_includes l1 (footprint_s c i m s) \/ B.loc_includes l2 (footprint_s c i m s))
)
(ensures (B.loc_includes (B.loc_uni... | let loc_includes_union_l_footprint_s
#index
(c: block index)
(i: index)
(m: HS.mem)
(l1 l2: B.loc) (s: state_s' c i)
: Lemma
(requires (
B.loc_includes l1 (footprint_s c i m s) \/ B.loc_includes l2 (footprint_s c i m s)
))
(ensures (B.loc_includes (B.loc_union l1 l2) (footprint_s c i m s)))
[SMTPa... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 86,
"start_col": 0,
"start_line": 74
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
m: FStar.Monotonic.HyperStack.mem ->
l1: LowStar.Monotonic.Buffer.loc ->
l2: LowStar.Monotonic.Buffer.loc ->
s: Hacl.Streaming.Functor.state_s' c i
-> FStar.Pervasives.Lemma
(requires
LowStar.Monotonic.Buffer.loc_includes l1... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Streaming.Interface.block",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Monotonic.Buffer.loc",
"Hacl.Streaming.Functor.state_s'",
"LowStar.Monotonic.Buffer.loc_includes_union_l",
"Hacl.Streaming.Functor.footprint_s",
"Prims.unit",
"Prims.l_or",
"LowStar.Monotonic.Buffer.loc_includes",
"Prims.... | [] | true | false | true | false | false | let loc_includes_union_l_footprint_s
#index
(c: block index)
(i: index)
(m: HS.mem)
(l1: B.loc)
(l2: B.loc)
(s: state_s' c i)
: Lemma
(requires (B.loc_includes l1 (footprint_s c i m s) \/ B.loc_includes l2 (footprint_s c i m s))
)
(ensures (B.loc_includes ... | B.loc_includes_union_l l1 l2 (footprint_s c i m s) | false |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.invariant | val invariant : c: Hacl.Streaming.Interface.block index ->
i: index ->
m: FStar.Monotonic.HyperStack.mem ->
s: Hacl.Streaming.Functor.state' c i
-> Prims.logical | let invariant #index (c: block index) (i: index) (m: HS.mem) (s: state' c i) =
invariant_s c i m (B.get m s 0) /\
B.live m s /\
B.(loc_disjoint (loc_addr_of_buffer s) (footprint_s c i m (B.deref m s))) | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 75,
"end_line": 102,
"start_col": 0,
"start_line": 99
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
m: FStar.Monotonic.HyperStack.mem ->
s: Hacl.Streaming.Functor.state' c i
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Streaming.Functor.state'",
"Prims.l_and",
"Hacl.Streaming.Functor.invariant_s",
"LowStar.Monotonic.Buffer.get",
"Hacl.Streaming.Functor.state_s",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.... | [] | false | false | false | false | true | let invariant #index (c: block index) (i: index) (m: HS.mem) (s: state' c i) =
| invariant_s c i m (B.get m s 0) /\ B.live m s /\
B.(loc_disjoint (loc_addr_of_buffer s) (footprint_s c i m (B.deref m s))) | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.malloc_st | val malloc_st : c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | let malloc_st
(#index: Type0)
(c:block index)
(i:index)
(t:Type0 { t == c.state.s i })
(t':Type0 { t' == optional_key i c.km c.key }) =
k:c.key.s i ->
r: HS.rid ->
ST (state c i t t')
(requires (fun h0 ->
c.key.invariant #i h0 k /\
HyperStack.ST.is_eternal_region r))
(ensures (fun h0 s h1 ->... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 68,
"end_line": 277,
"start_col": 0,
"start_line": 258
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Block__item__key",
... | [] | false | false | false | false | true | let malloc_st
(#index: Type0)
(c: block index)
(i: index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key i c.km c.key})
=
| k: c.key.s i -> r: HS.rid
-> ST (state c i t t')
(requires (fun h0 -> c.key.invariant #i h0 k /\ HyperStack.ST.is_eternal_region r))
(ensures
(fun h0 s h1 ->
invariant c i h1 s /\ freeable c i h1 s /\ seen c i h1 s == S.empty /\
reveal_key c i h1 s == c.key.v i h0 k /\ B.(m... | false | |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.salsa20_encrypt_block | val salsa20_encrypt_block:
ctx:state
-> out:lbuffer uint8 64ul
-> incr:size_t
-> text:lbuffer uint8 64ul ->
Stack unit
(requires fun h ->
live h ctx /\ live h text /\ live h out /\
disjoint out ctx /\ disjoint text ctx)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
as_seq h1 out == Sp... | val salsa20_encrypt_block:
ctx:state
-> out:lbuffer uint8 64ul
-> incr:size_t
-> text:lbuffer uint8 64ul ->
Stack unit
(requires fun h ->
live h ctx /\ live h text /\ live h out /\
disjoint out ctx /\ disjoint text ctx)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
as_seq h1 out == Sp... | let salsa20_encrypt_block ctx out incr text =
push_frame();
let k = create 16ul (u32 0) in
salsa20_core k ctx incr;
xor_block out k text;
pop_frame() | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 130,
"start_col": 0,
"start_line": 125
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
ctx: Hacl.Impl.Salsa20.Core32.state ->
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul ->
incr: Lib.IntTypes.size_t ->
text: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Salsa20.Core32.state",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Salsa20.Core32.xor_block",
"Hacl.Impl.Salsa20.salsa20_core",
"Lib.Buffer.lbuffer_t",
"Lib.Buffer.MUT",
"Lib... | [] | false | true | false | false | false | let salsa20_encrypt_block ctx out incr text =
| push_frame ();
let k = create 16ul (u32 0) in
salsa20_core k ctx incr;
xor_block out k text;
pop_frame () | false |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.salsa20_update | val salsa20_update:
ctx:state
-> len:size_t
-> out:lbuffer uint8 len
-> text:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h ctx /\ live h text /\ live h out /\
eq_or_disjoint text out /\ disjoint text ctx /\ disjoint out ctx)
(ensures fun h0 _ h1 -> modifies (loc ctx |+| loc out) h0 ... | val salsa20_update:
ctx:state
-> len:size_t
-> out:lbuffer uint8 len
-> text:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h ctx /\ live h text /\ live h out /\
eq_or_disjoint text out /\ disjoint text ctx /\ disjoint out ctx)
(ensures fun h0 _ h1 -> modifies (loc ctx |+| loc out) h0 ... | let salsa20_update ctx len out text =
push_frame();
let k = create_state () in
let blocks = len /. size 64 in
let rem = len %. size 64 in
let h0 = ST.get() in
map_blocks h0 len 64ul text out
(fun h -> Spec.salsa20_encrypt_block (as_seq h0 ctx))
(fun h -> Spec.salsa20_encrypt_last (as_seq h0 ctx))
... | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 180,
"start_col": 0,
"start_line": 169
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
ctx: Hacl.Impl.Salsa20.Core32.state ->
len: Lib.IntTypes.size_t ->
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
text: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Salsa20.Core32.state",
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.Buffer.map_blocks",
"Lib.Buffer.MUT",
"FStar.UInt32.__uint_to_t",
"FStar.Monotonic.HyperStack.mem",
"Spec.Salsa20.salsa20_encrypt_block",
"Li... | [] | false | true | false | false | false | let salsa20_update ctx len out text =
| push_frame ();
let k = create_state () in
let blocks = len /. size 64 in
let rem = len %. size 64 in
let h0 = ST.get () in
map_blocks h0
len
64ul
text
out
(fun h -> Spec.salsa20_encrypt_block (as_seq h0 ctx))
(fun h -> Spec.salsa20_encrypt_last (as_seq h0 ctx))
(fun i -> salsa20_encrypt_block ctx (sub out... | false |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.alloca_st | val alloca_st : c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | let alloca_st
(#index: Type0)
(c:block index)
(i:index)
(t:Type0 { t == c.state.s i })
(t':Type0 { t' == optional_key i c.km c.key }) =
k:c.key.s i ->
StackInline (state c i t t')
(requires (fun h0 ->
c.key.invariant #i h0 k))
(ensures (fun h0 s h1 ->
invariant c i h1 s /\
seen c i h1 s ==... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 82,
"end_line": 336,
"start_col": 0,
"start_line": 320
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Block__item__key",
... | [] | false | false | false | false | true | let alloca_st
(#index: Type0)
(c: block index)
(i: index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key i c.km c.key})
=
| k: c.key.s i
-> StackInline (state c i t t')
(requires (fun h0 -> c.key.invariant #i h0 k))
(ensures
(fun h0 s h1 ->
invariant c i h1 s /\ seen c i h1 s == S.empty /\ reveal_key c i h1 s == c.key.v i h0 k /\
B.(modifies loc_none h0 h1) /\ B.fresh_loc (footprint c i h1 s) h0... | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.copy_st | val copy_st : c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | let copy_st
(#index: Type0)
(c:block index)
(i:index)
(t:Type0 { t == c.state.s i })
(t':Type0 { t' == optional_key i c.km c.key }) =
s0:state c i t t' ->
r: HS.rid ->
ST (state c i t t')
(requires (fun h0 ->
invariant c i h0 s0 /\
HyperStack.ST.is_eternal_region r))
(ensures (fun h0 s h1 ->... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 68,
"end_line": 308,
"start_col": 0,
"start_line": 289
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Block__item__key",
... | [] | false | false | false | false | true | let copy_st
(#index: Type0)
(c: block index)
(i: index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key i c.km c.key})
=
| s0: state c i t t' -> r: HS.rid
-> ST (state c i t t')
(requires (fun h0 -> invariant c i h0 s0 /\ HyperStack.ST.is_eternal_region r))
(ensures
(fun h0 s h1 ->
invariant c i h1 s /\ freeable c i h1 s /\ seen c i h1 s == seen c i h0 s0 /\
reveal_key c i h1 s == reveal_key c ... | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.free_st | val free_st : c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | let free_st
(#index: Type0)
(c:block index)
(i:index)
(t:Type0 { t == c.state.s i })
(t':Type0 { t' == optional_key i c.km c.key }) =
s:state c i t t' ->
ST unit
(requires fun h0 ->
invariant c i h0 s /\
freeable c i h0 s)
(ensures fun h0 _ h1 ->
B.modifies (footprint c i h0 s) h0 h1) | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 502,
"start_col": 0,
"start_line": 490
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Block__item__key",
... | [] | false | false | false | false | true | let free_st
(#index: Type0)
(c: block index)
(i: index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key i c.km c.key})
=
| s: state c i t t'
-> ST unit
(requires fun h0 -> invariant c i h0 s /\ freeable c i h0 s)
(ensures fun h0 _ h1 -> B.modifies (footprint c i h0 s) h0 h1) | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.update_pre | val update_pre : c: Hacl.Streaming.Interface.block index ->
i: index ->
s: Hacl.Streaming.Functor.state' c i ->
data: LowStar.Buffer.buffer Hacl.Streaming.Functor.uint8 ->
len: FStar.UInt32.t ->
h0: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let update_pre
#index
(c: block index)
(i: index)
(s: state' c i)
(data: B.buffer uint8)
(len: UInt32.t)
(h0: HS.mem)
=
invariant c i h0 s /\
B.live h0 data /\
U32.v len = B.length data /\
B.(loc_disjoint (loc_buffer data) (footprint c i h0 s)) | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 392,
"start_col": 0,
"start_line": 380
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
s: Hacl.Streaming.Functor.state' c i ->
data: LowStar.Buffer.buffer Hacl.Streaming.Functor.uint8 ->
len: FStar.UInt32.t ->
h0: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Hacl.Streaming.Functor.state'",
"LowStar.Buffer.buffer",
"Hacl.Streaming.Functor.uint8",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Hacl.Streaming.Functor.invariant",
"LowStar.Monotonic.Buffer.live",
"LowStar.Buffer.trivial_preorder",
"... | [] | false | false | false | false | true | let update_pre
#index
(c: block index)
(i: index)
(s: state' c i)
(data: B.buffer uint8)
(len: UInt32.t)
(h0: HS.mem)
=
| invariant c i h0 s /\ B.live h0 data /\ U32.v len = B.length data /\
B.(loc_disjoint (loc_buffer data) (footprint c i h0 s)) | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.update_st | val update_st : c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | let update_st
(#index: Type0)
(c:block index)
(i:index)
(t:Type0 { t == c.state.s i })
(t':Type0 { t' == optional_key i c.km c.key }) =
s:state c i t t' ->
data: B.buffer uint8 ->
len: UInt32.t ->
Stack Hacl.Streaming.Types.error_code
(requires fun h0 -> update_pre c i s data len h0)
(ensures ... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 433,
"start_col": 0,
"start_line": 412
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Block__item__key",
... | [] | false | false | false | false | true | let update_st
(#index: Type0)
(c: block index)
(i: index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key i c.km c.key})
=
| s: state c i t t' -> data: B.buffer uint8 -> len: UInt32.t
-> Stack Hacl.Streaming.Types.error_code
(requires fun h0 -> update_pre c i s data len h0)
(ensures
fun h0 s' h1 ->
let open Hacl.Streaming.Types in
match s' with
| Success ->
U32.v (c.init_input_l... | false | |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_codegen_success_Aes_ctr_loop_body | val va_codegen_success_Aes_ctr_loop_body : alg:algorithm -> Tot va_pbool | val va_codegen_success_Aes_ctr_loop_body : alg:algorithm -> Tot va_pbool | let va_codegen_success_Aes_ctr_loop_body alg =
(va_pbool_and (va_codegen_success_Pinsrq (va_op_xmm_xmm 2) (va_op_opr64_reg64 rRdi) 0)
(va_pbool_and (va_codegen_success_Pinsrq (va_op_xmm_xmm 12) (va_op_opr64_reg64 rRdi) 0)
(va_pbool_and (va_codegen_success_Pinsrq (va_op_xmm_xmm 13) (va_op_opr64_reg64 rRdi) 0)
... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 119,
"start_col": 0,
"start_line": 74
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Pinsrq",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_opr64_reg64",
"Vale.X64.Machine_s.rRdi",
"Vale.X64.InsVector.va_codegen_success_Shufpd",
"Vale.X64.InsVector.va_codegen_success_Pshufb... | [] | false | false | false | true | false | let va_codegen_success_Aes_ctr_loop_body alg =
| (va_pbool_and (va_codegen_success_Pinsrq (va_op_xmm_xmm 2) (va_op_opr64_reg64 rRdi) 0)
(va_pbool_and (va_codegen_success_Pinsrq (va_op_xmm_xmm 12) (va_op_opr64_reg64 rRdi) 0)
(va_pbool_and (va_codegen_success_Pinsrq (va_op_xmm_xmm 13) (va_op_opr64_reg64 rRdi) 0)
(va_pbool_and (va_codegen_success... | false |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.salsa20_encrypt | val salsa20_encrypt:
len:size_t
-> out:lbuffer uint8 len
-> text:lbuffer uint8 len
-> key:lbuffer uint8 32ul
-> n:lbuffer uint8 8ul
-> ctr:size_t ->
Stack unit
(requires fun h ->
live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out)
(ensures fun h0 _ h1 -> modifies (lo... | val salsa20_encrypt:
len:size_t
-> out:lbuffer uint8 len
-> text:lbuffer uint8 len
-> key:lbuffer uint8 32ul
-> n:lbuffer uint8 8ul
-> ctr:size_t ->
Stack unit
(requires fun h ->
live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out)
(ensures fun h0 _ h1 -> modifies (lo... | let salsa20_encrypt len out text key n ctr =
push_frame();
let ctx = create_state () in
salsa20_init ctx key n ctr;
salsa20_update ctx len out text;
pop_frame() | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 222,
"start_col": 0,
"start_line": 217
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
len: Lib.IntTypes.size_t ->
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
text: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 8ul ->
ctr: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Salsa20.salsa20_update",
"Hacl.Impl.Salsa20.salsa20_init",
"Hacl.Impl.Salsa20.Core32.state",
"Hacl.Impl.Salsa20.Core32.create_state",
"FStar.Hy... | [] | false | true | false | false | false | let salsa20_encrypt len out text key n ctr =
| push_frame ();
let ctx = create_state () in
salsa20_init ctx key n ctr;
salsa20_update ctx len out text;
pop_frame () | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_code_Aes_ctr_loop_body | val va_code_Aes_ctr_loop_body : alg:algorithm -> Tot va_code | val va_code_Aes_ctr_loop_body : alg:algorithm -> Tot va_code | let va_code_Aes_ctr_loop_body alg =
(va_Block (va_CCons (va_code_Pinsrq (va_op_xmm_xmm 2) (va_op_opr64_reg64 rRdi) 0) (va_CCons
(va_code_Pinsrq (va_op_xmm_xmm 12) (va_op_opr64_reg64 rRdi) 0) (va_CCons (va_code_Pinsrq
(va_op_xmm_xmm 13) (va_op_opr64_reg64 rRdi) 0) (va_CCons (va_code_Pinsrq (va_op_xmm_xmm 14)
... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 70,
"start_col": 0,
"start_line": 31
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Pinsrq",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_opr64_reg64",
"Vale.X64.Machine_s.rRdi",
"Vale.X64.InsVector.va_code_Shufpd",
"Vale.X64.InsVector.va_code_Pshufb64",
"... | [] | false | false | false | true | false | let va_code_Aes_ctr_loop_body alg =
| (va_Block (va_CCons (va_code_Pinsrq (va_op_xmm_xmm 2) (va_op_opr64_reg64 rRdi) 0)
(va_CCons (va_code_Pinsrq (va_op_xmm_xmm 12) (va_op_opr64_reg64 rRdi) 0)
(va_CCons (va_code_Pinsrq (va_op_xmm_xmm 13) (va_op_opr64_reg64 rRdi) 0)
(va_CCons (va_code_Pinsrq (va_op_xmm_xmm 14) (va_op_opr6... | false |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.salsa20_decrypt | val salsa20_decrypt:
len:size_t
-> out:lbuffer uint8 len
-> cipher:lbuffer uint8 len
-> key:lbuffer uint8 32ul
-> n:lbuffer uint8 8ul
-> ctr:size_t ->
Stack unit
(requires fun h ->
live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out)
(ensures fun h0 _ h1 -> modifi... | val salsa20_decrypt:
len:size_t
-> out:lbuffer uint8 len
-> cipher:lbuffer uint8 len
-> key:lbuffer uint8 32ul
-> n:lbuffer uint8 8ul
-> ctr:size_t ->
Stack unit
(requires fun h ->
live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out)
(ensures fun h0 _ h1 -> modifi... | let salsa20_decrypt len out cipher key n ctr =
push_frame();
let ctx = create_state () in
salsa20_init ctx key n ctr;
salsa20_update ctx len out cipher;
pop_frame() | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 244,
"start_col": 0,
"start_line": 239
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
len: Lib.IntTypes.size_t ->
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
cipher: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 8ul ->
ctr: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack Prims.uni... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Salsa20.salsa20_update",
"Hacl.Impl.Salsa20.salsa20_init",
"Hacl.Impl.Salsa20.Core32.state",
"Hacl.Impl.Salsa20.Core32.create_state",
"FStar.Hy... | [] | false | true | false | false | false | let salsa20_decrypt len out cipher key n ctr =
| push_frame ();
let ctx = create_state () in
salsa20_init ctx key n ctr;
salsa20_update ctx len out cipher;
pop_frame () | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_code_Aes_counter_loop_body0 | val va_code_Aes_counter_loop_body0 : alg:algorithm -> Tot va_code | val va_code_Aes_counter_loop_body0 : alg:algorithm -> Tot va_code | let va_code_Aes_counter_loop_body0 alg =
(va_Block (va_CCons (va_code_Aes_ctr_loop_body alg) (va_CNil ()))) | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 68,
"end_line": 548,
"start_col": 0,
"start_line": 547
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.AES.X64.AESCTRplain.va_code_Aes_ctr_loop_body",
"Vale.X64.Decls.va_CNil",
"Vale.X64.Decls.va_code"
] | [] | false | false | false | true | false | let va_code_Aes_counter_loop_body0 alg =
| (va_Block (va_CCons (va_code_Aes_ctr_loop_body alg) (va_CNil ()))) | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_codegen_success_Aes_counter_loop_body0 | val va_codegen_success_Aes_counter_loop_body0 : alg:algorithm -> Tot va_pbool | val va_codegen_success_Aes_counter_loop_body0 : alg:algorithm -> Tot va_pbool | let va_codegen_success_Aes_counter_loop_body0 alg =
(va_pbool_and (va_codegen_success_Aes_ctr_loop_body alg) (va_ttrue ())) | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 73,
"end_line": 553,
"start_col": 0,
"start_line": 552
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_pbool_and",
"Vale.AES.X64.AESCTRplain.va_codegen_success_Aes_ctr_loop_body",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | false | false | false | true | false | let va_codegen_success_Aes_counter_loop_body0 alg =
| (va_pbool_and (va_codegen_success_Aes_ctr_loop_body alg) (va_ttrue ())) | false |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.reset_st | val reset_st : c: Hacl.Streaming.Interface.block index ->
i: FStar.Ghost.erased index ->
t: Type0{t == Stateful?.s (Block?.state c) (FStar.Ghost.reveal i)} ->
t':
Type0
{ t' ==
Hacl.Streaming.Interface.optional_key (FStar.Ghost.reveal i) (Block?.km c) (Block?.key c)
}
-> Ty... | let reset_st
(#index: Type0)
(c:block index)
(i:G.erased index)
(t:Type0 { t == c.state.s i })
(t':Type0 { t' == optional_key (G.reveal i) c.km c.key }) =
state:state c i t t' ->
key:c.key.s i ->
Stack unit
(requires (fun h0 ->
c.key.invariant #i h0 key /\
B.loc_disjoint (c.key.footprint #i h0... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 367,
"start_col": 0,
"start_line": 348
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: FStar.Ghost.erased index ->
t: Type0{t == Stateful?.s (Block?.state c) (FStar.Ghost.reveal i)} ->
t':
Type0
{ t' ==
Hacl.Streaming.Interface.optional_key (FStar.Ghost.reveal i) (Block?.km c) (Block?.key c)
}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"FStar.Ghost.erased",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"FStar.Ghost.reveal",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.S... | [] | false | false | false | false | true | let reset_st
(#index: Type0)
(c: block index)
(i: G.erased index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key (G.reveal i) c.km c.key})
=
| state: state c i t t' -> key: c.key.s i
-> Stack unit
(requires
(fun h0 ->
c.key.invariant #i h0 key /\
B.loc_disjoint (c.key.footprint #i h0 key) (footprint c i h0 state) /\
invariant c i h0 state))
(ensures
(fun h0 _ h1 ->
invariant c i h1 ... | false | |
Hacl.Streaming.Functor.fsti | Hacl.Streaming.Functor.digest_st | val digest_st : c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | let digest_st
#index
(c: block index)
(i: index)
(t: Type0 { t == c.state.s i })
(t':Type0 { t' == optional_key i c.km c.key }) =
s:state c i t t' ->
dst:B.buffer uint8 ->
l:c.output_length_t { B.length dst == c.output_length i l } ->
Stack unit
(requires fun h0 ->
invariant c i h0 s /\
... | {
"file_name": "code/streaming/Hacl.Streaming.Functor.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 468,
"start_col": 0,
"start_line": 446
} | module Hacl.Streaming.Functor
/// Provided an instance of the type class, this creates a streaming API on top.
/// This means that every function in this module takes two extra arguments
/// compared to the previous streaming module specialized for hashes: the type
/// of the index, and a type class for that index. Th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Streaming.Types.fst.checked",
"Hacl.Streaming.Interface.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.check... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"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 |
c: Hacl.Streaming.Interface.block index ->
i: index ->
t: Type0{t == Stateful?.s (Block?.state c) i} ->
t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Streaming.Interface.block",
"Prims.eq2",
"Hacl.Streaming.Interface.__proj__Stateful__item__s",
"Hacl.Streaming.Interface.__proj__Block__item__state",
"Hacl.Streaming.Interface.optional_key",
"Hacl.Streaming.Interface.__proj__Block__item__km",
"Hacl.Streaming.Interface.__proj__Block__item__key",
... | [] | false | false | false | false | true | let digest_st
#index
(c: block index)
(i: index)
(t: Type0{t == c.state.s i})
(t': Type0{t' == optional_key i c.km c.key})
=
|
s: state c i t t' ->
dst: B.buffer uint8 ->
l: c.output_length_t{B.length dst == c.output_length i l}
-> Stack unit
(requires
fun h0 ->
invariant c i h0 s /\ B.live h0 dst /\
B.(loc_disjoint (loc_buffer dst) (footprint c i h0 s)))
(ensures
fun h0 s' h1 ->
... | false | |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_codegen_success_Aes_counter_loop_while0 | val va_codegen_success_Aes_counter_loop_while0 : alg:algorithm -> Tot va_pbool | val va_codegen_success_Aes_counter_loop_while0 : alg:algorithm -> Tot va_pbool | let va_codegen_success_Aes_counter_loop_while0 alg =
(va_pbool_and (va_codegen_success_Aes_counter_loop_body0 alg) (va_ttrue ())) | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 904,
"start_col": 0,
"start_line": 903
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_pbool_and",
"Vale.AES.X64.AESCTRplain.va_codegen_success_Aes_counter_loop_body0",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | false | false | false | true | false | let va_codegen_success_Aes_counter_loop_while0 alg =
| (va_pbool_and (va_codegen_success_Aes_counter_loop_body0 alg) (va_ttrue ())) | false |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.salsa20_encrypt_last | val salsa20_encrypt_last:
ctx:state
-> len:size_t{v len < 64}
-> out:lbuffer uint8 len
-> incr:size_t
-> text:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h ctx /\ live h text /\ live h out /\
disjoint out ctx /\ disjoint text ctx)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /... | val salsa20_encrypt_last:
ctx:state
-> len:size_t{v len < 64}
-> out:lbuffer uint8 len
-> incr:size_t
-> text:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h ctx /\ live h text /\ live h out /\
disjoint out ctx /\ disjoint text ctx)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /... | let salsa20_encrypt_last ctx len out incr text =
push_frame();
let plain = create (size 64) (u8 0) in
update_sub plain 0ul len text;
salsa20_encrypt_block ctx plain incr plain;
copy out (sub plain 0ul len);
pop_frame() | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 153,
"start_col": 0,
"start_line": 147
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
ctx: Hacl.Impl.Salsa20.Core32.state ->
len: Lib.IntTypes.size_t{Lib.IntTypes.v len < 64} ->
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
incr: Lib.IntTypes.size_t ->
text: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Salsa20.Core32.state",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.Buffer.copy",
"Lib.Buffer.MUT",
"Lib.Buffer.l... | [] | false | true | false | false | false | let salsa20_encrypt_last ctx len out incr text =
| push_frame ();
let plain = create (size 64) (u8 0) in
update_sub plain 0ul len text;
salsa20_encrypt_block ctx plain incr plain;
copy out (sub plain 0ul len);
pop_frame () | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_code_Aes_counter_loop | val va_code_Aes_counter_loop : alg:algorithm -> Tot va_code | val va_code_Aes_counter_loop : alg:algorithm -> Tot va_code | let va_code_Aes_counter_loop alg =
(va_Block (va_CCons (va_code_Pshufb (va_op_xmm_xmm 7) (va_op_xmm_xmm 8)) (va_CCons
(va_code_Mov128 (va_op_xmm_xmm 9) (va_op_xmm_xmm 7)) (va_CCons (va_code_InitPshufbDupMask
(va_op_xmm_xmm 0) (va_op_reg_opr64_reg64 rRax)) (va_CCons (va_code_PshufbDup (va_op_xmm_xmm 9)
(va... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 1309,
"start_col": 0,
"start_line": 1291
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Pshufb",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_code_Mov128",
"Vale.X64.InsVector.va_code_InitPshufbDupMask",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine... | [] | false | false | false | true | false | let va_code_Aes_counter_loop alg =
| (va_Block (va_CCons (va_code_Pshufb (va_op_xmm_xmm 7) (va_op_xmm_xmm 8))
(va_CCons (va_code_Mov128 (va_op_xmm_xmm 9) (va_op_xmm_xmm 7))
(va_CCons (va_code_InitPshufbDupMask (va_op_xmm_xmm 0) (va_op_reg_opr64_reg64 rRax))
(va_CCons (va_code_PshufbDup (va_op_xmm_xmm 9) (va_op_xmm_xmm 0... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_codegen_success_Aes_counter_loop | val va_codegen_success_Aes_counter_loop : alg:algorithm -> Tot va_pbool | val va_codegen_success_Aes_counter_loop : alg:algorithm -> Tot va_pbool | let va_codegen_success_Aes_counter_loop alg =
(va_pbool_and (va_codegen_success_Pshufb (va_op_xmm_xmm 7) (va_op_xmm_xmm 8)) (va_pbool_and
(va_codegen_success_Mov128 (va_op_xmm_xmm 9) (va_op_xmm_xmm 7)) (va_pbool_and
(va_codegen_success_InitPshufbDupMask (va_op_xmm_xmm 0) (va_op_reg_opr64_reg64 rRax))
(va_... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 1334,
"start_col": 0,
"start_line": 1312
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Pshufb",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_codegen_success_Mov128",
"Vale.X64.InsVector.va_codegen_success_InitPshufbDupMask",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64... | [] | false | false | false | true | false | let va_codegen_success_Aes_counter_loop alg =
| (va_pbool_and (va_codegen_success_Pshufb (va_op_xmm_xmm 7) (va_op_xmm_xmm 8))
(va_pbool_and (va_codegen_success_Mov128 (va_op_xmm_xmm 9) (va_op_xmm_xmm 7))
(va_pbool_and (va_codegen_success_InitPshufbDupMask (va_op_xmm_xmm 0)
(va_op_reg_opr64_reg64 rRax))
(va_pbool_and (va_codege... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_quick_Aes_ctr_loop_body | val va_quick_Aes_ctr_loop_body
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
: (va_quickCode unit (va_code_Aes_ctr_l... | val va_quick_Aes_ctr_loop_body
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
: (va_quickCode unit (va_code_Aes_ctr_l... | let va_quick_Aes_ctr_loop_body (alg:algorithm) (old_plain_ptr:nat64) (old_out_ptr:nat64)
(old_num_quad_blocks:nat64) (count:nat) (plain_b:buffer128) (out_b:buffer128) (key:(seq nat32))
(round_keys:(seq quad32)) (keys_b:buffer128) (icb_BE:quad32) (iv:quad32) : (va_quickCode unit
(va_code_Aes_ctr_loop_body alg)) =
... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 539,
"start_col": 0,
"start_line": 529
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 |
alg: Vale.AES.AES_common_s.algorithm ->
old_plain_ptr: Vale.X64.Memory.nat64 ->
old_out_ptr: Vale.X64.Memory.nat64 ->
old_num_quad_blocks: Vale.X64.Memory.nat64 ->
count: Prims.nat ->
plain_b: Vale.X64.Memory.buffer128 ->
out_b: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.... | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Memory.nat64",
"Prims.nat",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.quad32",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.AESCTRplain.va_code_Aes_ctr_loop_body",
"Prims.Cons",
"Vale.X... | [] | false | false | false | false | false | let va_quick_Aes_ctr_loop_body
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
: (va_quickCode unit (va_code_Aes_ctr_l... | (va_QProc (va_code_Aes_ctr_loop_body alg)
([
va_Mod_mem_heaplet 1; va_Mod_flags; va_Mod_reg64 rR12; va_Mod_reg64 rR10; va_Mod_reg64 rRdx;
va_Mod_reg64 rR9; va_Mod_xmm 7; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 2;
va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 6; va_Mod_... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_qcode_Aes_counter_loop_body0 | val va_qcode_Aes_counter_loop_body0
(va_mods: va_mods_t)
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
... | val va_qcode_Aes_counter_loop_body0
(va_mods: va_mods_t)
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
... | let va_qcode_Aes_counter_loop_body0 (va_mods:va_mods_t) (va_old:va_state) (alg:algorithm)
(va_in_icb_BE:quad32) (va_in_key:(seq nat32)) (va_in_keys_b:buffer128) (va_in_old_iv:quad32)
(va_in_out_b:buffer128) (va_in_plain_b:buffer128) (va_in_round_keys:(seq quad32))
(va_in_count:nat) : (va_quickCode (nat) (va_code_... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 568,
"start_col": 0,
"start_line": 556
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.QuickCodes.qblock",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.AES.X64.AE... | [] | false | false | false | false | false | let va_qcode_Aes_counter_loop_body0
(va_mods: va_mods_t)
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
... | (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let icb_BE:quad32 = va_in_icb_BE in
let key:(seq nat32) = va_in_key in
let keys_b:buffer128 = va_in_keys_b in
let old_iv:quad32 = va_in_old_iv in
let out_b:buffer128 = va_in_out_b in
let ... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_wpProof_Aes_ctr_loop_body | val va_wpProof_Aes_ctr_loop_body : alg:algorithm -> old_plain_ptr:nat64 -> old_out_ptr:nat64 ->
old_num_quad_blocks:nat64 -> count:nat -> plain_b:buffer128 -> out_b:buffer128 -> key:(seq nat32)
-> round_keys:(seq quad32) -> keys_b:buffer128 -> icb_BE:quad32 -> iv:quad32 -> va_s0:va_state ->
va_k:(va_state -> unit... | val va_wpProof_Aes_ctr_loop_body : alg:algorithm -> old_plain_ptr:nat64 -> old_out_ptr:nat64 ->
old_num_quad_blocks:nat64 -> count:nat -> plain_b:buffer128 -> out_b:buffer128 -> key:(seq nat32)
-> round_keys:(seq quad32) -> keys_b:buffer128 -> icb_BE:quad32 -> iv:quad32 -> va_s0:va_state ->
va_k:(va_state -> unit... | let va_wpProof_Aes_ctr_loop_body alg old_plain_ptr old_out_ptr old_num_quad_blocks count plain_b
out_b key round_keys keys_b icb_BE iv va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Aes_ctr_loop_body (va_code_Aes_ctr_loop_body alg) va_s0 alg
old_plain_ptr old_out_ptr old_num_quad_blocks count plain_b out_b key roun... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 526,
"start_col": 0,
"start_line": 509
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 |
alg: Vale.AES.AES_common_s.algorithm ->
old_plain_ptr: Vale.X64.Memory.nat64 ->
old_out_ptr: Vale.X64.Memory.nat64 ->
old_num_quad_blocks: Vale.X64.Memory.nat64 ->
count: Prims.nat ->
plain_b: Vale.X64.Memory.buffer128 ->
out_b: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.... | Prims.Ghost | [] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Memory.nat64",
"Prims.nat",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCo... | [] | false | false | false | false | false | let va_wpProof_Aes_ctr_loop_body
alg
old_plain_ptr
old_out_ptr
old_num_quad_blocks
count
plain_b
out_b
key
round_keys
keys_b
icb_BE
iv
va_s0
va_k
=
| let va_sM, va_f0 =
va_lemma_Aes_ctr_loop_body (va_code_Aes_ctr_loop_body alg) va_s0 alg old_plain_ptr old_out_ptr
old_num_quad_blocks count plain_b out_b key round_keys keys_b icb_BE iv
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_mem_heaplet 1
va_sM
(va_update_flag... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_wp_Aes_ctr_loop_body | val va_wp_Aes_ctr_loop_body
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
(va_s0: va_state)
(va_k: (va_state... | val va_wp_Aes_ctr_loop_body
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
(va_s0: va_state)
(va_k: (va_state... | let va_wp_Aes_ctr_loop_body (alg:algorithm) (old_plain_ptr:nat64) (old_out_ptr:nat64)
(old_num_quad_blocks:nat64) (count:nat) (plain_b:buffer128) (out_b:buffer128) (key:(seq nat32))
(round_keys:(seq quad32)) (keys_b:buffer128) (icb_BE:quad32) (iv:quad32) (va_s0:va_state)
(va_k:(va_state -> unit -> Type0)) : Type0... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 10,
"end_line": 493,
"start_col": 0,
"start_line": 423
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 |
alg: Vale.AES.AES_common_s.algorithm ->
old_plain_ptr: Vale.X64.Memory.nat64 ->
old_out_ptr: Vale.X64.Memory.nat64 ->
old_num_quad_blocks: Vale.X64.Memory.nat64 ->
count: Prims.nat ->
plain_b: Vale.X64.Memory.buffer128 ->
out_b: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.... | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Memory.nat64",
"Prims.nat",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Feature... | [] | false | false | false | true | true | let va_wp_Aes_ctr_loop_body
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
(va_s0: va_state)
(va_k: (va_state... | (va_get_ok va_s0 /\
(sse_enabled /\ (0 < va_get_reg64 rRdx va_s0 /\ va_get_reg64 rRdx va_s0 <= old_num_quad_blocks) /\
count == old_num_quad_blocks - va_get_reg64 rRdx va_s0 /\
Vale.X64.Decls.validSrcAddrs128 (va_get_mem_heaplet 0 va_s0)
old_plain_ptr
plain_b
(old_num_quad_blocks `op_Multipl... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_quick_Aes_counter_loop_body0 | val va_quick_Aes_counter_loop_body0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
: ... | val va_quick_Aes_counter_loop_body0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
: ... | let va_quick_Aes_counter_loop_body0 (va_old:va_state) (alg:algorithm) (va_in_icb_BE:quad32)
(va_in_key:(seq nat32)) (va_in_keys_b:buffer128) (va_in_old_iv:quad32) (va_in_out_b:buffer128)
(va_in_plain_b:buffer128) (va_in_round_keys:(seq quad32)) (va_in_count:nat) : (va_quickCode nat
(va_code_Aes_counter_loop_body0... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 889,
"start_col": 0,
"start_line": 878
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->
va_in_out_b: Vale.X64.Memory.buffer128 -... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.QuickCode.va_QProc",
"Vale.AES.X64.AESCTRplain.va_code_Aes_counter_loop_body0",
"Prims.Cons",
"Vale.X64.QuickC... | [] | false | false | false | false | false | let va_quick_Aes_counter_loop_body0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
: ... | (va_QProc (va_code_Aes_counter_loop_body0 alg)
([
va_Mod_xmm 9; va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3;
va_Mod_xmm 2; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 10; va_Mod_reg64 rRdx;
va_Mod_reg64 rR9; va_Mod_reg64 rR12; va_Mod_reg64 rR10; va_Mod_ok... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_quick_Aes_counter_loop_while0 | val va_quick_Aes_counter_loop_while0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
:... | val va_quick_Aes_counter_loop_while0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
:... | let va_quick_Aes_counter_loop_while0 (va_old:va_state) (alg:algorithm) (va_in_icb_BE:quad32)
(va_in_key:(seq nat32)) (va_in_keys_b:buffer128) (va_in_old_iv:quad32) (va_in_out_b:buffer128)
(va_in_plain_b:buffer128) (va_in_round_keys:(seq quad32)) (va_in_count:nat) : (va_quickCode nat
(va_code_Aes_counter_loop_whil... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 1284,
"start_col": 0,
"start_line": 1273
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->
va_in_out_b: Vale.X64.Memory.buffer128 -... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.QuickCode.va_QProc",
"Vale.AES.X64.AESCTRplain.va_code_Aes_counter_loop_while0",
"Prims.Cons",
"Vale.X64.Quick... | [] | false | false | false | false | false | let va_quick_Aes_counter_loop_while0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
:... | (va_QProc (va_code_Aes_counter_loop_while0 alg)
([
va_Mod_xmm 9; va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3;
va_Mod_xmm 2; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 10; va_Mod_reg64 rRdx;
va_Mod_reg64 rR9; va_Mod_reg64 rR12; va_Mod_reg64 rR10; va_Mod_o... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_code_Aes_counter_loop_while0 | val va_code_Aes_counter_loop_while0 : alg:algorithm -> Tot va_code | val va_code_Aes_counter_loop_while0 : alg:algorithm -> Tot va_code | let va_code_Aes_counter_loop_while0 alg =
(va_Block (va_CCons (va_While (va_cmp_gt (va_op_cmp_reg64 rRdx) (va_const_cmp 0)) (va_Block
(va_CCons (va_code_Aes_counter_loop_body0 alg) (va_CNil ())))) (va_CNil ()))) | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 899,
"start_col": 0,
"start_line": 897
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 | alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.Decls.va_While",
"Vale.X64.Decls.va_cmp_gt",
"Vale.X64.Decls.va_op_cmp_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Decls.va_const_cmp",
"Vale.AES.X64.AESCTRplain.va_code_Aes_counter_loop_body0",
"Va... | [] | false | false | false | true | false | let va_code_Aes_counter_loop_while0 alg =
| (va_Block (va_CCons (va_While (va_cmp_gt (va_op_cmp_reg64 rRdx) (va_const_cmp 0))
(va_Block (va_CCons (va_code_Aes_counter_loop_body0 alg) (va_CNil ()))))
(va_CNil ()))) | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_wpProof_Aes_counter_loop_body0 | val va_wpProof_Aes_counter_loop_body0 : va_old:va_state -> alg:algorithm -> va_in_icb_BE:quad32 ->
va_in_key:(seq nat32) -> va_in_keys_b:buffer128 -> va_in_old_iv:quad32 -> va_in_out_b:buffer128
-> va_in_plain_b:buffer128 -> va_in_round_keys:(seq quad32) -> va_in_count:nat -> va_s0:va_state
-> va_k:(va_state -> n... | val va_wpProof_Aes_counter_loop_body0 : va_old:va_state -> alg:algorithm -> va_in_icb_BE:quad32 ->
va_in_key:(seq nat32) -> va_in_keys_b:buffer128 -> va_in_old_iv:quad32 -> va_in_out_b:buffer128
-> va_in_plain_b:buffer128 -> va_in_round_keys:(seq quad32) -> va_in_count:nat -> va_s0:va_state
-> va_k:(va_state -> n... | let va_wpProof_Aes_counter_loop_body0 va_old alg va_in_icb_BE va_in_key va_in_keys_b va_in_old_iv
va_in_out_b va_in_plain_b va_in_round_keys va_in_count va_s0 va_k =
let (va_sM, va_f0, count) = va_lemma_Aes_counter_loop_body0 (va_code_Aes_counter_loop_body0 alg)
va_s0 va_old alg va_in_icb_BE va_in_key va_in_key... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 875,
"start_col": 0,
"start_line": 858
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->
va_in_out_b: Vale.X64.Memory.buffer128 -... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Prims.unit",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"... | [] | false | false | false | false | false | let va_wpProof_Aes_counter_loop_body0
va_old
alg
va_in_icb_BE
va_in_key
va_in_keys_b
va_in_old_iv
va_in_out_b
va_in_plain_b
va_in_round_keys
va_in_count
va_s0
va_k
=
| let va_sM, va_f0, count =
va_lemma_Aes_counter_loop_body0 (va_code_Aes_counter_loop_body0 alg) va_s0 va_old alg va_in_icb_BE
va_in_key va_in_keys_b va_in_old_iv va_in_out_b va_in_plain_b va_in_round_keys va_in_count
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_xmm 9
va_sM
... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_qcode_Aes_counter_loop_while0 | val va_qcode_Aes_counter_loop_while0
(va_mods: va_mods_t)
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
... | val va_qcode_Aes_counter_loop_while0
(va_mods: va_mods_t)
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
... | let va_qcode_Aes_counter_loop_while0 (va_mods:va_mods_t) (va_old:va_state) (alg:algorithm)
(va_in_icb_BE:quad32) (va_in_key:(seq nat32)) (va_in_keys_b:buffer128) (va_in_old_iv:quad32)
(va_in_out_b:buffer128) (va_in_plain_b:buffer128) (va_in_round_keys:(seq quad32))
(va_in_count:nat) : (va_quickCode (nat) (va_code... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 964,
"start_col": 0,
"start_line": 907
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.QuickCodes.qblock",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.Machin... | [] | false | false | false | false | false | let va_qcode_Aes_counter_loop_while0
(va_mods: va_mods_t)
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
... | (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let icb_BE:quad32 = va_in_icb_BE in
let key:(seq nat32) = va_in_key in
let keys_b:buffer128 = va_in_keys_b in
let old_iv:quad32 = va_in_old_iv in
let out_b:buffer128 = va_in_out_b in
let ... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_wpProof_Aes_counter_loop_while0 | val va_wpProof_Aes_counter_loop_while0 : va_old:va_state -> alg:algorithm -> va_in_icb_BE:quad32 ->
va_in_key:(seq nat32) -> va_in_keys_b:buffer128 -> va_in_old_iv:quad32 -> va_in_out_b:buffer128
-> va_in_plain_b:buffer128 -> va_in_round_keys:(seq quad32) -> va_in_count:nat -> va_s0:va_state
-> va_k:(va_state -> ... | val va_wpProof_Aes_counter_loop_while0 : va_old:va_state -> alg:algorithm -> va_in_icb_BE:quad32 ->
va_in_key:(seq nat32) -> va_in_keys_b:buffer128 -> va_in_old_iv:quad32 -> va_in_out_b:buffer128
-> va_in_plain_b:buffer128 -> va_in_round_keys:(seq quad32) -> va_in_count:nat -> va_s0:va_state
-> va_k:(va_state -> ... | let va_wpProof_Aes_counter_loop_while0 va_old alg va_in_icb_BE va_in_key va_in_keys_b va_in_old_iv
va_in_out_b va_in_plain_b va_in_round_keys va_in_count va_s0 va_k =
let (va_sM, va_f0, count) = va_lemma_Aes_counter_loop_while0 (va_code_Aes_counter_loop_while0
alg) va_s0 va_old alg va_in_icb_BE va_in_key va_in_... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 1270,
"start_col": 0,
"start_line": 1253
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->
va_in_out_b: Vale.X64.Memory.buffer128 -... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Prims.unit",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"... | [] | false | false | false | false | false | let va_wpProof_Aes_counter_loop_while0
va_old
alg
va_in_icb_BE
va_in_key
va_in_keys_b
va_in_old_iv
va_in_out_b
va_in_plain_b
va_in_round_keys
va_in_count
va_s0
va_k
=
| let va_sM, va_f0, count =
va_lemma_Aes_counter_loop_while0 (va_code_Aes_counter_loop_while0 alg) va_s0 va_old alg
va_in_icb_BE va_in_key va_in_keys_b va_in_old_iv va_in_out_b va_in_plain_b va_in_round_keys
va_in_count
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_xmm 9
va_... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_wpProof_Aes_counter_loop | val va_wpProof_Aes_counter_loop : alg:algorithm -> plain_b:buffer128 -> out_b:buffer128 -> key:(seq
nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit
-> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Aes_counter_loop alg plain_b... | val va_wpProof_Aes_counter_loop : alg:algorithm -> plain_b:buffer128 -> out_b:buffer128 -> key:(seq
nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit
-> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Aes_counter_loop alg plain_b... | let va_wpProof_Aes_counter_loop alg plain_b out_b key round_keys keys_b va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Aes_counter_loop (va_code_Aes_counter_loop alg) va_s0 alg plain_b
out_b key round_keys keys_b in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_mem_heaplet 1 va_sM (va_update_fla... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 1477,
"start_col": 0,
"start_line": 1460
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"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 |
alg: Vale.AES.AES_common_s.algorithm ->
plain_b: Vale.X64.Memory.buffer128 ->
out_b: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_b: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
... | Prims.Ghost | [] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
... | [] | false | false | false | false | false | let va_wpProof_Aes_counter_loop alg plain_b out_b key round_keys keys_b va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_Aes_counter_loop (va_code_Aes_counter_loop alg)
va_s0
alg
plain_b
out_b
key
round_keys
keys_b
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_mem_heaplet 1
va_sM
(va_update_flags va_sM
(va_update_reg64 r... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_wp_Aes_counter_loop_body0 | val va_wp_Aes_counter_loop_body0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
(va... | val va_wp_Aes_counter_loop_body0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
(va... | let va_wp_Aes_counter_loop_body0 (va_old:va_state) (alg:algorithm) (va_in_icb_BE:quad32)
(va_in_key:(seq nat32)) (va_in_keys_b:buffer128) (va_in_old_iv:quad32) (va_in_out_b:buffer128)
(va_in_plain_b:buffer128) (va_in_round_keys:(seq quad32)) (va_in_count:nat) (va_s0:va_state)
(va_k:(va_state -> nat -> Type0)) : T... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 842,
"start_col": 0,
"start_line": 755
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->
va_in_out_b: Vale.X64.Memory.buffer128 -... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.sse_enabled",
"Prims.op_LessThan",
... | [] | false | false | false | true | true | let va_wp_Aes_counter_loop_body0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
(va... | (va_get_ok va_s0 /\ sse_enabled /\
(0 < va_get_reg64 rRdx va_old /\ 4 `op_Multiply` (va_get_reg64 rRdx va_old) < pow2_32 - 4) /\
(0 <= va_get_reg64 rRdx va_s0 /\ va_get_reg64 rRdx va_s0 <= va_get_reg64 rRdx va_old) /\
va_in_count == va_get_reg64 rRdx va_old - va_get_reg64 rRdx va_s0 /\
(0 <= va_in_count /\ va_i... | false |
Vale.X64.MemoryAdapters.fst | Vale.X64.MemoryAdapters.as_mem | val as_mem (h:ME.vale_heap) : GTot IB.interop_heap | val as_mem (h:ME.vale_heap) : GTot IB.interop_heap | let as_mem h = _ih h | {
"file_name": "vale/code/arch/x64/interop/Vale.X64.MemoryAdapters.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | module Vale.X64.MemoryAdapters
open FStar.Mul
open Vale.Interop.Base
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module IB = Vale.Interop.Base
module VS = Vale.X64.State
module T = FStar.Tactics
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
frie... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Arch.HeapImpl.fst.c... | [
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"f... | {
"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.Memory.vale_heap -> Prims.GTot Vale.Interop.Heap_s.interop_heap | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.X64.Memory.vale_heap",
"Vale.Arch.HeapImpl._ih",
"Vale.Interop.Heap_s.interop_heap"
] | [] | false | false | false | false | false | let as_mem h =
| _ih h | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_qcode_Aes_counter_loop | val va_qcode_Aes_counter_loop
(va_mods: va_mods_t)
(alg: algorithm)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
: (va_quickCode unit (va_code_Aes_counter_loop alg)) | val va_qcode_Aes_counter_loop
(va_mods: va_mods_t)
(alg: algorithm)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
: (va_quickCode unit (va_code_Aes_counter_loop alg)) | let va_qcode_Aes_counter_loop (va_mods:va_mods_t) (alg:algorithm) (plain_b:buffer128)
(out_b:buffer128) (key:(seq nat32)) (round_keys:(seq quad32)) (keys_b:buffer128) : (va_quickCode
unit (va_code_Aes_counter_loop alg)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1
... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 1416,
"start_col": 0,
"start_line": 1337
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
alg: Vale.AES.AES_common_s.algorithm ->
plain_b: Vale.X64.Memory.buffer128 ->
out_b: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_b: Vale.X64.Memory.buffer1... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.AES.AES_common_s.algorithm",
"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.InsVector.va_code_Pshufb",
"Vale... | [] | false | false | false | false | false | let va_qcode_Aes_counter_loop
(va_mods: va_mods_t)
(alg: algorithm)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
: (va_quickCode unit (va_code_Aes_counter_loop alg)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
va_QSeq va_range1
"***** PRECONDITION NOT MET AT line 273 column 11 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/Intel/aes/x64/Vale.AES.X64.AESCTRplain.vaf *****"
(va_quick... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_wp_Aes_counter_loop_while0 | val va_wp_Aes_counter_loop_while0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
(v... | val va_wp_Aes_counter_loop_while0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
(v... | let va_wp_Aes_counter_loop_while0 (va_old:va_state) (alg:algorithm) (va_in_icb_BE:quad32)
(va_in_key:(seq nat32)) (va_in_keys_b:buffer128) (va_in_old_iv:quad32) (va_in_out_b:buffer128)
(va_in_plain_b:buffer128) (va_in_round_keys:(seq quad32)) (va_in_count:nat) (va_s0:va_state)
(va_k:(va_state -> nat -> Type0)) : ... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 77,
"end_line": 1237,
"start_col": 0,
"start_line": 1151
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_old_iv: Vale.X64.Decls.quad32 ->
va_in_out_b: Vale.X64.Memory.buffer128 -... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.sse_enabled",
"Prims.op_LessThan",
... | [] | false | false | false | true | true | let va_wp_Aes_counter_loop_while0
(va_old: va_state)
(alg: algorithm)
(va_in_icb_BE: quad32)
(va_in_key: (seq nat32))
(va_in_keys_b: buffer128)
(va_in_old_iv: quad32)
(va_in_out_b va_in_plain_b: buffer128)
(va_in_round_keys: (seq quad32))
(va_in_count: nat)
(v... | (va_get_ok va_s0 /\ sse_enabled /\
(0 < va_get_reg64 rRdx va_old /\ 4 `op_Multiply` (va_get_reg64 rRdx va_old) < pow2_32 - 4) /\
(0 <= va_get_reg64 rRdx va_s0 /\ va_get_reg64 rRdx va_s0 <= va_get_reg64 rRdx va_old) /\
va_in_count == va_get_reg64 rRdx va_old - va_get_reg64 rRdx va_s0 /\
(0 <= va_in_count /\ va_i... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_lemma_Aes_counter_loop | val va_lemma_Aes_counter_loop : va_b0:va_code -> va_s0:va_state -> alg:algorithm ->
plain_b:buffer128 -> out_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) ->
keys_b:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Aes_counter_loop alg) va_s0 /\ va_get_ok va_s0 /\
... | val va_lemma_Aes_counter_loop : va_b0:va_code -> va_s0:va_state -> alg:algorithm ->
plain_b:buffer128 -> out_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) ->
keys_b:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Aes_counter_loop alg) va_s0 /\ va_get_ok va_s0 /\
... | let va_lemma_Aes_counter_loop va_b0 va_s0 alg plain_b out_b key round_keys keys_b =
let (va_mods:va_mods_t) = [va_Mod_mem_heaplet 1; va_Mod_flags; va_Mod_reg64 rR12; va_Mod_reg64
rRdi; va_Mod_reg64 rR10; va_Mod_reg64 rRdx; va_Mod_reg64 rR9; va_Mod_reg64 rRax; va_Mod_xmm 14;
va_Mod_xmm 13; va_Mod_xmm 12; va_Mo... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1456,
"start_col": 0,
"start_line": 1419
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
plain_b: Vale.X64.Memory.buffer128 ->
out_b: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
k... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"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.Decls.va_fuel",
"... | [] | false | false | false | false | false | let va_lemma_Aes_counter_loop va_b0 va_s0 alg plain_b out_b key round_keys keys_b =
| let va_mods:va_mods_t =
[
va_Mod_mem_heaplet 1; va_Mod_flags; va_Mod_reg64 rR12; va_Mod_reg64 rRdi; va_Mod_reg64 rR10;
va_Mod_reg64 rRdx; va_Mod_reg64 rR9; va_Mod_reg64 rRax; va_Mod_xmm 14; va_Mod_xmm 13;
va_Mod_xmm 12; va_Mod_xmm 2; va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 6;
va_Mod_xmm 1... | false |
Vale.X64.MemoryAdapters.fst | Vale.X64.MemoryAdapters.as_vale_immbuffer | val as_vale_immbuffer (#src #t:base_typ) (i:IB.ibuf_t src t) : GTot (ME.buffer t) | val as_vale_immbuffer (#src #t:base_typ) (i:IB.ibuf_t src t) : GTot (ME.buffer t) | let as_vale_immbuffer #src #t i =
DV.length_eq (get_downview i);
IB.imm_to_b8 src i | {
"file_name": "vale/code/arch/x64/interop/Vale.X64.MemoryAdapters.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 26,
"start_col": 0,
"start_line": 24
} | module Vale.X64.MemoryAdapters
open FStar.Mul
open Vale.Interop.Base
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module IB = Vale.Interop.Base
module VS = Vale.X64.State
module T = FStar.Tactics
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
frie... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Arch.HeapImpl.fst.c... | [
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"f... | {
"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 | i: Vale.Interop.Base.ibuf_t src t -> Prims.GTot (Vale.X64.Memory.buffer t) | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.ibuf_t",
"Vale.Interop.Base.imm_to_b8",
"Prims.unit",
"LowStar.BufferView.Down.length_eq",
"FStar.UInt8.t",
"Vale.Interop.Types.get_downview",
"LowStar.ImmutableBuffer.immutable_preorder",
"Vale.Interop.Types.base_typ_as_type",
"Vale.X64.Memory.... | [] | false | false | false | false | false | let as_vale_immbuffer #src #t i =
| DV.length_eq (get_downview i);
IB.imm_to_b8 src i | false |
Hacl.Impl.Salsa20.fst | Hacl.Impl.Salsa20.salsa20_init | val salsa20_init:
ctx:state
-> k:lbuffer uint8 32ul
-> n:lbuffer uint8 8ul
-> ctr0:size_t ->
Stack unit
(requires fun h ->
live h ctx /\ live h k /\ live h n /\
disjoint ctx k /\ disjoint ctx n /\
as_seq h ctx == Lib.Sequence.create 16 (u32 0))
(ensures fun h0 _ h1 -> modifies (loc ctx) h0 ... | val salsa20_init:
ctx:state
-> k:lbuffer uint8 32ul
-> n:lbuffer uint8 8ul
-> ctr0:size_t ->
Stack unit
(requires fun h ->
live h ctx /\ live h k /\ live h n /\
disjoint ctx k /\ disjoint ctx n /\
as_seq h ctx == Lib.Sequence.create 16 (u32 0))
(ensures fun h0 _ h1 -> modifies (loc ctx) h0 ... | let salsa20_init ctx k n ctr =
let h0 = ST.get() in
push_frame();
let k32 = create 8ul (u32 0) in
let n32 = create 2ul (u32 0) in
let h0' = ST.get() in
uints_from_bytes_le k32 k;
uints_from_bytes_le n32 n;
ctx.(0ul) <- Spec.constant0;
let k0 = sub k32 0ul 4ul in
let k1 = sub k32 4ul 4ul in
update_... | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 109,
"start_col": 0,
"start_line": 86
} | module Hacl.Impl.Salsa20
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Salsa20.Core32
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
module Loop = Lib.LoopCombinators
#set-options "--z3rlimit 100 --max_fuel 0"
val r... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Salsa20.Core32.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loop"
},
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
ctx: Hacl.Impl.Salsa20.Core32.state ->
k: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 8ul ->
ctr0: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Salsa20.Core32.state",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims._assert",
"Lib.Buffer.modifies",
"Lib.Buffer.loc",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint32",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStac... | [] | false | true | false | false | false | let salsa20_init ctx k n ctr =
| let h0 = ST.get () in
push_frame ();
let k32 = create 8ul (u32 0) in
let n32 = create 2ul (u32 0) in
let h0' = ST.get () in
uints_from_bytes_le k32 k;
uints_from_bytes_le n32 n;
ctx.(0ul) <- Spec.constant0;
let k0 = sub k32 0ul 4ul in
let k1 = sub k32 4ul 4ul in
update_sub #MUT ctx 1ul 4ul k0;
ctx.(5ul) <- Spec.constan... | false |
Vale.X64.MemoryAdapters.fst | Vale.X64.MemoryAdapters.as_vale_buffer | val as_vale_buffer (#src #t:base_typ) (i:IB.buf_t src t) : GTot (ME.buffer t) | val as_vale_buffer (#src #t:base_typ) (i:IB.buf_t src t) : GTot (ME.buffer t) | let as_vale_buffer #src #t i =
DV.length_eq (get_downview i);
IB.mut_to_b8 src i | {
"file_name": "vale/code/arch/x64/interop/Vale.X64.MemoryAdapters.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 22,
"start_col": 0,
"start_line": 20
} | module Vale.X64.MemoryAdapters
open FStar.Mul
open Vale.Interop.Base
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module IB = Vale.Interop.Base
module VS = Vale.X64.State
module T = FStar.Tactics
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
frie... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Arch.HeapImpl.fst.c... | [
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"f... | {
"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 | i: Vale.Interop.Base.buf_t src t -> Prims.GTot (Vale.X64.Memory.buffer t) | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.buf_t",
"Vale.Interop.Base.mut_to_b8",
"Prims.unit",
"LowStar.BufferView.Down.length_eq",
"FStar.UInt8.t",
"Vale.Interop.Types.get_downview",
"LowStar.Buffer.trivial_preorder",
"Vale.Interop.Types.base_typ_as_type",
"Vale.X64.Memory.buffer"
] | [] | false | false | false | false | false | let as_vale_buffer #src #t i =
| DV.length_eq (get_downview i);
IB.mut_to_b8 src i | false |
Vale.X64.MemoryAdapters.fst | Vale.X64.MemoryAdapters.create_initial_vale_heap | val create_initial_vale_heap (ih:IB.interop_heap) : GTot vale_heap | val create_initial_vale_heap (ih:IB.interop_heap) : GTot vale_heap | let create_initial_vale_heap ih = (heap_create_impl ih (Map.const Secret)).vf_heap | {
"file_name": "vale/code/arch/x64/interop/Vale.X64.MemoryAdapters.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 82,
"end_line": 33,
"start_col": 0,
"start_line": 33
} | module Vale.X64.MemoryAdapters
open FStar.Mul
open Vale.Interop.Base
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module IB = Vale.Interop.Base
module VS = Vale.X64.State
module T = FStar.Tactics
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
frie... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Arch.HeapImpl.fst.c... | [
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"f... | {
"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 | ih: Vale.Interop.Heap_s.interop_heap -> Prims.GTot Vale.Arch.HeapImpl.vale_heap | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.HeapImpl.__proj__Mkvale_full_heap__item__vf_heap",
"Vale.Arch.Heap.heap_create_impl",
"FStar.Map.const",
"Prims.int",
"Vale.Arch.HeapTypes_s.taint",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.Arch.HeapImpl.vale_heap"
] | [] | false | false | false | false | false | let create_initial_vale_heap ih =
| (heap_create_impl ih (Map.const Secret)).vf_heap | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_lemma_Aes_counter_loop_body0 | val va_lemma_Aes_counter_loop_body0 : va_b0:va_code -> va_s0:va_state -> va_old:va_state ->
alg:algorithm -> va_in_icb_BE:quad32 -> va_in_key:(seq nat32) -> va_in_keys_b:buffer128 ->
va_in_old_iv:quad32 -> va_in_out_b:buffer128 -> va_in_plain_b:buffer128 -> va_in_round_keys:(seq
quad32) -> va_in_count:nat
-> Gh... | val va_lemma_Aes_counter_loop_body0 : va_b0:va_code -> va_s0:va_state -> va_old:va_state ->
alg:algorithm -> va_in_icb_BE:quad32 -> va_in_key:(seq nat32) -> va_in_keys_b:buffer128 ->
va_in_old_iv:quad32 -> va_in_out_b:buffer128 -> va_in_plain_b:buffer128 -> va_in_round_keys:(seq
quad32) -> va_in_count:nat
-> Gh... | let va_lemma_Aes_counter_loop_body0 va_b0 va_s0 va_old alg va_in_icb_BE va_in_key va_in_keys_b
va_in_old_iv va_in_out_b va_in_plain_b va_in_round_keys va_in_count =
let va_old = va_expand_state va_old in
let (va_mods:va_mods_t) = [va_Mod_xmm 9; va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4;
va_Mod_xm... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 752,
"start_col": 0,
"start_line": 657
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_ol... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.QuickCodes.fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.Decls.va_fuel",
"P... | [] | false | false | false | false | false | let va_lemma_Aes_counter_loop_body0
va_b0
va_s0
va_old
alg
va_in_icb_BE
va_in_key
va_in_keys_b
va_in_old_iv
va_in_out_b
va_in_plain_b
va_in_round_keys
va_in_count
=
| let va_old = va_expand_state va_old in
let va_mods:va_mods_t =
[
va_Mod_xmm 9; va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 2;
va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 10; va_Mod_reg64 rRdx; va_Mod_reg64 rR9;
va_Mod_reg64 rR12; va_Mod_reg64 rR10; va_Mod_o... | false |
Vale.X64.MemoryAdapters.fst | Vale.X64.MemoryAdapters.create_initial_vale_full_heap | val create_initial_vale_full_heap (ih:IB.interop_heap) (mt:memTaint_t) : Ghost vale_full_heap
(requires True)
(ensures fun h ->
h == coerce (heap_create_impl ih mt) /\
ME.mem_inv h /\
ME.is_initial_heap h.vf_layout h.vf_heap /\
ME.get_heaplet_id h.vf_heap == None /\
h.vf_heap == create_initial_v... | val create_initial_vale_full_heap (ih:IB.interop_heap) (mt:memTaint_t) : Ghost vale_full_heap
(requires True)
(ensures fun h ->
h == coerce (heap_create_impl ih mt) /\
ME.mem_inv h /\
ME.is_initial_heap h.vf_layout h.vf_heap /\
ME.get_heaplet_id h.vf_heap == None /\
h.vf_heap == create_initial_v... | let create_initial_vale_full_heap ih mt =
let vfh = heap_create_impl ih mt in
let vfh:(vfh:vale_full_heap{
vfh.vf_heap.mh == (Map16.sel vfh.vf_heaplets 0).mh /\
vfh.vf_heap.ih == (Map16.sel vfh.vf_heaplets 0).ih})
=
vfh
in
let h = vfh in
let h1 = h.vf_heap in
let h2 = (Map16.sel h.vf_hea... | {
"file_name": "vale/code/arch/x64/interop/Vale.X64.MemoryAdapters.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 49,
"start_col": 0,
"start_line": 34
} | module Vale.X64.MemoryAdapters
open FStar.Mul
open Vale.Interop.Base
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module IB = Vale.Interop.Base
module VS = Vale.X64.State
module T = FStar.Tactics
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
frie... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Memory.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.X64.Decls.fst.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Arch.HeapImpl.fst.c... | [
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"f... | {
"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 | ih: Vale.Interop.Heap_s.interop_heap -> mt: Vale.Arch.HeapTypes_s.memTaint_t
-> Prims.Ghost Vale.Arch.HeapImpl.vale_full_heap | Prims.Ghost | [] | [] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.HeapTypes_s.memTaint_t",
"Vale.Arch.Heap.heap_create_impl",
"Prims.unit",
"Prims._assert",
"Vale.X64.Memory.mem_inv",
"Prims.eq2",
"FStar.Ghost.erased",
"Prims.l_or",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Arch.HeapImpl.__proj__ValeHeap__item... | [] | false | false | false | false | false | let create_initial_vale_full_heap ih mt =
| let vfh = heap_create_impl ih mt in
let vfh:(vfh:
vale_full_heap
{ vfh.vf_heap.mh == (Map16.sel vfh.vf_heaplets 0).mh /\
vfh.vf_heap.ih == (Map16.sel vfh.vf_heaplets 0).ih }) =
vfh
in
let h = vfh in
let h1 = h.vf_heap in
let h2 = (Map16.sel h.vf_heaplets 0) in
assert (h1.mh == h2.mh);
assert (h1.ih == h2.... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_lemma_Aes_counter_loop_while0 | val va_lemma_Aes_counter_loop_while0 : va_b0:va_code -> va_s0:va_state -> va_old:va_state ->
alg:algorithm -> va_in_icb_BE:quad32 -> va_in_key:(seq nat32) -> va_in_keys_b:buffer128 ->
va_in_old_iv:quad32 -> va_in_out_b:buffer128 -> va_in_plain_b:buffer128 -> va_in_round_keys:(seq
quad32) -> va_in_count:nat
-> G... | val va_lemma_Aes_counter_loop_while0 : va_b0:va_code -> va_s0:va_state -> va_old:va_state ->
alg:algorithm -> va_in_icb_BE:quad32 -> va_in_key:(seq nat32) -> va_in_keys_b:buffer128 ->
va_in_old_iv:quad32 -> va_in_out_b:buffer128 -> va_in_plain_b:buffer128 -> va_in_round_keys:(seq
quad32) -> va_in_count:nat
-> G... | let va_lemma_Aes_counter_loop_while0 va_b0 va_s0 va_old alg va_in_icb_BE va_in_key va_in_keys_b
va_in_old_iv va_in_out_b va_in_plain_b va_in_round_keys va_in_count =
let va_old = va_expand_state va_old in
let (va_mods:va_mods_t) = [va_Mod_xmm 9; va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4;
va_Mod_x... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 1148,
"start_col": 0,
"start_line": 1053
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
va_old: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
va_in_icb_BE: Vale.X64.Decls.quad32 ->
va_in_key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
va_in_keys_b: Vale.X64.Memory.buffer128 ->
va_in_ol... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.nat",
"Vale.X64.QuickCodes.fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.Decls.va_fuel",
"P... | [] | false | false | false | false | false | let va_lemma_Aes_counter_loop_while0
va_b0
va_s0
va_old
alg
va_in_icb_BE
va_in_key
va_in_keys_b
va_in_old_iv
va_in_out_b
va_in_plain_b
va_in_round_keys
va_in_count
=
| let va_old = va_expand_state va_old in
let va_mods:va_mods_t =
[
va_Mod_xmm 9; va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 2;
va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 10; va_Mod_reg64 rRdx; va_Mod_reg64 rR9;
va_Mod_reg64 rR12; va_Mod_reg64 rR10; va_Mod_o... | false |
Vale.AES.X64.AESCTRplain.fst | Vale.AES.X64.AESCTRplain.va_qcode_Aes_ctr_loop_body | val va_qcode_Aes_ctr_loop_body
(va_mods: va_mods_t)
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
: (va_quickC... | val va_qcode_Aes_ctr_loop_body
(va_mods: va_mods_t)
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
: (va_quickC... | let va_qcode_Aes_ctr_loop_body (va_mods:va_mods_t) (alg:algorithm) (old_plain_ptr:nat64)
(old_out_ptr:nat64) (old_num_quad_blocks:nat64) (count:nat) (plain_b:buffer128) (out_b:buffer128)
(key:(seq nat32)) (round_keys:(seq quad32)) (keys_b:buffer128) (icb_BE:quad32) (iv:quad32) :
(va_quickCode unit (va_code_Aes_ct... | {
"file_name": "obj/Vale.AES.X64.AESCTRplain.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 68,
"end_line": 293,
"start_col": 0,
"start_line": 122
} | module Vale.AES.X64.AESCTRplain
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X6... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Poly1305.Math // For lemma_poly_bits64()",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESCTR",
"short_module": null... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
alg: Vale.AES.AES_common_s.algorithm ->
old_plain_ptr: Vale.X64.Memory.nat64 ->
old_out_ptr: Vale.X64.Memory.nat64 ->
old_num_quad_blocks: Vale.X64.Memory.nat64 ->
count: Prims.nat ->
plain_b: Vale.X64.Memory.buffer128 ->
out_b: Vale.X64.Memory.b... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Memory.nat64",
"Prims.nat",
"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",
"V... | [] | false | false | false | false | false | let va_qcode_Aes_ctr_loop_body
(va_mods: va_mods_t)
(alg: algorithm)
(old_plain_ptr old_out_ptr old_num_quad_blocks: nat64)
(count: nat)
(plain_b out_b: buffer128)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_b: buffer128)
(icb_BE iv: quad32)
: (va_quickC... | (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let va_arg94:Vale.Def.Types_s.quad32 = iv in
let va_arg93:Vale.Def.Types_s.quad32 = va_get_xmm 2 va_s in
va_qPURE va_range1
"***** PRECONDITION NOT MET AT line 140 column 32 of file /home/gebner/fstar_... | false |
FStar.PCM.fst | FStar.PCM.symrel | val symrel : a: Type -> Type | let symrel (a: Type u#a) = c:(a -> a -> prop) { (forall x y. c x y <==> c y x) } | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"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 | a: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"Prims.prop",
"Prims.l_Forall",
"Prims.l_iff"
] | [] | false | false | false | true | true | let symrel (a: Type u#a) =
| c: (a -> a -> prop){(forall x y. c x y <==> c y x)} | false | |
FStar.PCM.fst | FStar.PCM.composable | val composable : p: FStar.PCM.pcm a -> x: a -> y: a -> Prims.prop | let composable (#a: Type u#a) (p:pcm a) (x y:a) = p.p.composable x y | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 82,
"start_col": 0,
"start_line": 82
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> x: a -> y: a -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"FStar.PCM.__proj__Mkpcm__item__p",
"Prims.prop"
] | [] | false | false | false | true | true | let composable (#a: Type u#a) (p: pcm a) (x y: a) =
| p.p.composable x y | false | |
FStar.PCM.fst | FStar.PCM.lem_commutative | val lem_commutative : p: FStar.PCM.pcm' a -> Type | let lem_commutative (#a: Type u#a) (p:pcm' a) =
x:a ->
y:a{p.composable x y} ->
Lemma (p.op x y == p.op y x) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 38,
"start_col": 0,
"start_line": 35
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm' a -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm'",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.PCM.__proj__Mkpcm'__item__op",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | false | true | true | let lem_commutative (#a: Type u#a) (p: pcm' a) =
| x: a -> y: a{p.composable x y} -> Lemma (p.op x y == p.op y x) | false | |
FStar.PCM.fst | FStar.PCM.lem_is_unit | val lem_is_unit : p: FStar.PCM.pcm' a -> Type | let lem_is_unit (#a: Type u#a) (p:pcm' a) =
x:a ->
Lemma (p.composable x p.one /\
p.op x p.one == x) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 65,
"start_col": 0,
"start_line": 62
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm' a -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm'",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"FStar.PCM.__proj__Mkpcm'__item__one",
"Prims.eq2",
"FStar.PCM.__proj__Mkpcm'__item__op",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | false | true | true | let lem_is_unit (#a: Type u#a) (p: pcm' a) =
| x: a -> Lemma (p.composable x p.one /\ p.op x p.one == x) | false | |
FStar.PCM.fst | FStar.PCM.lem_assoc_l | val lem_assoc_l : p: FStar.PCM.pcm' a -> Type | let lem_assoc_l (#a: Type u#a) (p:pcm' a) =
x:a ->
y:a ->
z:a{p.composable y z /\ p.composable x (p.op y z)} ->
Lemma (p.composable x y /\
p.composable (p.op x y) z /\
p.op x (p.op y z) == p.op (p.op x y) z) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 47,
"start_col": 0,
"start_line": 41
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm' a -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm'",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"FStar.PCM.__proj__Mkpcm'__item__op",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | false | true | true | let lem_assoc_l (#a: Type u#a) (p: pcm' a) =
| x: a -> y: a -> z: a{p.composable y z /\ p.composable x (p.op y z)}
-> Lemma (p.composable x y /\ p.composable (p.op x y) z /\ p.op x (p.op y z) == p.op (p.op x y) z) | false | |
FStar.PCM.fst | FStar.PCM.joinable | val joinable (#a: _) (p: pcm a) (x y: a) : prop | val joinable (#a: _) (p: pcm a) (x y: a) : prop | let joinable #a (p:pcm a) (x y : a) : prop =
exists z. compatible p x z /\ compatible p y z | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 138,
"start_col": 0,
"start_line": 137
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> x: a -> y: a -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Prims.l_Exists",
"Prims.l_and",
"FStar.PCM.compatible",
"Prims.prop"
] | [] | false | false | false | true | true | let joinable #a (p: pcm a) (x: a) (y: a) : prop =
| exists z. compatible p x z /\ compatible p y z | false |
FStar.PCM.fst | FStar.PCM.op | val op : p: FStar.PCM.pcm a -> x: a -> y: a{FStar.PCM.composable p x y} -> a | let op (#a: Type u#a) (p:pcm a) (x:a) (y:a{composable p x y}) = p.p.op x y | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 85,
"start_col": 0,
"start_line": 85
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> x: a -> y: a{FStar.PCM.composable p x y} -> a | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.PCM.composable",
"FStar.PCM.__proj__Mkpcm'__item__op",
"FStar.PCM.__proj__Mkpcm__item__p"
] | [] | false | false | false | false | false | let op (#a: Type u#a) (p: pcm a) (x: a) (y: a{composable p x y}) =
| p.p.op x y | false | |
FStar.PCM.fst | FStar.PCM.exclusive | val exclusive : p: FStar.PCM.pcm a -> x: a -> Prims.logical | let exclusive (#a:Type u#a) (p:pcm a) (x:a) =
forall (frame:a). composable p x frame ==> frame == p.p.one | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 61,
"end_line": 186,
"start_col": 0,
"start_line": 185
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> x: a -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.PCM.composable",
"Prims.eq2",
"FStar.PCM.__proj__Mkpcm'__item__one",
"FStar.PCM.__proj__Mkpcm__item__p",
"Prims.logical"
] | [] | false | false | false | true | true | let exclusive (#a: Type u#a) (p: pcm a) (x: a) =
| forall (frame: a). composable p x frame ==> frame == p.p.one | false | |
FStar.PCM.fst | FStar.PCM.compatible | val compatible : pcm: FStar.PCM.pcm a -> x: a -> y: a -> Prims.logical | let compatible (#a: Type u#a) (pcm:pcm a) (x y:a) =
(exists (frame:a).
composable pcm x frame /\ op pcm frame x == y
) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 94,
"start_col": 0,
"start_line": 91
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"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 | pcm: FStar.PCM.pcm a -> x: a -> y: a -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Prims.l_Exists",
"Prims.l_and",
"FStar.PCM.composable",
"Prims.eq2",
"FStar.PCM.op",
"Prims.logical"
] | [] | false | false | false | true | true | let compatible (#a: Type u#a) (pcm: pcm a) (x y: a) =
| (exists (frame: a). composable pcm x frame /\ op pcm frame x == y) | false | |
FStar.PCM.fst | FStar.PCM.lem_assoc_r | val lem_assoc_r : p: FStar.PCM.pcm' a -> Type | let lem_assoc_r (#a: Type u#a) (p:pcm' a) =
x:a ->
y:a ->
z:a {p.composable x y /\
p.composable (p.op x y) z} ->
Lemma
(p.composable y z /\
p.composable x (p.op y z) /\
p.op x (p.op y z) == p.op (p.op x y) z) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 59,
"start_col": 0,
"start_line": 51
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm' a -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm'",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"FStar.PCM.__proj__Mkpcm'__item__op",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | false | true | true | let lem_assoc_r (#a: Type u#a) (p: pcm' a) =
| x: a -> y: a -> z: a{p.composable x y /\ p.composable (p.op x y) z}
-> Lemma (p.composable y z /\ p.composable x (p.op y z) /\ p.op x (p.op y z) == p.op (p.op x y) z) | false | |
FStar.PCM.fst | FStar.PCM.compatible_elim | val compatible_elim
(#a: Type u#a)
(pcm: pcm a)
(x y: a)
(goal: Type)
(lemma: (frame: a{composable pcm x frame /\ op pcm frame x == y} -> Lemma (goal)))
: Lemma (requires (compatible pcm x y)) (ensures (goal)) | val compatible_elim
(#a: Type u#a)
(pcm: pcm a)
(x y: a)
(goal: Type)
(lemma: (frame: a{composable pcm x frame /\ op pcm frame x == y} -> Lemma (goal)))
: Lemma (requires (compatible pcm x y)) (ensures (goal)) | let compatible_elim
(#a: Type u#a) (pcm:pcm a) (x y:a)
(goal: Type)
(lemma: (frame: a{composable pcm x frame /\ op pcm frame x == y}) ->
Lemma (goal)
)
: Lemma (requires (compatible pcm x y)) (ensures (goal))
=
Classical.exists_elim
goal #a #(fun frame -> composable pcm x frame /\ op pcm frame x... | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 126,
"start_col": 0,
"start_line": 116
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"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 |
pcm: FStar.PCM.pcm a ->
x: a ->
y: a ->
goal: Type0 ->
lemma:
(frame: a{FStar.PCM.composable pcm x frame /\ FStar.PCM.op pcm frame x == y}
-> FStar.Pervasives.Lemma (ensures goal))
-> FStar.Pervasives.Lemma (requires FStar.PCM.compatible pcm x y) (ensures goal) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.PCM.pcm",
"Prims.l_and",
"FStar.PCM.composable",
"Prims.eq2",
"FStar.PCM.op",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Classical.exists_elim",
"FStar.PCM.compatible"
] | [] | false | false | true | false | false | let compatible_elim
(#a: Type u#a)
(pcm: pcm a)
(x y: a)
(goal: Type)
(lemma: (frame: a{composable pcm x frame /\ op pcm frame x == y} -> Lemma (goal)))
: Lemma (requires (compatible pcm x y)) (ensures (goal)) =
| Classical.exists_elim goal
#a
#(fun frame -> composable pcm x frame /\ op pcm frame x == y)
()
(fun frame -> lemma frame) | false |
FStar.PCM.fst | FStar.PCM.compatible_trans | val compatible_trans (#a: Type u#a) (pcm: pcm a) (x y z: a)
: Lemma (requires (compatible pcm x y /\ compatible pcm y z)) (ensures (compatible pcm x z)) | val compatible_trans (#a: Type u#a) (pcm: pcm a) (x y z: a)
: Lemma (requires (compatible pcm x y /\ compatible pcm y z)) (ensures (compatible pcm x z)) | let compatible_trans
(#a: Type u#a) (pcm:pcm a) (x y z:a)
: Lemma (requires (compatible pcm x y /\ compatible pcm y z))
(ensures (compatible pcm x z))
= Classical.forall_intro_3 pcm.assoc | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 110,
"start_col": 0,
"start_line": 106
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"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 | pcm: FStar.PCM.pcm a -> x: a -> y: a -> z: a
-> FStar.Pervasives.Lemma (requires FStar.PCM.compatible pcm x y /\ FStar.PCM.compatible pcm y z)
(ensures FStar.PCM.compatible pcm x z) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.PCM.pcm",
"FStar.Classical.forall_intro_3",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"FStar.PCM.__proj__Mkpcm__item__p",
"FStar.PCM.__proj__Mkpcm'__item__op",
"Prims.eq2",
"FStar.PCM.__proj__Mkpcm__item__assoc",
"Prims.unit",
"FStar.PCM.compatible",
"Prims.squash",
"... | [] | false | false | true | false | false | let compatible_trans (#a: Type u#a) (pcm: pcm a) (x y z: a)
: Lemma (requires (compatible pcm x y /\ compatible pcm y z)) (ensures (compatible pcm x z)) =
| Classical.forall_intro_3 pcm.assoc | false |
FStar.PCM.fst | FStar.PCM.compatible_refl | val compatible_refl (#a: Type u#a) (pcm: pcm a) (x: a) : Lemma (compatible pcm x x) | val compatible_refl (#a: Type u#a) (pcm: pcm a) (x: a) : Lemma (compatible pcm x x) | let compatible_refl
(#a: Type u#a) (pcm:pcm a) (x:a)
: Lemma (compatible pcm x x)
=
pcm.is_unit x;
pcm.comm x pcm.p.one;
assert (op pcm pcm.p.one x == x) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 103,
"start_col": 0,
"start_line": 97
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"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 | pcm: FStar.PCM.pcm a -> x: a -> FStar.Pervasives.Lemma (ensures FStar.PCM.compatible pcm x x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.PCM.pcm",
"Prims._assert",
"Prims.eq2",
"FStar.PCM.op",
"FStar.PCM.__proj__Mkpcm'__item__one",
"FStar.PCM.__proj__Mkpcm__item__p",
"Prims.unit",
"FStar.PCM.__proj__Mkpcm__item__comm",
"FStar.PCM.__proj__Mkpcm__item__is_unit",
"Prims.l_True",
"Prims.squash",
"FStar.PCM.compatible",
"Pr... | [] | true | false | true | false | false | let compatible_refl (#a: Type u#a) (pcm: pcm a) (x: a) : Lemma (compatible pcm x x) =
| pcm.is_unit x;
pcm.comm x pcm.p.one;
assert (op pcm pcm.p.one x == x) | false |
Vale.Wrapper.X64.GCMencryptOpt256.fsti | Vale.Wrapper.X64.GCMencryptOpt256.uint8_p | val uint8_p : Type0 | let uint8_p = B.buffer UInt8.t | {
"file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMencryptOpt256.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | module Vale.Wrapper.X64.GCMencryptOpt256
open Vale.X64.CPU_Features_s
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.AsLowStar.MemoryHelpers
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
op... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.GCMencryptOpt.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.AsLowStar.MemoryHelp... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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"
] | [] | [
"LowStar.Buffer.buffer",
"FStar.UInt8.t"
] | [] | false | false | false | true | true | let uint8_p =
| B.buffer UInt8.t | false | |
Vale.Wrapper.X64.GCMencryptOpt256.fsti | Vale.Wrapper.X64.GCMencryptOpt256.disjoint_or_eq | val disjoint_or_eq : b1: Vale.Wrapper.X64.GCMencryptOpt256.uint8_p -> b2: Vale.Wrapper.X64.GCMencryptOpt256.uint8_p
-> Prims.logical | let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2 | {
"file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMencryptOpt256.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | module Vale.Wrapper.X64.GCMencryptOpt256
open Vale.X64.CPU_Features_s
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.AsLowStar.MemoryHelpers
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
op... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.GCMencryptOpt.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.AsLowStar.MemoryHelp... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | b1: Vale.Wrapper.X64.GCMencryptOpt256.uint8_p -> b2: Vale.Wrapper.X64.GCMencryptOpt256.uint8_p
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Vale.Wrapper.X64.GCMencryptOpt256.uint8_p",
"Prims.l_or",
"LowStar.Monotonic.Buffer.disjoint",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"Prims.eq2",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_or_eq (b1 b2: uint8_p) =
| B.disjoint b1 b2 \/ b1 == b2 | false | |
FStar.PCM.fst | FStar.PCM.frame_compatible | val frame_compatible : p: FStar.PCM.pcm a -> x: FStar.Ghost.erased a -> v: a -> y: a -> Prims.logical | let frame_compatible #a (p:pcm a) (x:FStar.Ghost.erased a) (v y:a) =
(forall (frame:a). {:pattern (composable p x frame)}
composable p x frame /\
v == op p x frame ==>
composable p y frame /\
v == op p y frame) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 145,
"start_col": 0,
"start_line": 140
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> x: FStar.Ghost.erased a -> v: a -> y: a -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.l_and",
"FStar.PCM.composable",
"FStar.Ghost.reveal",
"Prims.eq2",
"FStar.PCM.op",
"Prims.logical"
] | [] | false | false | false | true | true | let frame_compatible #a (p: pcm a) (x: FStar.Ghost.erased a) (v: a) (y: a) =
| (forall (frame: a). {:pattern (composable p x frame)}
composable p x frame /\ v == op p x frame ==> composable p y frame /\ v == op p y frame) | false | |
Vale.Wrapper.X64.GCMencryptOpt256.fsti | Vale.Wrapper.X64.GCMencryptOpt256.uint64 | val uint64 : Prims.eqtype | let uint64 = UInt64.t | {
"file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMencryptOpt256.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | module Vale.Wrapper.X64.GCMencryptOpt256
open Vale.X64.CPU_Features_s
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.AsLowStar.MemoryHelpers
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
op... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Wrapper.X64.GCMencryptOpt.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.AsLowStar.MemoryHelp... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t"
] | [] | false | false | false | true | false | let uint64 =
| UInt64.t | false | |
FStar.PCM.fst | FStar.PCM.no_op_is_frame_preserving | val no_op_is_frame_preserving (#a: Type u#a) (p: pcm a) (x: a) : frame_preserving_upd p x x | val no_op_is_frame_preserving (#a: Type u#a) (p: pcm a) (x: a) : frame_preserving_upd p x x | let no_op_is_frame_preserving (#a:Type u#a) (p:pcm a)
(x:a)
: frame_preserving_upd p x x
= fun v -> v | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 200,
"start_col": 0,
"start_line": 197
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> x: a -> FStar.PCM.frame_preserving_upd p x x | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm__item__refine",
"FStar.PCM.compatible",
"Prims.l_Forall",
"FStar.PCM.composable",
"Prims.l_imp",
"Prims.eq2",
"FStar.PCM.op",
"FStar.PCM.frame_preserving_upd"
] | [] | false | false | false | false | false | let no_op_is_frame_preserving (#a: Type u#a) (p: pcm a) (x: a) : frame_preserving_upd p x x =
| fun v -> v | false |
FStar.PCM.fst | FStar.PCM.frame_preserving_val_to_fp_upd | val frame_preserving_val_to_fp_upd
(#a: Type u#a)
(p: pcm a)
(x: Ghost.erased a)
(v: a{frame_preserving p x v /\ p.refine v})
: frame_preserving_upd p x v | val frame_preserving_val_to_fp_upd
(#a: Type u#a)
(p: pcm a)
(x: Ghost.erased a)
(v: a{frame_preserving p x v /\ p.refine v})
: frame_preserving_upd p x v | let frame_preserving_val_to_fp_upd (#a:Type u#a) (p:pcm a)
(x:Ghost.erased a) (v:a{frame_preserving p x v /\ p.refine v})
: frame_preserving_upd p x v
= Classical.forall_intro (p.comm v);
fun _ -> v | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 182,
"start_col": 0,
"start_line": 178
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: FStar.PCM.pcm a ->
x: FStar.Ghost.erased a ->
v: a{FStar.PCM.frame_preserving p (FStar.Ghost.reveal x) v /\ Mkpcm?.refine p v}
-> FStar.PCM.frame_preserving_upd p (FStar.Ghost.reveal x) v | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"Prims.l_and",
"FStar.PCM.frame_preserving",
"FStar.Ghost.reveal",
"FStar.PCM.__proj__Mkpcm__item__refine",
"FStar.PCM.compatible",
"Prims.l_Forall",
"FStar.PCM.composable",
"Prims.l_imp",
"Prims.eq2",
"FStar.PCM.op",
"Prims.unit",
"FStar.Classical.fo... | [] | false | false | false | false | false | let frame_preserving_val_to_fp_upd
(#a: Type u#a)
(p: pcm a)
(x: Ghost.erased a)
(v: a{frame_preserving p x v /\ p.refine v})
: frame_preserving_upd p x v =
| Classical.forall_intro (p.comm v);
fun _ -> v | false |
FStar.PCM.fst | FStar.PCM.exclusive_is_frame_preserving | val exclusive_is_frame_preserving (#a: Type u#a) (p: pcm a) (x: a)
: Lemma (requires exclusive p x) (ensures frame_preserving p x p.p.one) | val exclusive_is_frame_preserving (#a: Type u#a) (p: pcm a) (x: a)
: Lemma (requires exclusive p x) (ensures frame_preserving p x p.p.one) | let exclusive_is_frame_preserving (#a: Type u#a) (p:pcm a) (x:a)
: Lemma (requires exclusive p x)
(ensures frame_preserving p x p.p.one)
= p.is_unit x;
p.is_unit p.p.one | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 193,
"start_col": 0,
"start_line": 189
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> x: a
-> FStar.Pervasives.Lemma (requires FStar.PCM.exclusive p x)
(ensures FStar.PCM.frame_preserving p x (Mkpcm'?.one (Mkpcm?.p p))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.PCM.pcm",
"FStar.PCM.__proj__Mkpcm__item__is_unit",
"FStar.PCM.__proj__Mkpcm'__item__one",
"FStar.PCM.__proj__Mkpcm__item__p",
"Prims.unit",
"FStar.PCM.exclusive",
"Prims.squash",
"FStar.PCM.frame_preserving",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let exclusive_is_frame_preserving (#a: Type u#a) (p: pcm a) (x: a)
: Lemma (requires exclusive p x) (ensures frame_preserving p x p.p.one) =
| p.is_unit x;
p.is_unit p.p.one | false |
FStar.PCM.fst | FStar.PCM.compose_frame_preserving_updates | val compose_frame_preserving_updates
(#a: Type u#a)
(p: pcm a)
(x y z: a)
(f: frame_preserving_upd p x y)
(g: frame_preserving_upd p y z)
: frame_preserving_upd p x z | val compose_frame_preserving_updates
(#a: Type u#a)
(p: pcm a)
(x y z: a)
(f: frame_preserving_upd p x y)
(g: frame_preserving_upd p y z)
: frame_preserving_upd p x z | let compose_frame_preserving_updates (#a:Type u#a) (p:pcm a)
(x y z:a)
(f:frame_preserving_upd p x y)
(g:frame_preserving_upd p y z)
: frame_preserving_upd p x z
= fun v -> g (f v) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 207,
"start_col": 0,
"start_line": 202
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: FStar.PCM.pcm a ->
x: a ->
y: a ->
z: a ->
f: FStar.PCM.frame_preserving_upd p x y ->
g: FStar.PCM.frame_preserving_upd p y z
-> FStar.PCM.frame_preserving_upd p x z | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.PCM.frame_preserving_upd",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm__item__refine",
"FStar.PCM.compatible",
"Prims.l_Forall",
"FStar.PCM.composable",
"Prims.l_imp",
"Prims.eq2",
"FStar.PCM.op"
] | [] | false | false | false | false | false | let compose_frame_preserving_updates
(#a: Type u#a)
(p: pcm a)
(x y z: a)
(f: frame_preserving_upd p x y)
(g: frame_preserving_upd p y z)
: frame_preserving_upd p x z =
| fun v -> g (f v) | false |
FStar.PCM.fst | FStar.PCM.frame_preserving | val frame_preserving : pcm: FStar.PCM.pcm a -> x: a -> y: a -> Prims.logical | let frame_preserving (#a: Type u#a) (pcm:pcm a) (x y: a) =
(forall frame. composable pcm frame x ==> composable pcm frame y) /\
(forall frame.{:pattern (composable pcm frame x)} composable pcm frame x ==> op pcm frame y == y) | {
"file_name": "ulib/FStar.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 101,
"end_line": 173,
"start_col": 0,
"start_line": 171
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"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 | pcm: FStar.PCM.pcm a -> x: a -> y: a -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Prims.l_and",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.PCM.composable",
"Prims.eq2",
"FStar.PCM.op",
"Prims.logical"
] | [] | false | false | false | true | true | let frame_preserving (#a: Type u#a) (pcm: pcm a) (x y: a) =
| (forall frame. composable pcm frame x ==> composable pcm frame y) /\
(forall frame. {:pattern (composable pcm frame x)} composable pcm frame x ==> op pcm frame y == y) | false | |
LowParse.Low.ErrorCode.fst | LowParse.Low.ErrorCode.max_uint32 | val max_uint32:U32.t | val max_uint32:U32.t | let max_uint32 : U32.t = 4294967295ul | {
"file_name": "src/lowparse/LowParse.Low.ErrorCode.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 37,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | module LowParse.Low.ErrorCode
(*
Error codes for validators
TODO: replace with type classes
inline_for_extraction
let default_validator_cls : validator_cls = {
validator_max_length = 4294967279ul;
}
*)
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module Cast = FStar.Int.Cast | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int.Cast.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"sour... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt32.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.__uint_to_t"
] | [] | false | false | false | true | false | let max_uint32:U32.t =
| 4294967295ul | false |
LowParse.Low.ErrorCode.fst | LowParse.Low.ErrorCode._max_uint32_as_uint64 | val _max_uint32_as_uint64:U64.t | val _max_uint32_as_uint64:U64.t | let _max_uint32_as_uint64 : U64.t = 4294967295uL | {
"file_name": "src/lowparse/LowParse.Low.ErrorCode.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 48,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | module LowParse.Low.ErrorCode
(*
Error codes for validators
TODO: replace with type classes
inline_for_extraction
let default_validator_cls : validator_cls = {
validator_max_length = 4294967279ul;
}
*)
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module Cast = FStar.Int.Cast
[@ CMacro ]
let max_uint32 :... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int.Cast.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"sour... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let _max_uint32_as_uint64:U64.t =
| 4294967295uL | false |
LowParse.Low.ErrorCode.fst | LowParse.Low.ErrorCode.pos_t | val pos_t : Type0 | let pos_t = (pos: U64.t {is_success pos}) | {
"file_name": "src/lowparse/LowParse.Low.ErrorCode.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 41,
"end_line": 50,
"start_col": 0,
"start_line": 50
} | module LowParse.Low.ErrorCode
(*
Error codes for validators
TODO: replace with type classes
inline_for_extraction
let default_validator_cls : validator_cls = {
validator_max_length = 4294967279ul;
}
*)
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module Cast = FStar.Int.Cast
[@ CMacro ]
let max_uint32 :... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int.Cast.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"sour... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t",
"Prims.b2t",
"LowParse.Low.ErrorCode.is_success"
] | [] | false | false | false | true | true | let pos_t =
| (pos: U64.t{is_success pos}) | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.