effect stringclasses 48
values | original_source_type stringlengths 0 23k | opens_and_abbrevs listlengths 2 92 | isa_cross_project_example bool 1
class | source_definition stringlengths 9 57.9k | partial_definition stringlengths 7 23.3k | is_div bool 2
classes | is_type null | is_proof bool 2
classes | completed_definiton stringlengths 1 250k | dependencies dict | effect_flags listlengths 0 2 | ideal_premises listlengths 0 236 | mutual_with listlengths 0 11 | file_context stringlengths 0 407k | interleaved bool 1
class | is_simply_typed bool 2
classes | file_name stringlengths 5 48 | vconfig dict | is_simple_lemma null | source_type stringlengths 10 23k | proof_features listlengths 0 1 | name stringlengths 8 95 | source dict | verbose_type stringlengths 1 7.42k | source_range dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32_no_key_free =
F.free (blake2s_32 0) (G.hide ()) (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | let blake2s_32_no_key_free = | false | null | false | F.free (blake2s_32 0) (G.hide ()) (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.free",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2s_32",
"FStar.Ghost.hide",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2S",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32_no_key_free : Hacl.Streaming.Functor.free_st (Hacl.Streaming.Blake2.blake2s_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2s_32_no_key_free | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.free_st (Hacl.Streaming.Blake2.blake2s_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 86,
"end_line": 669,
"start_col": 2,
"start_line": 669
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32_no_key_create_in =
F.create_in (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | let blake2s_32_no_key_create_in = | false | null | false | F.create_in (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.create_in",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2s_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2S",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32_no_key_create_in : Hacl.Streaming.Functor.create_in_st (Hacl.Streaming.Blake2.blake2s_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2s_32_no_key_create_in | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.create_in_st (Hacl.Streaming.Blake2.blake2s_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 82,
"end_line": 653,
"start_col": 2,
"start_line": 653
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32 kk =
blake2 Spec.Blake2S Core.M32 kk Blake2s32.blake2s_init Blake2s32.blake2s_update_multi
Blake2s32.blake2s_update_last Blake2s32.blake2s_finish | let blake2s_32 kk = | false | null | false | blake2 Spec.Blake2S
Core.M32
kk
Blake2s32.blake2s_init
Blake2s32.blake2s_update_multi
Blake2s32.blake2s_update_last
Blake2s32.blake2s_finish | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.key_size",
"Spec.Blake2.Blake2S",
"Hacl.Streaming.Blake2.blake2",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Blake2s_32.blake2s_init",
"Hacl.Blake2s_32.blake2s_update_multi",
"Hacl.Blake2s_32.blake2s_update_last",
"Hacl.Blake2s_32.blake2s_finish",
"Hacl.Streaming.Interface.block",
"... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32 : kk: Hacl.Streaming.Blake2.key_size Spec.Blake2.Blake2S -> Hacl.Streaming.Interface.block Prims.unit | [] | Hacl.Streaming.Blake2.blake2s_32 | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | kk: Hacl.Streaming.Blake2.key_size Spec.Blake2.Blake2S -> Hacl.Streaming.Interface.block Prims.unit | {
"end_col": 63,
"end_line": 625,
"start_col": 2,
"start_line": 624
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32_state = F.state_s (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | let blake2s_32_state = | false | null | false | F.state_s (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.state_s",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2s_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2S",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32_state : Type0 | [] | Hacl.Streaming.Blake2.blake2s_32_state | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 101,
"end_line": 639,
"start_col": 23,
"start_line": 639
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32_no_key_finish =
F.mk_finish (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | let blake2s_32_no_key_finish = | false | null | false | F.mk_finish (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.mk_finish",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2s_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2S",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32_no_key_finish : Hacl.Streaming.Functor.finish_st (Hacl.Streaming.Blake2.blake2s_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2s_32_no_key_finish | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.finish_st (Hacl.Streaming.Blake2.blake2s_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 82,
"end_line": 665,
"start_col": 2,
"start_line": 665
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32 kk =
blake2 Spec.Blake2B Core.M32 kk Blake2b32.blake2b_init Blake2b32.blake2b_update_multi
Blake2b32.blake2b_update_last Blake2b32.blake2b_finish | let blake2b_32 kk = | false | null | false | blake2 Spec.Blake2B
Core.M32
kk
Blake2b32.blake2b_init
Blake2b32.blake2b_update_multi
Blake2b32.blake2b_update_last
Blake2b32.blake2b_finish | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.key_size",
"Spec.Blake2.Blake2B",
"Hacl.Streaming.Blake2.blake2",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Blake2b_32.blake2b_init",
"Hacl.Blake2b_32.blake2b_update_multi",
"Hacl.Blake2b_32.blake2b_update_last",
"Hacl.Blake2b_32.blake2b_finish",
"Hacl.Streaming.Interface.block",
"... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32 : kk: Hacl.Streaming.Blake2.key_size Spec.Blake2.Blake2B -> Hacl.Streaming.Interface.block Prims.unit | [] | Hacl.Streaming.Blake2.blake2b_32 | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | kk: Hacl.Streaming.Blake2.key_size Spec.Blake2.Blake2B -> Hacl.Streaming.Interface.block Prims.unit | {
"end_col": 63,
"end_line": 630,
"start_col": 2,
"start_line": 629
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32_no_key_init =
F.init (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | let blake2s_32_no_key_init = | false | null | false | F.init (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.init",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2s_32",
"FStar.Ghost.hide",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2S",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32_no_key_init : Hacl.Streaming.Functor.init_st (Hacl.Streaming.Blake2.blake2s_32 0)
(FStar.Ghost.hide (FStar.Ghost.reveal (FStar.Ghost.hide ())))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2s_32_no_key_init | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.init_st (Hacl.Streaming.Blake2.blake2s_32 0)
(FStar.Ghost.hide (FStar.Ghost.reveal (FStar.Ghost.hide ())))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 77,
"end_line": 657,
"start_col": 2,
"start_line": 657
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32_no_key_update =
F.update (blake2s_32 0) (G.hide ()) (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | let blake2s_32_no_key_update = | false | null | false | F.update (blake2s_32 0) (G.hide ()) (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.update",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2s_32",
"FStar.Ghost.hide",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2S",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32_no_key_update : Hacl.Streaming.Functor.update_st (Hacl.Streaming.Blake2.blake2s_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2s_32_no_key_update | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.update_st (Hacl.Streaming.Blake2.blake2s_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 88,
"end_line": 661,
"start_col": 2,
"start_line": 661
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let empty_key a = I.optional_key () I.Erased (stateful_key a 0) | let empty_key a = | false | null | false | I.optional_key () I.Erased (stateful_key a 0) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Interface.optional_key",
"Prims.unit",
"Hacl.Streaming.Interface.Erased",
"Hacl.Streaming.Blake2.stateful_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val empty_key : a: Hacl.Streaming.Blake2.alg -> Type0 | [] | Hacl.Streaming.Blake2.empty_key | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Streaming.Blake2.alg -> Type0 | {
"end_col": 63,
"end_line": 633,
"start_col": 18,
"start_line": 633
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32_no_key_init =
F.init (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | let blake2b_32_no_key_init = | false | null | false | F.init (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.init",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2b_32",
"FStar.Ghost.hide",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2B",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key",
"Spec.Blake2.Blake2S"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32_no_key_init : Hacl.Streaming.Functor.init_st (Hacl.Streaming.Blake2.blake2b_32 0)
(FStar.Ghost.hide (FStar.Ghost.reveal (FStar.Ghost.hide ())))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2b_32_no_key_init | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.init_st (Hacl.Streaming.Blake2.blake2b_32 0)
(FStar.Ghost.hide (FStar.Ghost.reveal (FStar.Ghost.hide ())))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 77,
"end_line": 682,
"start_col": 2,
"start_line": 682
} | |
Prims.Tot | val init_s (a: alg) (kk: size_nat{kk <= max_key a}) : Tot (t a) | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let init_s (a : alg) (kk : size_nat{kk <= max_key a}) :
Tot (t a) =
Spec.blake2_init_hash a kk (output_size a) | val init_s (a: alg) (kk: size_nat{kk <= max_key a}) : Tot (t a)
let init_s (a: alg) (kk: size_nat{kk <= max_key a}) : Tot (t a) = | false | null | false | Spec.blake2_init_hash a kk (output_size a) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Hacl.Streaming.Blake2.max_key",
"Spec.Blake2.blake2_init_hash",
"Hacl.Streaming.Blake2.output_size",
"Hacl.Streaming.Blake2.t"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val init_s (a: alg) (kk: size_nat{kk <= max_key a}) : Tot (t a) | [] | Hacl.Streaming.Blake2.init_s | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Hacl.Streaming.Blake2.alg ->
kk: Hacl.Streaming.Blake2.size_nat{kk <= Hacl.Streaming.Blake2.max_key a}
-> Hacl.Streaming.Blake2.t a | {
"end_col": 44,
"end_line": 267,
"start_col": 2,
"start_line": 267
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32_state = F.state_s (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2B) | let blake2b_32_state = | false | null | false | F.state_s (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2B) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.state_s",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2b_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2B",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32_state : Type0 | [] | Hacl.Streaming.Blake2.blake2b_32_state | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 101,
"end_line": 640,
"start_col": 23,
"start_line": 640
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32_no_key_update =
F.update (blake2b_32 0) (G.hide ()) (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | let blake2b_32_no_key_update = | false | null | false | F.update (blake2b_32 0) (G.hide ()) (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.update",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2b_32",
"FStar.Ghost.hide",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2B",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key",
"Spec.Blake2.Blake2S"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32_no_key_update : Hacl.Streaming.Functor.update_st (Hacl.Streaming.Blake2.blake2b_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2b_32_no_key_update | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.update_st (Hacl.Streaming.Blake2.blake2b_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 88,
"end_line": 686,
"start_col": 2,
"start_line": 686
} | |
Prims.Tot | val stateful_key_to_buffer (#a: alg) (#kk: key_size a) (key: stateful_key_t a kk)
: b: B.buffer uint8 {B.length b = kk} | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let stateful_key_to_buffer (#a : alg) (#kk : key_size a)
(key : stateful_key_t a kk) :
b:B.buffer uint8 { B.length b = kk } =
if kk = 0 then B.null #uint8 else key | val stateful_key_to_buffer (#a: alg) (#kk: key_size a) (key: stateful_key_t a kk)
: b: B.buffer uint8 {B.length b = kk}
let stateful_key_to_buffer (#a: alg) (#kk: key_size a) (key: stateful_key_t a kk)
: b: B.buffer uint8 {B.length b = kk} = | false | null | false | if kk = 0 then B.null #uint8 else key | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.key_size",
"Hacl.Streaming.Blake2.stateful_key_t",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.null",
"Hacl.Streaming.Blake2.uint8",
"Prims.bool",
"LowStar.Buffer.buffer",
"Prims.b2t",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val stateful_key_to_buffer (#a: alg) (#kk: key_size a) (key: stateful_key_t a kk)
: b: B.buffer uint8 {B.length b = kk} | [] | Hacl.Streaming.Blake2.stateful_key_to_buffer | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | key: Hacl.Streaming.Blake2.stateful_key_t a kk
-> b: LowStar.Buffer.buffer Hacl.Streaming.Blake2.uint8 {LowStar.Monotonic.Buffer.length b = kk} | {
"end_col": 39,
"end_line": 216,
"start_col": 2,
"start_line": 216
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32_no_key_alloca =
F.alloca (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2B) | let blake2b_32_no_key_alloca = | false | null | false | F.alloca (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2B) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.alloca",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2b_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2B",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32_no_key_alloca : Hacl.Streaming.Functor.alloca_st (Hacl.Streaming.Blake2.blake2b_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2B) | [] | Hacl.Streaming.Blake2.blake2b_32_no_key_alloca | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.alloca_st (Hacl.Streaming.Blake2.blake2b_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2B) | {
"end_col": 79,
"end_line": 674,
"start_col": 2,
"start_line": 674
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let output_len (a : alg) = U32.uint_to_t (output_size a) | let output_len (a: alg) = | false | null | false | U32.uint_to_t (output_size a) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"FStar.UInt32.uint_to_t",
"Hacl.Streaming.Blake2.output_size",
"FStar.UInt32.t"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val output_len : a: Hacl.Streaming.Blake2.alg -> FStar.UInt32.t | [] | Hacl.Streaming.Blake2.output_len | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Streaming.Blake2.alg -> FStar.UInt32.t | {
"end_col": 56,
"end_line": 245,
"start_col": 27,
"start_line": 245
} | |
Prims.Tot | val finish_s (#a: alg) (acc: t a) : output: S.seq uint8 {S.length output = U32.v (output_len a)} | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let finish_s (#a : alg) (acc : t a) :
output : S.seq uint8 { S.length output = U32.v (output_len a) } =
Spec.blake2_finish a acc (U32.v (output_len a)) | val finish_s (#a: alg) (acc: t a) : output: S.seq uint8 {S.length output = U32.v (output_len a)}
let finish_s (#a: alg) (acc: t a) : output: S.seq uint8 {S.length output = U32.v (output_len a)} = | false | null | false | Spec.blake2_finish a acc (U32.v (output_len a)) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.t",
"Spec.Blake2.blake2_finish",
"FStar.UInt32.v",
"Hacl.Streaming.Blake2.output_len",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"FStar.U... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val finish_s (#a: alg) (acc: t a) : output: S.seq uint8 {S.length output = U32.v (output_len a)} | [] | Hacl.Streaming.Blake2.finish_s | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | acc: Hacl.Streaming.Blake2.t a
-> output:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
{FStar.Seq.Base.length output = FStar.UInt32.v (Hacl.Streaming.Blake2.output_len a)} | {
"end_col": 49,
"end_line": 290,
"start_col": 2,
"start_line": 290
} |
Prims.Tot | val max_input_length (a: alg) : n: nat{n <= Spec.max_limb a /\ n > Spec.size_block a} | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let max_input_length (a : alg) : n:nat { n <= Spec.max_limb a /\ n > Spec.size_block a } =
assert_norm (pow2 64 < pow2 128);
pow2 64 - 1 | val max_input_length (a: alg) : n: nat{n <= Spec.max_limb a /\ n > Spec.size_block a}
let max_input_length (a: alg) : n: nat{n <= Spec.max_limb a /\ n > Spec.size_block a} = | false | null | false | assert_norm (pow2 64 < pow2 128);
pow2 64 - 1 | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Prims.op_Subtraction",
"Prims.pow2",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.nat",
"Prims.l_and",
"Prims.op_LessThanOrEqual",
"Spec.Blake2.max_limb",
"Prims.op_GreaterThan",
"Spec.Blake2.size_block"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val max_input_length (a: alg) : n: nat{n <= Spec.max_limb a /\ n > Spec.size_block a} | [] | Hacl.Streaming.Blake2.max_input_length | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Streaming.Blake2.alg
-> n: Prims.nat{n <= Spec.Blake2.max_limb a /\ n > Spec.Blake2.size_block a} | {
"end_col": 13,
"end_line": 230,
"start_col": 2,
"start_line": 229
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let spec_s (a : alg)
(kk : size_nat{kk <= max_key a})
(key : lbytes kk)
(input : S.seq uint8{if kk = 0 then S.length input <= max_input_length a else S.length input + Spec.size_block a <= max_input_length a}) =
Spec.blake2 a input kk key (output_size a) | let spec_s
(a: alg)
(kk: size_nat{kk <= max_key a})
(key: lbytes kk)
(input:
S.seq uint8
{ if kk = 0
then S.length input <= max_input_length a
else S.length input + Spec.size_block a <= max_input_length a })
= | false | null | false | Spec.blake2 a input kk key (output_size a) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Hacl.Streaming.Blake2.max_key",
"Hacl.Streaming.Blake2.lbytes",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.uint8",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Hacl.Streami... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val spec_s : a: Hacl.Streaming.Blake2.alg ->
kk: Hacl.Streaming.Blake2.size_nat{kk <= Hacl.Streaming.Blake2.max_key a} ->
key: Hacl.Streaming.Blake2.lbytes kk ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
{ (match kk = 0 with
| true -> FStar.Seq.Base.length input <= Hacl... | [] | Hacl.Streaming.Blake2.spec_s | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Hacl.Streaming.Blake2.alg ->
kk: Hacl.Streaming.Blake2.size_nat{kk <= Hacl.Streaming.Blake2.max_key a} ->
key: Hacl.Streaming.Blake2.lbytes kk ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
{ (match kk = 0 with
| true -> FStar.Seq.Base.length input <= Hacl.Streami... | {
"end_col": 44,
"end_line": 297,
"start_col": 2,
"start_line": 297
} | |
Prims.Tot | val state_to_lbuffer (#a: alg) (#m: m_spec) (s: Core.state_p a m)
: B.lbuffer (Core.element_t a m) (4 * U32.v (Core.row_len a m)) | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let state_to_lbuffer (#a : alg) (#m : m_spec) (s : Core.state_p a m) :
B.lbuffer (Core.element_t a m) (4 * U32.v (Core.row_len a m)) =
s | val state_to_lbuffer (#a: alg) (#m: m_spec) (s: Core.state_p a m)
: B.lbuffer (Core.element_t a m) (4 * U32.v (Core.row_len a m))
let state_to_lbuffer (#a: alg) (#m: m_spec) (s: Core.state_p a m)
: B.lbuffer (Core.element_t a m) (4 * U32.v (Core.row_len a m)) = | false | null | false | s | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"LowStar.Buffer.lbuffer",
"Hacl.Impl.Blake2.Core.element_t",
"FStar.Mul.op_Star",
"FStar.UInt32.v",
"Hacl.Impl.Blake2.Core.row_len"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val state_to_lbuffer (#a: alg) (#m: m_spec) (s: Core.state_p a m)
: B.lbuffer (Core.element_t a m) (4 * U32.v (Core.row_len a m)) | [] | Hacl.Streaming.Blake2.state_to_lbuffer | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: Hacl.Impl.Blake2.Core.state_p a m
-> LowStar.Buffer.lbuffer (Hacl.Impl.Blake2.Core.element_t a m)
(4 * FStar.UInt32.v (Hacl.Impl.Blake2.Core.row_len a m)) | {
"end_col": 3,
"end_line": 90,
"start_col": 2,
"start_line": 90
} |
Prims.Tot | val stateful_key (a: alg) (kk: key_size a) : I.stateful unit | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let stateful_key (a : alg) (kk : key_size a) :
I.stateful unit =
I.Stateful
(fun _ -> stateful_key_t a kk)
(* footprint *)
(fun #_ h s -> if kk = 0 then B.loc_none else B.loc_addr_of_buffer (s <: B.buffer uint8))
(* freeable *)
(fun #_ h s -> if kk = 0 then True else B.freeable (s <: B.buffer ui... | val stateful_key (a: alg) (kk: key_size a) : I.stateful unit
let stateful_key (a: alg) (kk: key_size a) : I.stateful unit = | false | null | false | I.Stateful (fun _ -> stateful_key_t a kk)
(fun #_ h s -> if kk = 0 then B.loc_none else B.loc_addr_of_buffer (s <: B.buffer uint8))
(fun #_ h s -> if kk = 0 then True else B.freeable (s <: B.buffer uint8))
(fun #_ h s -> if kk = 0 then True else B.live h (s <: B.buffer uint8))
(fun _ -> s: S.seq uint8 {S.length... | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.key_size",
"Hacl.Streaming.Interface.Stateful",
"Prims.unit",
"Hacl.Streaming.Blake2.stateful_key_t",
"FStar.Monotonic.HyperStack.mem",
"Prims.op_Equality",
"Prims.int",
"LowStar.Monotonic.Buffer.loc_none",
"Prims.bool",
"LowStar.Monotonic.Buff... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val stateful_key (a: alg) (kk: key_size a) : I.stateful unit | [] | Hacl.Streaming.Blake2.stateful_key | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Streaming.Blake2.alg -> kk: Hacl.Streaming.Blake2.key_size a
-> Hacl.Streaming.Interface.stateful Prims.unit | {
"end_col": 14,
"end_line": 210,
"start_col": 2,
"start_line": 174
} |
Prims.Tot | val stateful_blake2 (a: alg) (m: m_spec) : I.stateful unit | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let stateful_blake2 (a : alg) (m : m_spec) : I.stateful unit =
I.Stateful
(fun () -> s a m) (* s *)
(* footprint *)
(fun #_ _ acc ->
let wv, b = acc in
B.loc_union
(B.loc_addr_of_buffer (state_to_lbuffer wv))
(B.loc_addr_of_buffer (state_to_lbuffer b)))
(* freeable *)
(fu... | val stateful_blake2 (a: alg) (m: m_spec) : I.stateful unit
let stateful_blake2 (a: alg) (m: m_spec) : I.stateful unit = | false | null | false | I.Stateful (fun () -> s a m)
(fun #_ _ acc ->
let wv, b = acc in
B.loc_union (B.loc_addr_of_buffer (state_to_lbuffer wv))
(B.loc_addr_of_buffer (state_to_lbuffer b)))
(fun #_ _ acc ->
let wv, b = acc in
B.freeable (state_to_lbuffer wv) /\ B.freeable (state_to_lbuffer b))
(fun #_ h ... | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.m_spec",
"Hacl.Streaming.Interface.Stateful",
"Prims.unit",
"Hacl.Streaming.Blake2.s",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.state_p",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_addr_of_buffer",
"Hacl.I... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val stateful_blake2 (a: alg) (m: m_spec) : I.stateful unit | [] | Hacl.Streaming.Blake2.stateful_blake2 | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Streaming.Blake2.alg -> m: Hacl.Streaming.Blake2.m_spec
-> Hacl.Streaming.Interface.stateful Prims.unit | {
"end_col": 43,
"end_line": 138,
"start_col": 2,
"start_line": 94
} |
FStar.Pervasives.Lemma | val update_multi_zero:
#a : alg ->
acc:t a ->
prevlen:nat{prevlen % Spec.size_block a = 0} ->
Lemma
(requires (prevlen <= max_input_length a))
(ensures (update_multi_s #a acc prevlen S.empty == acc)) | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let update_multi_zero #a acc prevlen =
Lib.LoopCombinators.eq_repeati0 (0 / U32.v (block_len a)) (Spec.blake2_update1 a prevlen S.empty) acc | val update_multi_zero:
#a : alg ->
acc:t a ->
prevlen:nat{prevlen % Spec.size_block a = 0} ->
Lemma
(requires (prevlen <= max_input_length a))
(ensures (update_multi_s #a acc prevlen S.empty == acc))
let update_multi_zero #a acc prevlen = | false | null | false | Lib.LoopCombinators.eq_repeati0 (0 / U32.v (block_len a))
(Spec.blake2_update1 a prevlen S.empty)
acc | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"lemma"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Spec.Blake2.size_block",
"Lib.LoopCombinators.eq_repeati0",
"Spec.Blake2.state",
"Prims.op_Division",
"FStar.UInt32.v",
"Hacl.Streaming.Blake2.block_len",
... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_multi_zero:
#a : alg ->
acc:t a ->
prevlen:nat{prevlen % Spec.size_block a = 0} ->
Lemma
(requires (prevlen <= max_input_length a))
(ensures (update_multi_s #a acc prevlen S.empty == acc)) | [] | Hacl.Streaming.Blake2.update_multi_zero | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | acc: Hacl.Streaming.Blake2.t a -> prevlen: Prims.nat{prevlen % Spec.Blake2.size_block a = 0}
-> FStar.Pervasives.Lemma (requires prevlen <= Hacl.Streaming.Blake2.max_input_length a)
(ensures Hacl.Streaming.Blake2.update_multi_s acc prevlen FStar.Seq.Base.empty == acc) | {
"end_col": 103,
"end_line": 311,
"start_col": 2,
"start_line": 311
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2s_32_no_key_alloca =
F.alloca (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | let blake2s_32_no_key_alloca = | false | null | false | F.alloca (blake2s_32 0) () (s Spec.Blake2S Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.alloca",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2s_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2S",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2s_32_no_key_alloca : Hacl.Streaming.Functor.alloca_st (Hacl.Streaming.Blake2.blake2s_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2s_32_no_key_alloca | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.alloca_st (Hacl.Streaming.Blake2.blake2s_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2S Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 79,
"end_line": 649,
"start_col": 2,
"start_line": 649
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32_no_key_create_in =
F.create_in (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | let blake2b_32_no_key_create_in = | false | null | false | F.create_in (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.create_in",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2b_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2B",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key",
"Spec.Blake2.Blake2S"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32_no_key_create_in : Hacl.Streaming.Functor.create_in_st (Hacl.Streaming.Blake2.blake2b_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2b_32_no_key_create_in | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.create_in_st (Hacl.Streaming.Blake2.blake2b_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 82,
"end_line": 678,
"start_col": 2,
"start_line": 678
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32_no_key_finish =
F.mk_finish (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | let blake2b_32_no_key_finish = | false | null | false | F.mk_finish (blake2b_32 0) () (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.mk_finish",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2b_32",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2B",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key",
"Spec.Blake2.Blake2S"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32_no_key_finish : Hacl.Streaming.Functor.finish_st (Hacl.Streaming.Blake2.blake2b_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2b_32_no_key_finish | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.finish_st (Hacl.Streaming.Blake2.blake2b_32 0)
()
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 82,
"end_line": 690,
"start_col": 2,
"start_line": 690
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2b_32_no_key_free =
F.free (blake2b_32 0) (G.hide ()) (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | let blake2b_32_no_key_free = | false | null | false | F.free (blake2b_32 0) (G.hide ()) (s Spec.Blake2B Core.M32) (empty_key Spec.Blake2S) | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Functor.free",
"Prims.unit",
"Hacl.Streaming.Blake2.blake2b_32",
"FStar.Ghost.hide",
"Hacl.Streaming.Blake2.s",
"Spec.Blake2.Blake2B",
"Hacl.Impl.Blake2.Core.M32",
"Hacl.Streaming.Blake2.empty_key",
"Spec.Blake2.Blake2S"
] | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2b_32_no_key_free : Hacl.Streaming.Functor.free_st (Hacl.Streaming.Blake2.blake2b_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | [] | Hacl.Streaming.Blake2.blake2b_32_no_key_free | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Functor.free_st (Hacl.Streaming.Blake2.blake2b_32 0)
(FStar.Ghost.reveal (FStar.Ghost.hide ()))
(Hacl.Streaming.Blake2.s Spec.Blake2.Blake2B Hacl.Impl.Blake2.Core.M32)
(Hacl.Streaming.Blake2.empty_key Spec.Blake2.Blake2S) | {
"end_col": 86,
"end_line": 694,
"start_col": 2,
"start_line": 694
} | |
Prims.Tot | val update_multi_s
(#a: alg)
(acc: t a)
(prevlen: nat{prevlen % Spec.size_block a = 0})
(input:
Seq.seq uint8
{ prevlen + S.length input <= max_input_length a /\
S.length input % Spec.size_block a = 0 })
: Tot (t a) | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let update_multi_s (#a : alg) (acc : t a)
(prevlen : nat{prevlen % Spec.size_block a = 0})
(input : Seq.seq uint8{ prevlen + S.length input <= max_input_length a /\
S.length input % Spec.size_block a = 0 }) :
Tot (t a)
=
let nb = S.len... | val update_multi_s
(#a: alg)
(acc: t a)
(prevlen: nat{prevlen % Spec.size_block a = 0})
(input:
Seq.seq uint8
{ prevlen + S.length input <= max_input_length a /\
S.length input % Spec.size_block a = 0 })
: Tot (t a)
let update_multi_s
(#a: alg)
... | false | null | false | let nb = S.length input / U32.v (block_len a) in
Lib.LoopCombinators.repeati nb (Spec.blake2_update1 a prevlen input) acc | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Spec.Blake2.size_block",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.uint8",
"Prims.l_and",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.Seq.... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_multi_s
(#a: alg)
(acc: t a)
(prevlen: nat{prevlen % Spec.size_block a = 0})
(input:
Seq.seq uint8
{ prevlen + S.length input <= max_input_length a /\
S.length input % Spec.size_block a = 0 })
: Tot (t a) | [] | Hacl.Streaming.Blake2.update_multi_s | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
acc: Hacl.Streaming.Blake2.t a ->
prevlen: Prims.nat{prevlen % Spec.Blake2.size_block a = 0} ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
{ prevlen + FStar.Seq.Base.length input <= Hacl.Streaming.Blake2.max_input_length a /\
FStar.Seq.Base.length input % Spec.Blake2.size... | {
"end_col": 74,
"end_line": 277,
"start_col": 1,
"start_line": 275
} |
Prims.Tot | val max_input_len (a: alg) : (x: U64.t{U64.v x == max_input_length a}) | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let max_input_len (a: alg): (x:U64.t { U64.v x == max_input_length a }) = 0xffffffffffffffffUL | val max_input_len (a: alg) : (x: U64.t{U64.v x == max_input_length a})
let max_input_len (a: alg) : (x: U64.t{U64.v x == max_input_length a}) = | false | null | false | 0xffffffffffffffffuL | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"FStar.UInt64.__uint_to_t",
"FStar.UInt64.t",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt64.n",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThanOrEqual",
"Spec.Blake2.max_limb",
"Prims.op_GreaterThan",
"... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val max_input_len (a: alg) : (x: U64.t{U64.v x == max_input_length a}) | [] | Hacl.Streaming.Blake2.max_input_len | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Streaming.Blake2.alg
-> x: FStar.UInt64.t{FStar.UInt64.v x == Hacl.Streaming.Blake2.max_input_length a} | {
"end_col": 94,
"end_line": 233,
"start_col": 74,
"start_line": 233
} |
Prims.Tot | val blake2_prevlen (a: alg) (prevlen: U64.t{U64.v prevlen <= max_input_length a})
: x: Spec.limb_t a {Lib.IntTypes.uint_v x = U64.v prevlen} | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2_prevlen (a : alg)
(prevlen : U64.t{ U64.v prevlen <= max_input_length a}) :
x:Spec.limb_t a {
Lib.IntTypes.uint_v x = U64.v prevlen } =
let open Lib.IntTypes in
match a with
| Spec.Blake2S -> to_u64 #U64 #PUB prevlen
| Spec.Blake2B ->
[@inline_let] let x : uint64 = to_u64... | val blake2_prevlen (a: alg) (prevlen: U64.t{U64.v prevlen <= max_input_length a})
: x: Spec.limb_t a {Lib.IntTypes.uint_v x = U64.v prevlen}
let blake2_prevlen (a: alg) (prevlen: U64.t{U64.v prevlen <= max_input_length a})
: x: Spec.limb_t a {Lib.IntTypes.uint_v x = U64.v prevlen} = | false | null | false | let open Lib.IntTypes in
match a with
| Spec.Blake2S -> to_u64 #U64 #PUB prevlen
| Spec.Blake2B ->
[@@ inline_let ]let x:uint64 = to_u64 #U64 #PUB prevlen in
Lib.IntTypes.cast U128 SEC x | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"FStar.UInt64.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt64.v",
"Hacl.Streaming.Blake2.max_input_length",
"Lib.IntTypes.to_u64",
"Lib.IntTypes.U64",
"Lib.IntTypes.PUB",
"Lib.IntTypes.cast",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U128",
"Lib.IntTypes.int_t... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2_prevlen (a: alg) (prevlen: U64.t{U64.v prevlen <= max_input_length a})
: x: Spec.limb_t a {Lib.IntTypes.uint_v x = U64.v prevlen} | [] | Hacl.Streaming.Blake2.blake2_prevlen | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Hacl.Streaming.Blake2.alg ->
prevlen: FStar.UInt64.t{FStar.UInt64.v prevlen <= Hacl.Streaming.Blake2.max_input_length a}
-> x: Spec.Blake2.limb_t a {Lib.IntTypes.uint_v x = FStar.UInt64.v prevlen} | {
"end_col": 32,
"end_line": 259,
"start_col": 2,
"start_line": 254
} |
Prims.Tot | val update_last_s
(#a: alg)
(acc: t a)
(prevlen: nat{prevlen % Spec.size_block a = 0})
(input:
Seq.seq uint8
{S.length input + prevlen <= max_input_length a /\ S.length input <= Spec.size_block a})
: Tot (t a) | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let update_last_s (#a : alg) (acc : t a)
(prevlen : nat{prevlen % Spec.size_block a = 0})
(input : Seq.seq uint8{ S.length input + prevlen <= max_input_length a /\
S.length input <= Spec.size_block a }) :
Tot (t a) =
Spec.blake2_update_la... | val update_last_s
(#a: alg)
(acc: t a)
(prevlen: nat{prevlen % Spec.size_block a = 0})
(input:
Seq.seq uint8
{S.length input + prevlen <= max_input_length a /\ S.length input <= Spec.size_block a})
: Tot (t a)
let update_last_s
(#a: alg)
(acc: t a)
(pr... | false | null | false | Spec.blake2_update_last a prevlen (S.length input) input acc | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Spec.Blake2.size_block",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.uint8",
"Prims.l_and",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.Seq.... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_last_s
(#a: alg)
(acc: t a)
(prevlen: nat{prevlen % Spec.size_block a = 0})
(input:
Seq.seq uint8
{S.length input + prevlen <= max_input_length a /\ S.length input <= Spec.size_block a})
: Tot (t a) | [] | Hacl.Streaming.Blake2.update_last_s | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
acc: Hacl.Streaming.Blake2.t a ->
prevlen: Prims.nat{prevlen % Spec.Blake2.size_block a = 0} ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
{ FStar.Seq.Base.length input + prevlen <= Hacl.Streaming.Blake2.max_input_length a /\
FStar.Seq.Base.length input <= Spec.Blake2.siz... | {
"end_col": 62,
"end_line": 285,
"start_col": 2,
"start_line": 285
} |
FStar.HyperStack.ST.Stack | val init_key_block (a : alg) (kk : key_size a) (k : stateful_key_t a kk)
(buf_: B.buffer uint8 { B.length buf_ = Spec.size_block a }) :
ST.Stack unit
(requires fun h0 ->
let key = stateful_key a kk in
key.invariant h0 k /\
B.live h0 buf_ /\
B.(loc_disjoint (loc_buffer buf_) (key.footprint h0 k)))
... | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let init_key_block a kk k buf_ =
if kk = 0 then ()
else
begin
(**) let h0 = ST.get () in
(* Set the end of the buffer to 0 *)
[@inline_let] let sub_b_len = U32.(block_len a -^ U32.uint_to_t kk) in
let sub_b = B.sub buf_ (U32.uint_to_t kk) sub_b_len in
B.fill sub_b (Lib.IntTypes.u8 0) sub_b_... | val init_key_block (a : alg) (kk : key_size a) (k : stateful_key_t a kk)
(buf_: B.buffer uint8 { B.length buf_ = Spec.size_block a }) :
ST.Stack unit
(requires fun h0 ->
let key = stateful_key a kk in
key.invariant h0 k /\
B.live h0 buf_ /\
B.(loc_disjoint (loc_buffer buf_) (key.footprint h0 k)))
... | false | null | false | if kk = 0
then ()
else
let h0 = ST.get () in
[@@ inline_let ]let sub_b_len = let open U32 in block_len a -^ U32.uint_to_t kk in
let sub_b = B.sub buf_ (U32.uint_to_t kk) sub_b_len in
B.fill sub_b (Lib.IntTypes.u8 0) sub_b_len;
let h1 = ST.get () in
assert ((S.slice (B.as_seq h1 buf_) kk (Spec.size_block a))... | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.key_size",
"Hacl.Streaming.Blake2.stateful_key_t",
"LowStar.Buffer.buffer",
"Hacl.Streaming.Blake2.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"LowStar.Buffer.trivial_preorder",
"Spec.Blake2.size_bl... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val init_key_block (a : alg) (kk : key_size a) (k : stateful_key_t a kk)
(buf_: B.buffer uint8 { B.length buf_ = Spec.size_block a }) :
ST.Stack unit
(requires fun h0 ->
let key = stateful_key a kk in
key.invariant h0 k /\
B.live h0 buf_ /\
B.(loc_disjoint (loc_buffer buf_) (key.footprint h0 k)))
... | [] | Hacl.Streaming.Blake2.init_key_block | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Hacl.Streaming.Blake2.alg ->
kk: Hacl.Streaming.Blake2.key_size a ->
k: Hacl.Streaming.Blake2.stateful_key_t a kk ->
buf_:
LowStar.Buffer.buffer Hacl.Streaming.Blake2.uint8
{LowStar.Monotonic.Buffer.length buf_ = Spec.Blake2.size_block a}
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 7,
"end_line": 548,
"start_col": 2,
"start_line": 507
} |
Prims.Tot | val blake2_hash_incremental_s :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
output:S.seq uint8 { S.length output = output_size a } | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2_hash_incremental_s a kk k input0 =
let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
assert (key_block_len = (if kk = 0 then 0 else Spec.size_block a));
(**) Math.Lemmas.modulo_lemma 0 (U3... | val blake2_hash_incremental_s :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
output:S.seq uint8 { S.length output = output_size a }
let blake2_hash_increm... | false | null | false | let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
assert (key_block_len = (if kk = 0 then 0 else Spec.size_block a));
Math.Lemmas.modulo_lemma 0 (U32.v (block_len a));
let bs, l = Lib.UpdateMulti.split_at_last... | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Hacl.Streaming.Blake2.max_key",
"Hacl.Streaming.Blake2.lbytes",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.uint8",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Hacl.Streami... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2_hash_incremental_s :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
output:S.seq uint8 { S.length output = output_size a } | [] | Hacl.Streaming.Blake2.blake2_hash_incremental_s | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Hacl.Streaming.Blake2.alg ->
kk: Hacl.Streaming.Blake2.size_nat{kk <= Hacl.Streaming.Blake2.max_key a} ->
k: Hacl.Streaming.Blake2.lbytes kk ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
{ (match kk = 0 with
| true -> FStar.Seq.Base.length input <= Hacl.Streaming... | {
"end_col": 6,
"end_line": 402,
"start_col": 45,
"start_line": 391
} |
FStar.Pervasives.Lemma | val update_multi_associative:
#a : alg ->
acc: t a ->
prevlen1:nat ->
prevlen2:nat ->
input1:S.seq uint8 ->
input2:S.seq uint8 ->
Lemma
(requires (
(**) Math.Lemmas.pos_times_pos_is_pos Spec.size_block_w (Spec.size_word a);
prevlen1 % Spec.size_block a = 0 /\
S.length input1 % Spec.size_bloc... | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let update_multi_associative #a acc prevlen1 prevlen2 input1 input2 =
let input = S.append input1 input2 in
let nb = S.length input / U32.v (block_len a) in
let nb1 = S.length input1 / U32.v (block_len a) in
let nb2 = S.length input2 / U32.v (block_len a) in
let f = Spec.blake2_update1 a prevlen1 input in
l... | val update_multi_associative:
#a : alg ->
acc: t a ->
prevlen1:nat ->
prevlen2:nat ->
input1:S.seq uint8 ->
input2:S.seq uint8 ->
Lemma
(requires (
(**) Math.Lemmas.pos_times_pos_is_pos Spec.size_block_w (Spec.size_word a);
prevlen1 % Spec.size_block a = 0 /\
S.length input1 % Spec.size_bloc... | false | null | false | let input = S.append input1 input2 in
let nb = S.length input / U32.v (block_len a) in
let nb1 = S.length input1 / U32.v (block_len a) in
let nb2 = S.length input2 / U32.v (block_len a) in
let f = Spec.blake2_update1 a prevlen1 input in
let f1 = Spec.blake2_update1 a prevlen1 input1 in
let f2 = Spec.blake2_update1 a pr... | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"lemma"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.t",
"Prims.nat",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.uint8",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Hacl.Streaming.Blake2.update_multi_s",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_multi_associative:
#a : alg ->
acc: t a ->
prevlen1:nat ->
prevlen2:nat ->
input1:S.seq uint8 ->
input2:S.seq uint8 ->
Lemma
(requires (
(**) Math.Lemmas.pos_times_pos_is_pos Spec.size_block_w (Spec.size_word a);
prevlen1 % Spec.size_block a = 0 /\
S.length input1 % Spec.size_bloc... | [] | Hacl.Streaming.Blake2.update_multi_associative | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
acc: Hacl.Streaming.Blake2.t a ->
prevlen1: Prims.nat ->
prevlen2: Prims.nat ->
input1: FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8 ->
input2: FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
-> FStar.Pervasives.Lemma
(requires
(FStar.Math.Lemmas.pos_times_pos_is_pos Spec.Blake2.si... | {
"end_col": 3,
"end_line": 377,
"start_col": 69,
"start_line": 338
} |
Prims.Tot | val blake2
(a: alg)
(m: valid_m_spec a)
(kk: key_size a)
(init: blake2_init_st a m)
(update_multi: blake2_update_multi_st a m)
(update_last: blake2_update_last_st a m)
(finish: blake2_finish_st a m)
: I.block unit | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let blake2 (a : alg)
(m : valid_m_spec a)
(kk : key_size a)
(init : blake2_init_st a m)
(update_multi : blake2_update_multi_st a m)
(update_last : blake2_update_last_st a m)
(finish : blake2_finish_st a m) :
I.block unit =
I.Block
I.Erased (* key... | val blake2
(a: alg)
(m: valid_m_spec a)
(kk: key_size a)
(init: blake2_init_st a m)
(update_multi: blake2_update_multi_st a m)
(update_last: blake2_update_last_st a m)
(finish: blake2_finish_st a m)
: I.block unit
let blake2
(a: alg)
(m: valid_m_spec a)
(k... | false | null | false | I.Block I.Erased
(stateful_blake2 a m)
(stateful_key a kk)
unit
(fun () -> max_input_len a)
(fun () () -> output_size a)
(fun () -> block_len a)
(fun () -> block_len a)
(fun () -> if kk > 0 then block_len a else 0ul)
(fun () k -> if kk > 0 then Spec.blake2_key_block a kk k else S.empty)
(fun () _k -... | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"total"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Impl.Blake2.Generic.valid_m_spec",
"Hacl.Streaming.Blake2.key_size",
"Hacl.Impl.Blake2.Generic.blake2_init_st",
"Hacl.Impl.Blake2.Generic.blake2_update_multi_st",
"Hacl.Impl.Blake2.Generic.blake2_update_last_st",
"Hacl.Impl.Blake2.Generic.blake2_finish_st",
"Hacl.Str... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val blake2
(a: alg)
(m: valid_m_spec a)
(kk: key_size a)
(init: blake2_init_st a m)
(update_multi: blake2_update_multi_st a m)
(update_last: blake2_update_last_st a m)
(finish: blake2_finish_st a m)
: I.block unit | [] | Hacl.Streaming.Blake2.blake2 | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Hacl.Streaming.Blake2.alg ->
m: Hacl.Impl.Blake2.Generic.valid_m_spec a ->
kk: Hacl.Streaming.Blake2.key_size a ->
init: Hacl.Impl.Blake2.Generic.blake2_init_st a m ->
update_multi: Hacl.Impl.Blake2.Generic.blake2_update_multi_st a m ->
update_last: Hacl.Impl.Blake2.Generic.blake2_update_las... | {
"end_col": 34,
"end_line": 617,
"start_col": 2,
"start_line": 563
} |
FStar.Pervasives.Lemma | val spec_is_incremental :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
Lemma(
blake2_hash_incremental_s a kk k input ==
Spec.blake2 a input kk ... | [
{
"abbrev": true,
"full_module": "Hacl.Blake2b_32",
"short_module": "Blake2b32"
},
{
"abbrev": true,
"full_module": "Hacl.Blake2s_32",
"short_module": "Blake2s32"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Generic",
"short_module": null
},
{
"abbrev": ... | false | let spec_is_incremental a kk k input0 =
let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
let n_blocks, l_last = Spec.split a (S.length input) in
let blocks, last = Lib.UpdateMulti.split_at_last_lazy... | val spec_is_incremental :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
Lemma(
blake2_hash_incremental_s a kk k input ==
Spec.blake2 a input kk ... | false | null | false | let key_block = if kk > 0 then Spec.blake2_key_block a kk k else S.empty in
let key_block_len = S.length key_block in
let input = Seq.append key_block input0 in
let n_blocks, l_last = Spec.split a (S.length input) in
let blocks, last = Lib.UpdateMulti.split_at_last_lazy (U32.v (block_len a)) input in
let s = init_s a k... | {
"checked_file": "Hacl.Streaming.Blake2.fst.checked",
"dependencies": [
"Spec.Blake2.Alternative.fsti.checked",
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
... | [
"lemma"
] | [
"Hacl.Streaming.Blake2.alg",
"Hacl.Streaming.Blake2.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Hacl.Streaming.Blake2.max_key",
"Hacl.Streaming.Blake2.lbytes",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Blake2.uint8",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Hacl.Streami... | [] | module Hacl.Streaming.Blake2
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module LS = Lib.Sequence
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module U128 = FStar.UInt128
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module ST = FSta... | false | false | Hacl.Streaming.Blake2.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val spec_is_incremental :
a : alg ->
kk: size_nat{kk <= max_key a} ->
k: lbytes kk ->
input:S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + (Spec.size_block a) <= max_input_length a } ->
Lemma(
blake2_hash_incremental_s a kk k input ==
Spec.blake2 a input kk ... | [] | Hacl.Streaming.Blake2.spec_is_incremental | {
"file_name": "code/streaming/Hacl.Streaming.Blake2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Hacl.Streaming.Blake2.alg ->
kk: Hacl.Streaming.Blake2.size_nat{kk <= Hacl.Streaming.Blake2.max_key a} ->
k: Hacl.Streaming.Blake2.lbytes kk ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Blake2.uint8
{ (match kk = 0 with
| true -> FStar.Seq.Base.length input <= Hacl.Streaming... | {
"end_col": 47,
"end_line": 485,
"start_col": 39,
"start_line": 468
} |
Prims.Tot | val validate_bitsum_cases_t
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#from: nat)
(b: bitsum' cl from)
: Tot (Type u#(r + 1)) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_mod... | false | let validate_bitsum_cases_t
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#from: nat)
(b: bitsum' cl from)
: Tot (Type u#(r+1))
= (u: (bitsum'_key_type b -> Tot (Type u#r))) ->
(f: ((x: bitsum'_key_type b) -> Tot (k: parser_kind & parser k (u x)))) ->
(v: ((x: bitsum'_key_type b) -> Tot (validator (dsnd (... | val validate_bitsum_cases_t
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#from: nat)
(b: bitsum' cl from)
: Tot (Type u#(r + 1))
let validate_bitsum_cases_t
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#from: nat)
(b: bitsum' cl from)
: Tot (Type u#(... | false | null | false |
u: (bitsum'_key_type b -> Tot (Type u#r)) ->
f: (x: bitsum'_key_type b -> Tot (k: parser_kind & parser k (u x))) ->
v: (x: bitsum'_key_type b -> Tot (validator (dsnd (f x)))) ->
x: parse_filter_refine (filter_bitsum' b)
-> Tot (validator (dsnd (f (bitsum'_key_of_t b (synth_bitsum' b x))))) | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"LowParse.Spec.BitSum.bitsum'",
"LowParse.Spec.BitSum.bitsum'_key_type",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.validator",
"Prims.__proj__Mkdtuple2__item___1",
"F... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_t
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#from: nat)
(b: bitsum' cl from)
: Tot (Type u#(r + 1)) | [] | LowParse.Low.BitSum.validate_bitsum_cases_t | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | b: LowParse.Spec.BitSum.bitsum' cl from -> Type | {
"end_col": 69,
"end_line": 47,
"start_col": 2,
"start_line": 43
} |
Prims.Tot | val validate_bitsum_cases_bitstop (#tot: pos) (#t: eqtype) (cl: uint_t tot t)
: Tot (validate_bitsum_cases_t u#r #tot #t #cl #0 (BitStop ())) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_mod... | false | let validate_bitsum_cases_bitstop
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
: Tot (validate_bitsum_cases_t u#r #tot #t #cl #0 (BitStop ()))
= fun u f v x #rrel #rel sl pos ->
v () sl pos | val validate_bitsum_cases_bitstop (#tot: pos) (#t: eqtype) (cl: uint_t tot t)
: Tot (validate_bitsum_cases_t u#r #tot #t #cl #0 (BitStop ()))
let validate_bitsum_cases_bitstop (#tot: pos) (#t: eqtype) (cl: uint_t tot t)
: Tot (validate_bitsum_cases_t u#r #tot #t #cl #0 (BitStop ())) = | false | null | false | fun u f v x #rrel #rel sl pos -> v () sl pos | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"LowParse.Spec.BitSum.bitsum'_key_type",
"LowParse.Spec.BitSum.BitStop",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.validator",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_bitstop (#tot: pos) (#t: eqtype) (cl: uint_t tot t)
: Tot (validate_bitsum_cases_t u#r #tot #t #cl #0 (BitStop ())) | [] | LowParse.Low.BitSum.validate_bitsum_cases_bitstop | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | cl: LowParse.BitFields.uint_t tot t
-> LowParse.Low.BitSum.validate_bitsum_cases_t (LowParse.Spec.BitSum.BitStop ()) | {
"end_col": 13,
"end_line": 56,
"start_col": 2,
"start_line": 55
} |
Prims.Tot | val mk_validate_bitsum_cases_t'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#bitsum'_size: nat)
(b: bitsum' cl bitsum'_size)
: Tot (validate_bitsum_cases_t u#r b) (decreases b) | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let rec mk_validate_bitsum_cases_t'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#bitsum'_size: nat)
(b: bitsum' cl bitsum'_size)
: Tot (validate_bitsum_cases_t u#r b)
(decreases b)
= match b with
| BitStop _ -> validate_bitsum_cases_bitstop cl
| BitField sz rest -> validate_bitsum_cases_bitfield cl bi... | val mk_validate_bitsum_cases_t'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#bitsum'_size: nat)
(b: bitsum' cl bitsum'_size)
: Tot (validate_bitsum_cases_t u#r b) (decreases b)
let rec mk_validate_bitsum_cases_t'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#... | false | null | false | match b with
| BitStop _ -> validate_bitsum_cases_bitstop cl
| BitField sz rest ->
validate_bitsum_cases_bitfield cl bitsum'_size sz rest (mk_validate_bitsum_cases_t' rest)
| BitSum' key key_size e payload ->
validate_bitsum_cases_bitsum'_intro cl
bitsum'_size
key
key_size
e
payload
(mk_vali... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total",
""
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"LowParse.Spec.BitSum.bitsum'",
"Prims.squash",
"Prims.eq2",
"Prims.int",
"LowParse.Low.BitSum.validate_bitsum_cases_bitstop",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"Prims.op_Su... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val mk_validate_bitsum_cases_t'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(#bitsum'_size: nat)
(b: bitsum' cl bitsum'_size)
: Tot (validate_bitsum_cases_t u#r b) (decreases b) | [
"recursion"
] | LowParse.Low.BitSum.mk_validate_bitsum_cases_t' | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | b: LowParse.Spec.BitSum.bitsum' cl bitsum'_size
-> Prims.Tot (LowParse.Low.BitSum.validate_bitsum_cases_t b) | {
"end_col": 229,
"end_line": 258,
"start_col": 2,
"start_line": 254
} |
Prims.Tot | val validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(phi: filter_bitsum'_t b)
: Tot (validator (parse_bitsum' b p)) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.BitSum",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(phi: filter_bitsum'_t b)
: Tot (validator (parse_bitsum' b p))
= synth_bitsum'_injective b;
validate_synth
(validate_filter
v
... | val validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(phi: filter_bitsum'_t b)
: Tot (validator (parse_bitsum' b p))
let validate_bitsum'
(#tot: pos)
... | false | null | false | synth_bitsum'_injective b;
validate_synth (validate_filter v r (filter_bitsum' b) (fun x -> phi x)) (synth_bitsum' b) () | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"LowParse.Spec.BitSum.bitsum'",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.validator",
"LowParse.Low.Base.leaf_reader",
"LowParse.Spec.BitSum.filter_bitsum'_t",
"LowParse.Low.Combinators.validate_synth... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(phi: filter_bitsum'_t b)
: Tot (validator (parse_bitsum' b p)) | [] | LowParse.Low.BitSum.validate_bitsum' | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
b: LowParse.Spec.BitSum.bitsum' cl tot ->
v: LowParse.Low.Base.validator p ->
r: LowParse.Low.Base.leaf_reader p ->
phi: LowParse.Spec.BitSum.filter_bitsum'_t b
-> LowParse.Low.Base.validator (LowParse.Spec.BitSum.parse_bitsum' b p) | {
"end_col": 6,
"end_line": 30,
"start_col": 2,
"start_line": 22
} |
Prims.Tot | val validate_bitsum_cases_bitfield
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(sz: nat{sz > 0 /\ sz <= bitsum'_size /\ bitsum'_size <= tot})
(rest: bitsum' cl (bitsum'_size - sz))
(phi: validate_bitsum_cases_t u#r rest)
: Tot (validate_bitsum_cases_t u#... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_mod... | false | let validate_bitsum_cases_bitfield
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(sz: nat { sz > 0 /\ sz <= bitsum'_size /\ bitsum'_size <= tot })
(rest: bitsum' cl (bitsum'_size - sz))
(phi: validate_bitsum_cases_t u#r rest)
: Tot (validate_bitsum_cases_t u#r (BitField sz rest))
= fun u... | val validate_bitsum_cases_bitfield
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(sz: nat{sz > 0 /\ sz <= bitsum'_size /\ bitsum'_size <= tot})
(rest: bitsum' cl (bitsum'_size - sz))
(phi: validate_bitsum_cases_t u#r rest)
: Tot (validate_bitsum_cases_t u#... | false | null | false | fun u f v x #rrel #rel sl pos ->
phi (fun x -> u (coerce (bitsum'_key_type (BitField sz rest)) x))
(fun x -> f (coerce (bitsum'_key_type (BitField sz rest)) x))
(fun x -> v (coerce (bitsum'_key_type (BitField sz rest)) x))
x
sl
pos | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.BitSum.bitsum'",
"Prims.op_Subtraction",
"LowParse.Low.BitSum.validate_bitsum_cases_t",
"LowParse.Spec.BitSum.bitsum'_key_type",... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_bitfield
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(sz: nat{sz > 0 /\ sz <= bitsum'_size /\ bitsum'_size <= tot})
(rest: bitsum' cl (bitsum'_size - sz))
(phi: validate_bitsum_cases_t u#r rest)
: Tot (validate_bitsum_cases_t u#... | [] | LowParse.Low.BitSum.validate_bitsum_cases_bitfield | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
cl: LowParse.BitFields.uint_t tot t ->
bitsum'_size: Prims.nat ->
sz: Prims.nat{sz > 0 /\ sz <= bitsum'_size /\ bitsum'_size <= tot} ->
rest: LowParse.Spec.BitSum.bitsum' cl (bitsum'_size - sz) ->
phi: LowParse.Low.BitSum.validate_bitsum_cases_t rest
-> LowParse.Low.BitSum.validate_bitsum_cases_t... | {
"end_col": 7,
"end_line": 75,
"start_col": 2,
"start_line": 68
} |
Prims.Tot | val validate_bitsum_cases_bitsum'_t
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let validate_bitsum_cases_bitsum'_t
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat { key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot })
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl (bitsum'_size - key_size))))... | val validate_bitsum_cases_bitsum'_t
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl... | false | null | false |
u: (bitsum'_key_type (BitSum' key key_size e payload) -> Tot (Type u#r)) ->
f:
(x: bitsum'_key_type (BitSum' key key_size e payload) -> Tot (k: parser_kind & parser k (u x))
) ->
v: (x: bitsum'_key_type (BitSum' key key_size e payload) -> Tot (validator (dsnd (f x)))) ->
x:
parse_filt... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Enum.enum",
"LowParse.BitFields.bitfield",
"LowParse.Spec.Enum.enum_key",
"LowParse.Spec.BitSum.bitsum'",
"Prims.op_Subtractio... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_bitsum'_t
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl... | [] | LowParse.Low.BitSum.validate_bitsum_cases_bitsum'_t | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
cl: LowParse.BitFields.uint_t tot t ->
bitsum'_size: Prims.nat ->
key: Prims.eqtype ->
key_size: Prims.nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot} ->
e: LowParse.Spec.Enum.enum key (LowParse.BitFields.bitfield cl key_size) ->
payload:
(_: LowParse.Spec.Enum.enum_k... | {
"end_col": 131,
"end_line": 123,
"start_col": 2,
"start_line": 118
} |
Prims.Tot | val validate_bitsum_cases_bitsum'_nil
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' ... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let validate_bitsum_cases_bitsum'_nil
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat { key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot })
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl (bitsum'_size - key_size))... | val validate_bitsum_cases_bitsum'_nil
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' ... | false | null | false | (fun u f v x xr #rrel #rel sl pos ->
assert False;
validator_error_generic) | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Enum.enum",
"LowParse.BitFields.bitfield",
"LowParse.Spec.Enum.enum_key",
"LowParse.Spec.BitSum.bitsum'",
"Prims.op_Subtractio... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_bitsum'_nil
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' ... | [] | LowParse.Low.BitSum.validate_bitsum_cases_bitsum'_nil | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
cl: LowParse.BitFields.uint_t tot t ->
bitsum'_size: Prims.nat ->
key: Prims.eqtype ->
key_size: Prims.nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot} ->
e: LowParse.Spec.Enum.enum key (LowParse.BitFields.bitfield cl key_size) ->
payload:
(_: LowParse.Spec.Enum.enum_k... | {
"end_col": 40,
"end_line": 155,
"start_col": 2,
"start_line": 153
} |
Prims.Tot | val validate_bitsum_cases_bitsum'_intro
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let validate_bitsum_cases_bitsum'_intro
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat { key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot })
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl (bitsum'_size - key_size... | val validate_bitsum_cases_bitsum'_intro
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum... | false | null | false | fun u f v x #rrel #rel sl pos ->
let xr = cl.bitfield_eq_lhs x (bitsum'_size - key_size) bitsum'_size in
phi u f v x xr sl pos | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Enum.enum",
"LowParse.BitFields.bitfield",
"LowParse.Spec.Enum.enum_key",
"LowParse.Spec.BitSum.bitsum'",
"Prims.op_Subtractio... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_bitsum'_intro
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum... | [] | LowParse.Low.BitSum.validate_bitsum_cases_bitsum'_intro | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
cl: LowParse.BitFields.uint_t tot t ->
bitsum'_size: Prims.nat ->
key: Prims.eqtype ->
key_size: Prims.nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot} ->
e: LowParse.Spec.Enum.enum key (LowParse.BitFields.bitfield cl key_size) ->
payload:
(_: LowParse.Spec.Enum.enum_k... | {
"end_col": 25,
"end_line": 139,
"start_col": 2,
"start_line": 137
} |
Prims.Tot | val mk_validate_bitsum_cases_bitsum'_t'
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let rec mk_validate_bitsum_cases_bitsum'_t'
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat { key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot })
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl (bitsum'_size - key_... | val mk_validate_bitsum_cases_bitsum'_t'
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum... | false | null | false | bitsum_wellfoundedness (BitSum' key key_size e payload);
match l2 with
| [] ->
[@@ inline_let ]let _ = L.append_l_nil l1 in
validate_bitsum_cases_bitsum'_nil cl bitsum'_size key key_size e payload ()
| (k, r) :: q ->
[@@ inline_let ]let _ =
enum_repr_of_key_append_cons e l1 (k, r) q;
L.append_assoc l1 [(k... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total",
""
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Enum.enum",
"LowParse.BitFields.bitfield",
"LowParse.Spec.Enum.enum_key",
"LowParse.Spec.BitSum.bitsum'",
"Prims.op_Subtractio... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val mk_validate_bitsum_cases_bitsum'_t'
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum... | [
"recursion"
] | LowParse.Low.BitSum.mk_validate_bitsum_cases_bitsum'_t' | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
cl: LowParse.BitFields.uint_t tot t ->
bitsum'_size: Prims.nat ->
key: Prims.eqtype ->
key_size: Prims.nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot} ->
e: LowParse.Spec.Enum.enum key (LowParse.BitFields.bitfield cl key_size) ->
payload:
(_: LowParse.Spec.Enum.enum_k... | {
"end_col": 137,
"end_line": 242,
"start_col": 2,
"start_line": 228
} |
FStar.Pervasives.Lemma | val valid_bitsum_elim
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_of... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let valid_bitsum_elim
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_of_tag)
(p: parser kt t)
(f: (x: b... | val valid_bitsum_elim
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_of... | false | null | true | valid_bitsum_elim' b tag_of_data type_of_tag synth_case p f h sl pos;
synth_bitsum'_injective b;
assert (valid ((p `parse_filter` (filter_bitsum' b)) `parse_synth` (synth_bitsum' b)) h sl pos);
valid_synth h (p `parse_filter` (filter_bitsum' b)) (synth_bitsum' b) sl pos;
valid_filter h p (filter_bitsum' b) sl pos;
let ... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"lemma"
] | [
"LowParse.Spec.Base.parser_kind",
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"LowParse.Spec.BitSum.bitsum'",
"LowParse.Spec.BitSum.bitsum'_type",
"LowParse.Spec.BitSum.bitsum'_key_type",
"LowParse.Spec.BitSum.synth_case_t",
"LowParse.Spec.Base.parser",
"Prims.dtuple2",
"FStar.Mono... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val valid_bitsum_elim
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_of... | [] | LowParse.Low.BitSum.valid_bitsum_elim | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
b: LowParse.Spec.BitSum.bitsum' cl tot ->
tag_of_data: (_: data -> LowParse.Spec.BitSum.bitsum'_type b) ->
type_of_tag: (_: LowParse.Spec.BitSum.bitsum'_key_type b -> Type) ->
synth_case: LowParse.Spec.BitSum.synth_case_t b data tag_of_data type_of_tag ->
p: LowParse.Spec.Base.parser kt t ->
f:... | {
"end_col": 43,
"end_line": 442,
"start_col": 2,
"start_line": 428
} |
Prims.Tot | val validate_bitsum_cases_bitsum_gen
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(key_of: (x: enum_repr e -> Tot (y: enu... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_mod... | false | let validate_bitsum_cases_bitsum_gen
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat { key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot })
(e: enum key (bitfield cl key_size))
(key_of: ((x: enum_repr e) -> Tot (y: enum_key e { y == enum_key_of_... | val validate_bitsum_cases_bitsum_gen
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(key_of: (x: enum_repr e -> Tot (y: enu... | false | null | false | fun u f v x_ #rrel #rel sl pos ->
[@@ inline_let ]let r = cl.get_bitfield x_ (bitsum'_size - key_size) bitsum'_size in
[@@ inline_let ]let k = key_of r in
destr_payload k
(fun x -> u (bitsum'_key_type_intro_BitSum' cl bitsum'_size key key_size e payload (| k, x |)))
(fun x -> f (bitsum'_key_type_intro_Bit... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Enum.enum",
"LowParse.BitFields.bitfield",
"LowParse.Spec.Enum.enum_repr",
"LowParse.Spec.Enum.enum_key",
"Prims.eq2",
"LowP... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_bitsum_gen
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(key_of: (x: enum_repr e -> Tot (y: enu... | [] | LowParse.Low.BitSum.validate_bitsum_cases_bitsum_gen | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
cl: LowParse.BitFields.uint_t tot t ->
bitsum'_size: Prims.nat ->
key: Prims.eqtype ->
key_size: Prims.nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot} ->
e: LowParse.Spec.Enum.enum key (LowParse.BitFields.bitfield cl key_size) ->
key_of:
(x: LowParse.Spec.Enum.enum_re... | {
"end_col": 17,
"end_line": 100,
"start_col": 2,
"start_line": 90
} |
FStar.Pervasives.Lemma | val valid_bitsum_intro
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_o... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let valid_bitsum_intro
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_of_tag)
(p: parser kt t)
(f: (x: ... | val valid_bitsum_intro
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_o... | false | null | true | valid_facts (parse_bitsum b tag_of_data type_of_tag synth_case p f) h sl pos;
parse_bitsum_eq b tag_of_data type_of_tag synth_case p f (bytes_of_slice_from h sl pos);
valid_facts (parse_bitsum' b p) h sl pos;
let tg = contents (parse_bitsum' b p) h sl pos in
let k = bitsum'_key_of_t b tg in
let pos1 = get_valid_pos (pa... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"lemma"
] | [
"LowParse.Spec.Base.parser_kind",
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"LowParse.Spec.BitSum.bitsum'",
"LowParse.Spec.BitSum.bitsum'_type",
"LowParse.Spec.BitSum.bitsum'_key_type",
"LowParse.Spec.BitSum.synth_case_t",
"LowParse.Spec.Base.parser",
"Prims.dtuple2",
"FStar.Mono... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val valid_bitsum_intro
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_o... | [] | LowParse.Low.BitSum.valid_bitsum_intro | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
b: LowParse.Spec.BitSum.bitsum' cl tot ->
tag_of_data: (_: data -> LowParse.Spec.BitSum.bitsum'_type b) ->
type_of_tag: (_: LowParse.Spec.BitSum.bitsum'_key_type b -> Type) ->
synth_case: LowParse.Spec.BitSum.synth_case_t b data tag_of_data type_of_tag ->
p: LowParse.Spec.Base.parser kt t ->
f:... | {
"end_col": 36,
"end_line": 349,
"start_col": 2,
"start_line": 343
} |
FStar.Pervasives.Lemma | val valid_bitsum_elim'
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_o... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let valid_bitsum_elim'
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_of_tag)
(p: parser kt t)
(f: (x: ... | val valid_bitsum_elim'
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_o... | false | null | true | valid_facts (parse_bitsum b tag_of_data type_of_tag synth_case p f) h sl pos;
parse_bitsum_eq b tag_of_data type_of_tag synth_case p f (bytes_of_slice_from h sl pos);
valid_facts (parse_bitsum' b p) h sl pos;
let tg = contents (parse_bitsum' b p) h sl pos in
let k = bitsum'_key_of_t b tg in
let pos1 = get_valid_pos (pa... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"lemma"
] | [
"LowParse.Spec.Base.parser_kind",
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"LowParse.Spec.BitSum.bitsum'",
"LowParse.Spec.BitSum.bitsum'_type",
"LowParse.Spec.BitSum.bitsum'_key_type",
"LowParse.Spec.BitSum.synth_case_t",
"LowParse.Spec.Base.parser",
"Prims.dtuple2",
"FStar.Mono... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val valid_bitsum_elim'
(#kt: parser_kind)
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#data: Type)
(tag_of_data: (data -> Tot (bitsum'_type b)))
(type_of_tag: (bitsum'_key_type b -> Tot Type))
(synth_case: synth_case_t b data tag_of_data type_o... | [] | LowParse.Low.BitSum.valid_bitsum_elim' | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
b: LowParse.Spec.BitSum.bitsum' cl tot ->
tag_of_data: (_: data -> LowParse.Spec.BitSum.bitsum'_type b) ->
type_of_tag: (_: LowParse.Spec.BitSum.bitsum'_key_type b -> Type) ->
synth_case: LowParse.Spec.BitSum.synth_case_t b data tag_of_data type_of_tag ->
p: LowParse.Spec.Base.parser kt t ->
f:... | {
"end_col": 70,
"end_line": 390,
"start_col": 2,
"start_line": 383
} |
Prims.Tot | val validate_bitsum_cases_bitsum'_cons
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum'... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modu... | false | let validate_bitsum_cases_bitsum'_cons
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat { key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot })
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum' cl (bitsum'_size - key_size)... | val validate_bitsum_cases_bitsum'_cons
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum'... | false | null | false | fun u f v x xr #rrel #rel sl pos ->
let _ = enum_repr_of_key_append_cons e l1 (k, r) l2 in
[@@ inline_let ]let yr = cl.bitfield_eq_rhs x (bitsum'_size - key_size) bitsum'_size r in
[@@ inline_let ]let cond = (xr <: t) = yr in
[@@ inline_let ]let _ =
assert (cond == true <==>
(cl.get_bitfield x (bits... | {
"checked_file": "LowParse.Low.BitSum.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.BitSum.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fs... | [
"total"
] | [
"Prims.pos",
"Prims.eqtype",
"LowParse.BitFields.uint_t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Enum.enum",
"LowParse.BitFields.bitfield",
"LowParse.Spec.Enum.enum_key",
"LowParse.Spec.BitSum.bitsum'",
"Prims.op_Subtractio... | [] | module LowParse.Low.BitSum
include LowParse.Low.Combinators
include LowParse.Spec.BitSum
module U32 = FStar.UInt32
module HS = FStar.HyperStack
#push-options "--z3rlimit 16"
inline_for_extraction
let validate_bitsum'
(#tot: pos)
(#t: eqtype)
(#cl: uint_t tot t)
(b: bitsum' cl tot)
(#k: parser_kind)
(#p: ... | false | false | LowParse.Low.BitSum.fst | {
"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... | null | val validate_bitsum_cases_bitsum'_cons
(#tot: pos)
(#t: eqtype)
(cl: uint_t tot t)
(bitsum'_size: nat)
(key: eqtype)
(key_size: nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot})
(e: enum key (bitfield cl key_size))
(payload: (enum_key e -> Tot (bitsum'... | [] | LowParse.Low.BitSum.validate_bitsum_cases_bitsum'_cons | {
"file_name": "src/lowparse/LowParse.Low.BitSum.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
cl: LowParse.BitFields.uint_t tot t ->
bitsum'_size: Prims.nat ->
key: Prims.eqtype ->
key_size: Prims.nat{key_size > 0 /\ key_size <= bitsum'_size /\ bitsum'_size <= tot} ->
e: LowParse.Spec.Enum.enum key (LowParse.BitFields.bitfield cl key_size) ->
payload:
(_: LowParse.Spec.Enum.enum_k... | {
"end_col": 41,
"end_line": 204,
"start_col": 2,
"start_line": 181
} |
Prims.Tot | val equal (regs1:t) (regs2:t) : prop0 | [
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
... | false | let equal regs1 regs2 = feq regs1 regs2 | val equal (regs1:t) (regs2:t) : prop0
let equal regs1 regs2 = | false | null | false | feq regs1 regs2 | {
"checked_file": "Vale.PPC64LE.Regs.fst.checked",
"dependencies": [
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": true,
"source_file": "Vale.PPC64LE.Regs.fst"
} | [
"total"
] | [
"Vale.PPC64LE.Regs.t",
"FStar.FunctionalExtensionality.feq",
"Vale.PPC64LE.Machine_s.reg",
"Vale.PPC64LE.Machine_s.nat64",
"Vale.Def.Prop_s.prop0"
] | [] | module Vale.PPC64LE.Regs
open Vale.PPC64LE.Machine_s
open FStar.FunctionalExtensionality | false | true | Vale.PPC64LE.Regs.fst | {
"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... | null | val equal (regs1:t) (regs2:t) : prop0 | [] | Vale.PPC64LE.Regs.equal | {
"file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Regs.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | regs1: Vale.PPC64LE.Regs.t -> regs2: Vale.PPC64LE.Regs.t -> Vale.Def.Prop_s.prop0 | {
"end_col": 39,
"end_line": 5,
"start_col": 24,
"start_line": 5
} |
Prims.Tot | val linv_ctx (a: LSeq.lseq uint64 0) : Type0 | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let linv_ctx (a:LSeq.lseq uint64 0) : Type0 = True | val linv_ctx (a: LSeq.lseq uint64 0) : Type0
let linv_ctx (a: LSeq.lseq uint64 0) : Type0 = | false | null | false | True | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"total"
] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Prims.l_True"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val linv_ctx (a: LSeq.lseq uint64 0) : Type0 | [] | Hacl.Impl.K256.Qinv.linv_ctx | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Lib.Sequence.lseq Lib.IntTypes.uint64 0 -> Type0 | {
"end_col": 50,
"end_line": 25,
"start_col": 46,
"start_line": 25
} |
FStar.HyperStack.ST.Stack | val qinv (out f: qelem) : Stack unit
(requires fun h ->
live h out /\ live h f /\ disjoint out f /\
qe_lt_q h f)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
qas_nat h1 out == S.qinv (qas_nat h0 f) /\
qe_lt_q h1 out) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv out f =
let h0 = ST.get () in
SI.qinv_is_qinv_lemma (qas_nat h0 f);
qinv_ out f | val qinv (out f: qelem) : Stack unit
(requires fun h ->
live h out /\ live h f /\ disjoint out f /\
qe_lt_q h f)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
qas_nat h1 out == S.qinv (qas_nat h0 f) /\
qe_lt_q h1 out)
let qinv out f = | true | null | false | let h0 = ST.get () in
SI.qinv_is_qinv_lemma (qas_nat h0 f);
qinv_ out f | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Hacl.Impl.K256.Qinv.qinv_",
"Prims.unit",
"Hacl.Spec.K256.Qinv.qinv_is_qinv_lemma",
"Hacl.K256.Scalar.qas_nat",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv (out f: qelem) : Stack unit
(requires fun h ->
live h out /\ live h f /\ disjoint out f /\
qe_lt_q h f)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
qas_nat h1 out == S.qinv (qas_nat h0 f) /\
qe_lt_q h1 out) | [] | Hacl.Impl.K256.Qinv.qinv | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | out: Hacl.K256.Scalar.qelem -> f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 13,
"end_line": 505,
"start_col": 16,
"start_line": 502
} |
Prims.Tot | val mk_k256_scalar_concrete_ops:BE.concrete_ops U64 4ul 0ul | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let mk_k256_scalar_concrete_ops : BE.concrete_ops U64 4ul 0ul = {
BE.to = mk_to_k256_scalar_comm_monoid;
BE.lone = one_mod;
BE.lmul = mul_mod;
BE.lsqr = sqr_mod;
} | val mk_k256_scalar_concrete_ops:BE.concrete_ops U64 4ul 0ul
let mk_k256_scalar_concrete_ops:BE.concrete_ops U64 4ul 0ul = | false | null | false | { BE.to = mk_to_k256_scalar_comm_monoid; BE.lone = one_mod; BE.lmul = mul_mod; BE.lsqr = sqr_mod } | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"total"
] | [
"Hacl.Impl.Exponentiation.Definitions.Mkconcrete_ops",
"Lib.IntTypes.U64",
"FStar.UInt32.uint_to_t",
"FStar.Ghost.hide",
"Hacl.Impl.Exponentiation.Definitions.to_comm_monoid",
"Hacl.Impl.K256.Qinv.mk_to_k256_scalar_comm_monoid",
"Hacl.Impl.K256.Qinv.one_mod",
"Hacl.Impl.K256.Qinv.mul_mod",
"Hacl.Imp... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val mk_k256_scalar_concrete_ops:BE.concrete_ops U64 4ul 0ul | [] | Hacl.Impl.K256.Qinv.mk_k256_scalar_concrete_ops | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.Exponentiation.Definitions.concrete_ops Lib.IntTypes.U64
(FStar.UInt32.uint_to_t 4 <: FStar.UInt32.t)
(FStar.UInt32.uint_to_t 0 <: FStar.UInt32.t) | {
"end_col": 20,
"end_line": 65,
"start_col": 2,
"start_line": 62
} |
Prims.Tot | val mk_to_k256_scalar_comm_monoid:BE.to_comm_monoid U64 4ul 0ul | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let mk_to_k256_scalar_comm_monoid : BE.to_comm_monoid U64 4ul 0ul = {
BE.a_spec = S.qelem;
BE.comm_monoid = SI.nat_mod_comm_monoid;
BE.linv_ctx = linv_ctx;
BE.linv = linv;
BE.refl = refl;
} | val mk_to_k256_scalar_comm_monoid:BE.to_comm_monoid U64 4ul 0ul
let mk_to_k256_scalar_comm_monoid:BE.to_comm_monoid U64 4ul 0ul = | false | null | false | {
BE.a_spec = S.qelem;
BE.comm_monoid = SI.nat_mod_comm_monoid;
BE.linv_ctx = linv_ctx;
BE.linv = linv;
BE.refl = refl
} | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"total"
] | [
"Hacl.Impl.Exponentiation.Definitions.Mkto_comm_monoid",
"Lib.IntTypes.U64",
"FStar.UInt32.uint_to_t",
"Spec.K256.PointOps.qelem",
"Hacl.Spec.K256.Qinv.nat_mod_comm_monoid",
"Hacl.Impl.K256.Qinv.linv_ctx",
"Hacl.Impl.K256.Qinv.linv",
"Hacl.Impl.K256.Qinv.refl"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val mk_to_k256_scalar_comm_monoid:BE.to_comm_monoid U64 4ul 0ul | [] | Hacl.Impl.K256.Qinv.mk_to_k256_scalar_comm_monoid | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.Exponentiation.Definitions.to_comm_monoid Lib.IntTypes.U64
(FStar.UInt32.uint_to_t 4 <: FStar.UInt32.t)
(FStar.UInt32.uint_to_t 0 <: FStar.UInt32.t) | {
"end_col": 17,
"end_line": 41,
"start_col": 2,
"start_line": 37
} |
FStar.HyperStack.ST.Stack | val qsquare_times_in_place (out:qelem) (b:size_t) : Stack unit
(requires fun h ->
live h out /\ qe_lt_q h out)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qe_lt_q h1 out /\
qas_nat h1 out == SI.qsquare_times (qas_nat h0 out) (v b)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qsquare_times_in_place out b =
let h0 = ST.get () in
SE.exp_pow2_lemma SI.mk_nat_mod_concrete_ops (qas_nat h0 out) (v b);
BE.lexp_pow2_in_place 4ul 0ul mk_k256_scalar_concrete_ops (null uint64) out b | val qsquare_times_in_place (out:qelem) (b:size_t) : Stack unit
(requires fun h ->
live h out /\ qe_lt_q h out)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qe_lt_q h1 out /\
qas_nat h1 out == SI.qsquare_times (qas_nat h0 out) (v b))
let qsquare_times_in_place out b = | true | null | false | let h0 = ST.get () in
SE.exp_pow2_lemma SI.mk_nat_mod_concrete_ops (qas_nat h0 out) (v b);
BE.lexp_pow2_in_place 4ul 0ul mk_k256_scalar_concrete_ops (null uint64) out b | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Lib.IntTypes.size_t",
"Hacl.Impl.Exponentiation.lexp_pow2_in_place",
"Lib.IntTypes.U64",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.K256.Qinv.mk_k256_scalar_concrete_ops",
"Lib.Buffer.null",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint64",
"Prims.unit",
"Spec.Exponentiation.exp_po... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qsquare_times_in_place (out:qelem) (b:size_t) : Stack unit
(requires fun h ->
live h out /\ qe_lt_q h out)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qe_lt_q h1 out /\
qas_nat h1 out == SI.qsquare_times (qas_nat h0 out) (v b)) | [] | Hacl.Impl.K256.Qinv.qsquare_times_in_place | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | out: Hacl.K256.Scalar.qelem -> b: Lib.IntTypes.size_t -> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 79,
"end_line": 79,
"start_col": 34,
"start_line": 76
} |
FStar.HyperStack.ST.Stack | val qinv7 (tmp f x6: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h f /\ live h x6 /\
disjoint tmp f /\ disjoint tmp x6 /\
qe_lt_q h tmp /\ qe_lt_q h f /\ qe_lt_q h x6)
(ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\
qas_nat h1 tmp == SI.qinv_r24_r25 (qas_nat h0 tmp) (qas_nat h0 f)... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv7 tmp f x6 =
let h0 = ST.get () in
qsquare_times_in_place tmp 6ul;
qmul tmp tmp f; //tmp = r23
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 6) (qas_nat h0 f));
qsquare_times_in_place tmp 8ul;
qmul tmp tmp x6; //tmp = r24
let h2 = ST.get () in
asser... | val qinv7 (tmp f x6: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h f /\ live h x6 /\
disjoint tmp f /\ disjoint tmp x6 /\
qe_lt_q h tmp /\ qe_lt_q h f /\ qe_lt_q h x6)
(ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\
qas_nat h1 tmp == SI.qinv_r24_r25 (qas_nat h0 tmp) (qas_nat h0 f)... | true | null | false | let h0 = ST.get () in
qsquare_times_in_place tmp 6ul;
qmul tmp tmp f;
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 6) (qas_nat h0 f));
qsquare_times_in_place tmp 8ul;
qmul tmp tmp x6;
let h2 = ST.get () in
assert (qas_nat h2 tmp == S.qmul (SI.qsquare_times (qas_nat h1 tmp) 8... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Prims._assert",
"Prims.eq2",
"Prims.nat",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.qmul",
"Hacl.Spec.K256.Qinv.qsquare_times",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.K256.Scalar.qmul",
"Hacl.Impl.K256.Qinv.qsquare_time... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv7 (tmp f x6: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h f /\ live h x6 /\
disjoint tmp f /\ disjoint tmp x6 /\
qe_lt_q h tmp /\ qe_lt_q h f /\ qe_lt_q h x6)
(ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\
qas_nat h1 tmp == SI.qinv_r24_r25 (qas_nat h0 tmp) (qas_nat h0 f)... | [] | Hacl.Impl.K256.Qinv.qinv7 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | tmp: Hacl.K256.Scalar.qelem -> f: Hacl.K256.Scalar.qelem -> x6: Hacl.K256.Scalar.qelem
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 89,
"end_line": 413,
"start_col": 20,
"start_line": 403
} |
Prims.Tot | val mul_mod : BE.lmul_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let mul_mod ctx x y xy = qmul xy x y | val mul_mod : BE.lmul_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid
let mul_mod ctx x y xy = | false | null | false | qmul xy x y | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"total"
] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.UInt32.__uint_to_t",
"Hacl.K256.Scalar.qmul",
"Prims.unit"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val mul_mod : BE.lmul_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid | [] | Hacl.Impl.K256.Qinv.mul_mod | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.Exponentiation.Definitions.lmul_st Lib.IntTypes.U64
4ul
0ul
Hacl.Impl.K256.Qinv.mk_to_k256_scalar_comm_monoid | {
"end_col": 36,
"end_line": 52,
"start_col": 25,
"start_line": 52
} |
FStar.HyperStack.ST.Stack | val qsquare_times (out a:qelem) (b:size_t) : Stack unit
(requires fun h ->
live h out /\ live h a /\ disjoint out a /\
qe_lt_q h a)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qe_lt_q h1 a /\
qas_nat h1 out == SI.qsquare_times (qas_nat h0 a) (v b)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qsquare_times out a b =
let h0 = ST.get () in
SE.exp_pow2_lemma SI.mk_nat_mod_concrete_ops (qas_nat h0 a) (v b);
BE.lexp_pow2 4ul 0ul mk_k256_scalar_concrete_ops (null uint64) a b out | val qsquare_times (out a:qelem) (b:size_t) : Stack unit
(requires fun h ->
live h out /\ live h a /\ disjoint out a /\
qe_lt_q h a)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qe_lt_q h1 a /\
qas_nat h1 out == SI.qsquare_times (qas_nat h0 a) (v b))
let qsquare_times out a b = | true | null | false | let h0 = ST.get () in
SE.exp_pow2_lemma SI.mk_nat_mod_concrete_ops (qas_nat h0 a) (v b);
BE.lexp_pow2 4ul 0ul mk_k256_scalar_concrete_ops (null uint64) a b out | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Lib.IntTypes.size_t",
"Hacl.Impl.Exponentiation.lexp_pow2",
"Lib.IntTypes.U64",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.K256.Qinv.mk_k256_scalar_concrete_ops",
"Lib.Buffer.null",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint64",
"Prims.unit",
"Spec.Exponentiation.exp_pow2_lemma"... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qsquare_times (out a:qelem) (b:size_t) : Stack unit
(requires fun h ->
live h out /\ live h a /\ disjoint out a /\
qe_lt_q h a)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qe_lt_q h1 a /\
qas_nat h1 out == SI.qsquare_times (qas_nat h0 a) (v b)) | [] | Hacl.Impl.K256.Qinv.qsquare_times | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | out: Hacl.K256.Scalar.qelem -> a: Hacl.K256.Scalar.qelem -> b: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 72,
"end_line": 93,
"start_col": 27,
"start_line": 90
} |
Prims.Tot | val linv (a: LSeq.lseq uint64 4) : Type0 | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let linv (a:LSeq.lseq uint64 4) : Type0 =
SD.bn_v #U64 #4 a < S.q | val linv (a: LSeq.lseq uint64 4) : Type0
let linv (a: LSeq.lseq uint64 4) : Type0 = | false | null | false | SD.bn_v #U64 #4 a < S.q | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"total"
] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Lib.IntTypes.U64",
"Spec.K256.PointOps.q"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val linv (a: LSeq.lseq uint64 4) : Type0 | [] | Hacl.Impl.K256.Qinv.linv | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Lib.Sequence.lseq Lib.IntTypes.uint64 4 -> Type0 | {
"end_col": 25,
"end_line": 29,
"start_col": 2,
"start_line": 29
} |
Prims.Tot | val one_mod : BE.lone_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let one_mod ctx one = make_u64_4 one (u64 1, u64 0, u64 0, u64 0) | val one_mod : BE.lone_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid
let one_mod ctx one = | false | null | false | make_u64_4 one (u64 1, u64 0, u64 0, u64 0) | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"total"
] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.UInt32.__uint_to_t",
"Hacl.K256.Scalar.make_u64_4",
"FStar.Pervasives.Native.Mktuple4",
"Lib.IntTypes.uint64",
"Lib.IntTypes.u64",
"Prims.unit"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val one_mod : BE.lone_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid | [] | Hacl.Impl.K256.Qinv.one_mod | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.Exponentiation.Definitions.lone_st Lib.IntTypes.U64
4ul
0ul
Hacl.Impl.K256.Qinv.mk_to_k256_scalar_comm_monoid | {
"end_col": 65,
"end_line": 47,
"start_col": 22,
"start_line": 47
} |
Prims.Tot | val sqr_mod : BE.lsqr_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let sqr_mod ctx x xx = qsqr xx x | val sqr_mod : BE.lsqr_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid
let sqr_mod ctx x xx = | false | null | false | qsqr xx x | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"total"
] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.UInt32.__uint_to_t",
"Hacl.K256.Scalar.qsqr",
"Prims.unit"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val sqr_mod : BE.lsqr_st U64 4ul 0ul mk_to_k256_scalar_comm_monoid | [] | Hacl.Impl.K256.Qinv.sqr_mod | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.Exponentiation.Definitions.lsqr_st Lib.IntTypes.U64
4ul
0ul
Hacl.Impl.K256.Qinv.mk_to_k256_scalar_comm_monoid | {
"end_col": 32,
"end_line": 57,
"start_col": 23,
"start_line": 57
} |
FStar.HyperStack.ST.Stack | val qinv2 (x_11 x_1011 x_1101 x6 x8 x14: qelem) : Stack unit
(requires fun h ->
live h x_11 /\ live h x_1011 /\ live h x_1101 /\
live h x6 /\ live h x8 /\ live h x14 /\
disjoint x_11 x6 /\ disjoint x_11 x8 /\ disjoint x_11 x14 /\
disjoint x_1011 x6 /\ disjoint x_1011 x8 /\ disjoint x_1011 x14 /\
d... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv2 x_11 x_1011 x_1101 x6 x8 x14 =
let h0 = ST.get () in
qsquare_times x6 x_1101 2ul;
qmul x6 x6 x_1011;
let h1 = ST.get () in
assert (qas_nat h1 x6 == S.qmul (SI.qsquare_times (qas_nat h0 x_1101) 2) (qas_nat h0 x_1011));
qsquare_times x8 x6 2ul;
qmul x8 x8 x_11;
let h2 = ST.get () in
assert (q... | val qinv2 (x_11 x_1011 x_1101 x6 x8 x14: qelem) : Stack unit
(requires fun h ->
live h x_11 /\ live h x_1011 /\ live h x_1101 /\
live h x6 /\ live h x8 /\ live h x14 /\
disjoint x_11 x6 /\ disjoint x_11 x8 /\ disjoint x_11 x14 /\
disjoint x_1011 x6 /\ disjoint x_1011 x8 /\ disjoint x_1011 x14 /\
d... | true | null | false | let h0 = ST.get () in
qsquare_times x6 x_1101 2ul;
qmul x6 x6 x_1011;
let h1 = ST.get () in
assert (qas_nat h1 x6 == S.qmul (SI.qsquare_times (qas_nat h0 x_1101) 2) (qas_nat h0 x_1011));
qsquare_times x8 x6 2ul;
qmul x8 x8 x_11;
let h2 = ST.get () in
assert (qas_nat h2 x8 == S.qmul (SI.qsquare_times (qas_nat h1 x6) 2) ... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Prims._assert",
"Prims.eq2",
"Prims.nat",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.qmul",
"Hacl.Spec.K256.Qinv.qsquare_times",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.K256.Scalar.qmul",
"Hacl.Impl.K256.Qinv.qsquare_time... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv2 (x_11 x_1011 x_1101 x6 x8 x14: qelem) : Stack unit
(requires fun h ->
live h x_11 /\ live h x_1011 /\ live h x_1101 /\
live h x6 /\ live h x8 /\ live h x14 /\
disjoint x_11 x6 /\ disjoint x_11 x8 /\ disjoint x_11 x14 /\
disjoint x_1011 x6 /\ disjoint x_1011 x8 /\ disjoint x_1011 x14 /\
d... | [] | Hacl.Impl.K256.Qinv.qinv2 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
x_11: Hacl.K256.Scalar.qelem ->
x_1011: Hacl.K256.Scalar.qelem ->
x_1101: Hacl.K256.Scalar.qelem ->
x6: Hacl.K256.Scalar.qelem ->
x8: Hacl.K256.Scalar.qelem ->
x14: Hacl.K256.Scalar.qelem
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 88,
"end_line": 193,
"start_col": 40,
"start_line": 178
} |
Prims.GTot | val refl (a: LSeq.lseq uint64 4 {linv a}) : GTot S.qelem | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let refl (a:LSeq.lseq uint64 4{linv a}) : GTot S.qelem =
SD.bn_v #U64 #4 a | val refl (a: LSeq.lseq uint64 4 {linv a}) : GTot S.qelem
let refl (a: LSeq.lseq uint64 4 {linv a}) : GTot S.qelem = | false | null | false | SD.bn_v #U64 #4 a | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [
"sometrivial"
] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Hacl.Impl.K256.Qinv.linv",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Lib.IntTypes.U64",
"Spec.K256.PointOps.qelem"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val refl (a: LSeq.lseq uint64 4 {linv a}) : GTot S.qelem | [] | Hacl.Impl.K256.Qinv.refl | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Lib.Sequence.lseq Lib.IntTypes.uint64 4 {Hacl.Impl.K256.Qinv.linv a}
-> Prims.GTot Spec.K256.PointOps.qelem | {
"end_col": 19,
"end_line": 33,
"start_col": 2,
"start_line": 33
} |
FStar.HyperStack.ST.Stack | val qinv1 (f x_10 x_11 x_101 x_111 x_1001 x_1011 x_1101:qelem) : Stack unit
(requires fun h ->
live h f /\ live h x_10 /\ live h x_11 /\ live h x_101 /\
live h x_111 /\ live h x_1001 /\ live h x_1011 /\ live h x_1101 /\
disjoint f x_10 /\ disjoint f x_11 /\ disjoint f x_101 /\
disjoint f x_111 /\ disj... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv1 f x_10 x_11 x_101 x_111 x_1001 x_1011 x_1101 =
let h0 = ST.get () in
qsquare_times x_10 f 1ul;
let h1 = ST.get () in
assert (qas_nat h1 x_10 == SI.qsquare_times (qas_nat h0 f) 1);
qmul x_11 x_10 f;
let h2 = ST.get () in
assert (qas_nat h2 x_11 == S.qmul (qas_nat h1 x_10) (qas_nat h0 f));
qmu... | val qinv1 (f x_10 x_11 x_101 x_111 x_1001 x_1011 x_1101:qelem) : Stack unit
(requires fun h ->
live h f /\ live h x_10 /\ live h x_11 /\ live h x_101 /\
live h x_111 /\ live h x_1001 /\ live h x_1011 /\ live h x_1101 /\
disjoint f x_10 /\ disjoint f x_11 /\ disjoint f x_101 /\
disjoint f x_111 /\ disj... | true | null | false | let h0 = ST.get () in
qsquare_times x_10 f 1ul;
let h1 = ST.get () in
assert (qas_nat h1 x_10 == SI.qsquare_times (qas_nat h0 f) 1);
qmul x_11 x_10 f;
let h2 = ST.get () in
assert (qas_nat h2 x_11 == S.qmul (qas_nat h1 x_10) (qas_nat h0 f));
qmul x_101 x_10 x_11;
let h3 = ST.get () in
assert (qas_nat h3 x_101 == S.qmul... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Prims._assert",
"Prims.eq2",
"Prims.nat",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.qmul",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.K256.Scalar.qmul",
"Hacl.Spec.K256.Qinv.qsquare_times",
"Hacl.Impl.K256.Qinv.qsquare_time... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv1 (f x_10 x_11 x_101 x_111 x_1001 x_1011 x_1101:qelem) : Stack unit
(requires fun h ->
live h f /\ live h x_10 /\ live h x_11 /\ live h x_101 /\
live h x_111 /\ live h x_1001 /\ live h x_1011 /\ live h x_1101 /\
disjoint f x_10 /\ disjoint f x_11 /\ disjoint f x_101 /\
disjoint f x_111 /\ disj... | [] | Hacl.Impl.K256.Qinv.qinv1 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
f: Hacl.K256.Scalar.qelem ->
x_10: Hacl.K256.Scalar.qelem ->
x_11: Hacl.K256.Scalar.qelem ->
x_101: Hacl.K256.Scalar.qelem ->
x_111: Hacl.K256.Scalar.qelem ->
x_1001: Hacl.K256.Scalar.qelem ->
x_1011: Hacl.K256.Scalar.qelem ->
x_1101: Hacl.K256.Scalar.qelem
-> FStar.HyperStack.ST.Stac... | {
"end_col": 76,
"end_line": 157,
"start_col": 56,
"start_line": 129
} |
FStar.HyperStack.ST.Stack | val qinv3 (tmp x14: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x14 /\ disjoint tmp x14 /\
qe_lt_q h x14)
(ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\
qas_nat h1 tmp == SI.qinv_r0_r1 (qas_nat h0 x14) /\
qe_lt_q h1 tmp) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv3 tmp x14 =
push_frame ();
let x56 = create_qelem () in
let h0 = ST.get () in
qsquare_times tmp x14 14ul;
qmul tmp tmp x14; //tmp = x28
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 x14) 14) (qas_nat h0 x14));
qsquare_times x56 tmp 28ul;
qmul x56 x56 tm... | val qinv3 (tmp x14: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x14 /\ disjoint tmp x14 /\
qe_lt_q h x14)
(ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\
qas_nat h1 tmp == SI.qinv_r0_r1 (qas_nat h0 x14) /\
qe_lt_q h1 tmp)
let qinv3 tmp x14 = | true | null | false | push_frame ();
let x56 = create_qelem () in
let h0 = ST.get () in
qsquare_times tmp x14 14ul;
qmul tmp tmp x14;
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 x14) 14) (qas_nat h0 x14));
qsquare_times x56 tmp 28ul;
qmul x56 x56 tmp;
let h2 = ST.get () in
assert (qas_nat h2 x56 == S... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.nat",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.qmul",
"Hacl.Spec.K256.Qinv.qsquare_times",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.K256.Scalar.qmul",
... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv3 (tmp x14: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x14 /\ disjoint tmp x14 /\
qe_lt_q h x14)
(ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\
qas_nat h1 tmp == SI.qinv_r0_r1 (qas_nat h0 x14) /\
qe_lt_q h1 tmp) | [] | Hacl.Impl.K256.Qinv.qinv3 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | tmp: Hacl.K256.Scalar.qelem -> x14: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 14,
"end_line": 229,
"start_col": 2,
"start_line": 206
} |
FStar.HyperStack.ST.Stack | val qinv4 (tmp x_101 x_111 x_1011: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x_101 /\ live h x_111 /\ live h x_1011 /\
disjoint tmp x_101 /\ disjoint tmp x_111 /\ disjoint tmp x_1011 /\
qe_lt_q h tmp /\ qe_lt_q h x_101 /\ qe_lt_q h x_111 /\ qe_lt_q h x_1011)
(ensures fun h0 _ h1 -> mo... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv4 tmp x_101 x_111 x_1011 =
let h0 = ST.get () in
qsquare_times_in_place tmp 3ul;
qmul tmp tmp x_101; //tmp = r2
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 3) (qas_nat h0 x_101));
qsquare_times_in_place tmp 4ul;
qmul tmp tmp x_111; //tmp = r3
let h2... | val qinv4 (tmp x_101 x_111 x_1011: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x_101 /\ live h x_111 /\ live h x_1011 /\
disjoint tmp x_101 /\ disjoint tmp x_111 /\ disjoint tmp x_1011 /\
qe_lt_q h tmp /\ qe_lt_q h x_101 /\ qe_lt_q h x_111 /\ qe_lt_q h x_1011)
(ensures fun h0 _ h1 -> mo... | true | null | false | let h0 = ST.get () in
qsquare_times_in_place tmp 3ul;
qmul tmp tmp x_101;
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 3) (qas_nat h0 x_101));
qsquare_times_in_place tmp 4ul;
qmul tmp tmp x_111;
let h2 = ST.get () in
assert (qas_nat h2 tmp == S.qmul (SI.qsquare_times (qas_na... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Prims._assert",
"Prims.eq2",
"Prims.nat",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.qmul",
"Hacl.Spec.K256.Qinv.qsquare_times",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.K256.Scalar.qmul",
"Hacl.Impl.K256.Qinv.qsquare_time... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv4 (tmp x_101 x_111 x_1011: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x_101 /\ live h x_111 /\ live h x_1011 /\
disjoint tmp x_101 /\ disjoint tmp x_111 /\ disjoint tmp x_1011 /\
qe_lt_q h tmp /\ qe_lt_q h x_101 /\ qe_lt_q h x_111 /\ qe_lt_q h x_1011)
(ensures fun h0 _ h1 -> mo... | [] | Hacl.Impl.K256.Qinv.qinv4 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
tmp: Hacl.K256.Scalar.qelem ->
x_101: Hacl.K256.Scalar.qelem ->
x_111: Hacl.K256.Scalar.qelem ->
x_1011: Hacl.K256.Scalar.qelem
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 92,
"end_line": 279,
"start_col": 34,
"start_line": 244
} |
FStar.HyperStack.ST.Stack | val qinv5 (tmp x_101 x_111 x_1001 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x_101 /\ live h x_111 /\
live h x_1001 /\ live h x_1101 /\ disjoint tmp x_101 /\
disjoint tmp x_111 /\ disjoint tmp x_1001 /\ disjoint tmp x_1101 /\
qe_lt_q h tmp /\ qe_lt_q h x_101 /\ qe_lt_q h x_111... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv5 tmp x_101 x_111 x_1001 x_1101 =
let h0 = ST.get () in
qsquare_times_in_place tmp 6ul;
qmul tmp tmp x_1101; //tmp = r9
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 6) (qas_nat h0 x_1101));
qsquare_times_in_place tmp 4ul;
qmul tmp tmp x_101; //tmp = r1... | val qinv5 (tmp x_101 x_111 x_1001 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x_101 /\ live h x_111 /\
live h x_1001 /\ live h x_1101 /\ disjoint tmp x_101 /\
disjoint tmp x_111 /\ disjoint tmp x_1001 /\ disjoint tmp x_1101 /\
qe_lt_q h tmp /\ qe_lt_q h x_101 /\ qe_lt_q h x_111... | true | null | false | let h0 = ST.get () in
qsquare_times_in_place tmp 6ul;
qmul tmp tmp x_1101;
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 6) (qas_nat h0 x_1101));
qsquare_times_in_place tmp 4ul;
qmul tmp tmp x_101;
let h2 = ST.get () in
assert (qas_nat h2 tmp == S.qmul (SI.qsquare_times (qas_... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Prims._assert",
"Prims.eq2",
"Prims.nat",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.qmul",
"Hacl.Spec.K256.Qinv.qsquare_times",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.K256.Scalar.qmul",
"Hacl.Impl.K256.Qinv.qsquare_time... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv5 (tmp x_101 x_111 x_1001 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x_101 /\ live h x_111 /\
live h x_1001 /\ live h x_1101 /\ disjoint tmp x_101 /\
disjoint tmp x_111 /\ disjoint tmp x_1001 /\ disjoint tmp x_1101 /\
qe_lt_q h tmp /\ qe_lt_q h x_101 /\ qe_lt_q h x_111... | [] | Hacl.Impl.K256.Qinv.qinv5 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
tmp: Hacl.K256.Scalar.qelem ->
x_101: Hacl.K256.Scalar.qelem ->
x_111: Hacl.K256.Scalar.qelem ->
x_1001: Hacl.K256.Scalar.qelem ->
x_1101: Hacl.K256.Scalar.qelem
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 92,
"end_line": 331,
"start_col": 41,
"start_line": 296
} |
FStar.HyperStack.ST.Stack | val qinv6 (tmp x8 x_11 x_1001 x_1011 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x8 /\ live h x_11 /\
live h x_1001 /\ live h x_1011 /\ live h x_1101 /\
disjoint tmp x8 /\ disjoint tmp x_11 /\ disjoint tmp x_1001 /\
disjoint tmp x_1011 /\ disjoint tmp x_1101 /\
qe_lt_q h tm... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv6 tmp x8 x_11 x_1001 x_1011 x_1101 =
let h0 = ST.get () in
qsquare_times_in_place tmp 9ul;
qmul tmp tmp x8; //tmp = r16
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 9) (qas_nat h0 x8));
qsquare_times_in_place tmp 5ul;
qmul tmp tmp x_1001; //tmp = r17
... | val qinv6 (tmp x8 x_11 x_1001 x_1011 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x8 /\ live h x_11 /\
live h x_1001 /\ live h x_1011 /\ live h x_1101 /\
disjoint tmp x8 /\ disjoint tmp x_11 /\ disjoint tmp x_1001 /\
disjoint tmp x_1011 /\ disjoint tmp x_1101 /\
qe_lt_q h tm... | true | null | false | let h0 = ST.get () in
qsquare_times_in_place tmp 9ul;
qmul tmp tmp x8;
let h1 = ST.get () in
assert (qas_nat h1 tmp == S.qmul (SI.qsquare_times (qas_nat h0 tmp) 9) (qas_nat h0 x8));
qsquare_times_in_place tmp 5ul;
qmul tmp tmp x_1001;
let h2 = ST.get () in
assert (qas_nat h2 tmp == S.qmul (SI.qsquare_times (qas_nat h1 ... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"Prims._assert",
"Prims.eq2",
"Prims.nat",
"Hacl.K256.Scalar.qas_nat",
"Spec.K256.PointOps.qmul",
"Hacl.Spec.K256.Qinv.qsquare_times",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.K256.Scalar.qmul",
"Hacl.Impl.K256.Qinv.qsquare_time... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv6 (tmp x8 x_11 x_1001 x_1011 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h x8 /\ live h x_11 /\
live h x_1001 /\ live h x_1011 /\ live h x_1101 /\
disjoint tmp x8 /\ disjoint tmp x_11 /\ disjoint tmp x_1001 /\
disjoint tmp x_1011 /\ disjoint tmp x_1101 /\
qe_lt_q h tm... | [] | Hacl.Impl.K256.Qinv.qinv6 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
tmp: Hacl.K256.Scalar.qelem ->
x8: Hacl.K256.Scalar.qelem ->
x_11: Hacl.K256.Scalar.qelem ->
x_1001: Hacl.K256.Scalar.qelem ->
x_1011: Hacl.K256.Scalar.qelem ->
x_1101: Hacl.K256.Scalar.qelem
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 93,
"end_line": 389,
"start_col": 44,
"start_line": 349
} |
FStar.HyperStack.ST.Stack | val qinv8 (tmp f x_11 x_101 x_111 x_1001 x_1011 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h f /\ live h x_11 /\
live h x_101 /\ live h x_111 /\ live h x_1001 /\
live h x_1011 /\ live h x_1101 /\
disjoint tmp f /\ disjoint tmp x_11 /\ disjoint tmp x_101 /\
disjoint tmp x_111... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv8 tmp f x_11 x_101 x_111 x_1001 x_1011 x_1101 =
push_frame ();
let x6 = create_qelem () in
let x8 = create_qelem () in
let x14 = create_qelem () in
let h1 = ST.get () in
qinv2 x_11 x_1011 x_1101 x6 x8 x14; //x6; x8; x14
let h2 = ST.get () in
assert (modifies (loc x6 |+| loc x8 |+| loc x14) h1 h... | val qinv8 (tmp f x_11 x_101 x_111 x_1001 x_1011 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h f /\ live h x_11 /\
live h x_101 /\ live h x_111 /\ live h x_1001 /\
live h x_1011 /\ live h x_1101 /\
disjoint tmp f /\ disjoint tmp x_11 /\ disjoint tmp x_101 /\
disjoint tmp x_111... | true | null | false | push_frame ();
let x6 = create_qelem () in
let x8 = create_qelem () in
let x14 = create_qelem () in
let h1 = ST.get () in
qinv2 x_11 x_1011 x_1101 x6 x8 x14;
let h2 = ST.get () in
assert (modifies (loc x6 |+| loc x8 |+| loc x14) h1 h2);
qinv3 tmp x14;
let h3 = ST.get () in
assert (modifies (loc tmp) h2 h3);
qinv4 tmp x... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Prims._assert",
"Lib.Buffer.modifies",
"Lib.Buffer.loc",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint64",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.Impl.K256.Qinv.qinv7",
"Hacl.Impl.K256.Qinv.qinv6",
"... | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv8 (tmp f x_11 x_101 x_111 x_1001 x_1011 x_1101: qelem) : Stack unit
(requires fun h ->
live h tmp /\ live h f /\ live h x_11 /\
live h x_101 /\ live h x_111 /\ live h x_1001 /\
live h x_1011 /\ live h x_1101 /\
disjoint tmp f /\ disjoint tmp x_11 /\ disjoint tmp x_101 /\
disjoint tmp x_111... | [] | Hacl.Impl.K256.Qinv.qinv8 | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
tmp: Hacl.K256.Scalar.qelem ->
f: Hacl.K256.Scalar.qelem ->
x_11: Hacl.K256.Scalar.qelem ->
x_101: Hacl.K256.Scalar.qelem ->
x_111: Hacl.K256.Scalar.qelem ->
x_1001: Hacl.K256.Scalar.qelem ->
x_1011: Hacl.K256.Scalar.qelem ->
x_1101: Hacl.K256.Scalar.qelem
-> FStar.HyperStack.ST.Stack... | {
"end_col": 14,
"end_line": 464,
"start_col": 2,
"start_line": 435
} |
FStar.HyperStack.ST.Stack | val qinv_ (out f: qelem) : Stack unit
(requires fun h ->
live h out /\ live h f /\ disjoint out f /\
qe_lt_q h f)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
qas_nat h1 out == SI.qinv (qas_nat h0 f) /\
qe_lt_q h1 out) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Exponentiation",
"short_module": "BE"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev"... | false | let qinv_ out f =
push_frame ();
let x_10 = create_qelem () in
let x_11 = create_qelem () in
let x_101 = create_qelem () in
let x_111 = create_qelem () in
let x_1001 = create_qelem () in
let x_1011 = create_qelem () in
let x_1101 = create_qelem () in
qinv1 f x_10 x_11 x_101 x_111 x_1001 x_1011 x_1101... | val qinv_ (out f: qelem) : Stack unit
(requires fun h ->
live h out /\ live h f /\ disjoint out f /\
qe_lt_q h f)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
qas_nat h1 out == SI.qinv (qas_nat h0 f) /\
qe_lt_q h1 out)
let qinv_ out f = | true | null | false | push_frame ();
let x_10 = create_qelem () in
let x_11 = create_qelem () in
let x_101 = create_qelem () in
let x_111 = create_qelem () in
let x_1001 = create_qelem () in
let x_1011 = create_qelem () in
let x_1101 = create_qelem () in
qinv1 f x_10 x_11 x_101 x_111 x_1001 x_1011 x_1101;
qinv8 out f x_11 x_101 x_111 x_1001... | {
"checked_file": "Hacl.Impl.K256.Qinv.fst.checked",
"dependencies": [
"Spec.K256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.K256.Qinv.fst.checked",
"Hacl.Spec.... | [] | [
"Hacl.K256.Scalar.qelem",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.K256.Qinv.qinv8",
"Hacl.Impl.K256.Qinv.qinv1",
"Hacl.K256.Scalar.create_qelem",
"FStar.HyperStack.ST.push_frame"
] | [] | module Hacl.Impl.K256.Qinv
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.K256.Scalar
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module S = Spec.K256
module SI = Hacl.Spec.K256.Qinv
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exp... | false | false | Hacl.Impl.K256.Qinv.fst | {
"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... | null | val qinv_ (out f: qelem) : Stack unit
(requires fun h ->
live h out /\ live h f /\ disjoint out f /\
qe_lt_q h f)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
qas_nat h1 out == SI.qinv (qas_nat h0 f) /\
qe_lt_q h1 out) | [] | Hacl.Impl.K256.Qinv.qinv_ | {
"file_name": "code/k256/Hacl.Impl.K256.Qinv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | out: Hacl.K256.Scalar.qelem -> f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 14,
"end_line": 490,
"start_col": 2,
"start_line": 479
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_top_index_t (len:size_nat) (i:nat{i <= len}) = x:nat{x < len} | let bn_get_top_index_t (len: size_nat) (i: nat{i <= len}) = | false | null | false | x: nat{x < len} | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan"
] | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_top_index_t : len: Lib.IntTypes.size_nat -> i: Prims.nat{i <= len} -> Type0 | [] | Hacl.Spec.Bignum.Lib.bn_get_top_index_t | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | len: Lib.IntTypes.size_nat -> i: Prims.nat{i <= len} -> Type0 | {
"end_col": 72,
"end_line": 312,
"start_col": 58,
"start_line": 312
} | |
Prims.Tot | val cswap2:
#t:limb_t
-> #len:size_nat
-> bit:limb t
-> b1:lbignum t len
-> b2:lbignum t len ->
tuple2 (lbignum t len) (lbignum t len) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let cswap2 #t #len bit b1 b2 =
let mask = uint #t 0 -. bit in
Loops.repeati len (cswap2_f #t #len mask) (b1, b2) | val cswap2:
#t:limb_t
-> #len:size_nat
-> bit:limb t
-> b1:lbignum t len
-> b2:lbignum t len ->
tuple2 (lbignum t len) (lbignum t len)
let cswap2 #t #len bit b1 b2 = | false | null | false | let mask = uint #t 0 -. bit in
Loops.repeati len (cswap2_f #t #len mask) (b1, b2) | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.limb",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Lib.LoopCombinators.repeati",
"FStar.Pervasives.Native.tuple2",
"Hacl.Spec.Bignum.Lib.cswap2_f",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntTypes.int_t",
"... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val cswap2:
#t:limb_t
-> #len:size_nat
-> bit:limb t
-> b1:lbignum t len
-> b2:lbignum t len ->
tuple2 (lbignum t len) (lbignum t len) | [] | Hacl.Spec.Bignum.Lib.cswap2 | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
bit: Hacl.Spec.Bignum.Definitions.limb t ->
b1: Hacl.Spec.Bignum.Definitions.lbignum t len ->
b2: Hacl.Spec.Bignum.Definitions.lbignum t len
-> Hacl.Spec.Bignum.Definitions.lbignum t len * Hacl.Spec.Bignum.Definitions.lbignum t len | {
"end_col": 52,
"end_line": 278,
"start_col": 30,
"start_line": 276
} |
Prims.Tot | val limb_get_ith_bit: #t:limb_t -> a:limb t -> i:nat{i < bits t} -> limb t | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let limb_get_ith_bit #t a i = (a >>. size i) &. uint #t 1 | val limb_get_ith_bit: #t:limb_t -> a:limb t -> i:nat{i < bits t} -> limb t
let limb_get_ith_bit #t a i = | false | null | false | (a >>. size i) &. uint #t 1 | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.bits",
"Lib.IntTypes.op_Amp_Dot",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Lib.IntTypes.size",
"Lib.IntTypes.uint"
] | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
/// | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val limb_get_ith_bit: #t:limb_t -> a:limb t -> i:nat{i < bits t} -> limb t | [] | Hacl.Spec.Bignum.Lib.limb_get_ith_bit | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Spec.Bignum.Definitions.limb t -> i: Prims.nat{i < Lib.IntTypes.bits t}
-> Hacl.Spec.Bignum.Definitions.limb t | {
"end_col": 57,
"end_line": 22,
"start_col": 30,
"start_line": 22
} |
Prims.Tot | val bn_get_top_index: #t:limb_t -> #len:size_pos -> b:lbignum t len -> res:size_nat{res < len} | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_top_index #t #len b =
Loops.repeat_gen len (bn_get_top_index_t len) (bn_get_top_index_f #t #len b) 0 | val bn_get_top_index: #t:limb_t -> #len:size_pos -> b:lbignum t len -> res:size_nat{res < len}
let bn_get_top_index #t #len b = | false | null | false | Loops.repeat_gen len (bn_get_top_index_t len) (bn_get_top_index_f #t #len b) 0 | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Lib.LoopCombinators.repeat_gen",
"Hacl.Spec.Bignum.Lib.bn_get_top_index_t",
"Hacl.Spec.Bignum.Lib.bn_get_top_index_f",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan"
] | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_top_index: #t:limb_t -> #len:size_pos -> b:lbignum t len -> res:size_nat{res < len} | [] | Hacl.Spec.Bignum.Lib.bn_get_top_index | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Hacl.Spec.Bignum.Definitions.lbignum t len -> res: Lib.IntTypes.size_nat{res < len} | {
"end_col": 80,
"end_line": 328,
"start_col": 2,
"start_line": 328
} |
Prims.Tot | val bn_mod_pow2: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> i:nat{i <= aLen} -> lbignum t i | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_mod_pow2 #t #aLen a i = sub a 0 i | val bn_mod_pow2: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> i:nat{i <= aLen} -> lbignum t i
let bn_mod_pow2 #t #aLen a i = | false | null | false | sub a 0 i | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.Sequence.sub",
"Hacl.Spec.Bignum.Definitions.limb"
] | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_mod_pow2: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> i:nat{i <= aLen} -> lbignum t i | [] | Hacl.Spec.Bignum.Lib.bn_mod_pow2 | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> i: Prims.nat{i <= aLen}
-> Hacl.Spec.Bignum.Definitions.lbignum t i | {
"end_col": 40,
"end_line": 205,
"start_col": 31,
"start_line": 205
} |
Prims.Tot | val bn_div_pow2: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i <= len} -> lbignum t (len - i) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_div_pow2 #t #len b i =
slice b i len | val bn_div_pow2: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i <= len} -> lbignum t (len - i)
let bn_div_pow2 #t #len b i = | false | null | false | slice b i len | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.Sequence.slice",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.op_Subtraction"
] | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_div_pow2: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i <= len} -> lbignum t (len - i) | [] | Hacl.Spec.Bignum.Lib.bn_div_pow2 | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i <= len}
-> Hacl.Spec.Bignum.Definitions.lbignum t (len - i) | {
"end_col": 15,
"end_line": 185,
"start_col": 2,
"start_line": 185
} |
FStar.Pervasives.Lemma | val bn_set_ith_bit_lemma_aux: a:nat -> b:nat -> c:nat -> d:nat -> Lemma
(requires a + b * pow2 c < pow2 (c + d) /\ a < pow2 c)
(ensures b < pow2 d) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_set_ith_bit_lemma_aux a b c d =
Math.Lemmas.lemma_div_lt_nat (a + b * pow2 c) (c + d) c;
assert ((a + b * pow2 c) / pow2 c < pow2 d);
Math.Lemmas.lemma_div_plus a b (pow2 c);
assert (a / pow2 c + b < pow2 d);
Math.Lemmas.small_division_lemma_1 a (pow2 c) | val bn_set_ith_bit_lemma_aux: a:nat -> b:nat -> c:nat -> d:nat -> Lemma
(requires a + b * pow2 c < pow2 (c + d) /\ a < pow2 c)
(ensures b < pow2 d)
let bn_set_ith_bit_lemma_aux a b c d = | false | null | true | Math.Lemmas.lemma_div_lt_nat (a + b * pow2 c) (c + d) c;
assert ((a + b * pow2 c) / pow2 c < pow2 d);
Math.Lemmas.lemma_div_plus a b (pow2 c);
assert (a / pow2 c + b < pow2 d);
Math.Lemmas.small_division_lemma_1 a (pow2 c) | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Prims.nat",
"FStar.Math.Lemmas.small_division_lemma_1",
"Prims.pow2",
"Prims.unit",
"Prims._assert",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Addition",
"Prims.op_Division",
"FStar.Math.Lemmas.lemma_div_plus",
"FStar.Mul.op_Star",
"FStar.Math.Lemmas.lemma_div_lt_nat"
] | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_set_ith_bit_lemma_aux: a:nat -> b:nat -> c:nat -> d:nat -> Lemma
(requires a + b * pow2 c < pow2 (c + d) /\ a < pow2 c)
(ensures b < pow2 d) | [] | Hacl.Spec.Bignum.Lib.bn_set_ith_bit_lemma_aux | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Prims.nat -> b: Prims.nat -> c: Prims.nat -> d: Prims.nat
-> FStar.Pervasives.Lemma (requires a + b * Prims.pow2 c < Prims.pow2 (c + d) /\ a < Prims.pow2 c)
(ensures b < Prims.pow2 d) | {
"end_col": 47,
"end_line": 106,
"start_col": 2,
"start_line": 102
} |
Prims.Tot | val cswap2_f:
#t:limb_t
-> #len:size_nat
-> mask:limb t
-> i:nat{i < len}
-> tuple2 (lbignum t len) (lbignum t len) ->
tuple2 (lbignum t len) (lbignum t len) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let cswap2_f #t #len mask i (p1, p2) =
let dummy = mask &. (p1.[i] ^. p2.[i]) in
let p1 = p1.[i] <- p1.[i] ^. dummy in
let p2 = p2.[i] <- p2.[i] ^. dummy in
(p1, p2) | val cswap2_f:
#t:limb_t
-> #len:size_nat
-> mask:limb t
-> i:nat{i < len}
-> tuple2 (lbignum t len) (lbignum t len) ->
tuple2 (lbignum t len) (lbignum t len)
let cswap2_f #t #len mask i (p1, p2) = | false | null | false | let dummy = mask &. (p1.[ i ] ^. p2.[ i ]) in
let p1 = p1.[ i ] <- p1.[ i ] ^. dummy in
let p2 = p2.[ i ] <- p2.[ i ] ^. dummy in
(p1, p2) | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Pervasives.Native.tuple2",
"Hacl.Spec.Bignum.Definitions.lbignum",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Sequence.lseq",
"Prims.l_and",
... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val cswap2_f:
#t:limb_t
-> #len:size_nat
-> mask:limb t
-> i:nat{i < len}
-> tuple2 (lbignum t len) (lbignum t len) ->
tuple2 (lbignum t len) (lbignum t len) | [] | Hacl.Spec.Bignum.Lib.cswap2_f | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
mask: Hacl.Spec.Bignum.Definitions.limb t ->
i: Prims.nat{i < len} ->
_: (Hacl.Spec.Bignum.Definitions.lbignum t len * Hacl.Spec.Bignum.Definitions.lbignum t len)
-> Hacl.Spec.Bignum.Definitions.lbignum t len * Hacl.Spec.Bignum.Definitions.lbignum t len | {
"end_col": 10,
"end_line": 265,
"start_col": 38,
"start_line": 261
} |
Prims.Tot | val bn_get_top_index_f:
#t:limb_t
-> #len:size_nat
-> b:lbignum t len
-> i:nat{i < len}
-> priv:bn_get_top_index_t len i ->
bn_get_top_index_t len (i + 1) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_top_index_f #t #len b i priv =
let mask = eq_mask b.[i] (zeros t SEC) in
if v mask = 0 then i else priv | val bn_get_top_index_f:
#t:limb_t
-> #len:size_nat
-> b:lbignum t len
-> i:nat{i < len}
-> priv:bn_get_top_index_t len i ->
bn_get_top_index_t len (i + 1)
let bn_get_top_index_f #t #len b i priv = | false | null | false | let mask = eq_mask b.[ i ] (zeros t SEC) in
if v mask = 0 then i else priv | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Bignum.Lib.bn_get_top_index_t",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Prims.bool",
"Prims.op_Ad... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_top_index_f:
#t:limb_t
-> #len:size_nat
-> b:lbignum t len
-> i:nat{i < len}
-> priv:bn_get_top_index_t len i ->
bn_get_top_index_t len (i + 1) | [] | Hacl.Spec.Bignum.Lib.bn_get_top_index_f | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Hacl.Spec.Bignum.Definitions.lbignum t len ->
i: Prims.nat{i < len} ->
priv: Hacl.Spec.Bignum.Lib.bn_get_top_index_t len i
-> Hacl.Spec.Bignum.Lib.bn_get_top_index_t len (i + 1) | {
"end_col": 32,
"end_line": 324,
"start_col": 41,
"start_line": 322
} |
FStar.Pervasives.Lemma | val limb_get_ith_bit_lemma: #t:limb_t -> a:limb t -> i:nat{i < bits t} ->
Lemma (v (limb_get_ith_bit a i) == v a / pow2 i % 2) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let limb_get_ith_bit_lemma #t a i =
let tmp1 = a >>. size i in
let tmp2 = tmp1 &. uint #t 1 in
mod_mask_lemma tmp1 1ul;
assert (v (mod_mask #t #SEC 1ul) == v (uint #t #SEC 1));
assert (v tmp2 == v a / pow2 i % 2) | val limb_get_ith_bit_lemma: #t:limb_t -> a:limb t -> i:nat{i < bits t} ->
Lemma (v (limb_get_ith_bit a i) == v a / pow2 i % 2)
let limb_get_ith_bit_lemma #t a i = | false | null | true | let tmp1 = a >>. size i in
let tmp2 = tmp1 &. uint #t 1 in
mod_mask_lemma tmp1 1ul;
assert (v (mod_mask #t #SEC 1ul) == v (uint #t #SEC 1));
assert (v tmp2 == v a / pow2 i % 2) | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.bits",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Prims.op_Modulus",
"Prims.op_Division",
"Prims.pow2",
"Prims.u... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val limb_get_ith_bit_lemma: #t:limb_t -> a:limb t -> i:nat{i < bits t} ->
Lemma (v (limb_get_ith_bit a i) == v a / pow2 i % 2) | [] | Hacl.Spec.Bignum.Lib.limb_get_ith_bit_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Spec.Bignum.Definitions.limb t -> i: Prims.nat{i < Lib.IntTypes.bits t}
-> FStar.Pervasives.Lemma
(ensures
Lib.IntTypes.v (Hacl.Spec.Bignum.Lib.limb_get_ith_bit a i) ==
Lib.IntTypes.v a / Prims.pow2 i % 2) | {
"end_col": 37,
"end_line": 32,
"start_col": 35,
"start_line": 27
} |
Prims.Tot | val bn_low_bound_bits:
#t:limb_t
-> #len:size_pos{bits t * len <= max_size_t}
-> b:lbignum t len ->
res:size_nat{res / bits t < len} | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_low_bound_bits #t #len b =
bits t * bn_get_top_index b | val bn_low_bound_bits:
#t:limb_t
-> #len:size_pos{bits t * len <= max_size_t}
-> b:lbignum t len ->
res:size_nat{res / bits t < len}
let bn_low_bound_bits #t #len b = | false | null | false | bits t * bn_get_top_index b | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.bits",
"Lib.IntTypes.max_size_t",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Lib.bn_get_top_index",
"Lib.IntTypes.size_nat",
"Prims.op_LessTh... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_low_bound_bits:
#t:limb_t
-> #len:size_pos{bits t * len <= max_size_t}
-> b:lbignum t len ->
res:size_nat{res / bits t < len} | [] | Hacl.Spec.Bignum.Lib.bn_low_bound_bits | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Hacl.Spec.Bignum.Definitions.lbignum t len
-> res: Lib.IntTypes.size_nat{res / Lib.IntTypes.bits t < len} | {
"end_col": 29,
"end_line": 379,
"start_col": 2,
"start_line": 379
} |
Prims.Tot | val bn_get_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> limb t | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_ith_bit #t #len input ind =
let i = ind / bits t in
let j = ind % bits t in
limb_get_ith_bit input.[i] j | val bn_get_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> limb t
let bn_get_ith_bit #t #len input ind = | false | null | false | let i = ind / bits t in
let j = ind % bits t in
limb_get_ith_bit input.[ i ] j | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"Hacl.Spec.Bignum.Lib.limb_get_ith_bit",
"Lib.Sequence.op_String_Access",
"Hacl.Spec.Bignum.Definitions.limb",
"Prim... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> limb t | [] | Hacl.Spec.Bignum.Lib.bn_get_ith_bit | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Hacl.Spec.Bignum.Definitions.lbignum t len ->
i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len}
-> Hacl.Spec.Bignum.Definitions.limb t | {
"end_col": 30,
"end_line": 38,
"start_col": 38,
"start_line": 35
} |
FStar.Pervasives.Lemma | val lemma_cswap2_step:
#t:limb_t
-> bit:limb t{v bit <= 1}
-> p1:limb t
-> p2:limb t ->
Lemma
(let mask = uint #t 0 -. bit in
let dummy = mask &. (p1 ^. p2) in
let p1' = p1 ^. dummy in
let p2' = p2 ^. dummy in
if v bit = 1 then p1' == p2 /\ p2' == p1 else p1' == p1 /\ p2' == p2) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let lemma_cswap2_step #t bit p1 p2 =
let mask = uint #t 0 -. bit in
assert (v bit == 0 ==> v mask == 0);
assert (v bit == 1 ==> v mask == pow2 (bits t) - 1);
let dummy = mask &. (p1 ^. p2) in
logand_lemma mask (p1 ^. p2);
assert (v bit == 1 ==> v dummy == v (p1 ^. p2));
assert (v bit == 0 ==> v dummy == 0... | val lemma_cswap2_step:
#t:limb_t
-> bit:limb t{v bit <= 1}
-> p1:limb t
-> p2:limb t ->
Lemma
(let mask = uint #t 0 -. bit in
let dummy = mask &. (p1 ^. p2) in
let p1' = p1 ^. dummy in
let p2' = p2 ^. dummy in
if v bit = 1 then p1' == p2 /\ p2' == p1 else p1' == p1 /\ p2' == p2)
let lemma_... | false | null | true | let mask = uint #t 0 -. bit in
assert (v bit == 0 ==> v mask == 0);
assert (v bit == 1 ==> v mask == pow2 (bits t) - 1);
let dummy = mask &. (p1 ^. p2) in
logand_lemma mask (p1 ^. p2);
assert (v bit == 1 ==> v dummy == v (p1 ^. p2));
assert (v bit == 0 ==> v dummy == 0);
let p1' = p1 ^. dummy in
assert (v dummy == v (i... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Lib.IntTypes.logxor_lemma",
"Lib.IntTypes.int_t",
"Lib.IntTypes.op_Hat_Dot",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Lib.IntTypes.r... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val lemma_cswap2_step:
#t:limb_t
-> bit:limb t{v bit <= 1}
-> p1:limb t
-> p2:limb t ->
Lemma
(let mask = uint #t 0 -. bit in
let dummy = mask &. (p1 ^. p2) in
let p1' = p1 ^. dummy in
let p2' = p2 ^. dummy in
if v bit = 1 then p1' == p2 /\ p2' == p1 else p1' == p1 /\ p2' == p2) | [] | Hacl.Spec.Bignum.Lib.lemma_cswap2_step | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
bit: Hacl.Spec.Bignum.Definitions.limb t {Lib.IntTypes.v bit <= 1} ->
p1: Hacl.Spec.Bignum.Definitions.limb t ->
p2: Hacl.Spec.Bignum.Definitions.limb t
-> FStar.Pervasives.Lemma
(ensures
(let mask = Lib.IntTypes.uint 0 -. bit in
let dummy = mask &. p1 ^. p2 in
let p1' = p1 ^. d... | {
"end_col": 20,
"end_line": 250,
"start_col": 36,
"start_line": 238
} |
Prims.Tot | val bn_get_bits:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> i:size_nat
-> l:size_nat{l < bits t /\ i / bits t < nLen} ->
limb t | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_bits #t #nLen n ind l =
let mask_l = (uint #t #SEC 1 <<. size l) -. uint #t 1 in
bn_get_bits_limb n ind &. mask_l | val bn_get_bits:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> i:size_nat
-> l:size_nat{l < bits t /\ i / bits t < nLen} ->
limb t
let bn_get_bits #t #nLen n ind l = | false | null | false | let mask_l = (uint #t #SEC 1 <<. size l) -. uint #t 1 in
bn_get_bits_limb n ind &. mask_l | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.bits",
"Prims.op_Division",
"Lib.IntTypes.op_Amp_Dot",
"Lib.IntTypes.SEC",
"Hacl.Spec.Bignum.Lib.bn_get_bits_limb",
"Lib.IntTyp... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_bits:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> i:size_nat
-> l:size_nat{l < bits t /\ i / bits t < nLen} ->
limb t | [] | Hacl.Spec.Bignum.Lib.bn_get_bits | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
i: Lib.IntTypes.size_nat ->
l: Lib.IntTypes.size_nat{l < Lib.IntTypes.bits t /\ i / Lib.IntTypes.bits t < nLen}
-> Hacl.Spec.Bignum.Definitions.limb t | {
"end_col": 34,
"end_line": 512,
"start_col": 34,
"start_line": 510
} |
Prims.Tot | val bn_get_bits_limb:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
limb t | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_bits_limb #t #nLen n ind =
let i = ind / bits t in
let j = ind % bits t in
let p1 = n.[i] >>. size j in
let p2 = if i + 1 < nLen && 0 < j then p1 |. (n.[i + 1] <<. (size (bits t - j))) else p1 in
p2 | val bn_get_bits_limb:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
limb t
let bn_get_bits_limb #t #nLen n ind = | false | null | false | let i = ind / bits t in
let j = ind % bits t in
let p1 = n.[ i ] >>. size j in
let p2 = if i + 1 < nLen && 0 < j then p1 |. (n.[ i + 1 ] <<. (size (bits t - j))) else p1 in
p2 | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.op_AmpAmp",
"Prims.op_Addition",
"Lib.IntTypes.op_Bar_Dot",
"Lib.IntTy... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_bits_limb:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
limb t | [] | Hacl.Spec.Bignum.Lib.bn_get_bits_limb | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
ind: Lib.IntTypes.size_nat{ind / Lib.IntTypes.bits t < nLen}
-> Hacl.Spec.Bignum.Definitions.limb t | {
"end_col": 4,
"end_line": 409,
"start_col": 37,
"start_line": 404
} |
Prims.Tot | val bn_set_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> lbignum t len | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_set_ith_bit #t #len input ind =
let i = ind / bits t in
let j = ind % bits t in
let inp = input.[i] <- input.[i] |. (uint #t 1 <<. size j) in
inp | val bn_set_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> lbignum t len
let bn_set_ith_bit #t #len input ind = | false | null | false | let i = ind / bits t in
let j = ind % bits t in
let inp = input.[ i ] <- input.[ i ] |. (uint #t 1 <<. size j) in
inp | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"total"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"Lib.Sequence.lseq",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_set_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> lbignum t len | [] | Hacl.Spec.Bignum.Lib.bn_set_ith_bit | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Hacl.Spec.Bignum.Definitions.lbignum t len ->
i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len}
-> Hacl.Spec.Bignum.Definitions.lbignum t len | {
"end_col": 5,
"end_line": 94,
"start_col": 38,
"start_line": 90
} |
FStar.Pervasives.Lemma | val bn_low_bound_bits_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len -> Lemma
(requires 1 < bn_v b /\ bits t * len <= max_size_t /\ bn_v b % 2 = 1)
(ensures pow2 (bn_low_bound_bits b) < bn_v b) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_low_bound_bits_lemma #t #len b =
let ind = bn_get_top_index #t #len b in
bn_get_top_index_lemma #t #len b;
bn_get_top_index_eval_lemma #t #len b ind;
assert (pow2 (bn_low_bound_bits b) <= bn_v b);
if ind = 0 then
assert_norm (pow2 0 = 1)
else
Math.Lemmas.pow2_multiplication_modulo_lemma_1 1 1... | val bn_low_bound_bits_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len -> Lemma
(requires 1 < bn_v b /\ bits t * len <= max_size_t /\ bn_v b % 2 = 1)
(ensures pow2 (bn_low_bound_bits b) < bn_v b)
let bn_low_bound_bits_lemma #t #len b = | false | null | true | let ind = bn_get_top_index #t #len b in
bn_get_top_index_lemma #t #len b;
bn_get_top_index_eval_lemma #t #len b ind;
assert (pow2 (bn_low_bound_bits b) <= bn_v b);
if ind = 0
then assert_norm (pow2 0 = 1)
else Math.Lemmas.pow2_multiplication_modulo_lemma_1 1 1 (bn_low_bound_bits b) | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.op_Equality",
"Prims.int",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.pow2",
"Prims.bool",
"FStar.Math.Lemmas.pow2_multiplication_modulo_lemma_1",
"Hacl.Spec.Bignum.Lib.bn_low_... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_low_bound_bits_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len -> Lemma
(requires 1 < bn_v b /\ bits t * len <= max_size_t /\ bn_v b % 2 = 1)
(ensures pow2 (bn_low_bound_bits b) < bn_v b) | [] | Hacl.Spec.Bignum.Lib.bn_low_bound_bits_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Hacl.Spec.Bignum.Definitions.lbignum t len
-> FStar.Pervasives.Lemma
(requires
1 < Hacl.Spec.Bignum.Definitions.bn_v b /\
Lib.IntTypes.bits t * len <= Lib.IntTypes.max_size_t /\
Hacl.Spec.Bignum.Definitions.bn_v b % 2 = 1)
(ensures
Prims.pow2 (Hacl.Spec.Bignum.Lib.bn_low... | {
"end_col": 76,
"end_line": 394,
"start_col": 39,
"start_line": 386
} |
FStar.Pervasives.Lemma | val bn_get_bits_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> i:size_nat
-> l:size_nat{l < bits t /\ i / bits t < nLen} ->
Lemma (v (bn_get_bits n i l) == bn_v n / pow2 i % pow2 l) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_bits_lemma #t #nLen n ind l =
let tmp = bn_get_bits_limb n ind in
let mask_l = (uint #t #SEC 1 <<. size l) -. uint #t 1 in
let tmp1 = tmp &. mask_l in
Math.Lemmas.pow2_lt_compat (bits t) l;
mod_mask_lemma tmp (size l);
assert (v (mod_mask #t #SEC (size l)) == v mask_l);
assert (v tmp1 == v tmp ... | val bn_get_bits_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> i:size_nat
-> l:size_nat{l < bits t /\ i / bits t < nLen} ->
Lemma (v (bn_get_bits n i l) == bn_v n / pow2 i % pow2 l)
let bn_get_bits_lemma #t #nLen n ind l = | false | null | true | let tmp = bn_get_bits_limb n ind in
let mask_l = (uint #t #SEC 1 <<. size l) -. uint #t 1 in
let tmp1 = tmp &. mask_l in
Math.Lemmas.pow2_lt_compat (bits t) l;
mod_mask_lemma tmp (size l);
assert (v (mod_mask #t #SEC (size l)) == v mask_l);
assert (v tmp1 == v tmp % pow2 l);
bn_get_bits_limb_lemma #t #nLen n ind;
asser... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.bits",
"Prims.op_Division",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Prims.op_Modu... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_bits_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> i:size_nat
-> l:size_nat{l < bits t /\ i / bits t < nLen} ->
Lemma (v (bn_get_bits n i l) == bn_v n / pow2 i % pow2 l) | [] | Hacl.Spec.Bignum.Lib.bn_get_bits_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
i: Lib.IntTypes.size_nat ->
l: Lib.IntTypes.size_nat{l < Lib.IntTypes.bits t /\ i / Lib.IntTypes.bits t < nLen}
-> FStar.Pervasives.Lemma
(ensures
Lib.IntTypes.v (Hacl.Spec.Bignum.Lib.bn_get_bits n i l) ==
Hacl.Spec.Bignum.Definitions.bn_v... | {
"end_col": 47,
"end_line": 534,
"start_col": 40,
"start_line": 523
} |
FStar.Pervasives.Lemma | val bn_get_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} ->
Lemma (v (bn_get_ith_bit b i) == (bn_v b / pow2 i % 2)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_ith_bit_lemma #t #len b ind =
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let res = limb_get_ith_bit b.[i] j in
limb_get_ith_bit_lemma b.[i] j;
calc (==) {
v b.[i] / pow2 j % 2;
(==) { bn_get_ith_bit_aux_lemma b ind }
(bn_v b / pow2 ind) % pow2 (pbits - j) % 2... | val bn_get_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} ->
Lemma (v (bn_get_ith_bit b i) == (bn_v b / pow2 i % 2))
let bn_get_ith_bit_lemma #t #len b ind = | false | null | true | let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let res = limb_get_ith_bit b.[ i ] j in
limb_get_ith_bit_lemma b.[ i ] j;
calc ( == ) {
v b.[ i ] / pow2 j % 2;
( == ) { bn_get_ith_bit_aux_lemma b ind }
(bn_v b / pow2 ind) % pow2 (pbits - j) % 2;
( == ) { (assert_norm (pow2 1 = 2);
Math.L... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Prims.op_Modulus",
"Hacl.Spe... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} ->
Lemma (v (bn_get_ith_bit b i) == (bn_v b / pow2 i % 2)) | [] | Hacl.Spec.Bignum.Lib.bn_get_ith_bit_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Hacl.Spec.Bignum.Definitions.lbignum t len ->
i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len}
-> FStar.Pervasives.Lemma
(ensures
Lib.IntTypes.v (Hacl.Spec.Bignum.Lib.bn_get_ith_bit b i) ==
Hacl.Spec.Bignum.Definitions.bn_v b / Prims.pow2 i % 2) | {
"end_col": 41,
"end_line": 86,
"start_col": 40,
"start_line": 71
} |
FStar.Pervasives.Lemma | val bn_mod_pow2_lemma: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> i:nat{i <= aLen} ->
Lemma (bn_v (bn_mod_pow2 a i) == bn_v a % pow2 (bits t * i)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_mod_pow2_lemma #t #aLen a i =
let pbits = bits t in
calc (==) {
bn_v a % pow2 (pbits * i);
(==) { bn_eval_split_i a i }
(bn_v (slice a 0 i) + pow2 (pbits * i) * bn_v (slice a i aLen)) % pow2 (pbits * i);
(==) { Math.Lemmas.modulo_addition_lemma (bn_v (slice a 0 i)) (pow2 (pbits * i)) (bn_v (s... | val bn_mod_pow2_lemma: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> i:nat{i <= aLen} ->
Lemma (bn_v (bn_mod_pow2 a i) == bn_v a % pow2 (bits t * i))
let bn_mod_pow2_lemma #t #aLen a i = | false | null | true | let pbits = bits t in
calc ( == ) {
bn_v a % pow2 (pbits * i);
( == ) { bn_eval_split_i a i }
(bn_v (slice a 0 i) + pow2 (pbits * i) * bn_v (slice a i aLen)) % pow2 (pbits * i);
( == ) { Math.Lemmas.modulo_addition_lemma (bn_v (slice a 0 i))
(pow2 (pbits * i))
(bn_v (slice a i aLen)) }
(bn_v (slice a ... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Prims.pow2",
"FStar.Mul.... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_mod_pow2_lemma: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> i:nat{i <= aLen} ->
Lemma (bn_v (bn_mod_pow2 a i) == bn_v a % pow2 (bits t * i)) | [] | Hacl.Spec.Bignum.Lib.bn_mod_pow2_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> i: Prims.nat{i <= aLen}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.Lib.bn_mod_pow2 a i) ==
Hacl.Spec.Bignum.Definitions.bn_v a % Prims.pow2 (Lib.IntTypes.bits t * i)) | {
"end_col": 5,
"end_line": 219,
"start_col": 36,
"start_line": 209
} |
FStar.Pervasives.Lemma | val bn_get_top_index_eval_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len -> ind:nat -> Lemma
(requires
ind < len /\ (ind > 0 ==> v b.[ind] <> 0) /\ (forall (k:nat{ind < k /\ k < len}). v b.[k] = 0))
(ensures
bn_v b == bn_v (slice b 0 ind) + pow2 (bits t * ind) * v b.[ind]) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_top_index_eval_lemma #t #len b ind =
let pbits = bits t in
assert (forall (k:nat{ind < k /\ k < len}). v b.[k] = 0);
bn_eval_split_i b (ind + 1);
assert (bn_v b == bn_v (slice b 0 (ind + 1)) + pow2 (pbits * (ind + 1)) * bn_v (slice b (ind + 1) len));
eq_intro (slice b (ind + 1) len) (create (len - ... | val bn_get_top_index_eval_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len -> ind:nat -> Lemma
(requires
ind < len /\ (ind > 0 ==> v b.[ind] <> 0) /\ (forall (k:nat{ind < k /\ k < len}). v b.[k] = 0))
(ensures
bn_v b == bn_v (slice b 0 ind) + pow2 (bits t * ind) * v b.[ind])
let bn_get_top_index_eval_le... | false | null | true | let pbits = bits t in
assert (forall (k: nat{ind < k /\ k < len}). v b.[ k ] = 0);
bn_eval_split_i b (ind + 1);
assert (bn_v b ==
bn_v (slice b 0 (ind + 1)) + pow2 (pbits * (ind + 1)) * bn_v (slice b (ind + 1) len));
eq_intro (slice b (ind + 1) len) (create (len - ind - 1) (uint #t 0));
bn_eval_zeroes #t (len - ind... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.nat",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Prims.op_Addition",
"Prims.op_Subtraction",
"Lib.Sequence.slice",
"Hacl.Spec.Bignum.Definitions.... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_top_index_eval_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len -> ind:nat -> Lemma
(requires
ind < len /\ (ind > 0 ==> v b.[ind] <> 0) /\ (forall (k:nat{ind < k /\ k < len}). v b.[k] = 0))
(ensures
bn_v b == bn_v (slice b 0 ind) + pow2 (bits t * ind) * v b.[ind]) | [] | Hacl.Spec.Bignum.Lib.bn_get_top_index_eval_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Hacl.Spec.Bignum.Definitions.lbignum t len -> ind: Prims.nat
-> FStar.Pervasives.Lemma
(requires
ind < len /\ (ind > 0 ==> Lib.IntTypes.v b.[ ind ] <> 0) /\
(forall (k: Prims.nat{ind < k /\ k < len}). Lib.IntTypes.v b.[ k ] = 0))
(ensures
Hacl.Spec.Bignum.Definitions.bn_v b ==
... | {
"end_col": 74,
"end_line": 369,
"start_col": 47,
"start_line": 358
} |
FStar.Pervasives.Lemma | val bn_get_top_index_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len ->
Lemma (let ind = bn_get_top_index #t #len b in
ind < len /\ (ind > 0 ==> v b.[ind] <> 0) /\ (forall (k:nat{ind < k /\ k < len}). v b.[k] = 0)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_top_index_lemma #t #len b =
Loops.eq_repeat_gen0 len (bn_get_top_index_t len) (bn_get_top_index_f #t #len b) 0;
let res =
Loops.repeati_inductive #size_nat len
(fun i priv ->
priv == Loops.repeat_gen i (bn_get_top_index_t len) (bn_get_top_index_f #t #len b) 0 /\
priv < len /\ (priv > 0 ==> v ... | val bn_get_top_index_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len ->
Lemma (let ind = bn_get_top_index #t #len b in
ind < len /\ (ind > 0 ==> v b.[ind] <> 0) /\ (forall (k:nat{ind < k /\ k < len}). v b.[k] = 0))
let bn_get_top_index_lemma #t #len b = | false | null | true | Loops.eq_repeat_gen0 len (bn_get_top_index_t len) (bn_get_top_index_f #t #len b) 0;
let res =
Loops.repeati_inductive #size_nat
len
(fun i priv ->
priv == Loops.repeat_gen i (bn_get_top_index_t len) (bn_get_top_index_f #t #len b) 0 /\
priv < len /\ (priv > 0 ==> v b.[ priv ] <> 0) /\
(... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Subtraction",
"Prims.pow2",
"Prims.l_and",
"Prims.eq2",
"Prims.l_or",
"Prims.op_LessThan",
"Lib.LoopCombinators.repeat_gen",... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_top_index_lemma: #t:limb_t -> #len:size_pos -> b:lbignum t len ->
Lemma (let ind = bn_get_top_index #t #len b in
ind < len /\ (ind > 0 ==> v b.[ind] <> 0) /\ (forall (k:nat{ind < k /\ k < len}). v b.[k] = 0)) | [] | Hacl.Spec.Bignum.Lib.bn_get_top_index_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Hacl.Spec.Bignum.Definitions.lbignum t len
-> FStar.Pervasives.Lemma
(ensures
(let ind = Hacl.Spec.Bignum.Lib.bn_get_top_index b in
ind < len /\ (ind > 0 ==> Lib.IntTypes.v b.[ ind ] <> 0) /\
(forall (k: Prims.nat{ind < k /\ k < len}). Lib.IntTypes.v b.[ k ] = 0))) | {
"end_col": 4,
"end_line": 349,
"start_col": 2,
"start_line": 336
} |
FStar.Pervasives.Lemma | val bn_lt_pow2_index_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> ind:size_nat{ind / bits t < len} -> Lemma
(requires bn_v b < pow2 ind)
(ensures (let i = ind / bits t in v b.[i] < pow2 (ind % bits t) /\
bn_v b == bn_v (slice b 0 i) + pow2 (i * bits t) * v b.[i] /\
bn_v (slice b (i + 1) len) = 0)... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_lt_pow2_index_lemma #t #len b ind =
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
Math.Lemmas.euclidean_division_definition ind (pbits);
assert (bn_v b < pow2 (i * pbits + j));
Math.Lemmas.pow2_lt_compat (i * pbits + pbits) (i * pbits + j);
assert (bn_v b < pow2 (i * pbits + ... | val bn_lt_pow2_index_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> ind:size_nat{ind / bits t < len} -> Lemma
(requires bn_v b < pow2 ind)
(ensures (let i = ind / bits t in v b.[i] < pow2 (ind % bits t) /\
bn_v b == bn_v (slice b 0 i) + pow2 (i * bits t) * v b.[i] /\
bn_v (slice b (i + 1) len) = 0)... | false | null | true | let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
Math.Lemmas.euclidean_division_definition ind (pbits);
assert (bn_v b < pow2 (i * pbits + j));
Math.Lemmas.pow2_lt_compat (i * pbits + pbits) (i * pbits + j);
assert (bn_v b < pow2 (i * pbits + pbits));
bn_eval_split_i #t #len b (i + 1);
bn_eval_bound ... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"Prims._assert",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Lib.Sequence.op_String_Access",
"Hacl.Spec.Bignum.Definiti... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_lt_pow2_index_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> ind:size_nat{ind / bits t < len} -> Lemma
(requires bn_v b < pow2 ind)
(ensures (let i = ind / bits t in v b.[i] < pow2 (ind % bits t) /\
bn_v b == bn_v (slice b 0 i) + pow2 (i * bits t) * v b.[i] /\
bn_v (slice b (i + 1) len) = 0)... | [] | Hacl.Spec.Bignum.Lib.bn_lt_pow2_index_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Hacl.Spec.Bignum.Definitions.lbignum t len ->
ind: Lib.IntTypes.size_nat{ind / Lib.IntTypes.bits t < len}
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v b < Prims.pow2 ind)
(ensures
(let i = ind / Lib.IntTypes.bits t in
Lib.IntTypes.v b.[ i ] < Prims.pow2 (in... | {
"end_col": 27,
"end_line": 135,
"start_col": 42,
"start_line": 115
} |
FStar.Pervasives.Lemma | val bn_div_pow2_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i < len} ->
Lemma (bn_v (bn_div_pow2 b i) == bn_v b / pow2 (bits t * i)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_div_pow2_lemma #t #len c i =
let pbits = bits t in
calc (==) {
bn_v c / pow2 (pbits * i);
(==) { bn_eval_split_i c i }
(bn_v (slice c 0 i) + pow2 (pbits * i) * bn_v (slice c i len)) / pow2 (pbits * i);
(==) { Math.Lemmas.division_addition_lemma (bn_v (slice c 0 i)) (pow2 (pbits * i)) (bn_v (s... | val bn_div_pow2_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i < len} ->
Lemma (bn_v (bn_div_pow2 b i) == bn_v b / pow2 (bits t * i))
let bn_div_pow2_lemma #t #len c i = | false | null | true | let pbits = bits t in
calc ( == ) {
bn_v c / pow2 (pbits * i);
( == ) { bn_eval_split_i c i }
(bn_v (slice c 0 i) + pow2 (pbits * i) * bn_v (slice c i len)) / pow2 (pbits * i);
( == ) { Math.Lemmas.division_addition_lemma (bn_v (slice c 0 i))
(pow2 (pbits * i))
(bn_v (slice c i len)) }
bn_v (slice c 0... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Prims.op_Subtraction",
"Lib.Sequence.slice",
"Hacl.Spec.Bignum.Definitions.... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_div_pow2_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i < len} ->
Lemma (bn_v (bn_div_pow2 b i) == bn_v b / pow2 (bits t * i)) | [] | Hacl.Spec.Bignum.Lib.bn_div_pow2_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i < len}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.Lib.bn_div_pow2 b i) ==
Hacl.Spec.Bignum.Definitions.bn_v b / Prims.pow2 (Lib.IntTypes.bits t * i)) | {
"end_col": 60,
"end_line": 201,
"start_col": 35,
"start_line": 190
} |
FStar.Pervasives.Lemma | val bn_get_ith_bit_aux_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> ind:size_nat{ind / bits t < len} ->
Lemma (let i = ind / bits t in let j = ind % bits t in
v (b.[i] >>. size j) == (bn_v b / pow2 ind) % pow2 (bits t - j)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_ith_bit_aux_lemma #t #len b ind =
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let res = b.[i] >>. size j in
calc (==) {
v b.[i] / pow2 j;
(==) { bn_eval_index b i }
(bn_v b / pow2 (pbits * i) % pow2 pbits) / pow2 j;
(==) { Math.Lemmas.pow2_modulo_division_le... | val bn_get_ith_bit_aux_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> ind:size_nat{ind / bits t < len} ->
Lemma (let i = ind / bits t in let j = ind % bits t in
v (b.[i] >>. size j) == (bn_v b / pow2 ind) % pow2 (bits t - j))
let bn_get_ith_bit_aux_lemma #t #len b ind = | false | null | true | let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let res = b.[ i ] >>. size j in
calc ( == ) {
v b.[ i ] / pow2 j;
( == ) { bn_eval_index b i }
(bn_v b / pow2 (pbits * i) % pow2 pbits) / pow2 j;
( == ) { Math.Lemmas.pow2_modulo_division_lemma_1 (bn_v b / pow2 (pbits * i)) j pbits }
(bn_v b ... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Prims.op_Modulus",
"Hacl.Spe... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_ith_bit_aux_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> ind:size_nat{ind / bits t < len} ->
Lemma (let i = ind / bits t in let j = ind % bits t in
v (b.[i] >>. size j) == (bn_v b / pow2 ind) % pow2 (bits t - j)) | [] | Hacl.Spec.Bignum.Lib.bn_get_ith_bit_aux_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Hacl.Spec.Bignum.Definitions.lbignum t len ->
ind: Lib.IntTypes.size_nat{ind / Lib.IntTypes.bits t < len}
-> FStar.Pervasives.Lemma
(ensures
(let i = ind / Lib.IntTypes.bits t in
let j = ind % Lib.IntTypes.bits t in
Lib.IntTypes.v (b.[ i ] >>. Lib.IntTypes.size j) ==
Hacl... | {
"end_col": 58,
"end_line": 65,
"start_col": 44,
"start_line": 45
} |
FStar.Pervasives.Lemma | val cswap2_lemma:
#t:limb_t
-> #len:size_nat
-> bit:limb t{v bit <= 1}
-> b1:lbignum t len
-> b2:lbignum t len ->
Lemma (let (p1, p2) = cswap2 bit b1 b2 in
(if v bit = 1 then p1 == b2 /\ p2 == b1 else p1 == b1 /\ p2 == b2)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let cswap2_lemma #t #len bit b1 b2 =
let mask = uint #t 0 -. bit in
Loops.eq_repeati0 len (cswap2_f #t #len mask) (b1, b2);
let (p1, p2) =
Loops.repeati_inductive #(tuple2 (lbignum t len) (lbignum t len)) len
(fun i (p1, p2) ->
(p1, p2) == Loops.repeati i (cswap2_f #t #len mask) (b1, b2) /\
(forall (k... | val cswap2_lemma:
#t:limb_t
-> #len:size_nat
-> bit:limb t{v bit <= 1}
-> b1:lbignum t len
-> b2:lbignum t len ->
Lemma (let (p1, p2) = cswap2 bit b1 b2 in
(if v bit = 1 then p1 == b2 /\ p2 == b1 else p1 == b1 /\ p2 == b2))
let cswap2_lemma #t #len bit b1 b2 = | false | null | true | let mask = uint #t 0 -. bit in
Loops.eq_repeati0 len (cswap2_f #t #len mask) (b1, b2);
let p1, p2 =
Loops.repeati_inductive #(tuple2 (lbignum t len) (lbignum t len))
len
(fun i (p1, p2) ->
(p1, p2) == Loops.repeati i (cswap2_f #t #len mask) (b1, b2) /\
(forall (k: nat{k < i}).
(if ... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.unit",
"Prims._assert",
"Prims.op_Equality",
"Prims.int",
"Prims.... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val cswap2_lemma:
#t:limb_t
-> #len:size_nat
-> bit:limb t{v bit <= 1}
-> b1:lbignum t len
-> b2:lbignum t len ->
Lemma (let (p1, p2) = cswap2 bit b1 b2 in
(if v bit = 1 then p1 == b2 /\ p2 == b1 else p1 == b1 /\ p2 == b2)) | [] | Hacl.Spec.Bignum.Lib.cswap2_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
bit: Hacl.Spec.Bignum.Definitions.limb t {Lib.IntTypes.v bit <= 1} ->
b1: Hacl.Spec.Bignum.Definitions.lbignum t len ->
b2: Hacl.Spec.Bignum.Definitions.lbignum t len
-> FStar.Pervasives.Lemma
(ensures
(let _ = Hacl.Spec.Bignum.Lib.cswap2 bit b1 b2 in
(let FStar.Pervasives.Native.Mktupl... | {
"end_col": 4,
"end_line": 309,
"start_col": 36,
"start_line": 290
} |
FStar.Pervasives.Lemma | val bn_get_bits_limb_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
Lemma (v (bn_get_bits_limb n ind) == bn_v n / pow2 ind % pow2 (bits t)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_bits_limb_lemma #t #nLen n ind =
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[i] >>. size j in
let res = bn_v n / pow2 ind % pow2 pbits in
bn_get_ith_bit_aux_lemma n ind;
assert (v p1 == bn_v n / pow2 ind % pow2 (pbits - j));
if j = 0 then () else begin
... | val bn_get_bits_limb_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
Lemma (v (bn_get_bits_limb n ind) == bn_v n / pow2 ind % pow2 (bits t))
let bn_get_bits_limb_lemma #t #nLen n ind = | false | null | true | let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[ i ] >>. size j in
let res = bn_v n / pow2 ind % pow2 pbits in
bn_get_ith_bit_aux_lemma n ind;
assert (v p1 == bn_v n / pow2 ind % pow2 (pbits - j));
if j = 0
then ()
else
(bn_get_bits_limb_aux_lemma n ind;
if i + 1 < nLen
then
... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Prims.op_Addition",
"Prims._assert",
"Prims.op_AmpAmp",
"Prim... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_bits_limb_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
Lemma (v (bn_get_bits_limb n ind) == bn_v n / pow2 ind % pow2 (bits t)) | [] | Hacl.Spec.Bignum.Lib.bn_get_bits_limb_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
ind: Lib.IntTypes.size_nat{ind / Lib.IntTypes.bits t < nLen}
-> FStar.Pervasives.Lemma
(ensures
Lib.IntTypes.v (Hacl.Spec.Bignum.Lib.bn_get_bits_limb n ind) ==
Hacl.Spec.Bignum.Definitions.bn_v n / Prims.pow2 ind % Prims.pow2 (Lib.IntTypes.bit... | {
"end_col": 5,
"end_line": 500,
"start_col": 43,
"start_line": 463
} |
FStar.Pervasives.Lemma | val bn_get_bits_limb_aux_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
Lemma (
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[i] >>. size j in
bn_v n / pow2 ind % pow2 pbits == bn_v n / pow2 ((i + 1) * pbit... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_get_bits_limb_aux_lemma #t #nLen n ind =
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[i] >>. size j in
let res = bn_v n / pow2 ind % pow2 pbits in
calc (==) {
bn_v n / pow2 ind % pow2 pbits;
(==) { Math.Lemmas.euclidean_division_definition res (pow2 (pbits ... | val bn_get_bits_limb_aux_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
Lemma (
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[i] >>. size j in
bn_v n / pow2 ind % pow2 pbits == bn_v n / pow2 ((i + 1) * pbit... | false | null | true | let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[ i ] >>. size j in
let res = bn_v n / pow2 ind % pow2 pbits in
calc ( == ) {
bn_v n / pow2 ind % pow2 pbits;
( == ) { Math.Lemmas.euclidean_division_definition res (pow2 (pbits - j)) }
(res / pow2 (pbits - j)) * pow2 (pbits - j) + res... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Pr... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_get_bits_limb_aux_lemma:
#t:limb_t
-> #nLen:size_nat
-> n:lbignum t nLen
-> ind:size_nat{ind / bits t < nLen} ->
Lemma (
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[i] >>. size j in
bn_v n / pow2 ind % pow2 pbits == bn_v n / pow2 ((i + 1) * pbit... | [] | Hacl.Spec.Bignum.Lib.bn_get_bits_limb_aux_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
ind: Lib.IntTypes.size_nat{ind / Lib.IntTypes.bits t < nLen}
-> FStar.Pervasives.Lemma
(ensures
(let pbits = Lib.IntTypes.bits t in
let i = ind / pbits in
let j = ind % pbits in
let p1 = n.[ i ] >>. Lib.IntTypes.size j in
... | {
"end_col": 5,
"end_line": 453,
"start_col": 47,
"start_line": 424
} |
FStar.Pervasives.Lemma | val bn_set_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> Lemma
(requires bn_v b < pow2 i)
(ensures bn_v (bn_set_ith_bit b i) == bn_v b + pow2 i) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": "BB"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
... | false | let bn_set_ith_bit_lemma #t #len input ind =
let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
bn_lt_pow2_index_lemma #t #len input ind;
assert (v input.[i] < pow2 j);
let b = uint #t 1 <<. size j in
let inp = input.[i] <- input.[i] |. b in
FStar.Math.Lemmas.pow2_lt_compat pbits j;
... | val bn_set_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> Lemma
(requires bn_v b < pow2 i)
(ensures bn_v (bn_set_ith_bit b i) == bn_v b + pow2 i)
let bn_set_ith_bit_lemma #t #len input ind = | false | null | true | let pbits = bits t in
let i = ind / pbits in
let j = ind % pbits in
bn_lt_pow2_index_lemma #t #len input ind;
assert (v input.[ i ] < pow2 j);
let b = uint #t 1 <<. size j in
let inp = input.[ i ] <- input.[ i ] |. b in
FStar.Math.Lemmas.pow2_lt_compat pbits j;
FStar.Math.Lemmas.modulo_lemma (pow2 j) (pow2 pbits);
asse... | {
"checked_file": "Hacl.Spec.Bignum.Lib.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Base.f... | [
"lemma"
] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Lib.IntTypes.bits",
"FStar.Calc.calc_finish",
"Prims.nat",
"Prims.eq2",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Prims.op_Addition",
"P... | [] | module Hacl.Spec.Bignum.Lib
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module BSeq = Lib.ByteSequence
module Loops = Lib.LoopCombinators
module BB = Hacl.Spec.Bignum.Base
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
///
/// Get and set i-th bit of a bignum
///
val l... | false | false | Hacl.Spec.Bignum.Lib.fst | {
"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... | null | val bn_set_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> Lemma
(requires bn_v b < pow2 i)
(ensures bn_v (bn_set_ith_bit b i) == bn_v b + pow2 i) | [] | Hacl.Spec.Bignum.Lib.bn_set_ith_bit_lemma | {
"file_name": "code/bignum/Hacl.Spec.Bignum.Lib.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Hacl.Spec.Bignum.Definitions.lbignum t len ->
i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len}
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v b < Prims.pow2 i)
(ensures
Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.Lib.bn_set_ith_bit b i) ==
Hacl.S... | {
"end_col": 3,
"end_line": 176,
"start_col": 44,
"start_line": 142
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.