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.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_AESNI_enc
val eval_AESNI_enc (src1 src2: quad32) : option quad32
val eval_AESNI_enc (src1 src2: quad32) : option quad32
let eval_AESNI_enc (src1 src2:quad32) : option quad32 = if aesni_enabled then Some (quad32_xor (Vale.AES.AES_s.mix_columns_LE (Vale.AES.AES_s.sub_bytes (Vale.AES.AES_s.shift_rows_LE src1))) src2) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 315, "start_col": 0, "start_line": 312 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.aesni_enabled", "FStar.Pervasives.Native.Some", "Vale.Def.Types_s.quad32_xor", "Vale.AES.AES_s.mix_columns_LE", "Vale.AES.AES_common_s.sub_bytes", "Vale.AES.AES_s.shift_rows_LE", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.N...
[]
false
false
false
true
false
let eval_AESNI_enc (src1 src2: quad32) : option quad32 =
if aesni_enabled then Some (quad32_xor (Vale.AES.AES_s.mix_columns_LE (Vale.AES.AES_s.sub_bytes (Vale.AES.AES_s.shift_rows_LE src1))) src2) else None
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_wpProof_Gcm_blocks128
val va_wpProof_Gcm_blocks128 : alg:algorithm -> in_b:buffer128 -> out_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> hkeys_b:buffer128 -> h_LE:quad32 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_w...
val va_wpProof_Gcm_blocks128 : alg:algorithm -> in_b:buffer128 -> out_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> hkeys_b:buffer128 -> h_LE:quad32 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_w...
let va_wpProof_Gcm_blocks128 alg in_b out_b key round_keys keys_b hkeys_b h_LE va_s0 va_k = let (va_sM, va_f0) = va_lemma_Gcm_blocks128 (va_code_Gcm_blocks128 alg) va_s0 alg in_b out_b key round_keys keys_b hkeys_b h_LE in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_flags va_sM (va_update_...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 481, "start_col": 0, "start_line": 465 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
alg: Vale.AES.AES_common_s.algorithm -> in_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 -> hkeys_b: Vale.X64.Memory.buffer128 -> ...
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_Gcm_blocks128 alg in_b out_b key round_keys keys_b hkeys_b h_LE va_s0 va_k =
let va_sM, va_f0 = va_lemma_Gcm_blocks128 (va_code_Gcm_blocks128 alg) va_s0 alg in_b out_b key round_keys keys_b hkeys_b h_LE in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_flags va_sM (va_update_mem_heaplet 1 va_sM (va_update_xmm 10 ...
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_VAESNI_enc
val eval_VAESNI_enc (src1 src2: quad32) : option quad32
val eval_VAESNI_enc (src1 src2: quad32) : option quad32
let eval_VAESNI_enc (src1 src2:quad32) : option quad32 = check_avx (eval_AESNI_enc src1 src2)
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 318, "start_col": 0, "start_line": 318 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.Instructions_s.check_avx", "Vale.X64.Instructions_s.eval_AESNI_enc", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_VAESNI_enc (src1 src2: quad32) : option quad32 =
check_avx (eval_AESNI_enc src1 src2)
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Psrldq_8_raw
val eval_Psrldq_8_raw (count: nat8) (src: quad32) : option quad32
val eval_Psrldq_8_raw (count: nat8) (src: quad32) : option quad32
let eval_Psrldq_8_raw (count:nat8) (src:quad32) : option quad32 = // We only spec the one very special case we need if count = 8 then Some (Mkfour src.hi2 src.hi3 0 0) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 286, "start_col": 0, "start_line": 283 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
count: Vale.Def.Types_s.nat8 -> src: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.nat8", "Vale.X64.Machine_s.quad32", "Prims.op_Equality", "Prims.int", "FStar.Pervasives.Native.Some", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Prims.bool", "FStar.Pervasives...
[]
false
false
false
true
false
let eval_Psrldq_8_raw (count: nat8) (src: quad32) : option quad32 =
if count = 8 then Some (Mkfour src.hi2 src.hi3 0 0) else None
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Comment
val eval_Comment:option unit
val eval_Comment:option unit
let eval_Comment : option unit = Some ()
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 373, "start_col": 0, "start_line": 373 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
FStar.Pervasives.Native.option Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Some", "Prims.unit" ]
[]
false
false
false
true
false
let eval_Comment:option unit =
Some ()
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Pclmulqdq
val eval_Pclmulqdq (imm: int) (src1 src2: quad32) : option quad32
val eval_Pclmulqdq (imm: int) (src1 src2: quad32) : option quad32
let eval_Pclmulqdq (imm:int) (src1 src2:quad32) : option quad32 = let Mkfour a0 a1 a2 a3 = src1 in let Mkfour b0 b1 b2 b3 = src2 in let f x0 x1 y0 y1 = let x = Vale.Math.Poly2.Bits_s.of_double32 (Mktwo x0 x1) in let y = Vale.Math.Poly2.Bits_s.of_double32 (Mktwo y0 y1) in Vale.Math.Poly2.Bits_s.to_quad...
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 305, "start_col": 0, "start_line": 290 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
imm: Prims.int -> src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.X64.Machine_s.quad32", "Vale.Def.Types_s.nat32", "Vale.X64.CPU_Features_s.pclmulqdq_enabled", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option", "Prims.bool", "Vale.Def.Words_s.nat32", "Vale.Def.Types_s.quad32", "Vale.Math.Poly2.B...
[]
false
false
false
true
false
let eval_Pclmulqdq (imm: int) (src1 src2: quad32) : option quad32 =
let Mkfour a0 a1 a2 a3 = src1 in let Mkfour b0 b1 b2 b3 = src2 in let f x0 x1 y0 y1 = let x = Vale.Math.Poly2.Bits_s.of_double32 (Mktwo x0 x1) in let y = Vale.Math.Poly2.Bits_s.of_double32 (Mktwo y0 y1) in Vale.Math.Poly2.Bits_s.to_quad32 (Vale.Math.Poly2_s.mul x y) in if pclmulqdq_enabled then match imm with ...
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_AESNI_imc
val eval_AESNI_imc (src: quad32) : option quad32
val eval_AESNI_imc (src: quad32) : option quad32
let eval_AESNI_imc (src:quad32) : option quad32 = if aesni_enabled then Some (Vale.AES.AES_s.inv_mix_columns_LE src) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 343, "start_col": 0, "start_line": 342 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.aesni_enabled", "FStar.Pervasives.Native.Some", "Vale.AES.AES_s.inv_mix_columns_LE", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_AESNI_imc (src: quad32) : option quad32 =
if aesni_enabled then Some (Vale.AES.AES_s.inv_mix_columns_LE src) else None
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Prefetchnta
val eval_Prefetchnta: nat64 -> option unit
val eval_Prefetchnta: nat64 -> option unit
let eval_Prefetchnta (_:nat64) : option unit = Some ()
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 385, "start_col": 0, "start_line": 385 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
_: Vale.X64.Machine_s.nat64 -> FStar.Pervasives.Native.option Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.nat64", "FStar.Pervasives.Native.Some", "Prims.unit", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_Prefetchnta (_: nat64) : option unit =
Some ()
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_SHA256_msg1
val eval_SHA256_msg1 (src1 src2: quad32) : option quad32
val eval_SHA256_msg1 (src1 src2: quad32) : option quad32
let eval_SHA256_msg1 (src1 src2:quad32) : option quad32 = if sha_enabled then Some (sha256_msg1_spec src1 src2) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 363, "start_col": 0, "start_line": 362 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.sha_enabled", "FStar.Pervasives.Native.Some", "Vale.X64.CryptoInstructions_s.sha256_msg1_spec", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_SHA256_msg1 (src1 src2: quad32) : option quad32 =
if sha_enabled then Some (sha256_msg1_spec src1 src2) else None
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_AESNI_dec
val eval_AESNI_dec (dst src: quad32) : option quad32
val eval_AESNI_dec (dst src: quad32) : option quad32
let eval_AESNI_dec (dst src:quad32) : option quad32 = if aesni_enabled then Some (quad32_xor (Vale.AES.AES_s.inv_mix_columns_LE (Vale.AES.AES_s.inv_sub_bytes (Vale.AES.AES_s.inv_shift_rows_LE dst))) src) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 333, "start_col": 0, "start_line": 330 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Machine_s.quad32 -> src: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.aesni_enabled", "FStar.Pervasives.Native.Some", "Vale.Def.Types_s.quad32_xor", "Vale.AES.AES_s.inv_mix_columns_LE", "Vale.AES.AES_common_s.inv_sub_bytes", "Vale.AES.AES_s.inv_shift_rows_LE", "Prims.bool", "FStar.Pervasives.Native.None", "FStar....
[]
false
false
false
true
false
let eval_AESNI_dec (dst src: quad32) : option quad32 =
if aesni_enabled then Some (quad32_xor (Vale.AES.AES_s.inv_mix_columns_LE (Vale.AES.AES_s.inv_sub_bytes (Vale.AES.AES_s.inv_shift_rows_LE dst))) src) else None
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_LargeComment
val eval_LargeComment:option unit
val eval_LargeComment:option unit
let eval_LargeComment : option unit = Some ()
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 376, "start_col": 0, "start_line": 376 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
FStar.Pervasives.Native.option Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Some", "Prims.unit" ]
[]
false
false
false
true
false
let eval_LargeComment:option unit =
Some ()
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_SHA256_rnds2
val eval_SHA256_rnds2 (src1 src2 wk: quad32) : option quad32
val eval_SHA256_rnds2 (src1 src2 wk: quad32) : option quad32
let eval_SHA256_rnds2 (src1 src2 wk:quad32) : option quad32 = if sha_enabled then Some (sha256_rnds2_spec src1 src2 wk) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 69, "end_line": 358, "start_col": 0, "start_line": 357 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> wk: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.sha_enabled", "FStar.Pervasives.Native.Some", "Vale.X64.CryptoInstructions_s.sha256_rnds2_spec", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_SHA256_rnds2 (src1 src2 wk: quad32) : option quad32 =
if sha_enabled then Some (sha256_rnds2_spec src1 src2 wk) else None
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Ghost
val eval_Ghost:option unit
val eval_Ghost:option unit
let eval_Ghost : option unit = Some ()
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 370, "start_col": 0, "start_line": 370 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
FStar.Pervasives.Native.option Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Some", "Prims.unit" ]
[]
false
false
false
true
false
let eval_Ghost:option unit =
Some ()
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_VAESNI_enc_last
val eval_VAESNI_enc_last (src1 src2: quad32) : option quad32
val eval_VAESNI_enc_last (src1 src2: quad32) : option quad32
let eval_VAESNI_enc_last (src1 src2:quad32) : option quad32 = check_avx (eval_AESNI_enc_last src1 src2)
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 103, "end_line": 327, "start_col": 0, "start_line": 327 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.Instructions_s.check_avx", "Vale.X64.Instructions_s.eval_AESNI_enc_last", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_VAESNI_enc_last (src1 src2: quad32) : option quad32 =
check_avx (eval_AESNI_enc_last src1 src2)
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_VPsrldq
val eval_VPsrldq (count: nat8) (src: quad32) : option quad32
val eval_VPsrldq (count: nat8) (src: quad32) : option quad32
let eval_VPsrldq (count:nat8) (src:quad32) : option quad32 = check_avx (eval_Psrldq_8_raw count src)
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 100, "end_line": 287, "start_col": 0, "start_line": 287 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
count: Vale.Def.Types_s.nat8 -> src: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.nat8", "Vale.X64.Machine_s.quad32", "Vale.X64.Instructions_s.check_avx", "Vale.X64.Instructions_s.eval_Psrldq_8_raw", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_VPsrldq (count: nat8) (src: quad32) : option quad32 =
check_avx (eval_Psrldq_8_raw count src)
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_SHA256_msg2
val eval_SHA256_msg2 (src1 src2: quad32) : option quad32
val eval_SHA256_msg2 (src1 src2: quad32) : option quad32
let eval_SHA256_msg2 (src1 src2:quad32) : option quad32 = if sha_enabled then Some (sha256_msg2_spec src1 src2) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 367, "start_col": 0, "start_line": 366 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.sha_enabled", "FStar.Pervasives.Native.Some", "Vale.X64.CryptoInstructions_s.sha256_msg2_spec", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_SHA256_msg2 (src1 src2: quad32) : option quad32 =
if sha_enabled then Some (sha256_msg2_spec src1 src2) else None
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Newline
val eval_Newline:option unit
val eval_Newline:option unit
let eval_Newline : option unit = Some ()
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 379, "start_col": 0, "start_line": 379 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
FStar.Pervasives.Native.option Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Some", "Prims.unit" ]
[]
false
false
false
true
false
let eval_Newline:option unit =
Some ()
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_AESNI_enc_last
val eval_AESNI_enc_last (src1 src2: quad32) : option quad32
val eval_AESNI_enc_last (src1 src2: quad32) : option quad32
let eval_AESNI_enc_last (src1 src2:quad32) : option quad32 = if aesni_enabled then Some (quad32_xor (Vale.AES.AES_s.sub_bytes (Vale.AES.AES_s.shift_rows_LE src1)) src2) else None
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 324, "start_col": 0, "start_line": 321 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
src1: Vale.X64.Machine_s.quad32 -> src2: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.aesni_enabled", "FStar.Pervasives.Native.Some", "Vale.Def.Types_s.quad32_xor", "Vale.AES.AES_common_s.sub_bytes", "Vale.AES.AES_s.shift_rows_LE", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_AESNI_enc_last (src1 src2: quad32) : option quad32 =
if aesni_enabled then Some (quad32_xor (Vale.AES.AES_s.sub_bytes (Vale.AES.AES_s.shift_rows_LE src1)) src2) else None
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Space
val eval_Space:option unit
val eval_Space:option unit
let eval_Space : option unit = Some ()
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 382, "start_col": 0, "start_line": 382 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
FStar.Pervasives.Native.option Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Some", "Prims.unit" ]
[]
false
false
false
true
false
let eval_Space:option unit =
Some ()
false
Spec.Box.fst
Spec.Box.size_publickey
val size_publickey : Prims.int
let size_publickey = 32
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 13, "start_col": 0, "start_line": 13 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let size_publickey =
32
false
Spec.Box.fst
Spec.Box.size_secretkey
val size_secretkey : Prims.int
let size_secretkey = 32
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 14, "start_col": 0, "start_line": 14 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *)
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let size_secretkey =
32
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Psrldq
val eval_Psrldq (amt: int) (dst: quad32) : option quad32
val eval_Psrldq (amt: int) (dst: quad32) : option quad32
let eval_Psrldq (amt:int) (dst:quad32) : option quad32 = check_sse2 ( if 0 <= amt && amt < 16 then let src_bytes = le_quad32_to_bytes dst in let zero_pad = Seq.create amt 0 in let remaining_bytes = slice src_bytes amt (length src_bytes) in Some (le_bytes_to_quad32 (append zero_pad remaining_bytes)) ...
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 12, "end_line": 149, "start_col": 0, "start_line": 143 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
amt: Prims.int -> dst: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.X64.Machine_s.quad32", "Vale.X64.Instructions_s.check_sse2", "Prims.op_AmpAmp", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "FStar.Pervasives.Native.Some", "Vale.Def.Types_s.le_bytes_to_quad32", "FStar.Seq.Base.append", "Vale.Def.Types_s.nat8", "FStar.Seq.Base.seq", "Va...
[]
false
false
false
true
false
let eval_Psrldq (amt: int) (dst: quad32) : option quad32 =
check_sse2 (if 0 <= amt && amt < 16 then let src_bytes = le_quad32_to_bytes dst in let zero_pad = Seq.create amt 0 in let remaining_bytes = slice src_bytes amt (length src_bytes) in Some (le_bytes_to_quad32 (append zero_pad remaining_bytes)) else None)
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_quick_Gcm_blocks
val va_quick_Gcm_blocks (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) : (va_quickCode unit (va_code_Gcm_blocks alg offset))
val va_quick_Gcm_blocks (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) : (va_quickCode unit (va_code_Gcm_blocks alg offset))
let va_quick_Gcm_blocks (alg:algorithm) (offset:int) (auth_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (in128_b:buffer128) (out128_b:buffer128) (inout_b:buffer128) (iv_b:buffer128) (scratch_b:buffer128) (key:(seq nat32)) (round_keys:(seq quad32)) (keys_b:buffer128) (hkeys_b:buff...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 67, "end_line": 1352, "start_col": 0, "start_line": 1337 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> in128_b: Vale.X64.Memory.buffer128 -> out128_b: Vale.X64.Memory.buffe...
Prims.Tot
[ "total" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.AES.X64.GCMdecryptOpt.va_code_Gcm_blocks", "Prims.Cons", "Vale.X64.QuickCode.mod_t", "Vale.X64...
[]
false
false
false
false
false
let va_quick_Gcm_blocks (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) : (va_quickCode unit (va_code_Gcm_blocks alg offset)) =
(va_QProc (va_code_Gcm_blocks alg offset) ([ va_Mod_flags; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mod_xmm 15; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 11; va_Mod_xmm 10; va_Mod_xmm 9; va_Mod_xmm 8; va_Mo...
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Pinsrd
val eval_Pinsrd (index: nat8) (dst: quad32) (src: nat64) : option quad32
val eval_Pinsrd (index: nat8) (dst: quad32) (src: nat64) : option quad32
let eval_Pinsrd (index:nat8) (dst:quad32) (src:nat64) : option quad32 = check_sse4_1 (Some (insert_nat32 dst (src % pow2_32) (index % 4)))
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 68, "end_line": 268, "start_col": 0, "start_line": 267 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
index: Vale.Def.Types_s.nat8 -> dst: Vale.X64.Machine_s.quad32 -> src: Vale.X64.Machine_s.nat64 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.nat8", "Vale.X64.Machine_s.quad32", "Vale.X64.Machine_s.nat64", "Vale.X64.Instructions_s.check_sse4_1", "FStar.Pervasives.Native.Some", "Vale.Def.Types_s.insert_nat32", "Prims.op_Modulus", "Vale.X64.Machine_s.pow2_32", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_Pinsrd (index: nat8) (dst: quad32) (src: nat64) : option quad32 =
check_sse4_1 (Some (insert_nat32 dst (src % pow2_32) (index % 4)))
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Pcmpeqd
val eval_Pcmpeqd (dst src: quad32) : option quad32
val eval_Pcmpeqd (dst src: quad32) : option quad32
let eval_Pcmpeqd (dst src:quad32) : option quad32 = check_sse2 ( let eq_result (b:bool):nat32 = if b then 0xFFFFFFFF else 0 in Some (Mkfour (eq_result (src.lo0 = dst.lo0)) (eq_result (src.lo1 = dst.lo1)) (eq_result (src.hi2 = dst.hi2)) (eq_result (src.hi3 = dst.hi3))))
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 259, "start_col": 0, "start_line": 253 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dst: Vale.X64.Machine_s.quad32 -> src: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.quad32", "Vale.X64.Instructions_s.check_sse2", "FStar.Pervasives.Native.Some", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Prims.op_Equality", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__i...
[]
false
false
false
true
false
let eval_Pcmpeqd (dst src: quad32) : option quad32 =
check_sse2 (let eq_result (b: bool) : nat32 = if b then 0xFFFFFFFF else 0 in Some (Mkfour (eq_result (src.lo0 = dst.lo0)) (eq_result (src.lo1 = dst.lo1)) (eq_result (src.hi2 = dst.hi2)) (eq_result (src.hi3 = dst.hi3))))
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Pextrq
val eval_Pextrq (index: nat8) (src: quad32) : option nat64
val eval_Pextrq (index: nat8) (src: quad32) : option nat64
let eval_Pextrq (index:nat8) (src:quad32) : option nat64 = check_sse4_1 ( let src_two = four_to_two_two src in Some (two_to_nat 32 (two_select src_two (index % 2))))
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 264, "start_col": 0, "start_line": 262 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
index: Vale.Def.Types_s.nat8 -> src: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.nat64
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.nat8", "Vale.X64.Machine_s.quad32", "Vale.X64.Instructions_s.check_sse4_1", "Vale.X64.Machine_s.nat64", "FStar.Pervasives.Native.Some", "Vale.Def.Words.Two_s.two_to_nat", "Vale.Def.Words.Two_s.two_select", "Vale.Def.Words_s.two", "Vale.Def.Types_s.nat32", "Prims.op_Modulus", "V...
[]
false
false
false
true
false
let eval_Pextrq (index: nat8) (src: quad32) : option nat64 =
check_sse4_1 (let src_two = four_to_two_two src in Some (two_to_nat 32 (two_select src_two (index % 2))))
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_Pinsrq
val eval_Pinsrq (index: nat8) (dst: quad32) (src: nat64) : option quad32
val eval_Pinsrq (index: nat8) (dst: quad32) (src: nat64) : option quad32
let eval_Pinsrq (index:nat8) (dst:quad32) (src:nat64) : option quad32 = check_sse4_1 (Some (insert_nat64_def dst src (index % 2)))
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 272, "start_col": 0, "start_line": 271 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
index: Vale.Def.Types_s.nat8 -> dst: Vale.X64.Machine_s.quad32 -> src: Vale.X64.Machine_s.nat64 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.nat8", "Vale.X64.Machine_s.quad32", "Vale.X64.Machine_s.nat64", "Vale.X64.Instructions_s.check_sse4_1", "FStar.Pervasives.Native.Some", "Vale.Def.Types_s.insert_nat64_def", "Prims.op_Modulus", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let eval_Pinsrq (index: nat8) (dst: quad32) (src: nat64) : option quad32 =
check_sse4_1 (Some (insert_nat64_def dst src (index % 2)))
false
Hacl.Impl.RSAPSS.fst
Hacl.Impl.RSAPSS.rsapss_verify_
val rsapss_verify_: #t:limb_t -> ke:BE.exp t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:modBits_t t -> rsapss_verify_st1 t ke a modBits
val rsapss_verify_: #t:limb_t -> ke:BE.exp t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:modBits_t t -> rsapss_verify_st1 t ke a modBits
let rsapss_verify_ #t ke a modBits eBits pkey saltLen sgnt msgLen msg = push_frame (); [@inline_let] let bits : size_pos = bits t in let nLen = blocks modBits (size bits) in let m = create nLen (uint #t 0) in let b = rsapss_verify_compute_msg ke modBits eBits pkey sgnt m in let res = if b then rsapss_verify...
{ "file_name": "code/rsapss/Hacl.Impl.RSAPSS.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 467, "start_col": 0, "start_line": 459 }
module Hacl.Impl.RSAPSS open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module Hash = Spec.Agile.Hash module SB = Hacl.Spec.Bignum module BB = Hacl.Spec.Bignum.Base module SD = Hacl.Spec.Bignum.Definitions ...
{ "checked_file": "/", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.RSAPSS.fst.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Impl.RSAPSS.Keys", "short_module": "RK" }, { "abbrev": true, "full_module": "Hacl.Impl.RSAPSS.MGF", "short_module": "RM" }, { "abbrev": true, "full_module": "Hacl.Impl.RSAPSS.Padding", "short_module": "RP" }, { "abbrev": true...
{ "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
ke: Hacl.Bignum.Exponentiation.exp t -> a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Hacl.Impl.RSAPSS.modBits_t t -> Hacl.Impl.RSAPSS.rsapss_verify_st1 t ke a modBits
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Exponentiation.exp", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Hacl.Impl.RSAPSS.modBits_t", "Lib.IntTypes.size_t", "Hacl.Spec.RSAPSS.pkey_len_pre", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "H...
[]
false
false
false
false
false
let rsapss_verify_ #t ke a modBits eBits pkey saltLen sgnt msgLen msg =
push_frame (); [@@ inline_let ]let bits:size_pos = bits t in let nLen = blocks modBits (size bits) in let m = create nLen (uint #t 0) in let b = rsapss_verify_compute_msg ke modBits eBits pkey sgnt m in let res = if b then rsapss_verify_bn_to_msg a modBits saltLen msgLen msg m else false in pop_frame (); res
false
Vale.X64.Instructions_s.fsti
Vale.X64.Instructions_s.eval_AESNI_keygen_assist
val eval_AESNI_keygen_assist (imm: nat8) (src: quad32) : option quad32
val eval_AESNI_keygen_assist (imm: nat8) (src: quad32) : option quad32
let eval_AESNI_keygen_assist (imm:nat8) (src:quad32) : option quad32 = if aesni_enabled then Some (Mkfour (Vale.AES.AES_s.sub_word src.lo1) (ixor (Vale.AES.AES_s.rot_word_LE (Vale.AES.AES_s.sub_word src.lo1)) imm) (Vale.AES.AES_s.sub_word src.hi3) (ixor (Vale.AES.AES_s.rot_word_LE (Vale.AE...
{ "file_name": "vale/specs/hardware/Vale.X64.Instructions_s.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 353, "start_col": 0, "start_line": 346 }
module Vale.X64.Instructions_s open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.X64.Machine_s open Vale.X64.Instruction_s open Vale.X64.CPU_Features_s open Vale.X64.CryptoInstructions_s open FStar.Seq.Base let eval_Mov64 (src:nat64) : option nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.CryptoInstructions_s.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Math.Poly2.Bits_s.fsti.checked", "Vale.Def.Words_...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CryptoInstructions_s", "short_module": null }, { "abbrev": false, "fu...
{ "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
imm: Vale.Def.Types_s.nat8 -> src: Vale.X64.Machine_s.quad32 -> FStar.Pervasives.Native.option Vale.X64.Machine_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.nat8", "Vale.X64.Machine_s.quad32", "Vale.X64.CPU_Features_s.aesni_enabled", "FStar.Pervasives.Native.Some", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.AES.AES_common_s.sub_word", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Types_s.ixor", "Vale.Def.Wor...
[]
false
false
false
true
false
let eval_AESNI_keygen_assist (imm: nat8) (src: quad32) : option quad32 =
if aesni_enabled then Some (Mkfour (Vale.AES.AES_s.sub_word src.lo1) (ixor (Vale.AES.AES_s.rot_word_LE (Vale.AES.AES_s.sub_word src.lo1)) imm) (Vale.AES.AES_s.sub_word src.hi3) (ixor (Vale.AES.AES_s.rot_word_LE (Vale.AES.AES_s.sub_word src.hi3)) imm)) else None
false
Steel.GhostMonotonicHigherReference.fsti
Steel.GhostMonotonicHigherReference.property
val property : a: Type -> Type
let property (a:Type) = a -> prop
{ "file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 61, "start_col": 0, "start_line": 60 }
(* 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": [ "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked"...
[ { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.prop" ]
[]
false
false
false
true
true
let property (a: Type) =
a -> prop
false
Steel.GhostMonotonicHigherReference.fsti
Steel.GhostMonotonicHigherReference.stable_property
val stable_property : p: FStar.Preorder.preorder a -> Type
let stable_property (#a:Type) (p:Preorder.preorder a) = fact:property a { Preorder.stable fact p }
{ "file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 71, "start_col": 0, "start_line": 70 }
(* 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": [ "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked"...
[ { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: FStar.Preorder.preorder a -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Steel.GhostMonotonicHigherReference.property", "FStar.Preorder.stable" ]
[]
false
false
false
true
true
let stable_property (#a: Type) (p: Preorder.preorder a) =
fact: property a {Preorder.stable fact p}
false
Steel.GhostMonotonicHigherReference.fsti
Steel.GhostMonotonicHigherReference.pts_to
val pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: a) : vprop
val pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: a) : vprop
let pts_to (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:a) : vprop = to_vprop (pts_to_sl r f v)
{ "file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 44, "start_col": 7, "start_line": 43 }
(* 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": [ "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked"...
[ { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.GhostMonotonicHigherReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Steel.GhostMonotonicHigherReference.ref", "Steel.FractionalPermission.perm", "Steel.Effect.Common.to_vprop", "Steel.GhostMonotonicHigherReference.pts_to_sl", "Steel.Effect.Common.vprop" ]
[]
false
false
false
false
false
let pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: a) : vprop =
to_vprop (pts_to_sl r f v)
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.deref_data
val deref_data (#a: _) (h: HS.mem) (c: B.pointer (cell a)) : GTot a
val deref_data (#a: _) (h: HS.mem) (c: B.pointer (cell a)) : GTot a
let deref_data #a (h: HS.mem) (c: B.pointer (cell a)): GTot a = (B.deref h c).data
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 20, "end_line": 273, "start_col": 0, "start_line": 272 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> c: LowStar.Buffer.pointer (LowStar.Lib.LinkedList.cell a) -> Prims.GTot a
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Buffer.pointer", "LowStar.Lib.LinkedList.cell", "LowStar.Lib.LinkedList.__proj__Mkcell__item__data", "LowStar.Monotonic.Buffer.deref", "LowStar.Buffer.trivial_preorder" ]
[]
false
false
false
false
false
let deref_data #a (h: HS.mem) (c: B.pointer (cell a)) : GTot a =
(B.deref h c).data
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_quick_Gcm_blocks_wrapped
val va_quick_Gcm_blocks_wrapped (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) (exp...
val va_quick_Gcm_blocks_wrapped (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) (exp...
let va_quick_Gcm_blocks_wrapped (alg:algorithm) (offset:int) (auth_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (in128_b:buffer128) (out128_b:buffer128) (inout_b:buffer128) (iv_b:buffer128) (iv:supported_iv_LE) (scratch_b:buffer128) (key:(seq nat32)) (round_keys:(seq quad32)) (ke...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 1909, "start_col": 0, "start_line": 1892 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> in128_b: Vale.X64.Memory.buffer128 -> out128_b: Vale.X64.Memory.buffe...
Prims.Tot
[ "total" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.Memory.nat8", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.AES.X64.GCMdecryptOpt.va_code_Gcm_bloc...
[]
false
false
false
false
false
let va_quick_Gcm_blocks_wrapped (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) (exp...
(va_QProc (va_code_Gcm_blocks_wrapped alg offset) ([ va_Mod_flags; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mod_xmm 15; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 11; va_Mod_xmm 10; va_Mod_xmm 9; va_Mod_xmm ...
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_lemma_Gcm_extra_bytes
val va_lemma_Gcm_extra_bytes : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> inout_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> hkeys_b:buffer128 -> total_bytes:nat -> old_hash:quad32 -> completed_quads:(seq quad32) -> h_LE:quad32 -> Ghost (va_state & va_fuel) (requir...
val va_lemma_Gcm_extra_bytes : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> inout_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> hkeys_b:buffer128 -> total_bytes:nat -> old_hash:quad32 -> completed_quads:(seq quad32) -> h_LE:quad32 -> Ghost (va_state & va_fuel) (requir...
let va_lemma_Gcm_extra_bytes va_b0 va_s0 alg inout_b key round_keys keys_b hkeys_b total_bytes old_hash completed_quads h_LE = let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_mem_heaplet 5; va_Mod_xmm 10; va_Mod_xmm 8; 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_xm...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 192, "start_col": 0, "start_line": 156 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> alg: Vale.AES.AES_common_s.algorithm -> inout_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 -> ...
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", "Prims.nat", "Vale.X64.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.X64.Decl...
[]
false
false
false
false
false
let va_lemma_Gcm_extra_bytes va_b0 va_s0 alg inout_b key round_keys keys_b hkeys_b total_bytes old_hash completed_quads h_LE =
let va_mods:va_mods_t = [ va_Mod_flags; va_Mod_mem_heaplet 5; va_Mod_xmm 10; va_Mod_xmm 8; 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 1; va_Mod_xmm 0; va_Mod_reg64 rR11; va_Mod_reg64 rRcx; va_Mod_ok; va_Mod_mem ] in let va_qc = va_qcode_Gcm_extra_byt...
false
Spec.Box.fst
Spec.Box.ecdh
val ecdh (pk: publickey) (sk: secretkey) : option secretkey
val ecdh (pk: publickey) (sk: secretkey) : option secretkey
let ecdh (pk:publickey) (sk:secretkey) : option secretkey = let shared = Spec.Curve25519.scalarmult sk pk in if not (lbytes_eq shared (create 32 (u8 0))) then Some shared else None
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 24, "start_col": 0, "start_line": 20 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "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
pk: Spec.Box.publickey -> sk: Spec.Box.secretkey -> FStar.Pervasives.Native.option Spec.Box.secretkey
Prims.Tot
[ "total" ]
[]
[ "Spec.Box.publickey", "Spec.Box.secretkey", "Prims.op_Negation", "Lib.ByteSequence.lbytes_eq", "Lib.Sequence.create", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.IntTypes.u8", "FStar.Pervasives.Native.Some", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasiv...
[]
false
false
false
true
false
let ecdh (pk: publickey) (sk: secretkey) : option secretkey =
let shared = Spec.Curve25519.scalarmult sk pk in if not (lbytes_eq shared (create 32 (u8 0))) then Some shared else None
false
Spec.Box.fst
Spec.Box.box_beforenm
val box_beforenm (pk: publickey) (sk: secretkey) : option key
val box_beforenm (pk: publickey) (sk: secretkey) : option key
let box_beforenm (pk:publickey) (sk:secretkey) : option key = let shared = ecdh pk sk in match shared with | Some shared -> Some (Spec.Salsa20.hsalsa20 shared (create 16 (u8 0))) | None -> None
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 31, "start_col": 0, "start_line": 27 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "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
pk: Spec.Box.publickey -> sk: Spec.Box.secretkey -> FStar.Pervasives.Native.option Spec.SecretBox.key
Prims.Tot
[ "total" ]
[]
[ "Spec.Box.publickey", "Spec.Box.secretkey", "FStar.Pervasives.Native.Some", "Spec.SecretBox.key", "Spec.Salsa20.hsalsa20", "Lib.Sequence.create", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.IntTypes.u8", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option", ...
[]
false
false
false
true
false
let box_beforenm (pk: publickey) (sk: secretkey) : option key =
let shared = ecdh pk sk in match shared with | Some shared -> Some (Spec.Salsa20.hsalsa20 shared (create 16 (u8 0))) | None -> None
false
Spec.Box.fst
Spec.Box.box_open_detached
val box_open_detached (pk: publickey) (sk: secretkey) (n: nonce) (t: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c})
val box_open_detached (pk: publickey) (sk: secretkey) (n: nonce) (t: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c})
let box_open_detached (pk:publickey) (sk:secretkey) (n:nonce) (t:tag) (c:bytes{length c / size_block <= max_size_t}) : option (m:bytes{length m = length c}) = let k = box_beforenm pk sk in match k with | Some k -> box_open_detached_afternm k n t c | None -> None
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 53, "start_col": 0, "start_line": 49 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "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
pk: Spec.Box.publickey -> sk: Spec.Box.secretkey -> n: Spec.SecretBox.nonce -> t: Spec.SecretBox.tag -> c: Lib.ByteSequence.bytes {Lib.Sequence.length c / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> FStar.Pervasives.Native.option (m: Lib.ByteSequence.bytes{Lib.S...
Prims.Tot
[ "total" ]
[]
[ "Spec.Box.publickey", "Spec.Box.secretkey", "Spec.SecretBox.nonce", "Spec.SecretBox.tag", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", ...
[]
false
false
false
false
false
let box_open_detached (pk: publickey) (sk: secretkey) (n: nonce) (t: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c}) =
let k = box_beforenm pk sk in match k with | Some k -> box_open_detached_afternm k n t c | None -> None
false
Spec.Box.fst
Spec.Box.box_detached
val box_detached (sk: secretkey) (pk: publickey) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : option (tag & c: bytes{length c = length m})
val box_detached (sk: secretkey) (pk: publickey) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : option (tag & c: bytes{length c = length m})
let box_detached (sk:secretkey) (pk:publickey) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : option (tag & c:bytes{length c = length m}) = let k = box_beforenm pk sk in match k with | Some k -> Some (box_detached_afternm k n m) | None -> None
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 42, "start_col": 0, "start_line": 38 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "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
sk: Spec.Box.secretkey -> pk: Spec.Box.publickey -> n: Spec.SecretBox.nonce -> m: Lib.ByteSequence.bytes {Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> FStar.Pervasives.Native.option (Spec.SecretBox.tag * c: Lib.ByteSequence.bytes{Lib.S...
Prims.Tot
[ "total" ]
[]
[ "Spec.Box.secretkey", "Spec.Box.publickey", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size...
[]
false
false
false
false
false
let box_detached (sk: secretkey) (pk: publickey) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : option (tag & c: bytes{length c = length m}) =
let k = box_beforenm pk sk in match k with | Some k -> Some (box_detached_afternm k n m) | None -> None
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.cells
val cells (#a: _) (h: HS.mem) (c: t a) (l: list a) : Ghost (list (B.pointer (cell a))) (requires well_formed h c l) (ensures fun _ -> True) (decreases l)
val cells (#a: _) (h: HS.mem) (c: t a) (l: list a) : Ghost (list (B.pointer (cell a))) (requires well_formed h c l) (ensures fun _ -> True) (decreases l)
let rec cells #a (h: HS.mem) (c: t a) (l: list a): Ghost (list (B.pointer (cell a))) (requires well_formed h c l) (ensures fun _ -> True) (decreases l) = if B.g_is_null c then [] else c :: cells h (B.deref h c).next (List.Tot.tl l)
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 51, "end_line": 93, "start_col": 0, "start_line": 85 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> c: LowStar.Lib.LinkedList.t a -> l: Prims.list a -> Prims.Ghost (Prims.list (LowStar.Buffer.pointer (LowStar.Lib.LinkedList.cell a)))
Prims.Ghost
[ "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.Nil", "LowStar.Buffer.pointer", "Prims.bool", "Prims.Cons", "LowStar.Lib.LinkedList.cells", "LowStar.Lib.Li...
[ "recursion" ]
false
false
false
false
false
let rec cells #a (h: HS.mem) (c: t a) (l: list a) : Ghost (list (B.pointer (cell a))) (requires well_formed h c l) (ensures fun _ -> True) (decreases l) =
if B.g_is_null c then [] else c :: cells h (B.deref h c).next (List.Tot.tl l)
false
Steel.GhostPCMReference.fst
Steel.GhostPCMReference.gather
val gather (#o:inames) (#a:Type) (#p:FStar.PCM.pcm a) (r:ref a p) (v0:a) (v1:a) : SteelGhostT (_:unit{composable p v0 v1}) o (pts_to r v0 `star` pts_to r v1) (fun _ -> pts_to r (op p v0 v1))
val gather (#o:inames) (#a:Type) (#p:FStar.PCM.pcm a) (r:ref a p) (v0:a) (v1:a) : SteelGhostT (_:unit{composable p v0 v1}) o (pts_to r v0 `star` pts_to r v1) (fun _ -> pts_to r (op p v0 v1))
let gather (#o:inames) (#a:Type) (#p:FStar.PCM.pcm a) (r:ref a p) (v0:a) (v1:a) : SteelGhostT (_:unit{composable p v0 v1}) o (pts_to r v0 `star` pts_to r v1) (fun _ -> pts_to r (op p v0 v1)) = P.gather r v0 v1
{ "file_name": "lib/steel/Steel.GhostPCMReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 111, "start_col": 0, "start_line": 102 }
(* 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": [ "Steel.Preorder.fst.checked", "Steel.PCMReference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "...
[ { "abbrev": true, "full_module": "Steel.PCMReference", "short_module": "P" }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.GhostPCMReference.ref a p -> v0: a -> v1: a -> Steel.Effect.Atomic.SteelGhostT (_: Prims.unit{FStar.PCM.composable p v0 v1})
Steel.Effect.Atomic.SteelGhostT
[]
[]
[ "Steel.Memory.inames", "FStar.PCM.pcm", "Steel.GhostPCMReference.ref", "Steel.PCMReference.gather", "FStar.Ghost.reveal", "Steel.Memory.ref", "FStar.Ghost.hide", "Prims.unit", "FStar.PCM.composable", "Steel.Effect.Common.star", "Steel.GhostPCMReference.pts_to", "FStar.PCM.op", "Steel.Effect....
[]
false
true
false
false
false
let gather (#o: inames) (#a: Type) (#p: FStar.PCM.pcm a) (r: ref a p) (v0 v1: a) : SteelGhostT (_: unit{composable p v0 v1}) o ((pts_to r v0) `star` (pts_to r v1)) (fun _ -> pts_to r (op p v0 v1)) =
P.gather r v0 v1
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.footprint
val footprint: (#a: Type) -> (h: HS.mem) -> (l: t a) -> (n: list a) -> Ghost B.loc (requires (well_formed h l n)) (ensures (fun refs -> True)) (decreases n)
val footprint: (#a: Type) -> (h: HS.mem) -> (l: t a) -> (n: list a) -> Ghost B.loc (requires (well_formed h l n)) (ensures (fun refs -> True)) (decreases n)
let rec footprint #a h l n = if B.g_is_null l then B.loc_none else let {next = next} = B.get h l 0 in let refs = footprint h next (G.hide (L.tl n)) in B.loc_union (B.loc_addr_of_buffer l) refs
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 45, "end_line": 141, "start_col": 0, "start_line": 135 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> l: LowStar.Lib.LinkedList.t a -> n: Prims.list a -> Prims.Ghost LowStar.Monotonic.Buffer.loc
Prims.Ghost
[ "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.loc_none", "Prims.bool", "LowStar.Buffer.pointer_or_null", "LowStar.Monotonic.Buffer.loc_uni...
[ "recursion" ]
false
false
false
false
false
let rec footprint #a h l n =
if B.g_is_null l then B.loc_none else let { next = next } = B.get h l 0 in let refs = footprint h next (G.hide (L.tl n)) in B.loc_union (B.loc_addr_of_buffer l) refs
false
Spec.Box.fst
Spec.Box.box_detached_afternm
val box_detached_afternm (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : tag & c: bytes{length c = length m}
val box_detached_afternm (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : tag & c: bytes{length c = length m}
let box_detached_afternm (k:key) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : tag & c:bytes{length c = length m} = secretbox_detached k n m
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 35, "start_col": 0, "start_line": 34 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> m: Lib.ByteSequence.bytes {Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> Spec.SecretBox.tag * c: Lib.ByteSequence.bytes{Lib.Sequence.length c = Lib.Sequence.length m}
Prims.Tot
[ "total" ]
[]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size_t", "Spec.SecretBox.s...
[]
false
false
false
false
false
let box_detached_afternm (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : tag & c: bytes{length c = length m} =
secretbox_detached k n m
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.well_formed
val well_formed (#a: _) (h: HS.mem) (c: t a) (l: list a) : GTot Type0 (decreases l)
val well_formed (#a: _) (h: HS.mem) (c: t a) (l: list a) : GTot Type0 (decreases l)
let rec well_formed #a (h: HS.mem) (c: t a) (l: list a): GTot Type0 (decreases l) = B.live h c /\ ( match l with | [] -> B.g_is_null c | a :: q -> B.length c == 1 /\ ( let { data=data; next=next } = B.get h c 0 in a == data /\ well_formed h next (G.hide q) ))
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 4, "end_line": 71, "start_col": 0, "start_line": 61 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> c: LowStar.Lib.LinkedList.t a -> l: Prims.list a -> Prims.GTot Type0
Prims.GTot
[ "sometrivial", "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.b2t", "LowStar.Monotonic.Buffer.g_is_null", "Prims.eq2", "Prims.int", "LowStar.Monotonic.Buffer.l...
[ "recursion" ]
false
false
false
false
true
let rec well_formed #a (h: HS.mem) (c: t a) (l: list a) : GTot Type0 (decreases l) =
B.live h c /\ (match l with | [] -> B.g_is_null c | a :: q -> B.length c == 1 /\ (let { data = data ; next = next } = B.get h c 0 in a == data /\ well_formed h next (G.hide q)))
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.cells_pairwise_disjoint
val cells_pairwise_disjoint: #a:Type -> h:HS.mem -> l:t a -> n:list a -> Ghost Type0 (requires well_formed h l n) (ensures fun _ -> True) (decreases n)
val cells_pairwise_disjoint: #a:Type -> h:HS.mem -> l:t a -> n:list a -> Ghost Type0 (requires well_formed h l n) (ensures fun _ -> True) (decreases n)
let rec cells_pairwise_disjoint #_ h l n = if B.g_is_null l then True else let next = (B.deref h l).next in B.loc_disjoint (B.loc_addr_of_buffer l) (footprint h next (L.tl n)) /\ cells_pairwise_disjoint h next (L.tl n)
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 43, "end_line": 157, "start_col": 0, "start_line": 151 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> l: LowStar.Lib.LinkedList.t a -> n: Prims.list a -> Prims.Ghost Type0
Prims.Ghost
[ "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.l_True", "Prims.bool", "Prims.l_and", "LowStar.Monotonic.Buffer.loc_disjoint", "LowStar.Monotonic.Buffer.loc_...
[ "recursion" ]
false
false
false
false
true
let rec cells_pairwise_disjoint #_ h l n =
if B.g_is_null l then True else let next = (B.deref h l).next in B.loc_disjoint (B.loc_addr_of_buffer l) (footprint h next (L.tl n)) /\ cells_pairwise_disjoint h next (L.tl n)
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.invariant
val invariant: #a:Type -> h:HS.mem -> l: t a -> n:list a -> Ghost Type0 (requires well_formed h l n) (ensures fun _ -> True) (decreases n)
val invariant: #a:Type -> h:HS.mem -> l: t a -> n:list a -> Ghost Type0 (requires well_formed h l n) (ensures fun _ -> True) (decreases n)
let invariant #a h l n = cells_live_freeable h l n /\ cells_pairwise_disjoint h l n
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 60, "end_line": 177, "start_col": 0, "start_line": 176 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> l: LowStar.Lib.LinkedList.t a -> n: Prims.list a -> Prims.Ghost Type0
Prims.Ghost
[ "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "Prims.l_and", "LowStar.Lib.LinkedList.cells_live_freeable", "LowStar.Lib.LinkedList.cells_pairwise_disjoint" ]
[]
false
false
false
false
true
let invariant #a h l n =
cells_live_freeable h l n /\ cells_pairwise_disjoint h l n
false
Spec.Box.fst
Spec.Box.box_open_detached_afternm
val box_open_detached_afternm (k: key) (n: nonce) (t: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c})
val box_open_detached_afternm (k: key) (n: nonce) (t: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c})
let box_open_detached_afternm (k:key) (n:nonce) (t:tag) (c:bytes{length c / size_block <= max_size_t}) : option (m:bytes{length m = length c}) = secretbox_open_detached k n t c
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 46, "start_col": 0, "start_line": 45 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> t: Spec.SecretBox.tag -> c: Lib.ByteSequence.bytes {Lib.Sequence.length c / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> FStar.Pervasives.Native.option (m: Lib.ByteSequence.bytes{Lib.Sequence.length m = Lib.Sequence...
Prims.Tot
[ "total" ]
[]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Spec.SecretBox.tag", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size...
[]
false
false
false
false
false
let box_open_detached_afternm (k: key) (n: nonce) (t: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c}) =
secretbox_open_detached k n t c
false
Spec.Box.fst
Spec.Box.box_easy_afternm
val box_easy_afternm (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : c: bytes{length c = size_tag + length m}
val box_easy_afternm (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : c: bytes{length c = size_tag + length m}
let box_easy_afternm (k:key) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : c:bytes{length c = size_tag + length m} = let (tg, c) = box_detached_afternm k n m in Seq.append tg c
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 58, "start_col": 0, "start_line": 56 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> m: Lib.ByteSequence.bytes {Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> c: Lib.ByteSequence.bytes{Lib.Sequence.length c = Spec.SecretBox.size_tag + Lib.Sequence.length m}
Prims.Tot
[ "total" ]
[]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size_t", "Spec.SecretBox.t...
[]
false
false
false
false
false
let box_easy_afternm (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : c: bytes{length c = size_tag + length m} =
let tg, c = box_detached_afternm k n m in Seq.append tg c
false
Spec.Box.fst
Spec.Box.box_open_easy_afternm
val box_open_easy_afternm (k: key) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag})
val box_open_easy_afternm (k: key) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag})
let box_open_easy_afternm (k:key) (n:nonce) (c:bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m:bytes{length m = length c - size_tag}) = let tg = Seq.slice c 0 size_tag in let e = Seq.slice c size_tag (length c) in box_open_detached_afternm k n tg e
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 71, "start_col": 0, "start_line": 68 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> c: Lib.ByteSequence.bytes { Lib.Sequence.length c >= Spec.SecretBox.size_tag /\ (Lib.Sequence.length c - Spec.SecretBox.size_tag) / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t } -> FStar.Pervasives.Native.optio...
Prims.Tot
[ "total" ]
[]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_tag", "Prims.op_LessThanOrEqual", "Prims.op_Division", ...
[]
false
false
false
false
false
let box_open_easy_afternm (k: key) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag}) =
let tg = Seq.slice c 0 size_tag in let e = Seq.slice c size_tag (length c) in box_open_detached_afternm k n tg e
false
Spec.Box.fst
Spec.Box.box_easy
val box_easy (sk: secretkey) (pk: publickey) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : option (c: bytes{length c = size_tag + length m})
val box_easy (sk: secretkey) (pk: publickey) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : option (c: bytes{length c = size_tag + length m})
let box_easy (sk:secretkey) (pk:publickey) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : option (c:bytes{length c = size_tag + length m}) = let r = box_detached sk pk n m in match r with | Some (tg, c) -> Some (Seq.append tg c) | None -> None
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 65, "start_col": 0, "start_line": 61 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "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
sk: Spec.Box.secretkey -> pk: Spec.Box.publickey -> n: Spec.SecretBox.nonce -> m: Lib.ByteSequence.bytes {Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> FStar.Pervasives.Native.option (c: Lib.ByteSequence.bytes {Lib.Sequence.length c =...
Prims.Tot
[ "total" ]
[]
[ "Spec.Box.secretkey", "Spec.Box.publickey", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size...
[]
false
false
false
false
false
let box_easy (sk: secretkey) (pk: publickey) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : option (c: bytes{length c = size_tag + length m}) =
let r = box_detached sk pk n m in match r with | Some (tg, c) -> Some (Seq.append tg c) | None -> None
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_lemma_Gcm_blocks128
val va_lemma_Gcm_blocks128 : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> in_b:buffer128 -> out_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> hkeys_b:buffer128 -> h_LE:quad32 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Gcm_blocks128 alg) va_...
val va_lemma_Gcm_blocks128 : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> in_b:buffer128 -> out_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer128 -> hkeys_b:buffer128 -> h_LE:quad32 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Gcm_blocks128 alg) va_...
let va_lemma_Gcm_blocks128 va_b0 va_s0 alg in_b out_b key round_keys keys_b hkeys_b h_LE = let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_mem_heaplet 1; va_Mod_xmm 10; va_Mod_xmm 11; va_Mod_xmm 8; 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 1; va_Mod_xmm 0; ...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 403, "start_col": 0, "start_line": 366 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> alg: Vale.AES.AES_common_s.algorithm -> in_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...
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_Gcm_blocks128 va_b0 va_s0 alg in_b out_b key round_keys keys_b hkeys_b h_LE =
let va_mods:va_mods_t = [ va_Mod_flags; va_Mod_mem_heaplet 1; va_Mod_xmm 10; va_Mod_xmm 11; va_Mod_xmm 8; 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 1; va_Mod_xmm 0; va_Mod_reg64 rR12; va_Mod_reg64 rRdx; va_Mod_reg64 rR10; va_Mod_reg64 rR11; va_Mod_reg64...
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.same_cells_same_pointer
val same_cells_same_pointer (#a: _) (h0 h1: HS.mem) (ll0 ll1: t a) (l0 l1: list a) : Lemma (requires (well_formed h0 ll0 l0 /\ well_formed h1 ll1 l1 /\ cells h0 ll0 l0 == cells h1 ll1 l1)) (ensures (ll0 == ll1)) [SMTPat (cells h0 ll0 l0); SMTPat (cells h1 ll1 l1)]
val same_cells_same_pointer (#a: _) (h0 h1: HS.mem) (ll0 ll1: t a) (l0 l1: list a) : Lemma (requires (well_formed h0 ll0 l0 /\ well_formed h1 ll1 l1 /\ cells h0 ll0 l0 == cells h1 ll1 l1)) (ensures (ll0 == ll1)) [SMTPat (cells h0 ll0 l0); SMTPat (cells h1 ll1 l1)]
let same_cells_same_pointer #a (h0 h1: HS.mem) (ll0 ll1: t a) (l0 l1: list a): Lemma (requires ( well_formed h0 ll0 l0 /\ well_formed h1 ll1 l1 /\ cells h0 ll0 l0 == cells h1 ll1 l1)) (ensures ( ll0 == ll1)) [ SMTPat (cells h0 ll0 l0); SMTPat (cells h1 ll1 l1) ] = if B.g_is_null ll0 && B.g_is_nu...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 17, "end_line": 120, "start_col": 0, "start_line": 105 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> ll0: LowStar.Lib.LinkedList.t a -> ll1: LowStar.Lib.LinkedList.t a -> l0: Prims.list a -> l1: Prims.list a -> FStar.Pervasives.Lemma (requires LowStar.Lib.LinkedList.well_formed h0 ll0 l0 /\ LowStar.Lib....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "Prims.op_AmpAmp", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.null_unique", "Prims.unit", "Prims.bool", "Prims.op_Negation", "FStar...
[]
false
false
true
false
false
let same_cells_same_pointer #a (h0: HS.mem) (h1: HS.mem) (ll0: t a) (ll1: t a) (l0: list a) (l1: list a) : Lemma (requires (well_formed h0 ll0 l0 /\ well_formed h1 ll1 l1 /\ cells h0 ll0 l0 == cells h1 ll1 l1)) (ensures (ll0 == ll1)) [SMTPat (cells...
if B.g_is_null ll0 && B.g_is_null ll1 then (B.null_unique ll0; B.null_unique ll1) else if not (B.g_is_null ll0) && not (B.g_is_null ll1) then () else false_elim ()
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.gfold_right
val gfold_right (#a #b: _) (f: (b -> a -> GTot b)) (xs: list a) (acc: b) : Ghost b (requires True) (ensures fun _ -> True) (decreases xs)
val gfold_right (#a #b: _) (f: (b -> a -> GTot b)) (xs: list a) (acc: b) : Ghost b (requires True) (ensures fun _ -> True) (decreases xs)
let rec gfold_right #a #b (f: b -> a -> GTot b) (xs: list a) (acc: b): Ghost b (requires True) (ensures fun _ -> True) (decreases xs) = match xs with | [] -> acc | x :: xs -> f (gfold_right f xs acc) x
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 41, "end_line": 264, "start_col": 0, "start_line": 257 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: b -> _: a -> Prims.GTot b) -> xs: Prims.list a -> acc: b -> Prims.Ghost b
Prims.Ghost
[ "" ]
[]
[ "Prims.list", "LowStar.Lib.LinkedList.gfold_right", "Prims.l_True" ]
[ "recursion" ]
false
false
false
false
false
let rec gfold_right #a #b (f: (b -> a -> GTot b)) (xs: list a) (acc: b) : Ghost b (requires True) (ensures fun _ -> True) (decreases xs) =
match xs with | [] -> acc | x :: xs -> f (gfold_right f xs acc) x
false
Spec.Box.fst
Spec.Box.box_open_easy
val box_open_easy (pk: secretkey) (sk: publickey) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag})
val box_open_easy (pk: secretkey) (sk: publickey) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag})
let box_open_easy (pk:secretkey) (sk:publickey) (n:nonce) (c:bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m:bytes{length m = length c - size_tag}) = let tg = Seq.slice c 0 size_tag in let e = Seq.slice c size_tag (length c) in box_open_detached pk sk n tg e
{ "file_name": "specs/Spec.Box.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 77, "start_col": 0, "start_line": 74 }
module Spec.Box open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_publickey = 32 (* in bytes *) let size_secretkey = 32 (* in bytes *) type publickey = lbytes size_publickey type secretkey = ...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "Spec.Salsa20.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervas...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "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
pk: Spec.Box.secretkey -> sk: Spec.Box.publickey -> n: Spec.SecretBox.nonce -> c: Lib.ByteSequence.bytes { Lib.Sequence.length c >= Spec.SecretBox.size_tag /\ (Lib.Sequence.length c - Spec.SecretBox.size_tag) / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t } -...
Prims.Tot
[ "total" ]
[]
[ "Spec.Box.secretkey", "Spec.Box.publickey", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_tag", "Prims.op_LessThanOrEqual",...
[]
false
false
false
false
false
let box_open_easy (pk: secretkey) (sk: publickey) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag}) =
let tg = Seq.slice c 0 size_tag in let e = Seq.slice c size_tag (length c) in box_open_detached pk sk n tg e
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.footprint_via_cells_is_footprint
val footprint_via_cells_is_footprint (#a: _) (h: HS.mem) (ll: t a) (l: list a) : Lemma (requires well_formed h ll l) (ensures footprint h ll l == (gfold_right B.loc_union (gmap B.loc_addr_of_buffer (cells h ll l)) B.loc_none)) (decreases l)
val footprint_via_cells_is_footprint (#a: _) (h: HS.mem) (ll: t a) (l: list a) : Lemma (requires well_formed h ll l) (ensures footprint h ll l == (gfold_right B.loc_union (gmap B.loc_addr_of_buffer (cells h ll l)) B.loc_none)) (decreases l)
let rec footprint_via_cells_is_footprint #a (h: HS.mem) (ll: t a) (l: list a): Lemma (requires well_formed h ll l) (ensures footprint h ll l == (gfold_right B.loc_union (gmap B.loc_addr_of_buffer (cells h ll l)) B.loc_none)) (decreases l) = if B.g_is_null ll then () else footprint_via_cells_is_foo...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 74, "end_line": 313, "start_col": 0, "start_line": 304 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "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
h: FStar.Monotonic.HyperStack.mem -> ll: LowStar.Lib.LinkedList.t a -> l: Prims.list a -> FStar.Pervasives.Lemma (requires LowStar.Lib.LinkedList.well_formed h ll l) (ensures LowStar.Lib.LinkedList.footprint h ll l == LowStar.Lib.LinkedList.gfold_right LowStar.Monotonic.Buffer.loc_union ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.bool", "LowStar.Lib.LinkedList.footprint_via_cells_is_footprint", "LowStar.Lib.LinkedList.__proj__Mkcell__item__n...
[ "recursion" ]
false
false
true
false
false
let rec footprint_via_cells_is_footprint #a (h: HS.mem) (ll: t a) (l: list a) : Lemma (requires well_formed h ll l) (ensures footprint h ll l == (gfold_right B.loc_union (gmap B.loc_addr_of_buffer (cells h ll l)) B.loc_none)) (decreases l) =
if B.g_is_null ll then () else footprint_via_cells_is_footprint h (B.deref h ll).next (List.Tot.tl l)
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.cells_live_freeable
val cells_live_freeable: #a:Type -> h:HS.mem -> l:t a -> n:list a -> Ghost Type0 (requires well_formed h l n) (ensures fun _ -> True) (decreases n)
val cells_live_freeable: #a:Type -> h:HS.mem -> l:t a -> n:list a -> Ghost Type0 (requires well_formed h l n) (ensures fun _ -> True) (decreases n)
let rec cells_live_freeable #_ h l n = if B.g_is_null l then True else let next = (B.deref h l).next in B.live h l /\ B.freeable l /\ cells_live_freeable h next (L.tl n)
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 39, "end_line": 170, "start_col": 0, "start_line": 164 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> l: LowStar.Lib.LinkedList.t a -> n: Prims.list a -> Prims.Ghost Type0
Prims.Ghost
[ "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.l_True", "Prims.bool", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.freeable", ...
[ "recursion" ]
false
false
false
false
true
let rec cells_live_freeable #_ h l n =
if B.g_is_null l then True else let next = (B.deref h l).next in B.live h l /\ B.freeable l /\ cells_live_freeable h next (L.tl n)
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.length
val length (#a: Type) (gn: G.erased (list a)) (l: t a): Stack UInt32.t (requires (fun h -> well_formed h l gn)) (ensures (fun h0 n h1 -> h0 == h1 /\ U32.v n = L.length (G.reveal gn) ))
val length (#a: Type) (gn: G.erased (list a)) (l: t a): Stack UInt32.t (requires (fun h -> well_formed h l gn)) (ensures (fun h0 n h1 -> h0 == h1 /\ U32.v n = L.length (G.reveal gn) ))
let rec length #a gn l = if B.is_null l then 0ul else let open U32 in let c = !* l in let next = c.next in let n = length (G.hide (L.tail (G.reveal gn))) next in if n = 0xfffffffful then begin LowStar.Failure.failwith "Integer overflow in LowStar.LinkedList.length" end else n...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 14, "end_line": 471, "start_col": 0, "start_line": 460 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
gn: FStar.Ghost.erased (Prims.list a) -> l: LowStar.Lib.LinkedList.t a -> FStar.HyperStack.ST.Stack FStar.UInt32.t
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Ghost.erased", "Prims.list", "LowStar.Lib.LinkedList.t", "FStar.UInt32.__uint_to_t", "FStar.UInt32.t", "Prims.bool", "Prims.op_Equality", "LowStar.Failure.failwith", "FStar.UInt32.op_Plus_Hat", "LowStar.Lib.LinkedList.length", "FStar.Ghost.hide", "FStar.List.Tot.Base.tail", "FStar.Gho...
[ "recursion" ]
false
true
false
false
false
let rec length #a gn l =
if B.is_null l then 0ul else let open U32 in let c = !*l in let next = c.next in let n = length (G.hide (L.tail (G.reveal gn))) next in if n = 0xfffffffful then LowStar.Failure.failwith "Integer overflow in LowStar.LinkedList.length" else n +^ 1ul
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.gmap
val gmap (#a #b: _) (f: (a -> GTot b)) (xs: list a) : GTot (list b)
val gmap (#a #b: _) (f: (a -> GTot b)) (xs: list a) : GTot (list b)
let rec gmap #a #b (f: a -> GTot b) (xs: list a): GTot (list b) = match xs with | [] -> [] | x :: xs -> f x :: gmap f xs
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 31, "end_line": 253, "start_col": 0, "start_line": 250 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> Prims.GTot b) -> xs: Prims.list a -> Prims.GTot (Prims.list b)
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.list", "Prims.Nil", "Prims.Cons", "LowStar.Lib.LinkedList.gmap" ]
[ "recursion" ]
false
false
false
false
false
let rec gmap #a #b (f: (a -> GTot b)) (xs: list a) : GTot (list b) =
match xs with | [] -> [] | x :: xs -> f x :: gmap f xs
false
Hacl.Impl.RSAPSS.fst
Hacl.Impl.RSAPSS.rsapss_pkey_verify
val rsapss_pkey_verify: #t:limb_t -> ke:BE.exp t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:modBits_t t -> rsapss_load_pkey:RK.rsapss_load_pkey_st t ke modBits -> rsapss_verify:rsapss_verify_st t ke a modBits -> rsapss_pkey_verify_st t ke a modBits
val rsapss_pkey_verify: #t:limb_t -> ke:BE.exp t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:modBits_t t -> rsapss_load_pkey:RK.rsapss_load_pkey_st t ke modBits -> rsapss_verify:rsapss_verify_st t ke a modBits -> rsapss_pkey_verify_st t ke a modBits
let rsapss_pkey_verify #t ke a modBits rsapss_load_pkey rsapss_verify eBits nb eb saltLen sgntLen sgnt msgLen msg = push_frame (); [@inline_let] let bits = size (bits t) in let pkey = create (2ul *! blocks modBits bits +! blocks eBits bits) (uint #t 0) in let h0 = ST.get () in let b = rsapss_load_pkey eBits n...
{ "file_name": "code/rsapss/Hacl.Impl.RSAPSS.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 622, "start_col": 0, "start_line": 605 }
module Hacl.Impl.RSAPSS open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module Hash = Spec.Agile.Hash module SB = Hacl.Spec.Bignum module BB = Hacl.Spec.Bignum.Base module SD = Hacl.Spec.Bignum.Definitions ...
{ "checked_file": "/", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.RSAPSS.fst.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Impl.RSAPSS.Keys", "short_module": "RK" }, { "abbrev": true, "full_module": "Hacl.Impl.RSAPSS.MGF", "short_module": "RM" }, { "abbrev": true, "full_module": "Hacl.Impl.RSAPSS.Padding", "short_module": "RP" }, { "abbrev": true...
{ "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
ke: Hacl.Bignum.Exponentiation.exp t -> a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Hacl.Impl.RSAPSS.modBits_t t -> rsapss_load_pkey: Hacl.Impl.RSAPSS.Keys.rsapss_load_pkey_st t ke modBits -> rsapss_verify: Hacl.Impl.RSAPSS.rsapss_verify_st t ke a modBits -> Hac...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Exponentiation.exp", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Hacl.Impl.RSAPSS.modBits_t", "Hacl.Impl.RSAPSS.Keys.rsapss_load_pkey_st", "Hacl.Impl.RSAPSS.rsapss_verify_st", "Lib.IntTypes.size_t", "Hacl.Spec.RSAP...
[]
false
false
false
false
false
let rsapss_pkey_verify #t ke a modBits rsapss_load_pkey rsapss_verify eBits nb eb saltLen sgntLen sgnt msgLen msg =
push_frame (); [@@ inline_let ]let bits = size (bits t) in let pkey = create (2ul *! blocks modBits bits +! blocks eBits bits) (uint #t 0) in let h0 = ST.get () in let b = rsapss_load_pkey eBits nb eb pkey in LS.rsapss_load_pkey_lemma #t (v modBits) (v eBits) (as_seq h0 nb) (as_seq h0 eb); let res = if b then rsapss_ve...
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.length_functional
val length_functional (#a: _) (h: HS.mem) (c: t a) (l1 l2: list a) : Lemma (requires (well_formed h c l1 /\ well_formed h c l2)) (ensures (l1 == l2)) (decreases (G.reveal l1)) [SMTPat (well_formed h c l1); SMTPat (well_formed h c l2)]
val length_functional (#a: _) (h: HS.mem) (c: t a) (l1 l2: list a) : Lemma (requires (well_formed h c l1 /\ well_formed h c l2)) (ensures (l1 == l2)) (decreases (G.reveal l1)) [SMTPat (well_formed h c l1); SMTPat (well_formed h c l2)]
let rec length_functional #a (h: HS.mem) (c: t a) (l1 l2: list a): Lemma (requires (well_formed h c l1 /\ well_formed h c l2)) (ensures (l1 == l2)) (decreases (G.reveal l1)) [ SMTPat (well_formed h c l1); SMTPat (well_formed h c l2) ] = if B.g_is_null c then () else let { next=next } = B.get...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 66, "end_line": 237, "start_col": 0, "start_line": 227 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> c: LowStar.Lib.LinkedList.t a -> l1: Prims.list a -> l2: Prims.list a -> FStar.Pervasives.Lemma (requires LowStar.Lib.LinkedList.well_formed h c l1 /\ LowStar.Lib.LinkedList.well_formed h c l2) (ensures l1 == l2) (decreases FStar.Ghost.re...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.bool", "LowStar.Buffer.pointer_or_null", "LowStar.Lib.LinkedList.length_functional", "FStar.List.Tot.Base.tl", ...
[ "recursion" ]
false
false
true
false
false
let rec length_functional #a (h: HS.mem) (c: t a) (l1: list a) (l2: list a) : Lemma (requires (well_formed h c l1 /\ well_formed h c l2)) (ensures (l1 == l2)) (decreases (G.reveal l1)) [SMTPat (well_formed h c l1); SMTPat (well_formed h c l2)] =
if B.g_is_null c then () else let { next = next } = B.get h c 0 in length_functional h next (G.hide (L.tl l1)) (G.hide (L.tl l2))
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.invariant_loc_in_footprint
val invariant_loc_in_footprint (#a: Type) (h: HS.mem) (l: t a) (n: list a) : Lemma (requires well_formed h l n) (ensures B.loc_in (footprint h l n) h) (decreases n) [SMTPat (invariant h l n)]
val invariant_loc_in_footprint (#a: Type) (h: HS.mem) (l: t a) (n: list a) : Lemma (requires well_formed h l n) (ensures B.loc_in (footprint h l n) h) (decreases n) [SMTPat (invariant h l n)]
let rec invariant_loc_in_footprint (#a: Type) (h: HS.mem) (l: t a) (n: list a): Lemma (requires well_formed h l n) (ensures B.loc_in (footprint h l n) h) (decreases n) [ SMTPat (invariant h l n) ] = if B.g_is_null l then () else let next = (B.deref h l).next in invariant_loc_in_footprint h next ...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 46, "end_line": 194, "start_col": 0, "start_line": 184 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> l: LowStar.Lib.LinkedList.t a -> n: Prims.list a -> FStar.Pervasives.Lemma (requires LowStar.Lib.LinkedList.well_formed h l n) (ensures LowStar.Monotonic.Buffer.loc_in (LowStar.Lib.LinkedList.footprint h l n) h) (decreases n) [SMTPat (LowStar.Lib.LinkedList.invar...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.bool", "LowStar.Lib.LinkedList.invariant_loc_in_footprint", "FStar.List.Tot.Base.tl", "LowStar.Buffer.pointer_o...
[ "recursion" ]
false
false
true
false
false
let rec invariant_loc_in_footprint (#a: Type) (h: HS.mem) (l: t a) (n: list a) : Lemma (requires well_formed h l n) (ensures B.loc_in (footprint h l n) h) (decreases n) [SMTPat (invariant h l n)] =
if B.g_is_null l then () else let next = (B.deref h l).next in invariant_loc_in_footprint h next (L.tl n)
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.deref_cells_is_v
val deref_cells_is_v (#a: _) (h: HS.mem) (ll: t a) (l: list a) : Lemma (requires well_formed h ll l /\ invariant h ll l) (ensures gmap (deref_data h) (cells h ll l) == l) (decreases l) [SMTPat (well_formed h ll l)]
val deref_cells_is_v (#a: _) (h: HS.mem) (ll: t a) (l: list a) : Lemma (requires well_formed h ll l /\ invariant h ll l) (ensures gmap (deref_data h) (cells h ll l) == l) (decreases l) [SMTPat (well_formed h ll l)]
let rec deref_cells_is_v #a (h: HS.mem) (ll: t a) (l: list a): Lemma (requires well_formed h ll l /\ invariant h ll l) (ensures gmap (deref_data h) (cells h ll l) == l) (decreases l) [ SMTPat (well_formed h ll l) ] = if B.g_is_null ll then () else deref_cells_is_v h (B.deref h ll).next (...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 58, "end_line": 288, "start_col": 0, "start_line": 276 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> ll: LowStar.Lib.LinkedList.t a -> l: Prims.list a -> FStar.Pervasives.Lemma (requires LowStar.Lib.LinkedList.well_formed h ll l /\ LowStar.Lib.LinkedList.invariant h ll l ) (ensures LowStar.Lib.LinkedList.gmap (LowStar.Lib.LinkedList.deref_data h) ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.bool", "LowStar.Lib.LinkedList.deref_cells_is_v", "LowStar.Lib.LinkedList.__proj__Mkcell__item__next", "LowStar...
[ "recursion" ]
false
false
true
false
false
let rec deref_cells_is_v #a (h: HS.mem) (ll: t a) (l: list a) : Lemma (requires well_formed h ll l /\ invariant h ll l) (ensures gmap (deref_data h) (cells h ll l) == l) (decreases l) [SMTPat (well_formed h ll l)] =
if B.g_is_null ll then () else deref_cells_is_v h (B.deref h ll).next (List.Tot.tl l)
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.free_
val free_: (#a: Type) -> (#n: G.erased (list a)) -> (l: t a) -> ST unit (requires (fun h -> well_formed h l n /\ invariant h l n )) (ensures (fun h0 _ h1 -> B.(modifies (footprint h0 l n) h0 h1)))
val free_: (#a: Type) -> (#n: G.erased (list a)) -> (l: t a) -> ST unit (requires (fun h -> well_formed h l n /\ invariant h l n )) (ensures (fun h0 _ h1 -> B.(modifies (footprint h0 l n) h0 h1)))
let rec free_ #a #n l = if B.is_null l then () else begin let tl: G.erased (list a) = G.hide (L.tl (G.reveal n)) in free_ #_ #tl (!*l).next; B.free l end
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 5, "end_line": 430, "start_col": 0, "start_line": 423 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: LowStar.Lib.LinkedList.t a -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Ghost.erased", "Prims.list", "LowStar.Lib.LinkedList.t", "Prims.unit", "Prims.bool", "LowStar.Monotonic.Buffer.free", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "LowStar.Lib.LinkedList.free_", "LowStar.Lib.LinkedList.__proj__Mkcell__item__next", "LowStar.BufferOps.o...
[ "recursion" ]
false
true
false
false
false
let rec free_ #a #n l =
if B.is_null l then () else let tl:G.erased (list a) = G.hide (L.tl (G.reveal n)) in free_ #_ #tl (!*l).next; B.free l
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_wpProof_Gcm_blocks_wrapped
val va_wpProof_Gcm_blocks_wrapped : alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 -> iv:supported_iv_LE -> scratch_b:buffer128 -> key:(seq nat32) -> round_keys:(...
val va_wpProof_Gcm_blocks_wrapped : alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 -> iv:supported_iv_LE -> scratch_b:buffer128 -> key:(seq nat32) -> round_keys:(...
let va_wpProof_Gcm_blocks_wrapped alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b iv scratch_b key round_keys keys_b hkeys_b expected_tag va_s0 va_k = let (va_sM, va_f0) = va_lemma_Gcm_blocks_wrapped (va_code_Gcm_blocks_wrapped alg offset) va_s0 alg offset auth_b abytes_b in128x6_b...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1889, "start_col": 0, "start_line": 1861 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> in128_b: Vale.X64.Memory.buffer128 -> out128_b: Vale.X64.Memory.buffe...
Prims.Ghost
[]
[]
[ "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.Memory.nat8", "Vale.X64.Decls.va_state", "Prims.unit", "Vale.X64.Decls.va_fuel", "FStar.Pervasives.Na...
[]
false
false
false
false
false
let va_wpProof_Gcm_blocks_wrapped alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b iv scratch_b key round_keys keys_b hkeys_b expected_tag va_s0 va_k =
let va_sM, va_f0 = va_lemma_Gcm_blocks_wrapped (va_code_Gcm_blocks_wrapped alg offset) va_s0 alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b iv scratch_b key round_keys keys_b hkeys_b expected_tag in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_flags va_s...
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.frame
val frame (#a: Type) (l: t a) (n: list a) (r: B.loc) (h0 h1: HS.mem) : Lemma (requires (well_formed h0 l n /\ invariant h0 l n /\ B.loc_disjoint r (footprint h0 l n) /\ B.modifies r h0 h1)) (ensures (well_formed h1 l n /\ footprint h1 l n == footprint h0 l n /\ cells h1 l n == ...
val frame (#a: Type) (l: t a) (n: list a) (r: B.loc) (h0 h1: HS.mem) : Lemma (requires (well_formed h0 l n /\ invariant h0 l n /\ B.loc_disjoint r (footprint h0 l n) /\ B.modifies r h0 h1)) (ensures (well_formed h1 l n /\ footprint h1 l n == footprint h0 l n /\ cells h1 l n == ...
let rec frame (#a: Type) (l: t a) (n: list a) (r: B.loc) (h0 h1: HS.mem): Lemma (requires ( well_formed h0 l n /\ invariant h0 l n /\ B.loc_disjoint r (footprint h0 l n) /\ B.modifies r h0 h1 )) (ensures ( well_formed h1 l n /\ footprint h1 l n == footprint h0 l n /\ cells h1 l n == ce...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 46, "end_line": 218, "start_col": 0, "start_line": 199 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: LowStar.Lib.LinkedList.t a -> n: Prims.list a -> r: LowStar.Monotonic.Buffer.loc -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Lib.LinkedList.well_formed h0 l n /\ LowStar.Lib.LinkedList.invariant h0 l n /\...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "LowStar.Lib.LinkedList.t", "Prims.list", "LowStar.Monotonic.Buffer.loc", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "Prims.bool", "LowStar.Lib.LinkedList.frame", "LowStar.Lib.LinkedList.__proj__Mkcell__...
[ "recursion" ]
false
false
true
false
false
let rec frame (#a: Type) (l: t a) (n: list a) (r: B.loc) (h0 h1: HS.mem) : Lemma (requires (well_formed h0 l n /\ invariant h0 l n /\ B.loc_disjoint r (footprint h0 l n) /\ B.modifies r h0 h1)) (ensures (well_formed h1 l n /\ footprint h1 l n == footprint h0 l n /\ cells h1 l n...
if B.g_is_null l then () else frame (B.deref h0 l).next (L.tl n) r h0 h1
false
LowParse.SLow.FLData.fst
LowParse.SLow.FLData.size32_fldata_strong
val size32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (size32 (serialize_fldata_strong s sz))
val size32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (size32 (serialize_fldata_strong s sz))
let size32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (size32 (serialize_fldata_strong s sz)) = size32_constant (serialize_fldata_strong s sz) sz32 ()
{ "file_name": "src/lowparse/LowParse.SLow.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 73, "start_col": 0, "start_line": 65 }
module LowParse.SLow.FLData include LowParse.Spec.FLData include LowParse.SLow.Combinators module B32 = LowParse.Bytes32 module U32 = FStar.UInt32 inline_for_extraction let parse32_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (p...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.SLow.Combinators", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.SLow.Base.size32 (LowParse.Spec.FLData.serialize_fldata_strong s sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "LowParse.SLow.Base.size...
[]
false
false
false
false
false
let size32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (size32 (serialize_fldata_strong s sz)) =
size32_constant (serialize_fldata_strong s sz) sz32 ()
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.push
val push: (#a: Type) -> (r: HS.rid) -> (n: G.erased (list a)) -> (pl: B.pointer (t a)) -> (x: a) -> ST unit (requires (fun h -> let l = B.deref h pl in B.live h pl /\ well_formed h l n /\ invariant h l n /\ ST.is_eternal_region r /\ B.(loc_includes (loc_region_only true r) (foo...
val push: (#a: Type) -> (r: HS.rid) -> (n: G.erased (list a)) -> (pl: B.pointer (t a)) -> (x: a) -> ST unit (requires (fun h -> let l = B.deref h pl in B.live h pl /\ well_formed h l n /\ invariant h l n /\ ST.is_eternal_region r /\ B.(loc_includes (loc_region_only true r) (foo...
let push #a r n pl x = (**) let h0 = ST.get () in let l = !* pl in let c = { data = x; next = l } in let pc: B.pointer (cell a) = B.malloc r c 1ul in (**) let h1 = ST.get () in (**) B.(modifies_only_not_unused_in loc_none h0 h1); (**) assert B.(loc_disjoint (loc_buffer pc) (footprint h0 l n)); pl *= p...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 4, "end_line": 371, "start_col": 0, "start_line": 353 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> n: FStar.Ghost.erased (Prims.list a) -> pl: LowStar.Buffer.pointer (LowStar.Lib.LinkedList.t a) -> x: a -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperHeap.rid", "FStar.Ghost.erased", "Prims.list", "LowStar.Buffer.pointer", "LowStar.Lib.LinkedList.t", "Prims.unit", "Prims._assert", "Prims.eq2", "LowStar.Buffer.pointer_or_null", "LowStar.Lib.LinkedList.cell", "LowStar.Lib.LinkedList.__proj__Mkcell__item__next", "LowStar....
[]
false
true
false
false
false
let push #a r n pl x =
let h0 = ST.get () in let l = !*pl in let c = { data = x; next = l } in let pc:B.pointer (cell a) = B.malloc r c 1ul in let h1 = ST.get () in (let open B in modifies_only_not_unused_in loc_none h0 h1); assert B.(loc_disjoint (loc_buffer pc) (footprint h0 l n)); pl *= pc; let h2 = ST.get () in let n' = G.hide (x :: G.re...
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.test
val test: unit -> ST (Int32.t) (fun _ -> true) (fun _ _ _ -> true)
val test: unit -> ST (Int32.t) (fun _ -> true) (fun _ _ _ -> true)
let test () = let l: B.pointer_or_null (t Int32.t) = B.malloc HS.root B.null 1ul in let l_region = new_region HS.root in push #Int32.t l_region (G.hide []) l 1l; push #Int32.t l_region (G.hide [1l]) l 0l; let r = pop #Int32.t l_region (G.hide [0l; 1l]) l in TestLib.checku32 (length (G.hide [1l]) !*l) 1ul; ...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 3, "end_line": 485, "start_col": 0, "start_line": 478 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.HyperStack.ST.ST FStar.Int32.t
FStar.HyperStack.ST.ST
[]
[]
[ "Prims.unit", "FStar.Int32.t", "TestLib.checku32", "FStar.UInt32.__uint_to_t", "FStar.UInt32.t", "LowStar.Lib.LinkedList.length", "FStar.Ghost.hide", "Prims.list", "Prims.Cons", "FStar.Int32.__int_to_t", "Prims.Nil", "LowStar.Lib.LinkedList.t", "LowStar.BufferOps.op_Bang_Star", "LowStar.Bu...
[]
false
true
false
false
false
let test () =
let l:B.pointer_or_null (t Int32.t) = B.malloc HS.root B.null 1ul in let l_region = new_region HS.root in push #Int32.t l_region (G.hide []) l 1l; push #Int32.t l_region (G.hide [1l]) l 0l; let r = pop #Int32.t l_region (G.hide [0l; 1l]) l in TestLib.checku32 (length (G.hide [1l]) !*l) 1ul; r
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.free
val free: (#a: Type) -> (#n: G.erased (list a)) -> (pl: B.pointer (t a)) -> ST unit (requires (fun h -> let l = B.deref h pl in B.live h pl /\ well_formed h l n /\ invariant h l n /\ B.loc_disjoint (B.loc_buffer pl) (footprint h l n) )) (ensures (fun h0 _ h1 -> let l = ...
val free: (#a: Type) -> (#n: G.erased (list a)) -> (pl: B.pointer (t a)) -> ST unit (requires (fun h -> let l = B.deref h pl in B.live h pl /\ well_formed h l n /\ invariant h l n /\ B.loc_disjoint (B.loc_buffer pl) (footprint h l n) )) (ensures (fun h0 _ h1 -> let l = ...
let free #a #n pl = free_ #_ #n !*pl; pl *= B.null
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 14, "end_line": 451, "start_col": 0, "start_line": 449 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pl: LowStar.Buffer.pointer (LowStar.Lib.LinkedList.t a) -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Ghost.erased", "Prims.list", "LowStar.Buffer.pointer", "LowStar.Lib.LinkedList.t", "LowStar.BufferOps.op_Star_Equals", "LowStar.Buffer.trivial_preorder", "LowStar.Buffer.null", "LowStar.Lib.LinkedList.cell", "Prims.unit", "LowStar.Lib.LinkedList.free_", "LowStar.BufferOps.op_Bang_Star" ]
[]
false
true
false
false
false
let free #a #n pl =
free_ #_ #n !*pl; pl *= B.null
false
LowParse.SLow.FLData.fst
LowParse.SLow.FLData.parse32_fldata_strong
val parse32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (p32: parser32 p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (parser32 (parse_fldata_strong s sz))
val parse32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (p32: parser32 p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (parser32 (parse_fldata_strong s sz))
let parse32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (p32: parser32 p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (parser32 (parse_fldata_strong s sz)) = (fun (input: bytes32) -> (( match parse32_fldata p32 sz sz32 input with | Some (v, consumed) -> ...
{ "file_name": "src/lowparse/LowParse.SLow.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 118, "end_line": 51, "start_col": 0, "start_line": 32 }
module LowParse.SLow.FLData include LowParse.Spec.FLData include LowParse.SLow.Combinators module B32 = LowParse.Bytes32 module U32 = FStar.UInt32 inline_for_extraction let parse32_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (p...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.SLow.Combinators", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> p32: LowParse.SLow.Base.parser32 p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.SLow.Base.parser32 (LowParse.Spec.FLData.parse_fldata_strong s sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.parser32", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt...
[]
false
false
false
false
false
let parse32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (p32: parser32 p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (parser32 (parse_fldata_strong s sz)) =
(fun (input: bytes32) -> ((match parse32_fldata p32 sz sz32 input with | Some (v, consumed) -> assert (parse_fldata_strong_correct s sz (B32.reveal input) (U32.v consumed) v; Seq.length (s v) == sz); Some ((v <: parse_fldata_strong_t s sz), consumed) | None -> None)...
false
LowParse.SLow.FLData.fst
LowParse.SLow.FLData.serialize32_fldata_strong
val serialize32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: partial_serializer32 s) (sz: nat{sz < 4294967296}) : Tot (serializer32 (serialize_fldata_strong s sz))
val serialize32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: partial_serializer32 s) (sz: nat{sz < 4294967296}) : Tot (serializer32 (serialize_fldata_strong s sz))
let serialize32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: partial_serializer32 s) (sz: nat { sz < 4294967296 } ) : Tot (serializer32 (serialize_fldata_strong s sz)) = (fun (input: parse_fldata_strong_t s sz) -> s32 input)
{ "file_name": "src/lowparse/LowParse.SLow.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 62, "start_col": 0, "start_line": 54 }
module LowParse.SLow.FLData include LowParse.Spec.FLData include LowParse.SLow.Combinators module B32 = LowParse.Bytes32 module U32 = FStar.UInt32 inline_for_extraction let parse32_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (p...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.SLow.Combinators", "short_module": null }, { "abbrev": false, "f...
{ "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
s32: LowParse.SLow.Base.partial_serializer32 s -> sz: Prims.nat{sz < 4294967296} -> LowParse.SLow.Base.serializer32 (LowParse.Spec.FLData.serialize_fldata_strong s sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.partial_serializer32", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "LowParse.Spec.FLData.parse_fldata_strong_t", "LowParse.SLow.Base.bytes32", "LowParse.SLow.Base.serializer32_cor...
[]
false
false
false
false
false
let serialize32_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: partial_serializer32 s) (sz: nat{sz < 4294967296}) : Tot (serializer32 (serialize_fldata_strong s sz)) =
(fun (input: parse_fldata_strong_t s sz) -> s32 input)
false
LowStar.Lib.LinkedList.fst
LowStar.Lib.LinkedList.pop
val pop: (#a: Type) -> (r: HS.rid) -> (n: G.erased (list a)) -> (pl: B.pointer (t a)) -> ST a (requires (fun h -> let l = B.deref h pl in B.live h pl /\ well_formed h l n /\ invariant h l n /\ ST.is_eternal_region r /\ B.(loc_includes (loc_region_only true r) (footprint h l n))...
val pop: (#a: Type) -> (r: HS.rid) -> (n: G.erased (list a)) -> (pl: B.pointer (t a)) -> ST a (requires (fun h -> let l = B.deref h pl in B.live h pl /\ well_formed h l n /\ invariant h l n /\ ST.is_eternal_region r /\ B.(loc_includes (loc_region_only true r) (footprint h l n))...
let pop #a r n pl = let l = !* pl in let r = (!*l).data in let next = (!*l).next in (**) let h1 = ST.get () in (**) assert (cells h1 l n == l :: cells h1 next (List.Tot.tl n)); (**) assert B.(loc_disjoint (loc_buffer pl) (footprint h1 l n)); (**) assert B.(loc_disjoint (loc_buffer pl) (footprint h1 next (...
{ "file_name": "krmllib/LowStar.Lib.LinkedList.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 3, "end_line": 412, "start_col": 0, "start_line": 401 }
module LowStar.Lib.LinkedList /// This module, oftentimes referred to as LL1 in other parts of the /// documentation, provides a low-level view over a linked list. Unless you /// intend on modifying the structure of the linked list (e.g. removing cells) /// or iterating over each cell, your are probably better off usi...
{ "checked_file": "/", "dependencies": [ "TestLib.fsti.checked", "prims.fst.checked", "LowStar.Failure.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar....
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> n: FStar.Ghost.erased (Prims.list a) -> pl: LowStar.Buffer.pointer (LowStar.Lib.LinkedList.t a) -> FStar.HyperStack.ST.ST a
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperHeap.rid", "FStar.Ghost.erased", "Prims.list", "LowStar.Buffer.pointer", "LowStar.Lib.LinkedList.t", "Prims.unit", "LowStar.Monotonic.Buffer.free", "LowStar.Lib.LinkedList.cell", "LowStar.Buffer.trivial_preorder", "LowStar.BufferOps.op_Star_Equals", "Prims._assert", "LowS...
[]
false
true
false
false
false
let pop #a r n pl =
let l = !*pl in let r = (!*l).data in let next = (!*l).next in let h1 = ST.get () in assert (cells h1 l n == l :: cells h1 next (List.Tot.tl n)); assert B.(loc_disjoint (loc_buffer pl) (footprint h1 l n)); assert B.(loc_disjoint (loc_buffer pl) (footprint h1 next (List.Tot.tl n))); pl *= next; B.free l; r
false
LowParse.SLow.FLData.fst
LowParse.SLow.FLData.parse32_fldata
val parse32_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (parser32 (parse_fldata p sz))
val parse32_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (parser32 (parse_fldata p sz))
let parse32_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (parser32 (parse_fldata p sz)) = (fun (input: bytes32) -> (( if U32.lt (B32.len input) sz32 then None else match p32 (B32.b32slice input 0ul sz32) wi...
{ "file_name": "src/lowparse/LowParse.SLow.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 86, "end_line": 29, "start_col": 0, "start_line": 9 }
module LowParse.SLow.FLData include LowParse.Spec.FLData include LowParse.SLow.Combinators module B32 = LowParse.Bytes32 module U32 = FStar.UInt32
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.SLow.Combinators", "short_module": null }, { "abbrev": false, "f...
{ "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
p32: LowParse.SLow.Base.parser32 p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.SLow.Base.parser32 (LowParse.Spec.FLData.parse_fldata p sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "LowParse.SLow.Base.bytes3...
[]
false
false
false
false
false
let parse32_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (parser32 (parse_fldata p sz)) =
(fun (input: bytes32) -> ((if U32.lt (B32.len input) sz32 then None else match p32 (B32.b32slice input 0ul sz32) with | Some (v, consumed) -> if consumed = sz32 then Some (v, consumed) else None | None -> None) <: (res: option (t * U32.t) {parser32_correct (...
false
AlgHeap.fst
AlgHeap.handle_with
val handle_with (#a #b:_) (#labs0 #labs1 : ops) (f:tree a labs0) (v : a -> tree b labs1) (h: handler_ty labs0 b labs1) : tree b labs1
val handle_with (#a #b:_) (#labs0 #labs1 : ops) (f:tree a labs0) (v : a -> tree b labs1) (h: handler_ty labs0 b labs1) : tree b labs1
let handle_with f v h = fold_with f v h
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 144, "start_col": 0, "start_line": 144 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: AlgHeap.tree a labs0 -> v: (_: a -> AlgHeap.tree b labs1) -> h: AlgHeap.handler_ty labs0 b labs1 -> AlgHeap.tree b labs1
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.ops", "AlgHeap.tree", "AlgHeap.handler_ty", "AlgHeap.fold_with" ]
[]
false
false
false
false
false
let handle_with f v h =
fold_with f v h
false
AlgHeap.fst
AlgHeap.handler_ty_l
val handler_ty_l : o: AlgHeap.op -> b: Type -> labs: AlgHeap.ops -> Type
let handler_ty_l (o:op) (b:Type) (labs:ops) = op_inp o -> (op_out o -> tree b labs) -> tree b labs
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 54, "end_line": 132, "start_col": 0, "start_line": 131 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
o: AlgHeap.op -> b: Type -> labs: AlgHeap.ops -> Type
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.op", "AlgHeap.ops", "AlgHeap.op_inp", "AlgHeap.op_out", "AlgHeap.tree" ]
[]
false
false
false
true
true
let handler_ty_l (o: op) (b: Type) (labs: ops) =
op_inp o -> (op_out o -> tree b labs) -> tree b labs
false
Pulse.Checker.Base.fst
Pulse.Checker.Base.match_comp_res_with_post_hint
val match_comp_res_with_post_hint (#g:env) (#t:st_term) (#c:comp_st) (d:st_typing g t c) (post_hint:post_hint_opt g) : T.Tac (t':st_term & c':comp_st & st_typing g t' c')
val match_comp_res_with_post_hint (#g:env) (#t:st_term) (#c:comp_st) (d:st_typing g t c) (post_hint:post_hint_opt g) : T.Tac (t':st_term & c':comp_st & st_typing g t' c')
let match_comp_res_with_post_hint (#g:env) (#t:st_term) (#c:comp_st) (d:st_typing g t c) (post_hint:post_hint_opt g) : T.Tac (t':st_term & c':comp_st & st_typing g t' c') = match post_hint with | None -> (| t, c, d |) | Some { ret_ty } -> let cres = comp_res c in if eq_tm cres...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Base.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 51, "end_line": 616, "start_col": 0, "start_line": 584 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.Base.fsti.checked", "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.LN.fsti.checked", "Pulse.Typing.FV.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.ch...
[ { "abbrev": true, "full_module": "Pulse.Typing.LN", "short_module": "LN" }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Metatheory", "short_module": null }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Pulse.Typing.st_typing g t c -> post_hint: Pulse.Typing.post_hint_opt g -> FStar.Tactics.Effect.Tac (FStar.Pervasives.dtuple3 Pulse.Syntax.Base.st_term (fun _ -> Pulse.Syntax.Base.comp_st) (fun t' c' -> Pulse.Typing.st_typing g t' c'))
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.st_term", "Pulse.Syntax.Base.comp_st", "Pulse.Typing.st_typing", "Pulse.Typing.post_hint_opt", "FStar.Pervasives.Mkdtuple3", "FStar.Pervasives.dtuple3", "Pulse.Syntax.Base.effect_annot", "Pulse.Typing.effect_annot_typing", "Pulse.Syntax.Base.term", "Pul...
[]
false
true
false
false
false
let match_comp_res_with_post_hint (#g: env) (#t: st_term) (#c: comp_st) (d: st_typing g t c) (post_hint: post_hint_opt g) : T.Tac (t': st_term & c': comp_st & st_typing g t' c') =
match post_hint with | None -> (| t, c, d |) | Some { ret_ty = ret_ty } -> let cres = comp_res c in if eq_tm cres ret_ty then (| t, c, d |) else match Pulse.Checker.Pure.check_equiv g cres ret_ty with | None -> fail g (Some t.range) (Printf.sprintf "Could not prove equiv for comput...
false
AlgHeap.fst
AlgHeap.abides_sublist
val abides_sublist (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)]
val abides_sublist (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)]
let abides_sublist #a (l1 l2 : ops) (c : tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)] = abides_sublist_nopat l1 l2 c
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 99, "start_col": 0, "start_line": 95 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
l1: AlgHeap.ops -> l2: AlgHeap.ops -> c: AlgHeap.tree0 a -> FStar.Pervasives.Lemma (requires AlgHeap.abides l1 c /\ AlgHeap.sublist l1 l2) (ensures AlgHeap.abides l2 c) [SMTPat (AlgHeap.abides l2 c); SMTPat (AlgHeap.sublist l1 l2)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "AlgHeap.ops", "AlgHeap.tree0", "AlgHeap.abides_sublist_nopat", "Prims.unit", "Prims.l_and", "AlgHeap.abides", "AlgHeap.sublist", "Prims.squash", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.prop", "Prims.logical", "Prims.Nil" ]
[]
true
false
true
false
false
let abides_sublist #a (l1: ops) (l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)] =
abides_sublist_nopat l1 l2 c
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_qcode_Gcm_blocks_wrapped
val va_qcode_Gcm_blocks_wrapped (va_mods: va_mods_t) (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hke...
val va_qcode_Gcm_blocks_wrapped (va_mods: va_mods_t) (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hke...
let va_qcode_Gcm_blocks_wrapped (va_mods:va_mods_t) (alg:algorithm) (offset:int) (auth_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (in128_b:buffer128) (out128_b:buffer128) (inout_b:buffer128) (iv_b:buffer128) (iv:supported_iv_LE) (scratch_b:buffer128) (key:(seq nat32)) (round_ke...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 1455, "start_col": 0, "start_line": 1370 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
va_mods: Vale.X64.QuickCode.va_mods_t -> alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> in128_b: Vale.X64.Memory.buf...
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.QuickCode.va_mods_t", "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.Memory.nat8", "Vale.X64.QuickCodes.qblock", "Prims.unit", "Prims.Cons...
[]
false
false
false
false
false
let va_qcode_Gcm_blocks_wrapped (va_mods: va_mods_t) (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hke...
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in let abytes_ptr:Vale.X64.Memory.nat64 = Vale.X64.Stack_i.load_stack64 (va_get_reg64 rRsp va_s + offset + 0) (va_get_stack va_s) in let in128x6_ptr:Vale.X64.Memory.nat64 = Vale.X64.Stack_i.load...
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_qcode_Gcm_blocks_decrypt_stdcall
val va_qcode_Gcm_blocks_decrypt_stdcall (va_mods: va_mods_t) (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_num: nat64) (...
val va_qcode_Gcm_blocks_decrypt_stdcall (va_mods: va_mods_t) (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_num: nat64) (...
let va_qcode_Gcm_blocks_decrypt_stdcall (va_mods:va_mods_t) (win:bool) (alg:algorithm) (auth_b:buffer128) (auth_bytes:nat64) (auth_num:nat64) (keys_b:buffer128) (iv_b:buffer128) (iv:supported_iv_LE) (hkeys_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (len128x6_num:nat64) (in128_b...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 2140, "start_col": 0, "start_line": 1964 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
va_mods: Vale.X64.QuickCode.va_mods_t -> win: Prims.bool -> alg: Vale.AES.AES_common_s.algorithm -> auth_b: Vale.X64.Memory.buffer128 -> auth_bytes: Vale.X64.Memory.nat64 -> auth_num: Vale.X64.Memory.nat64 -> keys_b: Vale.X64.Memory.buffer128 -> iv_b: Vale.X64.Memory.buffer128 -> iv...
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.QuickCode.va_mods_t", "Prims.bool", "Vale.AES.AES_common_s.algorithm", "Vale.X64.Memory.buffer128", "Vale.X64.Memory.nat64", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.X64.Decls.va_c...
[]
false
false
false
false
false
let va_qcode_Gcm_blocks_decrypt_stdcall (va_mods: va_mods_t) (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_num: nat64) (...
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in let auth_ptr:(va_int_range 0 18446744073709551615) = va_if win (fun _ -> va_get_reg64 rRcx va_s) (fun _ -> va_get_reg64 rRdi va_s) in let auth_num_bytes:(va_int_range 0 18446744073709551615) = ...
false
Hacl.Bignum.ModInv.fst
Hacl.Bignum.ModInv.bn_check_mod_inv_prime_st
val bn_check_mod_inv_prime_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
let bn_check_mod_inv_prime_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> a:lbignum t len -> Stack (limb t) (requires fun h -> live h n /\ live h a /\ disjoint n a) (ensures fun h0 r h1 -> modifies0 h0 h1 /\ r == S.bn_check_mod_inv_prime (as_seq h0 n) (as_seq h0 a))
{ "file_name": "code/bignum/Hacl.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 29, "start_col": 0, "start_line": 23 }
module Hacl.Bignum.ModInv open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.ModInv module BN = Hacl.Bignum module BE = Hacl.Bignum.Exponentiation module BM = Hacl.Bignum.Montgomery...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.ModInv.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Bignum.Montgomery.f...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "ab...
{ "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
t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.Definitions.limb", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Lib.Buffer.disjoint", "Lib.Buffer.modifies0", "Prims.eq2", "Hacl.Spec.Bignum.Defin...
[]
false
false
false
false
true
let bn_check_mod_inv_prime_st (t: limb_t) (len: BN.meta_len t) =
n: lbignum t len -> a: lbignum t len -> Stack (limb t) (requires fun h -> live h n /\ live h a /\ disjoint n a) (ensures fun h0 r h1 -> modifies0 h0 h1 /\ r == S.bn_check_mod_inv_prime (as_seq h0 n) (as_seq h0 a))
false
AlgHeap.fst
AlgHeap.st_monotonic
val st_monotonic (#a: _) (w: st_wp0 a) : Type0
val st_monotonic (#a: _) (w: st_wp0 a) : Type0
let st_monotonic #a (w : st_wp0 a) : Type0 = //forall s0 p1 p2. (forall r. p1 r ==> p2 r) ==> w s0 p1 ==> w s0 p2 // ^ this version seems to be less SMT-friendly forall s0 p1 p2. (forall x s1. p1 (x, s1) ==> p2 (x, s1)) ==> w s0 p1 ==> w s0 p2
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 83, "end_line": 219, "start_col": 0, "start_line": 216 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
w: AlgHeap.st_wp0 a -> Type0
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.st_wp0", "Prims.l_Forall", "AlgHeap.state", "FStar.Pervasives.Native.tuple2", "Prims.logical", "Prims.l_imp", "FStar.Pervasives.Native.Mktuple2" ]
[]
false
false
false
true
true
let st_monotonic #a (w: st_wp0 a) : Type0 =
forall s0 p1 p2. (forall x s1. p1 (x, s1) ==> p2 (x, s1)) ==> w s0 p1 ==> w s0 p2
false
AlgHeap.fst
AlgHeap.abides
val abides (#a: _) (labs: ops) (f: tree0 a) : prop
val abides (#a: _) (labs: ops) (f: tree0 a) : prop
let rec abides #a (labs:ops) (f : tree0 a) : prop = begin match f with | Op a i k -> mem a labs /\ (forall o. abides labs (k o)) | Return _ -> True end
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 52, "start_col": 0, "start_line": 47 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
labs: AlgHeap.ops -> f: AlgHeap.tree0 a -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.ops", "AlgHeap.tree0", "AlgHeap.op", "AlgHeap.op_inp", "AlgHeap.op_out", "Prims.l_and", "Prims.b2t", "FStar.List.Tot.Base.mem", "Prims.l_Forall", "AlgHeap.abides", "Prims.l_True", "Prims.prop" ]
[ "recursion" ]
false
false
false
true
true
let rec abides #a (labs: ops) (f: tree0 a) : prop =
match f with | Op a i k -> mem a labs /\ (forall o. abides labs (k o)) | Return _ -> True
false
Hacl.Bignum.ModInv.fst
Hacl.Bignum.ModInv.bn_mod_inv_prime_st
val bn_mod_inv_prime_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
let bn_mod_inv_prime_st (t:limb_t) (len:BN.meta_len t) = nBits:size_t -> n:lbignum t len -> a:lbignum t len -> res:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h a /\ live h res /\ disjoint res n /\ disjoint res a /\ disjoint n a /\ v nBits / bits t < v len /\ pow2 (v nBits...
{ "file_name": "code/bignum/Hacl.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 114, "start_col": 0, "start_line": 101 }
module Hacl.Bignum.ModInv open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.ModInv module BN = Hacl.Bignum module BE = Hacl.Bignum.Exponentiation module BM = Hacl.Bignum.Montgomery...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.ModInv.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Bignum.Montgomery.f...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "ab...
{ "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
t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.lbignum", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Hacl.Bignum.Definitions.limb", "Lib.Buffer.disjoint", "Prims.b2t", "Prims.o...
[]
false
false
false
false
true
let bn_mod_inv_prime_st (t: limb_t) (len: BN.meta_len t) =
nBits: size_t -> n: lbignum t len -> a: lbignum t len -> res: lbignum t len -> Stack unit (requires fun h -> live h n /\ live h a /\ live h res /\ disjoint res n /\ disjoint res a /\ disjoint n a /\ v nBits / bits t < v len /\ pow2 (v nBits) < bn_v h n /\ S.bn_mod_inv_prime...
false
Hacl.Bignum.ModInv.fst
Hacl.Bignum.ModInv.bn_check_mod_inv_prime
val bn_check_mod_inv_prime: #t:limb_t -> len:BN.meta_len t -> bn_check_mod_inv_prime_st t len
val bn_check_mod_inv_prime: #t:limb_t -> len:BN.meta_len t -> bn_check_mod_inv_prime_st t len
let bn_check_mod_inv_prime #t len n a = let m0 = BM.bn_check_modulus n in let m1 = BN.bn_is_zero_mask len a in let m2 = BN.bn_lt_mask len a n in m0 &. (lognot m1) &. m2
{ "file_name": "code/bignum/Hacl.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 38, "start_col": 0, "start_line": 34 }
module Hacl.Bignum.ModInv open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.ModInv module BN = Hacl.Bignum module BE = Hacl.Bignum.Exponentiation module BM = Hacl.Bignum.Montgomery...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.ModInv.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Bignum.Montgomery.f...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "ab...
{ "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
len: Hacl.Bignum.meta_len t -> Hacl.Bignum.ModInv.bn_check_mod_inv_prime_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Definitions.lbignum", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.SEC", "Lib.IntTypes.lognot", "Hacl.Bignum.Definitions.limb", "Hacl.Bignum.bn_lt_mask", "Hacl.Bignum.bn_is_zero_mask", "Hacl.Bignum.Montgomery.bn_check_modulus" ]
[]
false
false
false
false
false
let bn_check_mod_inv_prime #t len n a =
let m0 = BM.bn_check_modulus n in let m1 = BN.bn_is_zero_mask len a in let m2 = BN.bn_lt_mask len a n in m0 &. (lognot m1) &. m2
false
AlgHeap.fst
AlgHeap.interp_as_fun
val interp_as_fun (#a: _) (t: rwtree a) : (state -> a & state)
val interp_as_fun (#a: _) (t: rwtree a) : (state -> a & state)
let interp_as_fun #a (t : rwtree a) : (state -> a & state) = interp_rdwr_tree t
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 255, "start_col": 0, "start_line": 254 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: AlgHeap.rwtree a -> _: AlgHeap.state -> a * AlgHeap.state
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.rwtree", "AlgHeap.interp_rdwr_tree", "AlgHeap.state", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
true
false
let interp_as_fun #a (t: rwtree a) : (state -> a & state) =
interp_rdwr_tree t
false
AlgHeap.fst
AlgHeap.sublist
val sublist : l1: AlgHeap.ops -> l2: AlgHeap.ops -> Prims.logical
let sublist (l1 l2 : ops) = forall x. mem x l1 ==> mem x l2
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "end_line": 67, "start_col": 0, "start_line": 67 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
l1: AlgHeap.ops -> l2: AlgHeap.ops -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.ops", "Prims.l_Forall", "AlgHeap.op", "Prims.l_imp", "Prims.b2t", "FStar.List.Tot.Base.mem", "Prims.logical" ]
[]
false
false
false
true
true
let sublist (l1 l2: ops) =
forall x. mem x l1 ==> mem x l2
false
AlgHeap.fst
AlgHeap.st_wp
val st_wp : a: Type -> Type
let st_wp (a:Type) = wp:st_wp0 a{st_monotonic wp}
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 49, "end_line": 221, "start_col": 0, "start_line": 221 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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" ]
[]
[ "AlgHeap.st_wp0", "AlgHeap.st_monotonic" ]
[]
false
false
false
true
true
let st_wp (a: Type) =
wp: st_wp0 a {st_monotonic wp}
false
AlgHeap.fst
AlgHeap.stronger
val stronger : (#a:Type) -> st_wp a -> st_wp a -> Type0
val stronger : (#a:Type) -> st_wp a -> st_wp a -> Type0
let stronger w1 w2 = forall p s. w1 p s ==> w2 p s
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 260, "start_col": 0, "start_line": 260 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
w1: AlgHeap.st_wp a -> w2: AlgHeap.st_wp a -> Type0
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.st_wp", "Prims.l_Forall", "AlgHeap.state", "FStar.Pervasives.Native.tuple2", "Prims.l_imp" ]
[]
false
false
false
true
true
let stronger w1 w2 =
forall p s. w1 p s ==> w2 p s
false
Vale.Inline.X64.Fadd_inline.fst
Vale.Inline.X64.Fadd_inline.fadd
val fadd (out:u256) (f1:u256) (f2:u256) : Stack unit (requires fun h -> adx_enabled /\ bmi2_enabled /\ B.live h f1 /\ B.live h f2 /\ B.live h out /\ (B.disjoint out f1 \/ out == f1) /\ (B.disjoint out f2 \/ out == f2) /\ (B.disjoint f1 f2 \/ f1 == f2)) (ensures fun h0 _ h1...
val fadd (out:u256) (f1:u256) (f2:u256) : Stack unit (requires fun h -> adx_enabled /\ bmi2_enabled /\ B.live h f1 /\ B.live h f2 /\ B.live h out /\ (B.disjoint out f1 \/ out == f1) /\ (B.disjoint out f2 \/ out == f2) /\ (B.disjoint f1 f2 \/ f1 == f2)) (ensures fun h0 _ h1...
let fadd out f1 f2 = DV.length_eq (get_downview out); DV.length_eq (get_downview f1); DV.length_eq (get_downview f2); let (x, _) = lowstar_fadd_normal_t out f1 f2 () in ()
{ "file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fadd_inline.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 287, "start_col": 0, "start_line": 282 }
module Vale.Inline.X64.Fadd_inline open FStar.Mul open FStar.HyperStack.ST module HS = FStar.HyperStack module B = LowStar.Buffer module DV = LowStar.BufferView.Down open Vale.Def.Types_s open Vale.Interop.Base module IX64 = Vale.Interop.X64 module VSig = Vale.AsLowStar.ValeSig module LSig = Vale.AsLowStar.LowStarSig...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Print_Inline_s.fst.checked", "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Decls.fsti.checked", "Vale.Interop.X64.fsti.checked", "Va...
[ { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "Vale.Curve25519.X64.FastWide", "short_module": "FW" }, { "abbrev": true, "full_module": "Vale.Curve25519.X64.FastHybrid", "short_module": "FH" }, ...
{ "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
out: Vale.Inline.X64.Fadd_inline.u256 -> f1: Vale.Inline.X64.Fadd_inline.u256 -> f2: Vale.Inline.X64.Fadd_inline.u256 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Vale.Inline.X64.Fadd_inline.u256", "FStar.UInt64.t", "FStar.Ghost.erased", "Vale.Interop.X64.as_lowstar_sig_ret", "Prims.unit", "Vale.Interop.X64.als_ret", "Vale.Inline.X64.Fadd_inline.lowstar_fadd_normal_t", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "Vale.Interop.Types.get_downview",...
[]
false
true
false
false
false
let fadd out f1 f2 =
DV.length_eq (get_downview out); DV.length_eq (get_downview f1); DV.length_eq (get_downview f2); let x, _ = lowstar_fadd_normal_t out f1 f2 () in ()
false
Vale.AES.X64.GCMdecryptOpt.fst
Vale.AES.X64.GCMdecryptOpt.va_wp_Gcm_blocks_wrapped
val va_wp_Gcm_blocks_wrapped (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) (expect...
val va_wp_Gcm_blocks_wrapped (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) (expect...
let va_wp_Gcm_blocks_wrapped (alg:algorithm) (offset:int) (auth_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (in128_b:buffer128) (out128_b:buffer128) (inout_b:buffer128) (iv_b:buffer128) (iv:supported_iv_LE) (scratch_b:buffer128) (key:(seq nat32)) (round_keys:(seq quad32)) (keys_...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1839, "start_col": 0, "start_line": 1694 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> in128_b: Vale.X64.Memory.buffer128 -> out128_b: Vale.X64.Memory.buffe...
Prims.Tot
[ "total" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.Memory.nat8", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.X64.Decls....
[]
false
false
false
true
true
let va_wp_Gcm_blocks_wrapped (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b: buffer128) (iv: supported_iv_LE) (scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) (expect...
(va_get_ok va_s0 /\ (let abytes_ptr:Vale.X64.Memory.nat64 = Vale.X64.Stack_i.load_stack64 (va_get_reg64 rRsp va_s0 + offset + 0) (va_get_stack va_s0) in let in128x6_ptr:Vale.X64.Memory.nat64 = Vale.X64.Stack_i.load_stack64 (va_get_reg64 rRsp va_s0 + offset + 8) (va_get_stack va_s0) in let ...
false
AlgHeap.fst
AlgHeap.sublist_at
val sublist_at (l1 l2: ops) : Lemma (sublist l1 (l1 @ l2) /\ sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (sublist l1 (l1 @ l2))]; [SMTPat (sublist l2 (l1 @ l2))]]]
val sublist_at (l1 l2: ops) : Lemma (sublist l1 (l1 @ l2) /\ sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (sublist l1 (l1 @ l2))]; [SMTPat (sublist l2 (l1 @ l2))]]]
let rec sublist_at (l1 l2 : ops) : Lemma (sublist l1 (l1@l2) /\ sublist l2 (l1@l2)) [SMTPatOr [[SMTPat (sublist l1 (l1@l2))]; [SMTPat (sublist l2 (l1@l2))]]] = match l1 with | [] -> () | _::l1 -> sublist_at l1 l2
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 76, "start_col": 0, "start_line": 69 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
l1: AlgHeap.ops -> l2: AlgHeap.ops -> FStar.Pervasives.Lemma (ensures AlgHeap.sublist l1 (l1 @ l2) /\ AlgHeap.sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (AlgHeap.sublist l1 (l1 @ l2))]; [SMTPat (AlgHeap.sublist l2 (l1 @ l2))]]]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "AlgHeap.ops", "AlgHeap.op", "Prims.list", "AlgHeap.sublist_at", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_and", "AlgHeap.sublist", "FStar.List.Tot.Base.op_At", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat_or", "FStar.Pervasives.smt_pat", "Prims.logica...
[ "recursion" ]
false
false
true
false
false
let rec sublist_at (l1 l2: ops) : Lemma (sublist l1 (l1 @ l2) /\ sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (sublist l1 (l1 @ l2))]; [SMTPat (sublist l2 (l1 @ l2))]]] =
match l1 with | [] -> () | _ :: l1 -> sublist_at l1 l2
false
AlgHeap.fst
AlgHeap.abides_app
val abides_app (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1 @ l2) c)) [SMTPat (abides (l1 @ l2) c)]
val abides_app (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1 @ l2) c)) [SMTPat (abides (l1 @ l2) c)]
let abides_app #a (l1 l2 : ops) (c : tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1@l2) c)) [SMTPat (abides (l1@l2) c)] = sublist_at l1 l2
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 114, "start_col": 0, "start_line": 110 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
l1: AlgHeap.ops -> l2: AlgHeap.ops -> c: AlgHeap.tree0 a -> FStar.Pervasives.Lemma (requires AlgHeap.abides l1 c \/ AlgHeap.abides l2 c) (ensures AlgHeap.abides (l1 @ l2) c) [SMTPat (AlgHeap.abides (l1 @ l2) c)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "AlgHeap.ops", "AlgHeap.tree0", "AlgHeap.sublist_at", "Prims.unit", "Prims.l_or", "AlgHeap.abides", "Prims.squash", "FStar.List.Tot.Base.op_At", "AlgHeap.op", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.prop", "Prims.Nil" ]
[]
true
false
true
false
false
let abides_app #a (l1: ops) (l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1 @ l2) c)) [SMTPat (abides (l1 @ l2) c)] =
sublist_at l1 l2
false
AlgHeap.fst
AlgHeap.interp_at
val interp_at (l1 l2: ops) (l: op) : Lemma (mem l (l1 @ l2) == (mem l l1 || mem l l2)) [SMTPat (mem l (l1 @ l2))]
val interp_at (l1 l2: ops) (l: op) : Lemma (mem l (l1 @ l2) == (mem l l1 || mem l l2)) [SMTPat (mem l (l1 @ l2))]
let rec interp_at (l1 l2 : ops) (l : op) : Lemma (mem l (l1@l2) == (mem l l1 || mem l l2)) [SMTPat (mem l (l1@l2))] = match l1 with | [] -> () | _::l1 -> interp_at l1 l2 l
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 65, "start_col": 0, "start_line": 60 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
l1: AlgHeap.ops -> l2: AlgHeap.ops -> l: AlgHeap.op -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.mem l (l1 @ l2) == (FStar.List.Tot.Base.mem l l1 || FStar.List.Tot.Base.mem l l2)) [SMTPat (FStar.List.Tot.Base.mem l (l1 @ l2))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "AlgHeap.ops", "AlgHeap.op", "Prims.list", "AlgHeap.interp_at", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "Prims.bool", "FStar.List.Tot.Base.mem", "FStar.List.Tot.Base.op_At", "Prims.op_BarBar", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Pri...
[ "recursion" ]
false
false
true
false
false
let rec interp_at (l1 l2: ops) (l: op) : Lemma (mem l (l1 @ l2) == (mem l l1 || mem l l2)) [SMTPat (mem l (l1 @ l2))] =
match l1 with | [] -> () | _ :: l1 -> interp_at l1 l2 l
false
Hacl.Bignum.ModInv.fst
Hacl.Bignum.ModInv.bn_mod_inv_prime_precomp_st
val bn_mod_inv_prime_precomp_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
let bn_mod_inv_prime_precomp_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t len -> res:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h r2 /\ live h a /\ live h res /\ disjoint res n /\ disjoint res a /\ disjoint n a /\ di...
{ "file_name": "code/bignum/Hacl.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 76, "start_col": 0, "start_line": 60 }
module Hacl.Bignum.ModInv open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.ModInv module BN = Hacl.Bignum module BE = Hacl.Bignum.Exponentiation module BM = Hacl.Bignum.Montgomery...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.ModInv.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Bignum.Montgomery.f...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "ab...
{ "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
t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.Definitions.limb", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Lib.Buffer.disjoint", "Hacl.Spec.Bignum.ModInv.bn_mod_inv_prime_pre", ...
[]
false
false
false
false
true
let bn_mod_inv_prime_precomp_st (t: limb_t) (len: BN.meta_len t) =
n: lbignum t len -> mu: limb t -> r2: lbignum t len -> a: lbignum t len -> res: lbignum t len -> Stack unit (requires fun h -> live h n /\ live h r2 /\ live h a /\ live h res /\ disjoint res n /\ disjoint res a /\ disjoint n a /\ disjoint res r2 /\ disjoint a r2 /\ disjoint n r2 /\ ...
false
AlgHeap.fst
AlgHeap.abides_at_self
val abides_at_self (#a: _) (l: ops) (c: tree0 a) : Lemma (abides (l @ l) c <==> abides l c) [SMTPat (abides (l @ l) c)]
val abides_at_self (#a: _) (l: ops) (c: tree0 a) : Lemma (abides (l @ l) c <==> abides l c) [SMTPat (abides (l @ l) c)]
let abides_at_self #a (l : ops) (c : tree0 a) : Lemma (abides (l@l) c <==> abides l c) [SMTPat (abides (l@l) c)] = (* Trigger some patterns *) assert (sublist l (l@l)); assert (sublist (l@l) l)
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 108, "start_col": 0, "start_line": 101 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: AlgHeap.ops -> c: AlgHeap.tree0 a -> FStar.Pervasives.Lemma (ensures AlgHeap.abides (l @ l) c <==> AlgHeap.abides l c) [SMTPat (AlgHeap.abides (l @ l) c)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "AlgHeap.ops", "AlgHeap.tree0", "Prims._assert", "AlgHeap.sublist", "FStar.List.Tot.Base.op_At", "AlgHeap.op", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "AlgHeap.abides", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.prop", "Prims.Nil" ...
[]
true
false
true
false
false
let abides_at_self #a (l: ops) (c: tree0 a) : Lemma (abides (l @ l) c <==> abides l c) [SMTPat (abides (l @ l) c)] =
assert (sublist l (l @ l)); assert (sublist (l @ l) l)
false
AlgHeap.fst
AlgHeap.return
val return (a: Type) (x: a) : tree a []
val return (a: Type) (x: a) : tree a []
let return (a:Type) (x:a) : tree a [] = Return x
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 148, "start_col": 0, "start_line": 146 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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 -> x: a -> AlgHeap.tree a []
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.Return", "AlgHeap.tree", "Prims.Nil", "AlgHeap.op" ]
[]
false
false
false
true
false
let return (a: Type) (x: a) : tree a [] =
Return x
false
AlgHeap.fst
AlgHeap.abides_sublist_nopat
val abides_sublist_nopat (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c)
val abides_sublist_nopat (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c)
let rec abides_sublist_nopat #a (l1 l2 : ops) (c : tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c) = match c with | Return _ -> () | Op a i k -> let sub o : Lemma (abides l2 (k o)) = abides_sublist_nopat l1 l2 (k o) in Classical.forall_i...
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 93, "start_col": 0, "start_line": 84 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
l1: AlgHeap.ops -> l2: AlgHeap.ops -> c: AlgHeap.tree0 a -> FStar.Pervasives.Lemma (requires AlgHeap.abides l1 c /\ AlgHeap.sublist l1 l2) (ensures AlgHeap.abides l2 c)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "AlgHeap.ops", "AlgHeap.tree0", "AlgHeap.op", "AlgHeap.op_inp", "AlgHeap.op_out", "FStar.Classical.forall_intro", "AlgHeap.abides", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "AlgHeap.abides_sublist_nopat", "Prims.l_and", "AlgHeap.sublist" ]
[ "recursion" ]
false
false
true
false
false
let rec abides_sublist_nopat #a (l1: ops) (l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c) =
match c with | Return _ -> () | Op a i k -> let sub o : Lemma (abides l2 (k o)) = abides_sublist_nopat l1 l2 (k o) in Classical.forall_intro sub
false
Hacl.Bignum.ModInv.fst
Hacl.Bignum.ModInv.bn_mod_inv_prime_n2
val bn_mod_inv_prime_n2: #t:limb_t -> len:BN.meta_len t -> n:lbignum t len -> res:lbignum t len -> Stack unit (requires fun h -> 1 < bn_v h n /\ live h n /\ live h res /\ disjoint res n) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ as_seq h1 res == S.bn_mod_inv_prime_n2 (as_seq h0 n))
val bn_mod_inv_prime_n2: #t:limb_t -> len:BN.meta_len t -> n:lbignum t len -> res:lbignum t len -> Stack unit (requires fun h -> 1 < bn_v h n /\ live h n /\ live h res /\ disjoint res n) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ as_seq h1 res == S.bn_mod_inv_prime_n2 (as_seq h0 n))
let bn_mod_inv_prime_n2 #t len n res = let c = BN.bn_sub1 len n (uint #t #SEC 2) res in LowStar.Ignore.ignore c; ()
{ "file_name": "code/bignum/Hacl.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 56, "start_col": 0, "start_line": 53 }
module Hacl.Bignum.ModInv open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.ModInv module BN = Hacl.Bignum module BE = Hacl.Bignum.Exponentiation module BM = Hacl.Bignum.Montgomery...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.ModInv.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Bignum.Montgomery.f...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "ab...
{ "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
len: Hacl.Bignum.meta_len t -> n: Hacl.Bignum.Definitions.lbignum t len -> res: Hacl.Bignum.Definitions.lbignum t len -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Definitions.lbignum", "Prims.unit", "LowStar.Ignore.ignore", "Hacl.Spec.Bignum.Base.carry", "Hacl.Bignum.bn_sub1", "Lib.IntTypes.uint", "Lib.IntTypes.SEC" ]
[]
false
true
false
false
false
let bn_mod_inv_prime_n2 #t len n res =
let c = BN.bn_sub1 len n (uint #t #SEC 2) res in LowStar.Ignore.ignore c; ()
false
AlgHeap.fst
AlgHeap.wp_is_monotonic
val wp_is_monotonic (#a: _) (wp: st_wp a) : Type0
val wp_is_monotonic (#a: _) (wp: st_wp a) : Type0
let wp_is_monotonic #a (wp : st_wp a) : Type0 = forall p1 p2 s0. (forall x s1. p1 (x, s1) ==> p2 (x, s1)) ==> wp s0 p1 ==> wp s0 p2
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 85, "end_line": 270, "start_col": 0, "start_line": 269 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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
wp: AlgHeap.st_wp a -> Type0
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.st_wp", "Prims.l_Forall", "FStar.Pervasives.Native.tuple2", "AlgHeap.state", "Prims.logical", "Prims.l_imp", "FStar.Pervasives.Native.Mktuple2" ]
[]
false
false
false
true
true
let wp_is_monotonic #a (wp: st_wp a) : Type0 =
forall p1 p2 s0. (forall x s1. p1 (x, s1) ==> p2 (x, s1)) ==> wp s0 p1 ==> wp s0 p2
false
AlgHeap.fst
AlgHeap.bind
val bind (a b: Type) (#labs1 #labs2: ops) (c: tree a labs1) (f: (x: a -> tree b labs2)) : Tot (tree b (labs1 @ labs2))
val bind (a b: Type) (#labs1 #labs2: ops) (c: tree a labs1) (f: (x: a -> tree b labs2)) : Tot (tree b (labs1 @ labs2))
let bind (a b : Type) (#labs1 #labs2 : ops) (c : tree a labs1) (f : (x:a -> tree b labs2)) : Tot (tree b (labs1@labs2)) = handle_with #_ #_ #labs1 #(labs1@labs2) c f (fun act i k -> Op act i k)
{ "file_name": "examples/layeredeffects/AlgHeap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 75, "end_line": 155, "start_col": 0, "start_line": 150 }
module AlgHeap (* Essentially a copy of AlgForAll but using a heap for the state *) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe module L = Lattice module Ghost = FStar.Ghost module Map = FStar.Map module T = FStar.Tactics.V2 type loc = int type state = Map.t loc int type empty : Type u#aa = type ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "ID5.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "Map" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "Ghost" }, { "abbrev": true, "full_module": "Latt...
{ "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 -> b: Type -> c: AlgHeap.tree a labs1 -> f: (x: a -> AlgHeap.tree b labs2) -> AlgHeap.tree b (labs1 @ labs2)
Prims.Tot
[ "total" ]
[]
[ "AlgHeap.ops", "AlgHeap.tree", "AlgHeap.handle_with", "FStar.List.Tot.Base.op_At", "AlgHeap.op", "Prims.b2t", "FStar.List.Tot.Base.mem", "AlgHeap.op_inp", "AlgHeap.op_out", "AlgHeap.Op" ]
[]
false
false
false
false
false
let bind (a b: Type) (#labs1 #labs2: ops) (c: tree a labs1) (f: (x: a -> tree b labs2)) : Tot (tree b (labs1 @ labs2)) =
handle_with #_ #_ #labs1 #(labs1 @ labs2) c f (fun act i k -> Op act i k)
false