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.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_quick_KeyExpansionRoundUnrolledRecursive | val va_quick_KeyExpansionRoundUnrolledRecursive (key: (seq nat32)) (dst: buffer128) (n: int)
: (va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive n)) | val va_quick_KeyExpansionRoundUnrolledRecursive (key: (seq nat32)) (dst: buffer128) (n: int)
: (va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive n)) | let va_quick_KeyExpansionRoundUnrolledRecursive (key:(seq nat32)) (dst:buffer128) (n:int) :
(va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive n)) =
(va_QProc (va_code_KeyExpansionRoundUnrolledRecursive n) ([va_Mod_flags; va_Mod_xmm 3; va_Mod_xmm
2; va_Mod_xmm 1; va_Mod_mem_heaplet 1; va_Mod_mem]) (... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 73,
"end_line": 293,
"start_col": 0,
"start_line": 289
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 -> dst: Vale.X64.Memory.buffer128 -> n: Prims.int
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES128.va_code_KeyExpansionRoundUnrolledRecursive n) | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.int",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.AES128.va_code_KeyExpansionRoundUnrolledRecursive",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode... | [] | false | false | false | false | false | let va_quick_KeyExpansionRoundUnrolledRecursive (key: (seq nat32)) (dst: buffer128) (n: int)
: (va_quickCode unit (va_code_KeyExpansionRoundUnrolledRecursive n)) =
| (va_QProc (va_code_KeyExpansionRoundUnrolledRecursive n)
([va_Mod_flags; va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1; va_Mod_mem_heaplet 1; va_Mod_mem])
(va_wp_KeyExpansionRoundUnrolledRecursive key dst n)
(va_wpProof_KeyExpansionRoundUnrolledRecursive key dst n)) | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_codegen_success_KeyExpansionRoundUnrolledRecursive | val va_codegen_success_KeyExpansionRoundUnrolledRecursive : n:int -> Tot va_pbool(decreases %[n]) | val va_codegen_success_KeyExpansionRoundUnrolledRecursive : n:int -> Tot va_pbool(decreases %[n]) | let rec va_codegen_success_KeyExpansionRoundUnrolledRecursive n =
(va_pbool_and (if (0 < n && n <= 10) then va_pbool_and
(va_codegen_success_KeyExpansionRoundUnrolledRecursive (n - 1)) (va_pbool_and
(va_codegen_success_KeyExpansionRound (n - 1) (Vale.AES.AES_common_s.aes_rcon (n - 1)))
(va_ttrue ())) else... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 189,
"start_col": 0,
"start_line": 185
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.int -> Prims.Tot Vale.X64.Decls.va_pbool | Prims.Tot | [
"total",
""
] | [] | [
"Prims.int",
"Vale.X64.Decls.va_pbool_and",
"Prims.op_AmpAmp",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"Vale.AES.X64.AES128.va_codegen_success_KeyExpansionRoundUnrolledRecursive",
"Prims.op_Subtraction",
"Vale.AES.X64.AES128.va_codegen_success_KeyExpansionRound",
"Vale.AES.AES_common_s.aes_... | [
"recursion"
] | false | false | false | true | false | let rec va_codegen_success_KeyExpansionRoundUnrolledRecursive n =
| (va_pbool_and (if (0 < n && n <= 10)
then
va_pbool_and (va_codegen_success_KeyExpansionRoundUnrolledRecursive (n - 1))
(va_pbool_and (va_codegen_success_KeyExpansionRound (n - 1)
(Vale.AES.AES_common_s.aes_rcon (n - 1)))
(va_ttrue ()))
else va_ttrue ())
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_wp_AES128EncryptRound | val va_wp_AES128EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_AES128EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_AES128EncryptRound (n:nat) (init:quad32) (round_keys:(seq quad32))
(keys_buffer:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (aesni_enabled /\ sse_enabled) /\ (1 <= n /\ n < 10 /\ 10 <=
FStar.Seq.Base.length #quad32 round_keys) /\ va_get_xmm 0 va_s0 ==
... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 96,
"end_line": 491,
"start_col": 0,
"start_line": 480
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.aesni_enabled",
"Vale.X64.CPU_Features_s.sse_enabled",
"Prims.op_LessThanOrEqual",
... | [] | false | false | false | true | true | let va_wp_AES128EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\ (aesni_enabled /\ sse_enabled) /\
(1 <= n /\ n < 10 /\ 10 <= FStar.Seq.Base.length #quad32 round_keys) /\
va_get_xmm 0 va_s0 == Vale.AES.AES_s.eval_rounds_def init round_keys (n - 1) /\
va_get_reg64 rR8 va_s0 ==
Vale.X64.Memory.buffer_addr #Vale.X64.Memory.vuint128 keys_buffer (va_get_mem_he... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_quick_AES128EncryptRound | val va_quick_AES128EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptRound n)) | val va_quick_AES128EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptRound n)) | let va_quick_AES128EncryptRound (n:nat) (init:quad32) (round_keys:(seq quad32))
(keys_buffer:buffer128) : (va_quickCode unit (va_code_AES128EncryptRound n)) =
(va_QProc (va_code_AES128EncryptRound n) ([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0])
(va_wp_AES128EncryptRound n init round_keys keys_buffer) (va_wpProo... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 517,
"start_col": 0,
"start_line": 513
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.AES128.va_code_AES128EncryptRound n) | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.AES128.va_code_AES128EncryptRound",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_xmm",
... | [] | false | false | false | false | false | let va_quick_AES128EncryptRound
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptRound n)) =
| (va_QProc (va_code_AES128EncryptRound n)
([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0])
(va_wp_AES128EncryptRound n init round_keys keys_buffer)
(va_wpProof_AES128EncryptRound n init round_keys keys_buffer)) | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_wpProof_KeyExpansionRoundUnrolledRecursive | val va_wpProof_KeyExpansionRoundUnrolledRecursive : key:(seq nat32) -> dst:buffer128 -> n:int ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundUnrolledRecursive key dst n va_s0 va_k))
(ensures (fun (va_sM, va_f0, v... | val va_wpProof_KeyExpansionRoundUnrolledRecursive : key:(seq nat32) -> dst:buffer128 -> n:int ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansionRoundUnrolledRecursive key dst n va_s0 va_k))
(ensures (fun (va_sM, va_f0, v... | let va_wpProof_KeyExpansionRoundUnrolledRecursive key dst n va_s0 va_k =
let (va_sM, va_f0) = va_lemma_KeyExpansionRoundUnrolledRecursive
(va_code_KeyExpansionRoundUnrolledRecursive n) va_s0 key dst n in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_update_xmm 3 va_sM (va_upd... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 286,
"start_col": 0,
"start_line": 276
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
dst: Vale.X64.Memory.buffer128 ->
n: Prims.int ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | Prims.Ghost | [] | [] | [
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.int",
"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",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode... | [] | false | false | false | false | false | let va_wpProof_KeyExpansionRoundUnrolledRecursive key dst n va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_KeyExpansionRoundUnrolledRecursive (va_code_KeyExpansionRoundUnrolledRecursive n)
va_s0
key
dst
n
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 3
va_sM
(va_update_xmm 2
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_qcode_KeyExpansion128Stdcall | val va_qcode_KeyExpansion128Stdcall
(va_mods: va_mods_t)
(win: bool)
(input_key_b output_key_expansion_b: buffer128)
: (va_quickCode unit (va_code_KeyExpansion128Stdcall win)) | val va_qcode_KeyExpansion128Stdcall
(va_mods: va_mods_t)
(win: bool)
(input_key_b output_key_expansion_b: buffer128)
: (va_quickCode unit (va_code_KeyExpansion128Stdcall win)) | let va_qcode_KeyExpansion128Stdcall (va_mods:va_mods_t) (win:bool) (input_key_b:buffer128)
(output_key_expansion_b:buffer128) : (va_quickCode unit (va_code_KeyExpansion128Stdcall win)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in let
(key_ptr:(va_int_range 0 18446744073709551615))... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 363,
"start_col": 0,
"start_line": 325
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
win: Prims.bool ->
input_key_b: Vale.X64.Memory.buffer128 ->
output_key_expansion_b: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.AES.X64.AES128.va_code_KeyExpansion128Stdcall win) | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Prims.bool",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.QuickCodes.if_code",
"Vale.X64.QuickCodes.block",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_me... | [] | false | false | false | false | false | let va_qcode_KeyExpansion128Stdcall
(va_mods: va_mods_t)
(win: bool)
(input_key_b output_key_expansion_b: buffer128)
: (va_quickCode unit (va_code_KeyExpansion128Stdcall win)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let key_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 key_expansion_ptr:(va_int_range 0 18446744073709551615) =
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_qcode_AES128EncryptRound | val va_qcode_AES128EncryptRound
(va_mods: va_mods_t)
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptRound n)) | val va_qcode_AES128EncryptRound
(va_mods: va_mods_t)
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptRound n)) | let va_qcode_AES128EncryptRound (va_mods:va_mods_t) (n:nat) (init:quad32) (round_keys:(seq quad32))
(keys_buffer:buffer128) : (va_quickCode unit (va_code_AES128EncryptRound n)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in let
(va_arg5:Vale.Def.Types_s.quad32) = va_get_xmm 0 va_s i... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 447,
"start_col": 0,
"start_line": 437
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.AES128.va_code_AES128EncryptRound n) | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.InsVector.va_code_Load128_buffer",
"Vale.X64.Decls.va_op_heaplet_mem_heaplet",
... | [] | false | false | false | false | false | let va_qcode_AES128EncryptRound
(va_mods: va_mods_t)
(n: nat)
(init: quad32)
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptRound n)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let va_arg5:Vale.Def.Types_s.quad32 = va_get_xmm 0 va_s in
va_qPURE va_range1
"***** PRECONDITION NOT MET AT line 188 column 33 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/crypto/aes/x64/Va... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_lemma_KeyExpansionRound | val va_lemma_KeyExpansionRound : va_b0:va_code -> va_s0:va_state -> round:nat64 -> rcon:nat8 ->
dst:buffer128 -> key:(seq nat32)
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansionRound round rcon) va_s0 /\ va_get_ok va_s0
/\ Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaple... | val va_lemma_KeyExpansionRound : va_b0:va_code -> va_s0:va_state -> round:nat64 -> rcon:nat8 ->
dst:buffer128 -> key:(seq nat32)
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansionRound round rcon) va_s0 /\ va_get_ok va_s0
/\ Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaple... | let va_lemma_KeyExpansionRound va_b0 va_s0 round rcon dst key =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1;
va_Mod_mem_heaplet 1; va_Mod_ok; va_Mod_mem] in
let va_qc = va_qcode_KeyExpansionRound va_mods round rcon dst key in
let (va_sM, va_fM, va_g) = va_wp_sound_code_no... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 125,
"start_col": 0,
"start_line": 103
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
round: Vale.X64.Memory.nat64 ->
rcon: Vale.X64.Memory.nat8 ->
dst: Vale.X64.Memory.buffer128 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.nat8",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.Qu... | [] | false | false | false | false | false | let va_lemma_KeyExpansionRound va_b0 va_s0 round rcon dst key =
| let va_mods:va_mods_t =
[
va_Mod_flags;
va_Mod_xmm 3;
va_Mod_xmm 2;
va_Mod_xmm 1;
va_Mod_mem_heaplet 1;
va_Mod_ok;
va_Mod_mem
]
in
let va_qc = va_qcode_KeyExpansionRound va_mods round rcon dst key in
let va_sM, va_fM, va_g =
va_wp_sound_code_norm (va_code_KeyExpansionRound round rcon)
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_wpProof_AES128EncryptRound | val va_wpProof_AES128EncryptRound : n:nat -> init:quad32 -> round_keys:(seq quad32) ->
keys_buffer:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES128EncryptRound n init round_keys keys_buffer va_s0
va_k))
(ensure... | val va_wpProof_AES128EncryptRound : n:nat -> init:quad32 -> round_keys:(seq quad32) ->
keys_buffer:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES128EncryptRound n init round_keys keys_buffer va_s0
va_k))
(ensure... | let va_wpProof_AES128EncryptRound n init round_keys keys_buffer va_s0 va_k =
let (va_sM, va_f0) = va_lemma_AES128EncryptRound (va_code_AES128EncryptRound n) va_s0 n init
round_keys keys_buffer in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_update_xmm 2 va_sM (va_update_xmm ... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 510,
"start_col": 0,
"start_line": 502
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.D... | Prims.Ghost | [] | [] | [
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"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",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode... | [] | false | false | false | false | false | let va_wpProof_AES128EncryptRound n init round_keys keys_buffer va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_AES128EncryptRound (va_code_AES128EncryptRound n) va_s0 n init round_keys keys_buffer
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 2 va_sM (va_update_xmm 0 va_sM (va_update_ok va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod_fla... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_wpProof_AES128EncryptBlock | val va_wpProof_AES128EncryptBlock : input:quad32 -> key:(seq nat32) -> round_keys:(seq quad32) ->
keys_buffer:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES128EncryptBlock input key round_keys keys_buffer va_s0
va... | val va_wpProof_AES128EncryptBlock : input:quad32 -> key:(seq nat32) -> round_keys:(seq quad32) ->
keys_buffer:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES128EncryptBlock input key round_keys keys_buffer va_s0
va... | let va_wpProof_AES128EncryptBlock input key round_keys keys_buffer va_s0 va_k =
let (va_sM, va_f0) = va_lemma_AES128EncryptBlock (va_code_AES128EncryptBlock ()) va_s0 input key
round_keys keys_buffer in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_update_xmm 2 va_sM (va_upda... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 623,
"start_col": 0,
"start_line": 615
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
input: Vale.X64.Decls.quad32 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Va... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"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",
"Vale.X64.QuickCode.mod_t",
"Vale.X... | [] | false | false | false | false | false | let va_wpProof_AES128EncryptBlock input key round_keys keys_buffer va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_AES128EncryptBlock (va_code_AES128EncryptBlock ()) va_s0 input key round_keys keys_buffer
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 2 va_sM (va_update_xmm 0 va_sM (va_update_ok va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_lemma_AES128EncryptRound | val va_lemma_AES128EncryptRound : va_b0:va_code -> va_s0:va_state -> n:nat -> init:quad32 ->
round_keys:(seq quad32) -> keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES128EncryptRound n) va_s0 /\ va_get_ok va_s0 /\
(aesni_enabled /\ sse_enabled) /\ (1 <= n /\ ... | val va_lemma_AES128EncryptRound : va_b0:va_code -> va_s0:va_state -> n:nat -> init:quad32 ->
round_keys:(seq quad32) -> keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES128EncryptRound n) va_s0 /\ va_get_ok va_s0 /\
(aesni_enabled /\ sse_enabled) /\ (1 <= n /\ ... | let va_lemma_AES128EncryptRound va_b0 va_s0 n init round_keys keys_buffer =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_ok] in
let va_qc = va_qcode_AES128EncryptRound va_mods n init round_keys keys_buffer in
let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_AES128EncryptRou... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 477,
"start_col": 0,
"start_line": 466
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
n: Prims.nat ->
init: Vale.X64.Decls.quad32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.nat",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.... | [] | false | false | false | false | false | let va_lemma_AES128EncryptRound va_b0 va_s0 n init round_keys keys_buffer =
| let va_mods:va_mods_t = [va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_ok] in
let va_qc = va_qcode_AES128EncryptRound va_mods n init round_keys keys_buffer in
let va_sM, va_fM, va_g =
va_wp_sound_code_norm (va_code_AES128EncryptRound n)
va_qc
va_s0
(fun va_s0 va_sM va_g ->
let () = va_g in
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_qcode_AES128EncryptBlockStdcall | val va_qcode_AES128EncryptBlockStdcall
(va_mods: va_mods_t)
(win: bool)
(input: quad32)
(key: (seq nat32))
(input_buffer output_buffer keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptBlockStdcall win)) | val va_qcode_AES128EncryptBlockStdcall
(va_mods: va_mods_t)
(win: bool)
(input: quad32)
(key: (seq nat32))
(input_buffer output_buffer keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptBlockStdcall win)) | let va_qcode_AES128EncryptBlockStdcall (va_mods:va_mods_t) (win:bool) (input:quad32) (key:(seq
nat32)) (input_buffer:buffer128) (output_buffer:buffer128) (keys_buffer:buffer128) :
(va_quickCode unit (va_code_AES128EncryptBlockStdcall win)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s i... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 692,
"start_col": 0,
"start_line": 655
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
win: Prims.bool ->
input: Vale.X64.Decls.quad32 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
input_buffer: Vale.X64.Memory.buffer128 ->
output_buffer: Vale.X64.Memory.buffer128 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Prims.bool",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.QuickCodes.if_code",
"Vale.X64.QuickCodes.block",
"... | [] | false | false | false | false | false | let va_qcode_AES128EncryptBlockStdcall
(va_mods: va_mods_t)
(win: bool)
(input: quad32)
(key: (seq nat32))
(input_buffer output_buffer keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptBlockStdcall win)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let output_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 input_ptr:(va_int_range 0 18446744073709551615) =
v... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_wpProof_KeyExpansion128Stdcall | val va_wpProof_KeyExpansion128Stdcall : win:bool -> input_key_b:buffer128 ->
output_key_expansion_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansion128Stdcall win input_key_b
output_key_expansion_b va_s0 va... | val va_wpProof_KeyExpansion128Stdcall : win:bool -> input_key_b:buffer128 ->
output_key_expansion_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_KeyExpansion128Stdcall win input_key_b
output_key_expansion_b va_s0 va... | let va_wpProof_KeyExpansion128Stdcall win input_key_b output_key_expansion_b va_s0 va_k =
let (va_sM, va_f0) = va_lemma_KeyExpansion128Stdcall (va_code_KeyExpansion128Stdcall win) va_s0
win input_key_b output_key_expansion_b in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_flags va_sM (va_up... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 417,
"start_col": 0,
"start_line": 407
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
win: Prims.bool ->
input_key_b: Vale.X64.Memory.buffer128 ->
output_key_expansion_b: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | Prims.Ghost | [] | [] | [
"Prims.bool",
"Vale.X64.Memory.buffer128",
"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",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_xmm",... | [] | false | false | false | false | false | let va_wpProof_KeyExpansion128Stdcall win input_key_b output_key_expansion_b va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_KeyExpansion128Stdcall (va_code_KeyExpansion128Stdcall win)
va_s0
win
input_key_b
output_key_expansion_b
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 3
va_sM
(va_update_xmm 2
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_wpProof_AES128EncryptBlockStdcall | val va_wpProof_AES128EncryptBlockStdcall : win:bool -> input:quad32 -> key:(seq nat32) ->
input_buffer:buffer128 -> output_buffer:buffer128 -> keys_buffer:buffer128 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES128EncryptBloc... | val va_wpProof_AES128EncryptBlockStdcall : win:bool -> input:quad32 -> key:(seq nat32) ->
input_buffer:buffer128 -> output_buffer:buffer128 -> keys_buffer:buffer128 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_AES128EncryptBloc... | let va_wpProof_AES128EncryptBlockStdcall win input key input_buffer output_buffer keys_buffer va_s0
va_k =
let (va_sM, va_f0) = va_lemma_AES128EncryptBlockStdcall (va_code_AES128EncryptBlockStdcall win)
va_s0 win input key input_buffer output_buffer keys_buffer in
va_lemma_upd_update va_sM;
assert (va_state... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 736,
"start_col": 0,
"start_line": 725
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
win: Prims.bool ->
input: Vale.X64.Decls.quad32 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
input_buffer: Vale.X64.Memory.buffer128 ->
output_buffer: Vale.X64.Memory.buffer128 ->
keys_buffer: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls... | Prims.Ghost | [] | [] | [
"Prims.bool",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"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",
"Vale.X64.QuickCode.m... | [] | false | false | false | false | false | let va_wpProof_AES128EncryptBlockStdcall
win
input
key
input_buffer
output_buffer
keys_buffer
va_s0
va_k
=
| let va_sM, va_f0 =
va_lemma_AES128EncryptBlockStdcall (va_code_AES128EncryptBlockStdcall win)
va_s0
win
input
key
input_buffer
output_buffer
keys_buffer
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_xmm 2
va_sM
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_qcode_AES128EncryptBlock | val va_qcode_AES128EncryptBlock
(va_mods: va_mods_t)
(input: quad32)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptBlock ())) | val va_qcode_AES128EncryptBlock
(va_mods: va_mods_t)
(input: quad32)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptBlock ())) | let va_qcode_AES128EncryptBlock (va_mods:va_mods_t) (input:quad32) (key:(seq nat32))
(round_keys:(seq quad32)) (keys_buffer:buffer128) : (va_quickCode unit
(va_code_AES128EncryptBlock ())) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_qAssertSquash
va_range1
"***** EXPRESS... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 96,
"end_line": 597,
"start_col": 0,
"start_line": 551
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.X64.QuickCode.va_mods_t ->
input: Vale.X64.Decls.quad32 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.AES128.va_code_AES12... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.Machine_s.Block",
"Vale.X64.Decls.ins",
"Vale.X64.Decls.ocmp",
"P... | [] | false | false | false | false | false | let va_qcode_AES128EncryptBlock
(va_mods: va_mods_t)
(input: quad32)
(key: (seq nat32))
(round_keys: (seq quad32))
(keys_buffer: buffer128)
: (va_quickCode unit (va_code_AES128EncryptBlock ())) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
va_qAssertSquash va_range1
"***** EXPRESSION PRECONDITIONS NOT MET WITHIN line 216 column 5 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/crypto/aes/x64/Vale.AES.X64.AES128.vaf *****"
((fun... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_lemma_KeyExpansionRoundUnrolledRecursive | val va_lemma_KeyExpansionRoundUnrolledRecursive : va_b0:va_code -> va_s0:va_state -> key:(seq
nat32) -> dst:buffer128 -> n:int
-> Ghost (va_state & va_fuel)(decreases %[n])
(requires (va_require_total va_b0 (va_code_KeyExpansionRoundUnrolledRecursive n) va_s0 /\
va_get_ok va_s0 /\ Vale.X64.Decls.validDstAddrs... | val va_lemma_KeyExpansionRoundUnrolledRecursive : va_b0:va_code -> va_s0:va_state -> key:(seq
nat32) -> dst:buffer128 -> n:int
-> Ghost (va_state & va_fuel)(decreases %[n])
(requires (va_require_total va_b0 (va_code_KeyExpansionRoundUnrolledRecursive n) va_s0 /\
va_get_ok va_s0 /\ Vale.X64.Decls.validDstAddrs... | let rec va_lemma_KeyExpansionRoundUnrolledRecursive va_b0 va_s0 key dst n =
va_reveal_opaque (`%va_code_KeyExpansionRoundUnrolledRecursive)
(va_code_KeyExpansionRoundUnrolledRecursive n);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
Vale.AES.AES_helpers.expand_key_128_reve... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 245,
"start_col": 0,
"start_line": 212
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
dst: Vale.X64.Memory.buffer128 ->
n: Prims.int
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [
""
] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Prims.int",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.State.val... | [
"recursion"
] | false | false | false | false | false | let rec va_lemma_KeyExpansionRoundUnrolledRecursive va_b0 va_s0 key dst n =
| va_reveal_opaque (`%va_code_KeyExpansionRoundUnrolledRecursive)
(va_code_KeyExpansionRoundUnrolledRecursive n);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
Vale.AES.AES_helpers.expand_key_128_reveal ();
let va_b3 = va_tl va_b1 in
let va_c3 = va_hd va_b1 in
let va_fc3, va_s3 =
(if (0 ... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_lemma_KeyExpansion128Stdcall | val va_lemma_KeyExpansion128Stdcall : va_b0:va_code -> va_s0:va_state -> win:bool ->
input_key_b:buffer128 -> output_key_expansion_b:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansion128Stdcall win) va_s0 /\ va_get_ok va_s0
/\ (let (key_ptr:(va_int_range 0 18446744... | val va_lemma_KeyExpansion128Stdcall : va_b0:va_code -> va_s0:va_state -> win:bool ->
input_key_b:buffer128 -> output_key_expansion_b:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_KeyExpansion128Stdcall win) va_s0 /\ va_get_ok va_s0
/\ (let (key_ptr:(va_int_range 0 18446744... | let va_lemma_KeyExpansion128Stdcall va_b0 va_s0 win input_key_b output_key_expansion_b =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1;
va_Mod_mem_heaplet 1; va_Mod_reg64 rRdx; va_Mod_ok; va_Mod_mem] in
let va_qc = va_qcode_KeyExpansion128Stdcall va_mods win input_key_b outpu... | {
"file_name": "obj/Vale.AES.X64.AES128.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.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
input_key_b: Vale.X64.Memory.buffer128 ->
output_key_expansion_b: Vale.X64.Memory.buffer128
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.Q... | [] | false | false | false | false | false | let va_lemma_KeyExpansion128Stdcall va_b0 va_s0 win input_key_b output_key_expansion_b =
| let va_mods:va_mods_t =
[
va_Mod_flags;
va_Mod_xmm 3;
va_Mod_xmm 2;
va_Mod_xmm 1;
va_Mod_mem_heaplet 1;
va_Mod_reg64 rRdx;
va_Mod_ok;
va_Mod_mem
]
in
let va_qc = va_qcode_KeyExpansion128Stdcall va_mods win input_key_b output_key_expansion_b in
let va_sM, va_fM, va_g =
va_wp_sound_c... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_lemma_AES128EncryptBlock | val va_lemma_AES128EncryptBlock : va_b0:va_code -> va_s0:va_state -> input:quad32 -> key:(seq
nat32) -> round_keys:(seq quad32) -> keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES128EncryptBlock ()) va_s0 /\ va_get_ok va_s0 /\
(aesni_enabled /\ sse_enabled) /\... | val va_lemma_AES128EncryptBlock : va_b0:va_code -> va_s0:va_state -> input:quad32 -> key:(seq
nat32) -> round_keys:(seq quad32) -> keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES128EncryptBlock ()) va_s0 /\ va_get_ok va_s0 /\
(aesni_enabled /\ sse_enabled) /\... | let va_lemma_AES128EncryptBlock va_b0 va_s0 input key round_keys keys_buffer =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_ok] in
let va_qc = va_qcode_AES128EncryptBlock va_mods input key round_keys keys_buffer in
let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_AES128Encr... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 611,
"start_col": 0,
"start_line": 600
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
input: Vale.X64.Decls.quad32 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
keys_buffer: Vale.X64.Memory.buffer128
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va_lemma_norm_mods... | [] | false | false | false | false | false | let va_lemma_AES128EncryptBlock va_b0 va_s0 input key round_keys keys_buffer =
| let va_mods:va_mods_t = [va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_ok] in
let va_qc = va_qcode_AES128EncryptBlock va_mods input key round_keys keys_buffer in
let va_sM, va_fM, va_g =
va_wp_sound_code_norm (va_code_AES128EncryptBlock ())
va_qc
va_s0
(fun va_s0 va_sM va_g ->
let () = va_g in
... | false |
Vale.AES.X64.AES128.fst | Vale.AES.X64.AES128.va_lemma_AES128EncryptBlockStdcall | val va_lemma_AES128EncryptBlockStdcall : va_b0:va_code -> va_s0:va_state -> win:bool ->
input:quad32 -> key:(seq nat32) -> input_buffer:buffer128 -> output_buffer:buffer128 ->
keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES128EncryptBlockStdcall win) va_s0 /\ v... | val va_lemma_AES128EncryptBlockStdcall : va_b0:va_code -> va_s0:va_state -> win:bool ->
input:quad32 -> key:(seq nat32) -> input_buffer:buffer128 -> output_buffer:buffer128 ->
keys_buffer:buffer128
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_AES128EncryptBlockStdcall win) va_s0 /\ v... | let va_lemma_AES128EncryptBlockStdcall va_b0 va_s0 win input key input_buffer output_buffer
keys_buffer =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_mem_heaplet 1;
va_Mod_reg64 rR8; va_Mod_ok; va_Mod_mem] in
let va_qc = va_qcode_AES128EncryptBlockStdcall va_mods win input key ... | {
"file_name": "obj/Vale.AES.X64.AES128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 721,
"start_col": 0,
"start_line": 695
} | module Vale.AES.X64.AES128
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.Q... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
input: Vale.X64.Decls.quad32 ->
key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
input_buffer: Vale.X64.Memory.buffer128 ->
output_buffer: Vale.X64.Memory.buffer128 ->
keys_buffer: Vale.X64.Memory.buff... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Memory.buffer128",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va... | [] | false | false | false | false | false | let va_lemma_AES128EncryptBlockStdcall
va_b0
va_s0
win
input
key
input_buffer
output_buffer
keys_buffer
=
| let va_mods:va_mods_t =
[
va_Mod_flags;
va_Mod_xmm 2;
va_Mod_xmm 0;
va_Mod_mem_heaplet 1;
va_Mod_reg64 rR8;
va_Mod_ok;
va_Mod_mem
]
in
let va_qc =
va_qcode_AES128EncryptBlockStdcall va_mods win input key input_buffer output_buffer keys_buffer
in
let va_sM, va_fM, va_g =
va_wp_sound_c... | false |
Lib.Exponentiation.fst | Lib.Exponentiation.exp_four_fw_lemma_step | val exp_four_fw_lemma_step:
#t:Type -> k:comm_monoid t
-> a1:t -> bBits:nat -> b1:nat{b1 < pow2 bBits}
-> a2:t -> b2:nat{b2 < pow2 bBits}
-> a3:t -> b3:nat{b3 < pow2 bBits}
-> a4:t -> b4:nat{b4 < pow2 bBits}
-> l:pos -> i:pos{i <= bBits / l} -> acc:t -> Lemma
(requires
acc ==
k.mul
(k.... | val exp_four_fw_lemma_step:
#t:Type -> k:comm_monoid t
-> a1:t -> bBits:nat -> b1:nat{b1 < pow2 bBits}
-> a2:t -> b2:nat{b2 < pow2 bBits}
-> a3:t -> b3:nat{b3 < pow2 bBits}
-> a4:t -> b4:nat{b4 < pow2 bBits}
-> l:pos -> i:pos{i <= bBits / l} -> acc:t -> Lemma
(requires
acc ==
k.mul
(k.... | let exp_four_fw_lemma_step #t k a1 bBits b1 a2 b2 a3 b3 a4 b4 l i acc =
let acc1 = exp_pow2 k acc l in
let r11 = b_acc l bBits b1 (i - 1) in
let r12 = b_acc l bBits b1 i % pow2 l in
let r21 = b_acc l bBits b2 (i - 1) in
let r22 = b_acc l bBits b2 i % pow2 l in
let r31 = b_acc l bBits b3 (i - 1) in
let r32... | {
"file_name": "lib/Lib.Exponentiation.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 656,
"start_col": 0,
"start_line": 572
} | module Lib.Exponentiation
open FStar.Mul
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val lemma_b_mod_pow2i: bBits:nat -> b:nat{b < pow2 bBits} -> i:pos{i <= bBits} ->
Lemma (b % pow2 i == b / pow2 (i - 1) % 2 * pow2 (i - 1) + b % pow2 (i - 1))
let lemma_b_mod_pow2i bBits b i... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Calc.fsti.checked"
],
"interface_file": true,
"... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Exponentiation.Definition",
"short_module": null
},
{
"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 |
k: Lib.Exponentiation.Definition.comm_monoid t ->
a1: t ->
bBits: Prims.nat ->
b1: Prims.nat{b1 < Prims.pow2 bBits} ->
a2: t ->
b2: Prims.nat{b2 < Prims.pow2 bBits} ->
a3: t ->
b3: Prims.nat{b3 < Prims.pow2 bBits} ->
a4: t ->
b4: Prims.nat{b4 < Prims.pow2 bBits} ->
l: Prims.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.Exponentiation.Definition.comm_monoid",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.pos",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Lib.Exponentiation.Definition.__proj__Mkcomm_monoid__item__mul",
"Lib.Exponentiation.D... | [] | false | false | true | false | false | let exp_four_fw_lemma_step #t k a1 bBits b1 a2 b2 a3 b3 a4 b4 l i acc =
| let acc1 = exp_pow2 k acc l in
let r11 = b_acc l bBits b1 (i - 1) in
let r12 = b_acc l bBits b1 i % pow2 l in
let r21 = b_acc l bBits b2 (i - 1) in
let r22 = b_acc l bBits b2 i % pow2 l in
let r31 = b_acc l bBits b3 (i - 1) in
let r32 = b_acc l bBits b3 i % pow2 l in
let r41 = b_acc l bBits b4 (i - 1) in
let r42 = b_ac... | false |
Hacl.Impl.Ed25519.Sign.fst | Hacl.Impl.Ed25519.Sign.sign_expanded | val sign_expanded:
signature:lbuffer uint8 64ul
-> expanded_keys:lbuffer uint8 96ul
-> msg_len:size_t
-> msg:lbuffer uint8 msg_len ->
Stack unit
(requires fun h ->
live h signature /\ live h msg /\ live h expanded_keys /\
disjoint signature msg /\ disjoint signature expanded_keys)
(ensur... | val sign_expanded:
signature:lbuffer uint8 64ul
-> expanded_keys:lbuffer uint8 96ul
-> msg_len:size_t
-> msg:lbuffer uint8 msg_len ->
Stack unit
(requires fun h ->
live h signature /\ live h msg /\ live h expanded_keys /\
disjoint signature msg /\ disjoint signature expanded_keys)
(ensur... | let sign_expanded signature expanded_keys msg_len msg =
push_frame ();
let rs = sub signature 0ul 32ul in
let ss = sub signature 32ul 32ul in
let rq = create 5ul (u64 0) in
let hq = create 5ul (u64 0) in
let rb = create 32ul (u8 0) in
// expanded_keys = [ public_key; s; prefix ]
let public_key = sub e... | {
"file_name": "code/ed25519/Hacl.Impl.Ed25519.Sign.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 94,
"start_col": 0,
"start_line": 73
} | module Hacl.Impl.Ed25519.Sign
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module LSeq = Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module F56 = Hacl.Impl.BignumQ.Mul
module S56 = Hacl.Spec.Big... | {
"checked_file": "/",
"dependencies": [
"Spec.Ed25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.BignumQ.Definitions.fst.checked",
"Hacl.Impl.Store56.fst.checked"... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.BignumQ.Definitions",
"short_module": "S56"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Ed25519.Field51",
"short_module": "F51"
},
{
"... | {
"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 |
signature: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul ->
expanded_keys: Lib.Buffer.lbuffer Lib.IntTypes.uint8 96ul ->
msg_len: Lib.IntTypes.size_t ->
msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msg_len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.Sequence.eq_intro",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Spec.Ed25519.sign_expanded"... | [] | false | true | false | false | false | let sign_expanded signature expanded_keys msg_len msg =
| push_frame ();
let rs = sub signature 0ul 32ul in
let ss = sub signature 32ul 32ul in
let rq = create 5ul (u64 0) in
let hq = create 5ul (u64 0) in
let rb = create 32ul (u8 0) in
let public_key = sub expanded_keys 0ul 32ul in
let s = sub expanded_keys 32ul 32ul in
let prefix = sub expanded_keys 64ul 32ul in
Hacl.Impl.S... | false |
Spec.AES.fst | Spec.AES.gf8 | val gf8 : Spec.GaloisField.field | let gf8 = gf U8 irred | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 16,
"start_col": 0,
"start_line": 16
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *) | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.GaloisField.field | Prims.Tot | [
"total"
] | [] | [
"Spec.GaloisField.gf",
"Lib.IntTypes.U8",
"Spec.AES.irred"
] | [] | false | false | false | true | false | let gf8 =
| gf U8 irred | false | |
Spec.AES.fst | Spec.AES.to_elem | val to_elem : n: Prims.nat{n <= Lib.IntTypes.maxint (GF?.t Spec.AES.gf8)} -> Spec.GaloisField.felem Spec.AES.gf8 | let to_elem = to_felem #gf8 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 18,
"start_col": 0,
"start_line": 18
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat{n <= Lib.IntTypes.maxint (GF?.t Spec.AES.gf8)} -> Spec.GaloisField.felem Spec.AES.gf8 | Prims.Tot | [
"total"
] | [] | [
"Spec.GaloisField.to_felem",
"Spec.AES.gf8"
] | [] | false | false | false | false | false | let to_elem =
| to_felem #gf8 | false | |
Spec.AES.fst | Spec.AES.elem | val elem : Type0 | let elem = felem gf8 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 17,
"start_col": 0,
"start_line": 17
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.GaloisField.felem",
"Spec.AES.gf8"
] | [] | false | false | false | true | true | let elem =
| felem gf8 | false | |
Spec.AES.fst | Spec.AES.irred | val irred : u0: Lib.IntTypes.uint8{Lib.IntTypes.v u0 == 0x1b} | let irred = u8 0x1b | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 15,
"start_col": 0,
"start_line": 15
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | u0: Lib.IntTypes.uint8{Lib.IntTypes.v u0 == 0x1b} | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.u8"
] | [] | false | false | false | false | false | let irred =
| u8 0x1b | false | |
Spec.AES.fst | Spec.AES.two | val two : Spec.GaloisField.felem Spec.AES.gf8 | let two = to_elem 2 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 20,
"start_col": 0,
"start_line": 20
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8 | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.GaloisField.felem Spec.AES.gf8 | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.to_elem"
] | [] | false | false | false | true | false | let two =
| to_elem 2 | false | |
Spec.AES.fst | Spec.AES.zero | val zero : Spec.GaloisField.felem Spec.AES.gf8 | let zero = to_elem 0 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 19,
"start_col": 0,
"start_line": 19
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8 | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.GaloisField.felem Spec.AES.gf8 | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.to_elem"
] | [] | false | false | false | true | false | let zero =
| to_elem 0 | false | |
Spec.AES.fst | Spec.AES.three | val three : Spec.GaloisField.felem Spec.AES.gf8 | let three = to_elem 3 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0 | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.GaloisField.felem Spec.AES.gf8 | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.to_elem"
] | [] | false | false | false | true | false | let three =
| to_elem 3 | false | |
Spec.AES.fst | Spec.AES.key_size | val key_size : v: Spec.AES.variant -> Prims.int | let key_size (v:variant) =
match v with
| AES128 -> 16
| AES256 -> 32 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 41,
"start_col": 0,
"start_line": 38
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Prims.int"
] | [] | false | false | false | true | false | let key_size (v: variant) =
| match v with
| AES128 -> 16
| AES256 -> 32 | false | |
Spec.AES.fst | Spec.AES.num_rounds | val num_rounds : v: Spec.AES.variant -> Prims.int | let num_rounds (v:variant) =
match v with
| AES128 -> 10
| AES256 -> 14 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 36,
"start_col": 0,
"start_line": 33
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Prims.int"
] | [] | false | false | false | true | false | let num_rounds (v: variant) =
| match v with
| AES128 -> 10
| AES256 -> 14 | false | |
Spec.AES.fst | Spec.AES.mix4 | val mix4 (s0 s1 s2 s3: elem) : Tot elem | val mix4 (s0 s1 s2 s3: elem) : Tot elem | let mix4 (s0:elem) (s1:elem) (s2:elem) (s3:elem) : Tot elem =
(s0 `fmul` two) `fadd`
(s1 `fmul` three) `fadd`
s2 `fadd` s3 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 99,
"start_col": 0,
"start_line": 96
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | s0: Spec.AES.elem -> s1: Spec.AES.elem -> s2: Spec.AES.elem -> s3: Spec.AES.elem -> Spec.AES.elem | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.elem",
"Spec.GaloisField.fadd",
"Spec.AES.gf8",
"Spec.GaloisField.fmul",
"Spec.AES.two",
"Spec.AES.three"
] | [] | false | false | false | true | false | let mix4 (s0 s1 s2 s3: elem) : Tot elem =
| (((s0 `fmul` two) `fadd` (s1 `fmul` three)) `fadd` s2) `fadd` s3 | false |
Spec.AES.fst | Spec.AES.addRoundKey | val addRoundKey (key state: block) : Tot block | val addRoundKey (key state: block) : Tot block | let addRoundKey (key:block) (state:block) : Tot block =
xor_block state key | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 155,
"start_col": 0,
"start_line": 154
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | key: Spec.AES.block -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.xor_block"
] | [] | false | false | false | true | false | let addRoundKey (key state: block) : Tot block =
| xor_block state key | false |
Spec.AES.fst | Spec.AES.aes_enc | val aes_enc (key state: block) : Tot block | val aes_enc (key state: block) : Tot block | let aes_enc (key:block) (state:block) : Tot block =
let state = subBytes state in
let state = shiftRows state in
let state = mixColumns state in
let state = addRoundKey key state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 162,
"start_col": 0,
"start_line": 157
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | key: Spec.AES.block -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.addRoundKey",
"Spec.AES.mixColumns",
"Spec.AES.shiftRows",
"Spec.AES.subBytes"
] | [] | false | false | false | true | false | let aes_enc (key state: block) : Tot block =
| let state = subBytes state in
let state = shiftRows state in
let state = mixColumns state in
let state = addRoundKey key state in
state | false |
Spec.AES.fst | Spec.AES.aes_enc_last | val aes_enc_last (key state: block) : Tot block | val aes_enc_last (key state: block) : Tot block | let aes_enc_last (key:block) (state:block) : Tot block =
let state = subBytes state in
let state = shiftRows state in
let state = addRoundKey key state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 168,
"start_col": 0,
"start_line": 164
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | key: Spec.AES.block -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.addRoundKey",
"Spec.AES.shiftRows",
"Spec.AES.subBytes"
] | [] | false | false | false | true | false | let aes_enc_last (key state: block) : Tot block =
| let state = subBytes state in
let state = shiftRows state in
let state = addRoundKey key state in
state | false |
Spec.AES.fst | Spec.AES.sub_byte | val sub_byte : input: Spec.AES.elem -> Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC | let sub_byte (input:elem) =
let s = finv input in
s ^.
(s <<<. size 1) ^.
(s <<<. size 2) ^.
(s <<<. size 3) ^.
(s <<<. size 4) ^.
(to_elem 99) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 55,
"start_col": 0,
"start_line": 48
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | input: Spec.AES.elem -> Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.elem",
"Spec.AES.op_Hat_Dot",
"Spec.AES.op_Less_Less_Less_Dot",
"Lib.IntTypes.size",
"Spec.AES.to_elem",
"Spec.GaloisField.felem",
"Spec.AES.gf8",
"Spec.GaloisField.finv",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC"
] | [] | false | false | false | true | false | let sub_byte (input: elem) =
| let s = finv input in
s ^. (s <<<. size 1) ^. (s <<<. size 2) ^. (s <<<. size 3) ^. (s <<<. size 4) ^. (to_elem 99) | false | |
Spec.AES.fst | Spec.AES.aes_key | val aes_key : v: Spec.AES.variant -> Type0 | let aes_key (v:variant) = lbytes (key_size v) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 43,
"start_col": 0,
"start_line": 43
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Lib.ByteSequence.lbytes",
"Spec.AES.key_size"
] | [] | false | false | false | true | true | let aes_key (v: variant) =
| lbytes (key_size v) | false | |
Spec.AES.fst | Spec.AES.aes_dec | val aes_dec (key state: block) : Tot block | val aes_dec (key state: block) : Tot block | let aes_dec (key:block) (state:block) : Tot block =
let state = inv_subBytes state in
let state = inv_shiftRows state in
let state = inv_mixColumns state in
let state = addRoundKey key state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 175,
"start_col": 0,
"start_line": 170
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | key: Spec.AES.block -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.addRoundKey",
"Spec.AES.inv_mixColumns",
"Spec.AES.inv_shiftRows",
"Spec.AES.inv_subBytes"
] | [] | false | false | false | true | false | let aes_dec (key state: block) : Tot block =
| let state = inv_subBytes state in
let state = inv_shiftRows state in
let state = inv_mixColumns state in
let state = addRoundKey key state in
state | false |
Spec.AES.fst | Spec.AES.inv_sub_byte | val inv_sub_byte : input: Spec.AES.elem -> Spec.GaloisField.felem Spec.AES.gf8 | let inv_sub_byte (input:elem) =
let s = input in
let s:elem =
(s <<<. size 1) ^.
(s <<<. size 3) ^.
(s <<<. size 6) ^.
(u8 5)
in
finv s | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 65,
"start_col": 0,
"start_line": 57
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | input: Spec.AES.elem -> Spec.GaloisField.felem Spec.AES.gf8 | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.elem",
"Spec.GaloisField.finv",
"Spec.AES.gf8",
"Spec.AES.op_Hat_Dot",
"Spec.AES.op_Less_Less_Less_Dot",
"Lib.IntTypes.size",
"Lib.IntTypes.u8",
"Spec.GaloisField.felem"
] | [] | false | false | false | true | false | let inv_sub_byte (input: elem) =
| let s = input in
let s:elem = (s <<<. size 1) ^. (s <<<. size 3) ^. (s <<<. size 6) ^. (u8 5) in
finv s | false | |
Spec.AES.fst | Spec.AES.aes_dec_last | val aes_dec_last (key state: block) : Tot block | val aes_dec_last (key state: block) : Tot block | let aes_dec_last (key:block) (state:block) : Tot block =
let state = inv_subBytes state in
let state = inv_shiftRows state in
let state = addRoundKey key state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 181,
"start_col": 0,
"start_line": 177
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | key: Spec.AES.block -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.addRoundKey",
"Spec.AES.inv_shiftRows",
"Spec.AES.inv_subBytes"
] | [] | false | false | false | true | false | let aes_dec_last (key state: block) : Tot block =
| let state = inv_subBytes state in
let state = inv_shiftRows state in
let state = addRoundKey key state in
state | false |
Spec.AES.fst | Spec.AES.aes_xkey | val aes_xkey : v: Spec.AES.variant -> Type0 | let aes_xkey (v:variant) = lseq elem ((num_rounds v+1) * 16) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 60,
"end_line": 44,
"start_col": 0,
"start_line": 44
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"FStar.Mul.op_Star",
"Prims.op_Addition",
"Spec.AES.num_rounds"
] | [] | false | false | false | true | true | let aes_xkey (v: variant) =
| lseq elem ((num_rounds v + 1) * 16) | false | |
Spec.AES.fst | Spec.AES.aes_ikey | val aes_ikey : v: Spec.AES.variant -> Type0 | let aes_ikey (v:variant) = lseq elem ((num_rounds v-1) * 16) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 60,
"end_line": 45,
"start_col": 0,
"start_line": 45
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"FStar.Mul.op_Star",
"Prims.op_Subtraction",
"Spec.AES.num_rounds"
] | [] | false | false | false | true | true | let aes_ikey (v: variant) =
| lseq elem ((num_rounds v - 1) * 16) | false | |
Spec.AES.fst | Spec.AES.inv_subBytes | val inv_subBytes (state: block) : Tot block | val inv_subBytes (state: block) : Tot block | let inv_subBytes (state:block) : Tot block =
map inv_sub_byte state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 71,
"start_col": 0,
"start_line": 70
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Lib.Sequence.map",
"Spec.AES.elem",
"Spec.AES.inv_sub_byte"
] | [] | false | false | false | true | false | let inv_subBytes (state: block) : Tot block =
| map inv_sub_byte state | false |
Spec.AES.fst | Spec.AES.inv_mix4 | val inv_mix4 (s0 s1 s2 s3: elem) : Tot elem | val inv_mix4 (s0 s1 s2 s3: elem) : Tot elem | let inv_mix4 (s0:elem) (s1:elem) (s2:elem) (s3:elem) : Tot elem =
(*
(s0 `fmul` to_elem 11) `fadd`
(s1 `fmul` to_elem 13) `fadd`
(s2 `fmul` to_elem 9) `fadd`
(s3 `fmul` to_elem 14)
*)
(s0 `fmul` to_elem 14) `fadd`
(s1 `fmul` to_elem 11) `fadd`
(s2 `fmul` to_elem 13) `fadd`
(s3 `fmul` to_elem 9) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 111,
"start_col": 0,
"start_line": 101
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | s0: Spec.AES.elem -> s1: Spec.AES.elem -> s2: Spec.AES.elem -> s3: Spec.AES.elem -> Spec.AES.elem | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.elem",
"Spec.GaloisField.fadd",
"Spec.AES.gf8",
"Spec.GaloisField.fmul",
"Spec.AES.to_elem"
] | [] | false | false | false | true | false | let inv_mix4 (s0 s1 s2 s3: elem) : Tot elem =
| (((s0 `fmul` (to_elem 14)) `fadd` (s1 `fmul` (to_elem 11))) `fadd` (s2 `fmul` (to_elem 13)))
`fadd`
(s3 `fmul` (to_elem 9)) | false |
Spec.AES.fst | Spec.AES.subBytes | val subBytes (state: block) : Tot block | val subBytes (state: block) : Tot block | let subBytes (state:block) : Tot block =
map sub_byte state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 68,
"start_col": 0,
"start_line": 67
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Lib.Sequence.map",
"Spec.AES.elem",
"Spec.AES.sub_byte"
] | [] | false | false | false | true | false | let subBytes (state: block) : Tot block =
| map sub_byte state | false |
Spec.AES.fst | Spec.AES.mixColumns | val mixColumns (state: block) : Tot block | val mixColumns (state: block) : Tot block | let mixColumns (state:block) : Tot block =
let state = mixColumn 0 state in
let state = mixColumn 1 state in
let state = mixColumn 2 state in
let state = mixColumn 3 state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 130,
"start_col": 0,
"start_line": 125
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.mixColumn"
] | [] | false | false | false | true | false | let mixColumns (state: block) : Tot block =
| let state = mixColumn 0 state in
let state = mixColumn 1 state in
let state = mixColumn 2 state in
let state = mixColumn 3 state in
state | false |
Spec.AES.fst | Spec.AES.inv_shiftRows | val inv_shiftRows (state: block) : Tot block | val inv_shiftRows (state: block) : Tot block | let inv_shiftRows (state: block) : Tot block =
let state = shiftRow 1 3 state in
let state = shiftRow 2 2 state in
let state = shiftRow 3 1 state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 94,
"start_col": 0,
"start_line": 90
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.shiftRow"
] | [] | false | false | false | true | false | let inv_shiftRows (state: block) : Tot block =
| let state = shiftRow 1 3 state in
let state = shiftRow 2 2 state in
let state = shiftRow 3 1 state in
state | false |
Spec.AES.fst | Spec.AES.xor_block | val xor_block (b1 b2: block) : Tot block | val xor_block (b1 b2: block) : Tot block | let xor_block (b1:block) (b2:block) : Tot block =
map2 (logxor #U8) b1 b2 | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 152,
"start_col": 0,
"start_line": 151
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | b1: Spec.AES.block -> b2: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Lib.Sequence.map2",
"Spec.AES.elem",
"Lib.IntTypes.logxor",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC"
] | [] | false | false | false | true | false | let xor_block (b1 b2: block) : Tot block =
| map2 (logxor #U8) b1 b2 | false |
Spec.AES.fst | Spec.AES.shiftRows | val shiftRows (state: block) : Tot block | val shiftRows (state: block) : Tot block | let shiftRows (state: block) : Tot block =
let state = shiftRow 1 1 state in
let state = shiftRow 2 2 state in
let state = shiftRow 3 3 state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 88,
"start_col": 0,
"start_line": 84
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.shiftRow"
] | [] | false | false | false | true | false | let shiftRows (state: block) : Tot block =
| let state = shiftRow 1 1 state in
let state = shiftRow 2 2 state in
let state = shiftRow 3 3 state in
state | false |
Spec.AES.fst | Spec.AES.inv_mixColumns | val inv_mixColumns (state: block) : Tot block | val inv_mixColumns (state: block) : Tot block | let inv_mixColumns (state:block) : Tot block =
let state = inv_mixColumn 0 state in
let state = inv_mixColumn 1 state in
let state = inv_mixColumn 2 state in
let state = inv_mixColumn 3 state in
state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 149,
"start_col": 0,
"start_line": 144
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.inv_mixColumn"
] | [] | false | false | false | true | false | let inv_mixColumns (state: block) : Tot block =
| let state = inv_mixColumn 0 state in
let state = inv_mixColumn 1 state in
let state = inv_mixColumn 2 state in
let state = inv_mixColumn 3 state in
state | false |
Spec.AES.fst | Spec.AES.mixColumn | val mixColumn (c: size_nat{c < 4}) (state: block) : Tot block | val mixColumn (c: size_nat{c < 4}) (state: block) : Tot block | let mixColumn (c:size_nat{c < 4}) (state:block) : Tot block =
let i0 = 4 * c in
let s0 = state.[i0] in
let s1 = state.[i0 + 1] in
let s2 = state.[i0 + 2] in
let s3 = state.[i0 + 3] in
let state = state.[i0] <- mix4 s0 s1 s2 s3 in
let state = state.[i0+1] <- mix4 s1 s2 s3 s0 in
let state = state.[i0+2] <... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 123,
"start_col": 0,
"start_line": 113
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | c: Lib.IntTypes.size_nat{c < 4} -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.AES.block",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.upd",
"Prims.op_Addition",
"Spec.AES.mix4",
"Lib.Sequence.index",
"Prims.l_Forall",
... | [] | false | false | false | false | false | let mixColumn (c: size_nat{c < 4}) (state: block) : Tot block =
| let i0 = 4 * c in
let s0 = state.[ i0 ] in
let s1 = state.[ i0 + 1 ] in
let s2 = state.[ i0 + 2 ] in
let s3 = state.[ i0 + 3 ] in
let state = state.[ i0 ] <- mix4 s0 s1 s2 s3 in
let state = state.[ i0 + 1 ] <- mix4 s1 s2 s3 s0 in
let state = state.[ i0 + 2 ] <- mix4 s2 s3 s0 s1 in
let state = state.[ i0 + 3 ] <- mix4 s... | false |
Spec.AES.fst | Spec.AES.aes_ctr_current_key_block | val aes_ctr_current_key_block (v: variant) (st: aes_ctr_state v) : Tot block | val aes_ctr_current_key_block (v: variant) (st: aes_ctr_state v) : Tot block | let aes_ctr_current_key_block (v:variant) (st:aes_ctr_state v) : Tot block =
aes_encrypt_block v st.key_ex st.block | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 355,
"start_col": 0,
"start_line": 354
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> st: Spec.AES.aes_ctr_state v -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_ctr_state",
"Spec.AES.aes_encrypt_block",
"Spec.AES.__proj__Mkaes_ctr_state__item__key_ex",
"Spec.AES.__proj__Mkaes_ctr_state__item__block",
"Spec.AES.block"
] | [] | false | false | false | false | false | let aes_ctr_current_key_block (v: variant) (st: aes_ctr_state v) : Tot block =
| aes_encrypt_block v st.key_ex st.block | false |
Spec.AES.fst | Spec.AES.sub_word | val sub_word (w: word) : Tot word | val sub_word (w: word) : Tot word | let sub_word (w:word) : Tot word =
map sub_byte w | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 187,
"start_col": 0,
"start_line": 186
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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: Spec.AES.word -> Spec.AES.word | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.word",
"Lib.Sequence.map",
"Spec.AES.elem",
"Spec.AES.sub_byte"
] | [] | false | false | false | true | false | let sub_word (w: word) : Tot word =
| map sub_byte w | false |
Spec.AES.fst | Spec.AES.aes128_ctr_encrypt_bytes | val aes128_ctr_encrypt_bytes : key: Spec.AES.aes_key Spec.AES.AES128 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
nonce: Lib.ByteSequence.lbytes n_len ->
ctr0: Lib.IntTypes.size_nat ->
msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg / 16 + ctr0 <= Lib.IntTypes.max_size_t}
-> ciphertext:
Lib... | let aes128_ctr_encrypt_bytes key n_len nonce ctr0 msg =
aes_ctr_encrypt_bytes AES128 key n_len nonce ctr0 msg | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 416,
"start_col": 0,
"start_line": 415
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 |
key: Spec.AES.aes_key Spec.AES.AES128 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
nonce: Lib.ByteSequence.lbytes n_len ->
ctr0: Lib.IntTypes.size_nat ->
msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg / 16 + ctr0 <= Lib.IntTypes.max_size_t}
-> ciphertext:
Lib.Sequence.seq (Lib.IntType... | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.aes_key",
"Spec.AES.AES128",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Lib.ByteSequence.bytes",
"Prims.op_Addition",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.... | [] | false | false | false | false | false | let aes128_ctr_encrypt_bytes key n_len nonce ctr0 msg =
| aes_ctr_encrypt_bytes AES128 key n_len nonce ctr0 msg | false | |
Spec.AES.fst | Spec.AES.rcon_spec | val rcon_spec: i:size_nat -> Tot elem | val rcon_spec: i:size_nat -> Tot elem | let rec rcon_spec i =
if i = 0 then to_elem 0x8d
else if i = 1 then to_elem 1
else two `fmul` rcon_spec (i - 1) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 193,
"start_col": 0,
"start_line": 190
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | i: Lib.IntTypes.size_nat -> Spec.AES.elem | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.op_Equality",
"Prims.int",
"Spec.AES.to_elem",
"Prims.bool",
"Spec.GaloisField.fmul",
"Spec.AES.gf8",
"Spec.AES.two",
"Spec.AES.rcon_spec",
"Prims.op_Subtraction",
"Spec.AES.elem"
] | [
"recursion"
] | false | false | false | true | false | let rec rcon_spec i =
| if i = 0 then to_elem 0x8d else if i = 1 then to_elem 1 else two `fmul` (rcon_spec (i - 1)) | false |
Spec.AES.fst | Spec.AES.rcon_l | val rcon_l:list elem | val rcon_l:list elem | let rcon_l : list elem = [
to_elem 0x8d; to_elem 0x01; to_elem 0x02; to_elem 0x04;
to_elem 0x08; to_elem 0x10; to_elem 0x20; to_elem 0x40;
to_elem 0x80; to_elem 0x1b; to_elem 0x36
] | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 199,
"start_col": 0,
"start_line": 195
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list Spec.AES.elem | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"Spec.AES.elem",
"Spec.AES.to_elem",
"Prims.Nil"
] | [] | false | false | false | true | false | let rcon_l:list elem =
| [
to_elem 0x8d; to_elem 0x01; to_elem 0x02; to_elem 0x04; to_elem 0x08; to_elem 0x10; to_elem 0x20;
to_elem 0x40; to_elem 0x80; to_elem 0x1b; to_elem 0x36
] | false |
Spec.AES.fst | Spec.AES.aes128_ctr_key_block0 | val aes128_ctr_key_block0 : key: Spec.AES.aes_key Spec.AES.AES128 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
n: Lib.ByteSequence.lbytes n_len
-> Spec.AES.block | let aes128_ctr_key_block0 key n_len n =
aes_ctr_key_block0 AES128 key n_len n | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 419,
"start_col": 0,
"start_line": 418
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 |
key: Spec.AES.aes_key Spec.AES.AES128 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
n: Lib.ByteSequence.lbytes n_len
-> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.aes_key",
"Spec.AES.AES128",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Spec.AES.aes_ctr_key_block0",
"Spec.AES.block"
] | [] | false | false | false | false | false | let aes128_ctr_key_block0 key n_len n =
| aes_ctr_key_block0 AES128 key n_len n | false | |
Spec.AES.fst | Spec.AES.key_expansion_step | val key_expansion_step (p assist: block) : Tot block | val key_expansion_step (p assist: block) : Tot block | let key_expansion_step (p:block) (assist:block) : Tot block =
let p0 = create 16 (to_elem 0) in
let k = p in
let k = xor_block k (update_sub p0 4 12 (sub k 0 12)) in
let k = xor_block k (update_sub p0 4 12 (sub k 0 12)) in
let k = xor_block k (update_sub p0 4 12 (sub k 0 12)) in
xor_block k assist | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 248,
"start_col": 0,
"start_line": 242
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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: Spec.AES.block -> assist: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Spec.AES.xor_block",
"Lib.Sequence.update_sub",
"Spec.AES.elem",
"Lib.Sequence.sub",
"Lib.Sequence.lseq",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.create",
"Spec.AES.to_elem",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_imp",... | [] | false | false | false | true | false | let key_expansion_step (p assist: block) : Tot block =
| let p0 = create 16 (to_elem 0) in
let k = p in
let k = xor_block k (update_sub p0 4 12 (sub k 0 12)) in
let k = xor_block k (update_sub p0 4 12 (sub k 0 12)) in
let k = xor_block k (update_sub p0 4 12 (sub k 0 12)) in
xor_block k assist | false |
Spec.AES.fst | Spec.AES.aes128_ctr_key_block1 | val aes128_ctr_key_block1 : key: Spec.AES.aes_key Spec.AES.AES128 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
n: Lib.ByteSequence.lbytes n_len
-> Spec.AES.block | let aes128_ctr_key_block1 key n_len n =
aes_ctr_key_block0 AES128 key n_len n | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 422,
"start_col": 0,
"start_line": 421
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 |
key: Spec.AES.aes_key Spec.AES.AES128 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
n: Lib.ByteSequence.lbytes n_len
-> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.aes_key",
"Spec.AES.AES128",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Spec.AES.aes_ctr_key_block0",
"Spec.AES.block"
] | [] | false | false | false | false | false | let aes128_ctr_key_block1 key n_len n =
| aes_ctr_key_block0 AES128 key n_len n | false | |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.bv_to_string | val bv_to_string (bv: bv) : Tac string | val bv_to_string (bv: bv) : Tac string | let bv_to_string (bv : bv) : Tac string =
let bvv = inspect_bv bv in
unseal (bvv.bv_ppname) | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 30,
"start_col": 8,
"start_line": 28
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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 | bv: FStar.Stubs.Reflection.Types.bv -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.bv",
"FStar.Tactics.Unseal.unseal",
"Prims.string",
"FStar.Stubs.Reflection.V1.Data.__proj__Mkbv_view__item__bv_ppname",
"FStar.Stubs.Reflection.V1.Data.bv_view",
"Prims.precedes",
"FStar.Stubs.Reflection.V1.Builtins.inspect_bv"
] | [] | false | true | false | false | false | let bv_to_string (bv: bv) : Tac string =
| let bvv = inspect_bv bv in
unseal (bvv.bv_ppname) | false |
Spec.AES.fst | Spec.AES.keygen_assist0 | val keygen_assist0 (rcon: elem) (s: block) : Tot block | val keygen_assist0 (rcon: elem) (s: block) : Tot block | let keygen_assist0 (rcon:elem) (s:block) : Tot block =
let st = aes_keygen_assist rcon s in
let st = update_sub st 8 4 (sub st 12 4) in
let st = update_sub st 0 8 (sub st 8 8) in
st | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 234,
"start_col": 0,
"start_line": 230
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | rcon: Spec.AES.elem -> s: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.elem",
"Spec.AES.block",
"Lib.Sequence.lseq",
"Prims.l_and",
"Prims.eq2",
"Lib.Sequence.sub",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_or",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Addition",
"FStar.Seq.Base.index",
"Lib.Sequence.to_seq",
"Lib.Se... | [] | false | false | false | true | false | let keygen_assist0 (rcon: elem) (s: block) : Tot block =
| let st = aes_keygen_assist rcon s in
let st = update_sub st 8 4 (sub st 12 4) in
let st = update_sub st 0 8 (sub st 8 8) in
st | false |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.collect_app' | val collect_app' (args: list argv) (t: term) : Tac (term * list argv) | val collect_app' (args: list argv) (t: term) : Tac (term * list argv) | let rec collect_app' (args : list argv) (t : term)
: Tac (term * list argv) =
match inspect_unascribe t with
| Tv_App l r ->
collect_app' (r::args) l
| _ -> (t, args) | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 42,
"start_col": 8,
"start_line": 37
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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 | args: Prims.list FStar.Stubs.Reflection.V1.Data.argv -> t: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac
(FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V1.Data.argv) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.list",
"FStar.Stubs.Reflection.V1.Data.argv",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Formula.collect_app'",
"Prims.Cons",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Pervasives.Native.Mktuple2",
"Prims.b2t",
"FStar.Stubs.Reflection... | [
"recursion"
] | false | true | false | false | false | let rec collect_app' (args: list argv) (t: term) : Tac (term * list argv) =
| match inspect_unascribe t with
| Tv_App l r -> collect_app' (r :: args) l
| _ -> (t, args) | false |
Spec.AES.fst | Spec.AES.rcon_seq | val rcon_seq:lseq elem 11 | val rcon_seq:lseq elem 11 | let rcon_seq : lseq elem 11 =
assert_norm (List.Tot.length rcon_l == 11);
of_list rcon_l | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 203,
"start_col": 0,
"start_line": 201
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | Lib.Sequence.lseq Spec.AES.elem 11 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Spec.AES.elem",
"Spec.AES.rcon_l",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let rcon_seq:lseq elem 11 =
| assert_norm (List.Tot.length rcon_l == 11);
of_list rcon_l | false |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.mk_Exists | val mk_Exists (typ pred: term) : Tac formula | val mk_Exists (typ pred: term) : Tac formula | let mk_Exists (typ : term) (pred : term) : Tac formula =
let b = pack_bv ({ bv_ppname = as_ppname "x";
bv_index = 0; }) in
Exists b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit))) | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 76,
"start_col": 0,
"start_line": 73
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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 | typ: FStar.Stubs.Reflection.Types.term -> pred: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.Reflection.V1.Formula.formula | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Formula.Exists",
"FStar.Stubs.Reflection.V1.Builtins.pack_ln",
"FStar.Stubs.Reflection.V1.Data.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V1.Data.aqualv",
"FStar.Stubs.Reflection.V1.Data.Tv_BVar",
"FStar.Stubs.Reflecti... | [] | false | true | false | false | false | let mk_Exists (typ pred: term) : Tac formula =
| let b = pack_bv ({ bv_ppname = as_ppname "x"; bv_index = 0 }) in
Exists b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit))) | false |
Spec.AES.fst | Spec.AES.aes_ctr_add_counter | val aes_ctr_add_counter (v: variant) (st: aes_ctr_state v) (incr: size_nat) : Tot (aes_ctr_state v) | val aes_ctr_add_counter (v: variant) (st: aes_ctr_state v) (incr: size_nat) : Tot (aes_ctr_state v) | let aes_ctr_add_counter (v:variant) (st:aes_ctr_state v) (incr:size_nat) : Tot (aes_ctr_state v) =
let n = nat_from_bytes_be st.block in
let n' = (n + incr) % pow2 128 in
let nblock' = nat_to_bytes_be 16 n' in
{st with block = nblock'} | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 345,
"start_col": 0,
"start_line": 341
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> st: Spec.AES.aes_ctr_state v -> incr: Lib.IntTypes.size_nat
-> Spec.AES.aes_ctr_state v | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_ctr_state",
"Lib.IntTypes.size_nat",
"Spec.AES.Mkaes_ctr_state",
"Spec.AES.__proj__Mkaes_ctr_state__item__key_ex",
"Lib.Sequence.seq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"Lib.Sequence.length"... | [] | false | false | false | false | false | let aes_ctr_add_counter (v: variant) (st: aes_ctr_state v) (incr: size_nat) : Tot (aes_ctr_state v) =
| let n = nat_from_bytes_be st.block in
let n' = (n + incr) % pow2 128 in
let nblock' = nat_to_bytes_be 16 n' in
{ st with block = nblock' } | false |
Spec.AES.fst | Spec.AES.aes_key_expansion | val aes_key_expansion (v: variant) (key: aes_key v) : aes_xkey v | val aes_key_expansion (v: variant) (key: aes_key v) : aes_xkey v | let aes_key_expansion (v:variant) (key: aes_key v) : aes_xkey v =
match v with
| AES128 -> aes128_key_expansion key
| AES256 -> aes256_key_expansion key | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 287,
"start_col": 0,
"start_line": 284
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> key: Spec.AES.aes_key v -> Spec.AES.aes_xkey v | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_key",
"Spec.AES.aes128_key_expansion",
"Spec.AES.aes256_key_expansion",
"Spec.AES.aes_xkey"
] | [] | false | false | false | false | false | let aes_key_expansion (v: variant) (key: aes_key v) : aes_xkey v =
| match v with
| AES128 -> aes128_key_expansion key
| AES256 -> aes256_key_expansion key | false |
Spec.AES.fst | Spec.AES.inv_mixColumn | val inv_mixColumn (c: size_nat{c < 4}) (state: block) : Tot block | val inv_mixColumn (c: size_nat{c < 4}) (state: block) : Tot block | let inv_mixColumn (c:size_nat{c < 4}) (state:block) : Tot block =
let i0 = 4 * c in
let s0 = state.[i0] in
let s1 = state.[i0 + 1] in
let s2 = state.[i0 + 2] in
let s3 = state.[i0 + 3] in
let state = state.[i0] <- inv_mix4 s0 s1 s2 s3 in
let state = state.[i0+1] <- inv_mix4 s1 s2 s3 s0 in
let state = st... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 142,
"start_col": 0,
"start_line": 132
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | c: Lib.IntTypes.size_nat{c < 4} -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.AES.block",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.upd",
"Prims.op_Addition",
"Spec.AES.inv_mix4",
"Lib.Sequence.index",
"Prims.l_Foral... | [] | false | false | false | false | false | let inv_mixColumn (c: size_nat{c < 4}) (state: block) : Tot block =
| let i0 = 4 * c in
let s0 = state.[ i0 ] in
let s1 = state.[ i0 + 1 ] in
let s2 = state.[ i0 + 2 ] in
let s3 = state.[ i0 + 3 ] in
let state = state.[ i0 ] <- inv_mix4 s0 s1 s2 s3 in
let state = state.[ i0 + 1 ] <- inv_mix4 s1 s2 s3 s0 in
let state = state.[ i0 + 2 ] <- inv_mix4 s2 s3 s0 s1 in
let state = state.[ i0 + 3... | false |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.mk_Forall | val mk_Forall (typ pred: term) : Tac formula | val mk_Forall (typ pred: term) : Tac formula | let mk_Forall (typ : term) (pred : term) : Tac formula =
let b = pack_bv ({ bv_ppname = as_ppname "x";
bv_index = 0; }) in
Forall b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit))) | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 71,
"start_col": 0,
"start_line": 68
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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 | typ: FStar.Stubs.Reflection.Types.term -> pred: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.Reflection.V1.Formula.formula | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Formula.Forall",
"FStar.Stubs.Reflection.V1.Builtins.pack_ln",
"FStar.Stubs.Reflection.V1.Data.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V1.Data.aqualv",
"FStar.Stubs.Reflection.V1.Data.Tv_BVar",
"FStar.Stubs.Reflecti... | [] | false | true | false | false | false | let mk_Forall (typ pred: term) : Tac formula =
| let b = pack_bv ({ bv_ppname = as_ppname "x"; bv_index = 0 }) in
Forall b typ (pack_ln (Tv_App pred (pack_ln (Tv_BVar b), Q_Explicit))) | false |
Spec.AES.fst | Spec.AES.aes_enc_rounds | val aes_enc_rounds (v: variant) (key: aes_ikey v) (state: block) : Tot block | val aes_enc_rounds (v: variant) (key: aes_ikey v) (state: block) : Tot block | let aes_enc_rounds (v:variant) (key:aes_ikey v) (state:block) : Tot block =
repeati (num_rounds v-1) (fun i -> aes_enc (sub key (16*i) 16)) state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 71,
"end_line": 304,
"start_col": 0,
"start_line": 303
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> key: Spec.AES.aes_ikey v -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_ikey",
"Spec.AES.block",
"Lib.LoopCombinators.repeati",
"Prims.op_Subtraction",
"Spec.AES.num_rounds",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.AES.aes_enc",
"Lib.Sequence.sub",
"Spec.AES.elem",
"FStar.Mul.op_Star"
] | [] | false | false | false | false | false | let aes_enc_rounds (v: variant) (key: aes_ikey v) (state: block) : Tot block =
| repeati (num_rounds v - 1) (fun i -> aes_enc (sub key (16 * i) 16)) state | false |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.collect_app | val collect_app : t: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac
(FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V1.Data.argv) | let collect_app = collect_app' [] | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 43,
"start_col": 8,
"start_line": 43
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac
(FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V1.Data.argv) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Reflection.V1.Formula.collect_app'",
"Prims.Nil",
"FStar.Stubs.Reflection.V1.Data.argv"
] | [] | false | true | false | false | false | let collect_app =
| collect_app' [] | false | |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.term_as_formula_total | val term_as_formula_total (t: term) : Tac formula | val term_as_formula_total (t: term) : Tac formula | let term_as_formula_total (t:term) : Tac formula =
term_as_formula' (maybe_unsquash_term t) | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 164,
"start_col": 0,
"start_line": 163
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac FStar.Reflection.V1.Formula.formula | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Formula.term_as_formula'",
"FStar.Reflection.V1.Derived.maybe_unsquash_term",
"FStar.Reflection.V1.Formula.formula"
] | [] | false | true | false | false | false | let term_as_formula_total (t: term) : Tac formula =
| term_as_formula' (maybe_unsquash_term t) | false |
Spec.AES.fst | Spec.AES.aes_dec_rounds | val aes_dec_rounds (v: variant) (key: aes_ikey v) (state: block) : Tot block | val aes_dec_rounds (v: variant) (key: aes_ikey v) (state: block) : Tot block | let aes_dec_rounds (v:variant) (key:aes_ikey v) (state:block) : Tot block =
repeati (num_rounds v-1) (fun i -> aes_dec (sub key (16*i) 16)) state | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 71,
"end_line": 317,
"start_col": 0,
"start_line": 316
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> key: Spec.AES.aes_ikey v -> state: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_ikey",
"Spec.AES.block",
"Lib.LoopCombinators.repeati",
"Prims.op_Subtraction",
"Spec.AES.num_rounds",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.AES.aes_dec",
"Lib.Sequence.sub",
"Spec.AES.elem",
"FStar.Mul.op_Star"
] | [] | false | false | false | false | false | let aes_dec_rounds (v: variant) (key: aes_ikey v) (state: block) : Tot block =
| repeati (num_rounds v - 1) (fun i -> aes_dec (sub key (16 * i) 16)) state | false |
Spec.AES.fst | Spec.AES.aes256_ctr_encrypt_bytes | val aes256_ctr_encrypt_bytes : key: Spec.AES.aes_key Spec.AES.AES256 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
nonce: Lib.ByteSequence.lbytes n_len ->
ctr0: Lib.IntTypes.size_nat ->
msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg / 16 + ctr0 <= Lib.IntTypes.max_size_t}
-> ciphertext:
Lib... | let aes256_ctr_encrypt_bytes key n_len nonce ctr0 msg =
aes_ctr_encrypt_bytes AES256 key n_len nonce ctr0 msg | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 425,
"start_col": 0,
"start_line": 424
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 |
key: Spec.AES.aes_key Spec.AES.AES256 ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
nonce: Lib.ByteSequence.lbytes n_len ->
ctr0: Lib.IntTypes.size_nat ->
msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg / 16 + ctr0 <= Lib.IntTypes.max_size_t}
-> ciphertext:
Lib.Sequence.seq (Lib.IntType... | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.aes_key",
"Spec.AES.AES256",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Lib.ByteSequence.bytes",
"Prims.op_Addition",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.... | [] | false | false | false | false | false | let aes256_ctr_encrypt_bytes key n_len nonce ctr0 msg =
| aes_ctr_encrypt_bytes AES256 key n_len nonce ctr0 msg | false | |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.formula_as_term | val formula_as_term (f: formula) : Tot term | val formula_as_term (f: formula) : Tot term | let formula_as_term (f:formula) : Tot term =
pack_ln (formula_as_term_view f) | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 205,
"start_col": 0,
"start_line": 204
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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: FStar.Reflection.V1.Formula.formula -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Reflection.V1.Formula.formula",
"FStar.Stubs.Reflection.V1.Builtins.pack_ln",
"FStar.Reflection.V1.Formula.formula_as_term_view",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let formula_as_term (f: formula) : Tot term =
| pack_ln (formula_as_term_view f) | false |
Spec.AES.fst | Spec.AES.keygen_assist1 | val keygen_assist1 (s: block) : Tot block | val keygen_assist1 (s: block) : Tot block | let keygen_assist1 (s:block) : Tot block =
let st = aes_keygen_assist zero s in
let st = update_sub st 12 4 (sub st 8 4) in
let st = update_sub st 0 8 (sub st 8 8) in
st | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 240,
"start_col": 0,
"start_line": 236
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.block",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"Prims.l_and",
"Prims.eq2",
"Lib.Sequence.sub",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_or",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Addition",
"FStar.Seq.Base.index",
"Lib.Sequence.to_seq",
"Lib.Se... | [] | false | false | false | true | false | let keygen_assist1 (s: block) : Tot block =
| let st = aes_keygen_assist zero s in
let st = update_sub st 12 4 (sub st 8 4) in
let st = update_sub st 0 8 (sub st 8 8) in
st | false |
Spec.AES.fst | Spec.AES.aes_encrypt_block | val aes_encrypt_block (v: variant) (key: aes_xkey v) (input: block) : Tot block | val aes_encrypt_block (v: variant) (key: aes_xkey v) (input: block) : Tot block | let aes_encrypt_block (v:variant) (key:aes_xkey v) (input:block) : Tot block =
let state = input in
let k0 = slice key 0 16 in
let k = sub key 16 ((num_rounds v-1) * 16) in
let kn = sub key (num_rounds v * 16) 16 in
let state = addRoundKey k0 state in
let state = aes_enc_rounds v k state in
let state = ae... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 314,
"start_col": 0,
"start_line": 306
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> key: Spec.AES.aes_xkey v -> input: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_xkey",
"Spec.AES.block",
"Spec.AES.aes_enc_last",
"Spec.AES.aes_enc_rounds",
"Spec.AES.addRoundKey",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.slice",
"Prims.op_Multiply",... | [] | false | false | false | false | false | let aes_encrypt_block (v: variant) (key: aes_xkey v) (input: block) : Tot block =
| let state = input in
let k0 = slice key 0 16 in
let k = sub key 16 ((num_rounds v - 1) * 16) in
let kn = sub key (num_rounds v * 16) 16 in
let state = addRoundKey k0 state in
let state = aes_enc_rounds v k state in
let state = aes_enc_last kn state in
state | false |
Spec.AES.fst | Spec.AES.aes_dec_key_expansion | val aes_dec_key_expansion (v: variant) (key: aes_key v) : aes_xkey v | val aes_dec_key_expansion (v: variant) (key: aes_key v) : aes_xkey v | let aes_dec_key_expansion (v:variant) (key:aes_key v): aes_xkey v =
let ekey_ex : aes_xkey v = aes_key_expansion v key in
let k0 = sub ekey_ex 0 16 in
let kn = sub ekey_ex ((num_rounds v) * 16) 16 in
let _,key_ex = generate_blocks 16 (num_rounds v + 1) (num_rounds v + 1)
(fun i -> unit)
(fun i a ->
let ... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 301,
"start_col": 0,
"start_line": 289
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> key: Spec.AES.aes_key v -> Spec.AES.aes_xkey v | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_key",
"Prims.unit",
"Lib.Sequence.seq",
"Spec.AES.elem",
"Prims.eq2",
"Prims.int",
"Lib.Sequence.length",
"FStar.Mul.op_Star",
"Prims.op_Addition",
"Spec.AES.num_rounds",
"Spec.AES.aes_xkey",
"FStar.Pervasives.Native.tuple2",
"Prims.op_Multiply",
"Lib.Se... | [] | false | false | false | false | false | let aes_dec_key_expansion (v: variant) (key: aes_key v) : aes_xkey v =
| let ekey_ex:aes_xkey v = aes_key_expansion v key in
let k0 = sub ekey_ex 0 16 in
let kn = sub ekey_ex ((num_rounds v) * 16) 16 in
let _, key_ex =
generate_blocks 16
(num_rounds v + 1)
(num_rounds v + 1)
(fun i -> unit)
(fun i a ->
let b = sub ekey_ex ((num_rounds v - i) * 16) 16 in
if ... | false |
Spec.AES.fst | Spec.AES.rotate_word | val rotate_word (w: word) : Tot word | val rotate_word (w: word) : Tot word | let rotate_word (w:word) : Tot word =
of_list [w.[1]; w.[2]; w.[3]; w.[0]] | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 184,
"start_col": 0,
"start_line": 183
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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: Spec.AES.word -> Spec.AES.word | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.word",
"Lib.Sequence.of_list",
"Spec.AES.elem",
"Prims.Cons",
"Lib.Sequence.op_String_Access",
"Prims.Nil"
] | [] | false | false | false | true | false | let rotate_word (w: word) : Tot word =
| of_list [w.[ 1 ]; w.[ 2 ]; w.[ 3 ]; w.[ 0 ]] | false |
Spec.AES.fst | Spec.AES.aes_decrypt_block | val aes_decrypt_block (v: variant) (key: aes_xkey v) (input: block) : Tot block | val aes_decrypt_block (v: variant) (key: aes_xkey v) (input: block) : Tot block | let aes_decrypt_block (v:variant) (key:aes_xkey v) (input:block) : Tot block =
let state = input in
let k0 = slice key 0 16 in
let k = sub key 16 ((num_rounds v-1) * 16) in
let kn = sub key (num_rounds v * 16) 16 in
let state = addRoundKey k0 state in
let state = aes_dec_rounds v k state in
let state = ae... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 327,
"start_col": 0,
"start_line": 319
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Spec.AES.variant -> key: Spec.AES.aes_xkey v -> input: Spec.AES.block -> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_xkey",
"Spec.AES.block",
"Spec.AES.aes_dec_last",
"Spec.AES.aes_dec_rounds",
"Spec.AES.addRoundKey",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.slice",
"Prims.op_Multiply",... | [] | false | false | false | false | false | let aes_decrypt_block (v: variant) (key: aes_xkey v) (input: block) : Tot block =
| let state = input in
let k0 = slice key 0 16 in
let k = sub key 16 ((num_rounds v - 1) * 16) in
let kn = sub key (num_rounds v * 16) 16 in
let state = addRoundKey k0 state in
let state = aes_dec_rounds v k state in
let state = aes_dec_last kn state in
state | false |
Spec.AES.fst | Spec.AES.aes_ctr_key_block0 | val aes_ctr_key_block0 (v: variant) (k: aes_key v) (n_len: size_nat{n_len <= 16}) (n: lbytes n_len)
: Tot block | val aes_ctr_key_block0 (v: variant) (k: aes_key v) (n_len: size_nat{n_len <= 16}) (n: lbytes n_len)
: Tot block | let aes_ctr_key_block0 (v:variant) (k:aes_key v) (n_len:size_nat{n_len <= 16}) (n:lbytes n_len) : Tot block =
let st = aes_ctr_init v k n_len n 0 in
aes_ctr_current_key_block v st | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 359,
"start_col": 0,
"start_line": 357
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
k: Spec.AES.aes_key v ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
n: Lib.ByteSequence.lbytes n_len
-> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_key",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Spec.AES.aes_ctr_current_key_block",
"Spec.AES.aes_ctr_state",
"Spec.AES.aes_ctr_init",
"Spec.AES.block"
] | [] | false | false | false | false | false | let aes_ctr_key_block0 (v: variant) (k: aes_key v) (n_len: size_nat{n_len <= 16}) (n: lbytes n_len)
: Tot block =
| let st = aes_ctr_init v k n_len n 0 in
aes_ctr_current_key_block v st | false |
Spec.AES.fst | Spec.AES.aes_ctr_key_block1 | val aes_ctr_key_block1 (v: variant) (k: aes_key v) (n_len: size_nat{n_len <= 16}) (n: lbytes n_len)
: Tot block | val aes_ctr_key_block1 (v: variant) (k: aes_key v) (n_len: size_nat{n_len <= 16}) (n: lbytes n_len)
: Tot block | let aes_ctr_key_block1 (v:variant) (k:aes_key v) (n_len:size_nat{n_len <= 16}) (n:lbytes n_len) : Tot block =
let st = aes_ctr_init v k n_len n 1 in
aes_ctr_current_key_block v st | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 363,
"start_col": 0,
"start_line": 361
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
k: Spec.AES.aes_key v ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
n: Lib.ByteSequence.lbytes n_len
-> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_key",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Spec.AES.aes_ctr_current_key_block",
"Spec.AES.aes_ctr_state",
"Spec.AES.aes_ctr_init",
"Spec.AES.block"
] | [] | false | false | false | false | false | let aes_ctr_key_block1 (v: variant) (k: aes_key v) (n_len: size_nat{n_len <= 16}) (n: lbytes n_len)
: Tot block =
| let st = aes_ctr_init v k n_len n 1 in
aes_ctr_current_key_block v st | false |
Spec.AES.fst | Spec.AES.aes_ctr_init | val aes_ctr_init
(v: variant)
(k: aes_key v)
(n_len: size_nat{n_len <= 16})
(n: lbytes n_len)
(c0: size_nat)
: Tot (aes_ctr_state v) | val aes_ctr_init
(v: variant)
(k: aes_key v)
(n_len: size_nat{n_len <= 16})
(n: lbytes n_len)
(c0: size_nat)
: Tot (aes_ctr_state v) | let aes_ctr_init (v:variant) (k:aes_key v) (n_len:size_nat{n_len <= 16}) (n:lbytes n_len) (c0:size_nat) : Tot (aes_ctr_state v) =
let input = create 16 (u8 0) in
let input = repeati #(lbytes 16) n_len (fun i b -> b.[i] <- n.[i]) input in
let key_ex = aes_key_expansion v k in
let st0 = { key_ex = key_ex; block =... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 352,
"start_col": 0,
"start_line": 347
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
k: Spec.AES.aes_key v ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
n: Lib.ByteSequence.lbytes n_len ->
c0: Lib.IntTypes.size_nat
-> Spec.AES.aes_ctr_state v | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_key",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Spec.AES.aes_ctr_add_counter",
"Spec.AES.aes_ctr_state",
"Spec.AES.Mkaes_ctr_state",
"Spec.AES.aes_xkey",
"Spec.AES.aes_key_expansion",
"Lib.Sequence.lseq",
"... | [] | false | false | false | false | false | let aes_ctr_init
(v: variant)
(k: aes_key v)
(n_len: size_nat{n_len <= 16})
(n: lbytes n_len)
(c0: size_nat)
: Tot (aes_ctr_state v) =
| let input = create 16 (u8 0) in
let input = repeati #(lbytes 16) n_len (fun i b -> b.[ i ] <- n.[ i ]) input in
let key_ex = aes_key_expansion v k in
let st0 = { key_ex = key_ex; block = input } in
aes_ctr_add_counter v st0 c0 | false |
Spec.AES.fst | Spec.AES.aes_ctr_encrypt_last | val aes_ctr_encrypt_last
(v: variant)
(st0: aes_ctr_state v)
(incr: size_nat)
(len: size_nat{len < 16})
(b: lbytes len)
: Tot (lbytes len) | val aes_ctr_encrypt_last
(v: variant)
(st0: aes_ctr_state v)
(incr: size_nat)
(len: size_nat{len < 16})
(b: lbytes len)
: Tot (lbytes len) | let aes_ctr_encrypt_last
(v:variant)
(st0:aes_ctr_state v)
(incr:size_nat)
(len:size_nat{len < 16})
(b:lbytes len):
Tot (lbytes len) =
let plain = create 16 (u8 0) in
let plain = update_sub plain 0 (length b) b in
let cipher = aes_ctr_encrypt_block v st0 incr plain in
sub cipher 0 (length b) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 387,
"start_col": 0,
"start_line": 376
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
st0: Spec.AES.aes_ctr_state v ->
incr: Lib.IntTypes.size_nat ->
len: Lib.IntTypes.size_nat{len < 16} ->
b: Lib.ByteSequence.lbytes len
-> Lib.ByteSequence.lbytes len | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_ctr_state",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.ByteSequence.lbytes",
"Lib.Sequence.sub",
"Spec.AES.elem",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.AES.block",
"Spec.AES.aes_ctr_... | [] | false | false | false | false | false | let aes_ctr_encrypt_last
(v: variant)
(st0: aes_ctr_state v)
(incr: size_nat)
(len: size_nat{len < 16})
(b: lbytes len)
: Tot (lbytes len) =
| let plain = create 16 (u8 0) in
let plain = update_sub plain 0 (length b) b in
let cipher = aes_ctr_encrypt_block v st0 incr plain in
sub cipher 0 (length b) | false |
Spec.AES.fst | Spec.AES.aes_ctr_encrypt_block | val aes_ctr_encrypt_block (v: variant) (st0: aes_ctr_state v) (incr: size_nat) (b: block)
: Tot block | val aes_ctr_encrypt_block (v: variant) (st0: aes_ctr_state v) (incr: size_nat) (b: block)
: Tot block | let aes_ctr_encrypt_block
(v:variant)
(st0:aes_ctr_state v)
(incr:size_nat)
(b:block) :
Tot block =
let st = aes_ctr_add_counter v st0 incr in
let kb = aes_ctr_current_key_block v st in
map2 (^.) b kb | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 374,
"start_col": 0,
"start_line": 365
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
st0: Spec.AES.aes_ctr_state v ->
incr: Lib.IntTypes.size_nat ->
b: Spec.AES.block
-> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_ctr_state",
"Lib.IntTypes.size_nat",
"Spec.AES.block",
"Lib.Sequence.map2",
"Spec.AES.elem",
"Spec.AES.op_Hat_Dot",
"Spec.AES.aes_ctr_current_key_block",
"Spec.AES.aes_ctr_add_counter"
] | [] | false | false | false | false | false | let aes_ctr_encrypt_block (v: variant) (st0: aes_ctr_state v) (incr: size_nat) (b: block)
: Tot block =
| let st = aes_ctr_add_counter v st0 incr in
let kb = aes_ctr_current_key_block v st in
map2 ( ^. ) b kb | false |
Spec.AES.fst | Spec.AES.aes_ctr_encrypt_stream | val aes_ctr_encrypt_stream:
v:variant
-> st:aes_ctr_state v
-> msg:bytes{length msg / 16 <= max_size_t} ->
Tot (ciphertext:bytes{length ciphertext == length msg}) | val aes_ctr_encrypt_stream:
v:variant
-> st:aes_ctr_state v
-> msg:bytes{length msg / 16 <= max_size_t} ->
Tot (ciphertext:bytes{length ciphertext == length msg}) | let aes_ctr_encrypt_stream v st msg =
map_blocks 16 msg
(aes_ctr_encrypt_block v st)
(aes_ctr_encrypt_last v st) | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 398,
"start_col": 0,
"start_line": 395
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
st: Spec.AES.aes_ctr_state v ->
msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg / 16 <= Lib.IntTypes.max_size_t}
-> ciphertext: Lib.ByteSequence.bytes{Lib.Sequence.length ciphertext == Lib.Sequence.length msg} | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_ctr_state",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.IntTypes.max_size_t",
"Lib.Sequence.map_blocks",
"Spec.AES.aes_ctr_e... | [] | false | false | false | false | false | let aes_ctr_encrypt_stream v st msg =
| map_blocks 16 msg (aes_ctr_encrypt_block v st) (aes_ctr_encrypt_last v st) | false |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.inspect_unascribe | val inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv}) | val inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv}) | let rec inspect_unascribe (t:term) : Tac (tv:term_view{notAscription tv}) =
match inspect t with
| Tv_AscribedT t _ _ _
| Tv_AscribedC t _ _ _ ->
inspect_unascribe t
| tv -> tv | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 36,
"start_col": 8,
"start_line": 31
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac
(tv: FStar.Stubs.Reflection.V1.Data.term_view{FStar.Stubs.Reflection.V1.Data.notAscription tv}) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.option",
"Prims.bool",
"FStar.Reflection.V1.Formula.inspect_unascribe",
"FStar.Stubs.Reflection.V1.Data.term_view",
"Prims.b2t",
"FStar.Stubs.Reflection.V1.Data.notAscription",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Stubs.Tactics.V1.... | [
"recursion"
] | false | true | false | false | false | let rec inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv}) =
| match inspect t with
| Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t
| tv -> tv | false |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.term_as_formula | val term_as_formula (t: term) : Tac formula | val term_as_formula (t: term) : Tac formula | let term_as_formula (t:term) : Tac formula =
match unsquash_term t with
| None -> F_Unknown
| Some t ->
term_as_formula' t | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 161,
"start_col": 0,
"start_line": 157
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac FStar.Reflection.V1.Formula.formula | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Derived.unsquash_term",
"FStar.Reflection.V1.Formula.F_Unknown",
"FStar.Reflection.V1.Formula.formula",
"FStar.Reflection.V1.Formula.term_as_formula'"
] | [] | false | true | false | false | false | let term_as_formula (t: term) : Tac formula =
| match unsquash_term t with
| None -> F_Unknown
| Some t -> term_as_formula' t | false |
Spec.AES.fst | Spec.AES.aes_ctr_encrypt_bytes | val aes_ctr_encrypt_bytes:
v:variant
-> key:aes_key v
-> n_len:size_nat{n_len <= 16}
-> nonce:lbytes n_len
-> c:size_nat
-> msg:bytes{length msg / 16 + c <= max_size_t} ->
Tot (ciphertext:bytes{length ciphertext == length msg}) | val aes_ctr_encrypt_bytes:
v:variant
-> key:aes_key v
-> n_len:size_nat{n_len <= 16}
-> nonce:lbytes n_len
-> c:size_nat
-> msg:bytes{length msg / 16 + c <= max_size_t} ->
Tot (ciphertext:bytes{length ciphertext == length msg}) | let aes_ctr_encrypt_bytes v key n_len nonce ctr0 msg =
let st0 = aes_ctr_init v key n_len nonce ctr0 in
aes_ctr_encrypt_stream v st0 msg | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 412,
"start_col": 0,
"start_line": 410
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
key: Spec.AES.aes_key v ->
n_len: Lib.IntTypes.size_nat{n_len <= 16} ->
nonce: Lib.ByteSequence.lbytes n_len ->
c: Lib.IntTypes.size_nat ->
msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg / 16 + c <= Lib.IntTypes.max_size_t}
-> ciphertext: Lib.ByteSequence.bytes{Lib... | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_key",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Lib.ByteSequence.bytes",
"Prims.op_Addition",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib... | [] | false | false | false | false | false | let aes_ctr_encrypt_bytes v key n_len nonce ctr0 msg =
| let st0 = aes_ctr_init v key n_len nonce ctr0 in
aes_ctr_encrypt_stream v st0 msg | false |
Spec.AES.fst | Spec.AES.aes_ctr_key_block | val aes_ctr_key_block (v: variant) (k: aes_xkey v) (n: lbytes 12) (c: size_nat) : Tot block | val aes_ctr_key_block (v: variant) (k: aes_xkey v) (n: lbytes 12) (c: size_nat) : Tot block | let aes_ctr_key_block (v:variant) (k:aes_xkey v) (n:lbytes 12) (c:size_nat) : Tot block =
let ctrby = nat_to_bytes_be 4 c in
let input = create 16 (u8 0) in
let input = repeati #(lbytes 16) 12 (fun i b -> b.[i] <- n.[i]) input in
let input = repeati #(lbytes 16) 4 (fun i b -> b.[12+i] <- (Seq.index ctrby i)) in... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 334,
"start_col": 0,
"start_line": 329
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Spec.AES.variant ->
k: Spec.AES.aes_xkey v ->
n: Lib.ByteSequence.lbytes 12 ->
c: Lib.IntTypes.size_nat
-> Spec.AES.block | Prims.Tot | [
"total"
] | [] | [
"Spec.AES.variant",
"Spec.AES.aes_xkey",
"Lib.ByteSequence.lbytes",
"Lib.IntTypes.size_nat",
"Spec.AES.aes_encrypt_block",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.LoopCombinators.repeati",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.Se... | [] | false | false | false | false | false | let aes_ctr_key_block (v: variant) (k: aes_xkey v) (n: lbytes 12) (c: size_nat) : Tot block =
| let ctrby = nat_to_bytes_be 4 c in
let input = create 16 (u8 0) in
let input = repeati #(lbytes 16) 12 (fun i b -> b.[ i ] <- n.[ i ]) input in
let input = repeati #(lbytes 16) 4 (fun i b -> b.[ 12 + i ] <- (Seq.index ctrby i)) input in
aes_encrypt_block v k input | false |
FStar.Reflection.V1.Formula.fst | FStar.Reflection.V1.Formula.formula_as_term_view | val formula_as_term_view (f: formula) : Tot term_view | val formula_as_term_view (f: formula) : Tot term_view | let formula_as_term_view (f:formula) : Tot term_view =
let mk_app' tv args = List.Tot.Base.fold_left (fun tv a -> Tv_App (pack_ln tv) a) tv args in
let e = Q_Explicit in
let i = Q_Implicit in
match f with
| True_ -> Tv_FVar (pack_fv true_qn)
| False_ -> Tv_FVar (pack_fv false_qn)
| Comp (Eq... | {
"file_name": "ulib/FStar.Reflection.V1.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 202,
"start_col": 0,
"start_line": 166
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V1.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Builtins",
"short_module": nul... | {
"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: FStar.Reflection.V1.Formula.formula -> FStar.Stubs.Reflection.V1.Data.term_view | Prims.Tot | [
"total"
] | [] | [
"FStar.Reflection.V1.Formula.formula",
"FStar.Stubs.Reflection.V1.Data.Tv_FVar",
"FStar.Stubs.Reflection.V1.Builtins.pack_fv",
"FStar.Reflection.Const.true_qn",
"FStar.Reflection.Const.false_qn",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.Const.eq2_qn",
"Prims.Cons",
"FStar.Stubs.Reflect... | [] | false | false | false | true | false | let formula_as_term_view (f: formula) : Tot term_view =
| let mk_app' tv args = List.Tot.Base.fold_left (fun tv a -> Tv_App (pack_ln tv) a) tv args in
let e = Q_Explicit in
let i = Q_Implicit in
match f with
| True_ -> Tv_FVar (pack_fv true_qn)
| False_ -> Tv_FVar (pack_fv false_qn)
| Comp (Eq None) l r -> mk_app' (Tv_FVar (pack_fv eq2_qn)) [(l, e); (r, e)]
| Comp (Eq (Some t... | false |
Spec.AES.fst | Spec.AES.aes128_key_expansion | val aes128_key_expansion (key: lbytes 16) : Tot (lseq elem (11 * 16)) | val aes128_key_expansion (key: lbytes 16) : Tot (lseq elem (11 * 16)) | let aes128_key_expansion (key:lbytes 16) : Tot (lseq elem (11 * 16)) =
let key_ex = create (11 * 16) (to_elem 0) in
let key_ex = update_sub key_ex 0 16 key in
let key_ex =
repeati #(lseq elem (11 * 16)) 10
(fun i kex ->
let p = sub kex (i * 16) 16 in
let a = keygen_assist0 (rcon_spec (i+1)) ... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 261,
"start_col": 0,
"start_line": 250
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | key: Lib.ByteSequence.lbytes 16 -> Lib.Sequence.lseq Spec.AES.elem (11 * 16) | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"Lib.Sequence.lseq",
"Spec.AES.elem",
"Prims.op_Multiply",
"Lib.LoopCombinators.repeati",
"FStar.Mul.op_Star",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.Sequence.update_sub",
"Prims.op_Addition",
"Spec.AES.block",
"Spec.AES.key_expansion_step",
"Spec.AE... | [] | false | false | false | false | false | let aes128_key_expansion (key: lbytes 16) : Tot (lseq elem (11 * 16)) =
| let key_ex = create (11 * 16) (to_elem 0) in
let key_ex = update_sub key_ex 0 16 key in
let key_ex =
repeati #(lseq elem (11 * 16))
10
(fun i kex ->
let p = sub kex (i * 16) 16 in
let a = keygen_assist0 (rcon_spec (i + 1)) p in
let n = key_expansion_step p a in
update_sub kex (... | false |
Spec.AES.fst | Spec.AES.aes256_key_expansion | val aes256_key_expansion (key: lbytes 32) : Tot (lseq elem (15 * 16)) | val aes256_key_expansion (key: lbytes 32) : Tot (lseq elem (15 * 16)) | let aes256_key_expansion (key:lbytes 32) : Tot (lseq elem (15 * 16)) =
let key_ex = create (15 * 16) (to_elem 0) in
let key_ex = update_sub key_ex 0 32 key in
let key_ex =
repeati #(lseq elem (15 * 16)) 6
(fun i key_ex ->
let p0 = sub key_ex (2 * i * 16) 16 in
let p1 = sub key_ex (((2*i)+1) ... | {
"file_name": "specs/Spec.AES.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 282,
"start_col": 0,
"start_line": 263
} | module Spec.AES
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
open Spec.GaloisField
/// Constants and Types
(* GF(8) Field *)
let irred = u8 0x1b
let gf8 = gf U8 irred
let elem = felem gf8
let to_elem = to_felem #gf8
let zero = to_elem 0
let ... | {
"checked_file": "/",
"dependencies": [
"Spec.GaloisField.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "Spec.GaloisField",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 | key: Lib.ByteSequence.lbytes 32 -> Lib.Sequence.lseq Spec.AES.elem (15 * 16) | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"Lib.Sequence.update_sub",
"Spec.AES.elem",
"FStar.Mul.op_Star",
"Spec.AES.block",
"Spec.AES.key_expansion_step",
"Spec.AES.keygen_assist0",
"Spec.AES.rcon_spec",
"Lib.Sequence.lseq",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar... | [] | false | false | false | false | false | let aes256_key_expansion (key: lbytes 32) : Tot (lseq elem (15 * 16)) =
| let key_ex = create (15 * 16) (to_elem 0) in
let key_ex = update_sub key_ex 0 32 key in
let key_ex =
repeati #(lseq elem (15 * 16))
6
(fun i key_ex ->
let p0 = sub key_ex ((2 * i) * 16) 16 in
let p1 = sub key_ex (((2 * i) + 1) * 16) 16 in
let a0 = keygen_assist0 (rcon_spec (i + 1)) p1 ... | false |
DPE.Messages.Spec.fst | DPE.Messages.Spec.data_item_order | val data_item_order : FStar.Ghost.erased (_: CBOR.Spec.Type.raw_data_item -> _: CBOR.Spec.Type.raw_data_item -> Prims.bool
) | let data_item_order = Cbor.deterministically_encoded_cbor_map_key_order | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 71,
"end_line": 26,
"start_col": 0,
"start_line": 26
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Ghost.erased (_: CBOR.Spec.Type.raw_data_item -> _: CBOR.Spec.Type.raw_data_item -> Prims.bool
) | Prims.Tot | [
"total"
] | [] | [
"CBOR.Spec.deterministically_encoded_cbor_map_key_order"
] | [] | false | false | false | true | false | let data_item_order =
| Cbor.deterministically_encoded_cbor_map_key_order | false | |
DPE.Messages.Spec.fst | DPE.Messages.Spec.session_message | val session_message:Cddl.typ | val session_message:Cddl.typ | let session_message : Cddl.typ = Cddl.t_array3 (
Cddl.array_group3_item (* session-id *) Cddl.uint `Cddl.array_group3_concat`
Cddl.array_group3_item (* message *) Cddl.bytes
) | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 1,
"end_line": 32,
"start_col": 0,
"start_line": 29
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"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 | CDDL.Spec.typ | Prims.Tot | [
"total"
] | [] | [
"CDDL.Spec.t_array3",
"FStar.Pervasives.Native.None",
"CBOR.Spec.Type.raw_data_item",
"CDDL.Spec.array_group3_concat",
"CDDL.Spec.array_group3_item",
"CDDL.Spec.uint",
"CDDL.Spec.bytes"
] | [] | false | false | false | true | false | let session_message:Cddl.typ =
| Cddl.t_array3 ((Cddl.array_group3_item Cddl.uint)
`Cddl.array_group3_concat`
(Cddl.array_group3_item Cddl.bytes)) | false |
DPE.Messages.Spec.fst | DPE.Messages.Spec.open_session | val open_session : FStar.UInt64.t | let open_session = 2uL | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 38,
"start_col": 0,
"start_line": 38
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let open_session =
| 2uL | false | |
DPE.Messages.Spec.fst | DPE.Messages.Spec.get_profile | val get_profile : FStar.UInt64.t | let get_profile = 1uL | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 36,
"start_col": 0,
"start_line": 36
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let get_profile =
| 1uL | false | |
DPE.Messages.Spec.fst | DPE.Messages.Spec.sync_session | val sync_session : FStar.UInt64.t | let sync_session = 4uL | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 42,
"start_col": 0,
"start_line": 42
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let sync_session =
| 4uL | false | |
DPE.Messages.Spec.fst | DPE.Messages.Spec.close_session | val close_session : FStar.UInt64.t | let close_session = 3uL | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 40,
"start_col": 0,
"start_line": 40
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let close_session =
| 3uL | false | |
DPE.Messages.Spec.fst | DPE.Messages.Spec.import_session | val import_session : FStar.UInt64.t | let import_session = 6uL | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 46,
"start_col": 0,
"start_line": 46
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let import_session =
| 6uL | false | |
DPE.Messages.Spec.fst | DPE.Messages.Spec.export_session | val export_session : FStar.UInt64.t | let export_session = 5uL | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 44,
"start_col": 0,
"start_line": 44
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let export_session =
| 5uL | false | |
DPE.Messages.Spec.fst | DPE.Messages.Spec.initialize_context | val initialize_context : FStar.UInt64.t | let initialize_context = 7uL | {
"file_name": "share/steel/examples/pulse/dice/dpe/DPE.Messages.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 28,
"end_line": 48,
"start_col": 0,
"start_line": 48
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CBOR.Spec.fsti.checked"
],
"interfa... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "CBOR.Spec",
"short_module": "Cbor"
},
{
"abbrev": true,
"full_module": "CDDL.Spe... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.__uint_to_t"
] | [] | false | false | false | true | false | let initialize_context =
| 7uL | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.