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": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_sqr_st (t:limb_t) =
aLen:size_t{0 < v aLen /\ v aLen + v aLen <= max_size_t}
-> a:lbignum t aLen
-> res:lbignum t (aLen +! aLen) ->
Stack unit
(requires fun h -> live h a /\ live h res /\ disjoint res a)
(ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\
as_seq h1 res == SS.bn_sqr (as_seq h0 ... | let bn_sqr_st (t: limb_t) = | false | null | false |
aLen: size_t{0 < v aLen /\ v aLen + v aLen <= max_size_t} ->
a: lbignum t aLen ->
res: lbignum t (aLen +! aLen)
-> Stack unit
(requires fun h -> live h a /\ live h res /\ disjoint res a)
(ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ as_seq h1 res == SS.bn_sqr (as_seq h0 a)) | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.op_... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | true | Hacl.Bignum.Multiplication.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_sqr_st : t: Hacl.Bignum.Definitions.limb_t -> Type0 | [] | Hacl.Bignum.Multiplication.bn_sqr_st | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> Type0 | {
"end_col": 45,
"end_line": 204,
"start_col": 4,
"start_line": 198
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_mul_st (t:limb_t) =
aLen:size_t
-> a:lbignum t aLen
-> bLen:size_t{v aLen + v bLen <= max_size_t}
-> b:lbignum t bLen
-> res:lbignum t (aLen +! bLen) ->
Stack unit
(requires fun h ->
live h a /\ live h b /\ live h res /\
disjoint res a /\ disjoint res b /\ eq_or_disjoint a b)
(ensures ... | let bn_mul_st (t: limb_t) = | false | null | false |
aLen: size_t ->
a: lbignum t aLen ->
bLen: size_t{v aLen + v bLen <= max_size_t} ->
b: lbignum t bLen ->
res: lbignum t (aLen +! bLen)
-> Stack unit
(requires
fun h ->
live h a /\ live h b /\ live h res /\ disjoint res a /\ disjoint res b /\
eq_or_disjoint a b)
... | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.max_size_t",
"Lib.IntTypes.op_Plus_Bang",
"Prims.unit",
"FStar.Mon... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | true | Hacl.Bignum.Multiplication.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_mul_st : t: Hacl.Bignum.Definitions.limb_t -> Type0 | [] | Hacl.Bignum.Multiplication.bn_mul_st | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> Type0 | {
"end_col": 58,
"end_line": 134,
"start_col": 4,
"start_line": 124
} | |
FStar.HyperStack.ST.Stack | val bn_mul1_lshift_add:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> b_j:limb t
-> resLen:size_t
-> j:size_t{v j + v aLen <= v resLen}
-> res:lbignum t resLen ->
Stack (limb t)
(requires fun h -> live h a /\ live h res /\ disjoint res a)
(ensures fun h0 c h1 -> modifies (loc res) h0 h1 /\
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_mul1_lshift_add #t aLen a b_j resLen j res =
let res_j = sub res j aLen in
let h0 = ST.get () in
update_sub_f_carry h0 res j aLen
(fun h -> S.bn_mul1_add_in_place (as_seq h0 a) b_j (as_seq h0 res_j))
(fun _ -> bn_mul1_add_in_place aLen a b_j res_j) | val bn_mul1_lshift_add:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> b_j:limb t
-> resLen:size_t
-> j:size_t{v j + v aLen <= v resLen}
-> res:lbignum t resLen ->
Stack (limb t)
(requires fun h -> live h a /\ live h res /\ disjoint res a)
(ensures fun h0 c h1 -> modifies (loc res) h0 h1 /\
... | true | null | false | let res_j = sub res j aLen in
let h0 = ST.get () in
update_sub_f_carry h0
res
j
aLen
(fun h -> S.bn_mul1_add_in_place (as_seq h0 a) b_j (as_seq h0 res_j))
(fun _ -> bn_mul1_add_in_place aLen a b_j res_j) | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.Definitions.limb",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Hacl.Impl.Lib.update_sub_f_carry",
"Hacl.Spec.Big... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | false | Hacl.Bignum.Multiplication.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_mul1_lshift_add:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> b_j:limb t
-> resLen:size_t
-> j:size_t{v j + v aLen <= v resLen}
-> res:lbignum t resLen ->
Stack (limb t)
(requires fun h -> live h a /\ live h res /\ disjoint res a)
(ensures fun h0 c h1 -> modifies (loc res) h0 h1 /\
... | [] | Hacl.Bignum.Multiplication.bn_mul1_lshift_add | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
aLen: Lib.IntTypes.size_t ->
a: Hacl.Bignum.Definitions.lbignum t aLen ->
b_j: Hacl.Bignum.Definitions.limb t ->
resLen: Lib.IntTypes.size_t ->
j: Lib.IntTypes.size_t{Lib.IntTypes.v j + Lib.IntTypes.v aLen <= Lib.IntTypes.v resLen} ->
res: Hacl.Bignum.Definitions.lbignum t resLen
-> FStar.Hyp... | {
"end_col": 50,
"end_line": 119,
"start_col": 51,
"start_line": 114
} |
FStar.HyperStack.ST.Stack | val bn_mul1:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> l:limb t
-> res:lbignum t aLen ->
Stack (limb t)
(requires fun h ->
live h a /\ live h res /\ eq_or_disjoint a res)
(ensures fun h0 c_out h1 -> modifies (loc res) h0 h1 /\
(c_out, as_seq h1 res) == S.bn_mul1 (as_seq h0 a) l) | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_mul1 #t aLen a l res =
push_frame ();
let c = create 1ul (uint #t 0) in
[@inline_let]
let refl h i = LSeq.index (as_seq h c) 0 in
[@inline_let]
let footprint (i:size_nat{i <= v aLen}) : GTot (l:B.loc{B.loc_disjoint l (loc res) /\
B.address_liveness_insensitive_locs `B.loc_includes` l}) = loc c i... | val bn_mul1:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> l:limb t
-> res:lbignum t aLen ->
Stack (limb t)
(requires fun h ->
live h a /\ live h res /\ eq_or_disjoint a res)
(ensures fun h0 c_out h1 -> modifies (loc res) h0 h1 /\
(c_out, as_seq h1 res) == S.bn_mul1 (as_seq h0 a) l)
let bn_... | true | null | false | push_frame ();
let c = create 1ul (uint #t 0) in
[@@ inline_let ]let refl h i = LSeq.index (as_seq h c) 0 in
[@@ inline_let ]let footprint (i: size_nat{i <= v aLen})
: GTot
(l: B.loc{B.loc_disjoint l (loc res) /\ B.address_liveness_insensitive_locs `B.loc_includes` l})
=
loc c
in
[@@ inline_let ]let spec h = ... | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.Definitions.limb",
"Prims.unit",
"FStar.HyperStack.ST.pop_frame",
"Lib.Buffer.op_Array_Access",
"Lib.Buffer.MUT",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Lib.fill_elems4",
"Hacl.Spec.Bignum.De... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | false | Hacl.Bignum.Multiplication.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_mul1:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> l:limb t
-> res:lbignum t aLen ->
Stack (limb t)
(requires fun h ->
live h a /\ live h res /\ eq_or_disjoint a res)
(ensures fun h0 c_out h1 -> modifies (loc res) h0 h1 /\
(c_out, as_seq h1 res) == S.bn_mul1 (as_seq h0 a) l) | [] | Hacl.Bignum.Multiplication.bn_mul1 | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
aLen: Lib.IntTypes.size_t ->
a: Hacl.Bignum.Definitions.lbignum t aLen ->
l: Hacl.Bignum.Definitions.limb t ->
res: Hacl.Bignum.Definitions.lbignum t aLen
-> FStar.HyperStack.ST.Stack (Hacl.Bignum.Definitions.limb t) | {
"end_col": 3,
"end_line": 60,
"start_col": 2,
"start_line": 38
} |
FStar.HyperStack.ST.Stack | val bn_sqr_diag:
#t:limb_t
-> aLen:size_t{v aLen + v aLen <= max_size_t}
-> a:lbignum t aLen
-> res:lbignum t (aLen +! aLen) ->
Stack unit
(requires fun h -> live h a /\ live h res /\ disjoint res a /\
as_seq h res == LSeq.create (v aLen + v aLen) (uint #t 0))
(ensures fun h0 _ h1 -> modifies (loc ... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_sqr_diag #t aLen a res =
let h0 = ST.get () in
[@inline_let]
let spec h = SS.bn_sqr_diag_f (as_seq h a) in
loop1 h0 aLen res spec
(fun i ->
Loops.unfold_repeati (v aLen) (spec h0) (as_seq h0 res) (v i);
let (hi, lo) = mul_wide a.(i) a.(i) in
res.(2ul *! i) <- lo;
res.(2ul *! i +! 1ul)... | val bn_sqr_diag:
#t:limb_t
-> aLen:size_t{v aLen + v aLen <= max_size_t}
-> a:lbignum t aLen
-> res:lbignum t (aLen +! aLen) ->
Stack unit
(requires fun h -> live h a /\ live h res /\ disjoint res a /\
as_seq h res == LSeq.create (v aLen + v aLen) (uint #t 0))
(ensures fun h0 _ h1 -> modifies (loc ... | true | null | false | let h0 = ST.get () in
[@@ inline_let ]let spec h = SS.bn_sqr_diag_f (as_seq h a) in
loop1 h0
aLen
res
spec
(fun i ->
Loops.unfold_repeati (v aLen) (spec h0) (as_seq h0 res) (v i);
let hi, lo = mul_wide a.(i) a.(i) in
res.(2ul *! i) <- lo;
res.(2ul *! i +! 1ul) <- hi) | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.max_size_t",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.op_Plus_Bang",
"Lib.Buffer.loop1",
"Hac... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | false | Hacl.Bignum.Multiplication.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_sqr_diag:
#t:limb_t
-> aLen:size_t{v aLen + v aLen <= max_size_t}
-> a:lbignum t aLen
-> res:lbignum t (aLen +! aLen) ->
Stack unit
(requires fun h -> live h a /\ live h res /\ disjoint res a /\
as_seq h res == LSeq.create (v aLen + v aLen) (uint #t 0))
(ensures fun h0 _ h1 -> modifies (loc ... | [] | Hacl.Bignum.Multiplication.bn_sqr_diag | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
aLen: Lib.IntTypes.size_t{Lib.IntTypes.v aLen + Lib.IntTypes.v aLen <= Lib.IntTypes.max_size_t} ->
a: Hacl.Bignum.Definitions.lbignum t aLen ->
res: Hacl.Bignum.Definitions.lbignum t (aLen +! aLen)
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 32,
"end_line": 191,
"start_col": 31,
"start_line": 180
} |
FStar.HyperStack.ST.Stack | val bn_mul1_add_in_place:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> l:limb t
-> res:lbignum t aLen ->
Stack (limb t)
(requires fun h ->
live h a /\ live h res /\ disjoint res a)
(ensures fun h0 c_out h1 -> modifies (loc res) h0 h1 /\
(c_out, as_seq h1 res) == S.bn_mul1_add_in_place (as_... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_mul1_add_in_place #t aLen a l res =
push_frame ();
let c = create 1ul (uint #t 0) in
[@inline_let]
let refl h i = LSeq.index (as_seq h c) 0 in
[@inline_let]
let footprint (i:size_nat{i <= v aLen}) : GTot (l:B.loc{B.loc_disjoint l (loc res) /\
B.address_liveness_insensitive_locs `B.loc_includes` ... | val bn_mul1_add_in_place:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> l:limb t
-> res:lbignum t aLen ->
Stack (limb t)
(requires fun h ->
live h a /\ live h res /\ disjoint res a)
(ensures fun h0 c_out h1 -> modifies (loc res) h0 h1 /\
(c_out, as_seq h1 res) == S.bn_mul1_add_in_place (as_... | true | null | false | push_frame ();
let c = create 1ul (uint #t 0) in
[@@ inline_let ]let refl h i = LSeq.index (as_seq h c) 0 in
[@@ inline_let ]let footprint (i: size_nat{i <= v aLen})
: GTot
(l: B.loc{B.loc_disjoint l (loc res) /\ B.address_liveness_insensitive_locs `B.loc_includes` l})
=
loc c
in
[@@ inline_let ]let spec h = ... | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.Definitions.limb",
"Prims.unit",
"FStar.HyperStack.ST.pop_frame",
"Lib.Buffer.op_Array_Access",
"Lib.Buffer.MUT",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Lib.fill_elems4",
"Hacl.Spec.Bignum.De... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | false | Hacl.Bignum.Multiplication.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_mul1_add_in_place:
#t:limb_t
-> aLen:size_t
-> a:lbignum t aLen
-> l:limb t
-> res:lbignum t aLen ->
Stack (limb t)
(requires fun h ->
live h a /\ live h res /\ disjoint res a)
(ensures fun h0 c_out h1 -> modifies (loc res) h0 h1 /\
(c_out, as_seq h1 res) == S.bn_mul1_add_in_place (as_... | [] | Hacl.Bignum.Multiplication.bn_mul1_add_in_place | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
aLen: Lib.IntTypes.size_t ->
a: Hacl.Bignum.Definitions.lbignum t aLen ->
l: Hacl.Bignum.Definitions.limb t ->
res: Hacl.Bignum.Definitions.lbignum t aLen
-> FStar.HyperStack.ST.Stack (Hacl.Bignum.Definitions.limb t) | {
"end_col": 3,
"end_line": 97,
"start_col": 2,
"start_line": 77
} |
Prims.Tot | val bn_mul: #t:limb_t -> bn_mul_st t | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_mul #t aLen a bLen b res =
[@inline_let]
let resLen = aLen +! bLen in
memset res (uint #t 0) resLen;
let h0 = ST.get () in
LSeq.eq_intro (LSeq.sub (as_seq h0 res) 0 (v resLen)) (as_seq h0 res);
[@ inline_let]
let spec h = S.bn_mul_ (as_seq h a) (as_seq h b) in
loop1 h0 bLen res spec
(fun j ->... | val bn_mul: #t:limb_t -> bn_mul_st t
let bn_mul #t aLen a bLen b res = | false | null | false | [@@ inline_let ]let resLen = aLen +! bLen in
memset res (uint #t 0) resLen;
let h0 = ST.get () in
LSeq.eq_intro (LSeq.sub (as_seq h0 res) 0 (v resLen)) (as_seq h0 res);
[@@ inline_let ]let spec h = S.bn_mul_ (as_seq h a) (as_seq h b) in
loop1 h0
bLen
res
spec
(fun j ->
Loops.unfold_repeati (v bLen) (spec ... | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.lbignum",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.max_size_t",
"Lib.IntTypes.op_Plus_Bang",
"Lib.Buffer.loop1",
"Hac... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | false | Hacl.Bignum.Multiplication.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_mul: #t:limb_t -> bn_mul_st t | [] | Hacl.Bignum.Multiplication.bn_mul | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Bignum.Multiplication.bn_mul_st t | {
"end_col": 3,
"end_line": 153,
"start_col": 2,
"start_line": 139
} |
Prims.Tot | val bn_sqr: #t:limb_t -> bn_sqr_st t | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Squaring",
"short_module": "SS"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Multiplication",
"short_module": "S"
},
{
"a... | false | let bn_sqr #t aLen a res =
push_frame ();
[@inline_let]
let resLen = aLen +! aLen in
memset res (uint #t 0) resLen;
let h0 = ST.get () in
LSeq.eq_intro (LSeq.sub (as_seq h0 res) 0 (v resLen)) (as_seq h0 res);
[@inline_let]
let spec h = SS.bn_sqr_f (as_seq h a) in
loop1 h0 aLen res spec
(fun j ->
... | val bn_sqr: #t:limb_t -> bn_sqr_st t
let bn_sqr #t aLen a res = | false | null | false | push_frame ();
[@@ inline_let ]let resLen = aLen +! aLen in
memset res (uint #t 0) resLen;
let h0 = ST.get () in
LSeq.eq_intro (LSeq.sub (as_seq h0 res) 0 (v resLen)) (as_seq h0 res);
[@@ inline_let ]let spec h = SS.bn_sqr_f (as_seq h a) in
loop1 h0
aLen
res
spec
(fun j ->
Loops.unfold_repeati (v aLen) (s... | {
"checked_file": "Hacl.Bignum.Multiplication.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.op_... | [] | module Hacl.Bignum.Multiplication
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
open Hacl.Bignum.Base
open Hacl.Impl.Lib
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module B = LowStar.Buffer
module S = Hacl.Spec.Bignum.Mul... | false | false | Hacl.Bignum.Multiplication.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_sqr: #t:limb_t -> bn_sqr_st t | [] | Hacl.Bignum.Multiplication.bn_sqr | {
"file_name": "code/bignum/Hacl.Bignum.Multiplication.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Bignum.Multiplication.bn_sqr_st t | {
"end_col": 14,
"end_line": 233,
"start_col": 2,
"start_line": 209
} |
Prims.Tot | val add_hi_def (#n: nat) (a b: natN n) (c: nat1) : nat1 | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let add_hi_def (#n:nat) (a b:natN n) (c:nat1) : nat1 =
if a + b + c < n then 0 else 1 | val add_hi_def (#n: nat) (a b: natN n) (c: nat1) : nat1
let add_hi_def (#n: nat) (a b: natN n) (c: nat1) : nat1 = | false | null | false | if a + b + c < n then 0 else 1 | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.nat",
"Vale.Def.Words_s.natN",
"Vale.Def.Words_s.nat1",
"Prims.op_LessThan",
"Prims.op_Addition",
"Prims.bool"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 add_hi_def (#n: nat) (a b: natN n) (c: nat1) : nat1 | [] | Vale.Bignum.Defs.add_hi_def | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Vale.Def.Words_s.natN n -> b: Vale.Def.Words_s.natN n -> c: Vale.Def.Words_s.nat1
-> Vale.Def.Words_s.nat1 | {
"end_col": 32,
"end_line": 26,
"start_col": 2,
"start_line": 26
} |
Prims.Tot | val pow_seq (#n: nat) (s: seq (natN n)) : seq int | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let pow_seq (#n:nat) (s:seq (natN n)) : seq int =
init (length s) (fun (i:nat{i < length s}) -> s.[i] * pow_int n i) | val pow_seq (#n: nat) (s: seq (natN n)) : seq int
let pow_seq (#n: nat) (s: seq (natN n)) : seq int = | false | null | false | init (length s) (fun (i: nat{i < length s}) -> s.[ i ] * pow_int n i) | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.nat",
"FStar.Seq.Base.seq",
"Vale.Def.Words_s.natN",
"FStar.Seq.Base.init",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Mul.op_Star",
"Vale.Bignum.Defs.op_String_Access",
"Vale.Bignum.Defs.pow_int"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 pow_seq (#n: nat) (s: seq (natN n)) : seq int | [] | Vale.Bignum.Defs.pow_seq | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq (Vale.Def.Words_s.natN n) -> FStar.Seq.Base.seq Prims.int | {
"end_col": 68,
"end_line": 74,
"start_col": 2,
"start_line": 74
} |
Prims.Tot | val sum_pow_seq (#n: nat) (s: seq (natN n)) : int | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let sum_pow_seq (#n:nat) (s:seq (natN n)) : int =
sum_pow_seq_left s (length s) | val sum_pow_seq (#n: nat) (s: seq (natN n)) : int
let sum_pow_seq (#n: nat) (s: seq (natN n)) : int = | false | null | false | sum_pow_seq_left s (length s) | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.nat",
"FStar.Seq.Base.seq",
"Vale.Def.Words_s.natN",
"Vale.Bignum.Defs.sum_pow_seq_left",
"FStar.Seq.Base.length",
"Prims.int"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 sum_pow_seq (#n: nat) (s: seq (natN n)) : int | [] | Vale.Bignum.Defs.sum_pow_seq | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq (Vale.Def.Words_s.natN n) -> Prims.int | {
"end_col": 31,
"end_line": 80,
"start_col": 2,
"start_line": 80
} |
Prims.Tot | val add_lo_def (#n: nat) (a b: natN n) (c: nat1) : natN n | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let add_lo_def (#n:nat) (a b:natN n) (c:nat1) : natN n =
let x = a + b + c in
if x < n then x else x - n | val add_lo_def (#n: nat) (a b: natN n) (c: nat1) : natN n
let add_lo_def (#n: nat) (a b: natN n) (c: nat1) : natN n = | false | null | false | let x = a + b + c in
if x < n then x else x - n | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.nat",
"Vale.Def.Words_s.natN",
"Vale.Def.Words_s.nat1",
"Prims.op_LessThan",
"Prims.bool",
"Prims.op_Subtraction",
"Prims.int",
"Prims.op_Addition"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 add_lo_def (#n: nat) (a b: natN n) (c: nat1) : natN n | [] | Vale.Bignum.Defs.add_lo_def | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Vale.Def.Words_s.natN n -> b: Vale.Def.Words_s.natN n -> c: Vale.Def.Words_s.nat1
-> Vale.Def.Words_s.natN n | {
"end_col": 28,
"end_line": 18,
"start_col": 56,
"start_line": 16
} |
Prims.Tot | val pow_int (a: int) (b: nat) : int | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let rec pow_int (a:int) (b:nat) : int =
if b = 0 then 1
else a * pow_int a (b - 1) | val pow_int (a: int) (b: nat) : int
let rec pow_int (a: int) (b: nat) : int = | false | null | false | if b = 0 then 1 else a * pow_int a (b - 1) | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.int",
"Prims.nat",
"Prims.op_Equality",
"Prims.bool",
"FStar.Mul.op_Star",
"Vale.Bignum.Defs.pow_int",
"Prims.op_Subtraction"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | true | Vale.Bignum.Defs.fsti | {
"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 pow_int (a: int) (b: nat) : int | [
"recursion"
] | Vale.Bignum.Defs.pow_int | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Prims.int -> b: Prims.nat -> Prims.int | {
"end_col": 28,
"end_line": 71,
"start_col": 2,
"start_line": 70
} |
Prims.Tot | val sum_pow_seq_left (#n: nat) (s: seq (natN n)) (i: nat{i <= length s}) : int | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let sum_pow_seq_left (#n:nat) (s:seq (natN n)) (i:nat{i <= length s}) : int =
sum_seq_left (pow_seq s) 0 i | val sum_pow_seq_left (#n: nat) (s: seq (natN n)) (i: nat{i <= length s}) : int
let sum_pow_seq_left (#n: nat) (s: seq (natN n)) (i: nat{i <= length s}) : int = | false | null | false | sum_seq_left (pow_seq s) 0 i | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.nat",
"FStar.Seq.Base.seq",
"Vale.Def.Words_s.natN",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Vale.Bignum.Defs.sum_seq_left",
"Vale.Bignum.Defs.pow_seq",
"Prims.int"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 sum_pow_seq_left (#n: nat) (s: seq (natN n)) (i: nat{i <= length s}) : int | [] | Vale.Bignum.Defs.sum_pow_seq_left | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq (Vale.Def.Words_s.natN n) -> i: Prims.nat{i <= FStar.Seq.Base.length s}
-> Prims.int | {
"end_col": 30,
"end_line": 77,
"start_col": 2,
"start_line": 77
} |
Prims.Pure | val sum_seq_right (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases (j - i)) | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let rec sum_seq_right (s:seq int) (i j:nat) : Pure int
(requires i <= j /\ j <= length s)
(ensures fun _ -> True)
(decreases (j - i))
=
if i = j then 0
else s.[i] + sum_seq_right s (i + 1) j | val sum_seq_right (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases (j - i))
let rec sum_seq_right (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases (j - i)) = | false | null | false | if i = j then 0 else s.[ i ] + sum_seq_right s (i + 1) j | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
""
] | [
"FStar.Seq.Base.seq",
"Prims.int",
"Prims.nat",
"Prims.op_Equality",
"Prims.bool",
"Prims.op_Addition",
"Vale.Bignum.Defs.op_String_Access",
"Vale.Bignum.Defs.sum_seq_right",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.l_True"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 sum_seq_right (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases (j - i)) | [
"recursion"
] | Vale.Bignum.Defs.sum_seq_right | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq Prims.int -> i: Prims.nat -> j: Prims.nat -> Prims.Pure Prims.int | {
"end_col": 40,
"end_line": 67,
"start_col": 2,
"start_line": 66
} |
Prims.Pure | val sum_seq_left (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases j) | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let rec sum_seq_left (s:seq int) (i j:nat) : Pure int
(requires i <= j /\ j <= length s)
(ensures fun _ -> True)
(decreases j)
=
if i = j then 0
else s.[j - 1] + sum_seq_left s i (j - 1) | val sum_seq_left (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases j)
let rec sum_seq_left (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases j) = | false | null | false | if i = j then 0 else s.[ j - 1 ] + sum_seq_left s i (j - 1) | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
""
] | [
"FStar.Seq.Base.seq",
"Prims.int",
"Prims.nat",
"Prims.op_Equality",
"Prims.bool",
"Prims.op_Addition",
"Vale.Bignum.Defs.op_String_Access",
"Prims.op_Subtraction",
"Vale.Bignum.Defs.sum_seq_left",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.l_Tr... | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 sum_seq_left (s: seq int) (i j: nat)
: Pure int (requires i <= j /\ j <= length s) (ensures fun _ -> True) (decreases j) | [
"recursion"
] | Vale.Bignum.Defs.sum_seq_left | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq Prims.int -> i: Prims.nat -> j: Prims.nat -> Prims.Pure Prims.int | {
"end_col": 43,
"end_line": 59,
"start_col": 2,
"start_line": 58
} |
Prims.Tot | val mul_lo_def (#n: pos) (a b: natN n) : natN n | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let mul_lo_def (#n:pos) (a b:natN n) : natN n =
(a * b) % n | val mul_lo_def (#n: pos) (a b: natN n) : natN n
let mul_lo_def (#n: pos) (a b: natN n) : natN n = | false | null | false | (a * b) % n | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.pos",
"Vale.Def.Words_s.natN",
"Prims.op_Modulus",
"FStar.Mul.op_Star"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 mul_lo_def (#n: pos) (a b: natN n) : natN n | [] | Vale.Bignum.Defs.mul_lo_def | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Vale.Def.Words_s.natN n -> b: Vale.Def.Words_s.natN n -> Vale.Def.Words_s.natN n | {
"end_col": 13,
"end_line": 37,
"start_col": 2,
"start_line": 37
} |
Prims.Tot | val add_lo_hi (#n: pos) (a b: natN n) (c: nat1) : natN n & nat1 | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let add_lo_hi (#n:pos) (a b:natN n) (c:nat1) : natN n & nat1 =
(add_lo a b c, add_hi a b c) | val add_lo_hi (#n: pos) (a b: natN n) (c: nat1) : natN n & nat1
let add_lo_hi (#n: pos) (a b: natN n) (c: nat1) : natN n & nat1 = | false | null | false | (add_lo a b c, add_hi a b c) | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.pos",
"Vale.Def.Words_s.natN",
"Vale.Def.Words_s.nat1",
"FStar.Pervasives.Native.Mktuple2",
"Vale.Bignum.Defs.add_lo",
"Vale.Bignum.Defs.add_hi",
"FStar.Pervasives.Native.tuple2"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 add_lo_hi (#n: pos) (a b: natN n) (c: nat1) : natN n & nat1 | [] | Vale.Bignum.Defs.add_lo_hi | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Vale.Def.Words_s.natN n -> b: Vale.Def.Words_s.natN n -> c: Vale.Def.Words_s.nat1
-> Vale.Def.Words_s.natN n * Vale.Def.Words_s.nat1 | {
"end_col": 30,
"end_line": 34,
"start_col": 2,
"start_line": 34
} |
Prims.Tot | val mul_hi_def (#n: pos) (a b: natN n) : natN n | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | false | let mul_hi_def (#n:pos) (a b:natN n) : natN n =
lemma_mul_div_n a b;
(a * b) / n | val mul_hi_def (#n: pos) (a b: natN n) : natN n
let mul_hi_def (#n: pos) (a b: natN n) : natN n = | false | null | false | lemma_mul_div_n a b;
(a * b) / n | {
"checked_file": "Vale.Bignum.Defs.fsti.checked",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file":... | [
"total"
] | [
"Prims.pos",
"Vale.Def.Words_s.natN",
"Prims.op_Division",
"FStar.Mul.op_Star",
"Prims.unit",
"Vale.Bignum.Defs.lemma_mul_div_n"
] | [] | module Vale.Bignum.Defs
open FStar.Mul
open FStar.Seq
open Vale.Def.Words_s
unfold let (.[]) = Seq.index
val lemma_mul_nat_bound (a a' b b':nat) : Lemma
(requires a <= a' /\ b <= b')
(ensures 0 <= a * b /\ a * b <= a' * b')
val lemma_mul_n_bound (#n:nat) (a b:natN n) : Lemma (0 <= a * b /\ a * b <= (n - 1) * (n ... | false | false | Vale.Bignum.Defs.fsti | {
"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 mul_hi_def (#n: pos) (a b: natN n) : natN n | [] | Vale.Bignum.Defs.mul_hi_def | {
"file_name": "vale/code/crypto/bignum/Vale.Bignum.Defs.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Vale.Def.Words_s.natN n -> b: Vale.Def.Words_s.natN n -> Vale.Def.Words_s.natN n | {
"end_col": 13,
"end_line": 46,
"start_col": 2,
"start_line": 45
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSt... | false | let inttype = t:inttype{unsigned t} | let inttype = | false | null | false | t: inttype{unsigned t} | {
"checked_file": "Lib.IntTypes.Compatibility.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Lib.IntTypes.Compatibility.fst"
} | [
"total"
] | [
"Lib.IntTypes.inttype",
"Prims.b2t",
"Lib.IntTypes.unsigned"
] | [] | module Lib.IntTypes.Compatibility
open Lib.IntTypes
val uint_v_size_lemma: s:size_nat ->
Lemma
(ensures (uint_v (size s) == s))
[SMTPat (uint_v (size s))]
let uint_v_size_lemma s = () | false | true | Lib.IntTypes.Compatibility.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 inttype : Type0 | [] | Lib.IntTypes.Compatibility.inttype | {
"file_name": "lib/Lib.IntTypes.Compatibility.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 35,
"end_line": 12,
"start_col": 14,
"start_line": 12
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSt... | false | let zeroes t l = zeros t l | let zeroes t l = | false | null | false | zeros t l | {
"checked_file": "Lib.IntTypes.Compatibility.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Lib.IntTypes.Compatibility.fst"
} | [
"total"
] | [
"Lib.IntTypes.inttype",
"Lib.IntTypes.secrecy_level",
"Lib.IntTypes.zeros",
"Lib.IntTypes.int_t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v"
] | [] | module Lib.IntTypes.Compatibility
open Lib.IntTypes
val uint_v_size_lemma: s:size_nat ->
Lemma
(ensures (uint_v (size s) == s))
[SMTPat (uint_v (size s))]
let uint_v_size_lemma s = ()
unfold
let inttype = t:inttype{unsigned t}
val uintv_extensionality:
#t:inttype
-> #l:secrecy_level
-> a:uint_t t l
-> b... | false | false | Lib.IntTypes.Compatibility.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 zeroes : t: Lib.IntTypes.inttype -> l: Lib.IntTypes.secrecy_level
-> n: Lib.IntTypes.int_t t l {Lib.IntTypes.v n = 0} | [] | Lib.IntTypes.Compatibility.zeroes | {
"file_name": "lib/Lib.IntTypes.Compatibility.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Lib.IntTypes.inttype -> l: Lib.IntTypes.secrecy_level
-> n: Lib.IntTypes.int_t t l {Lib.IntTypes.v n = 0} | {
"end_col": 26,
"end_line": 26,
"start_col": 17,
"start_line": 26
} | |
Prims.Tot | val nat_to_uint (#t: inttype) (#l: secrecy_level) (n: nat{n <= maxint t})
: u: uint_t t l {uint_v u == n} | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSt... | false | let nat_to_uint (#t:inttype) (#l:secrecy_level) (n:nat{n <= maxint t}) : u:uint_t t l{uint_v u == n} = uint #t #l n | val nat_to_uint (#t: inttype) (#l: secrecy_level) (n: nat{n <= maxint t})
: u: uint_t t l {uint_v u == n}
let nat_to_uint (#t: inttype) (#l: secrecy_level) (n: nat{n <= maxint t})
: u: uint_t t l {uint_v u == n} = | false | null | false | uint #t #l n | {
"checked_file": "Lib.IntTypes.Compatibility.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Lib.IntTypes.Compatibility.fst"
} | [
"total"
] | [
"Lib.IntTypes.Compatibility.inttype",
"Lib.IntTypes.secrecy_level",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.maxint",
"Lib.IntTypes.uint",
"Lib.IntTypes.uint_t",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"Lib.IntTypes.range",
"Prims.l_and",
"Prims.op_GreaterThanOrE... | [] | module Lib.IntTypes.Compatibility
open Lib.IntTypes
val uint_v_size_lemma: s:size_nat ->
Lemma
(ensures (uint_v (size s) == s))
[SMTPat (uint_v (size s))]
let uint_v_size_lemma s = ()
unfold
let inttype = t:inttype{unsigned t}
val uintv_extensionality:
#t:inttype
-> #l:secrecy_level
-> a:uint_t t l
-> b... | false | false | Lib.IntTypes.Compatibility.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 nat_to_uint (#t: inttype) (#l: secrecy_level) (n: nat{n <= maxint t})
: u: uint_t t l {uint_v u == n} | [] | Lib.IntTypes.Compatibility.nat_to_uint | {
"file_name": "lib/Lib.IntTypes.Compatibility.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | n: Prims.nat{n <= Lib.IntTypes.maxint t}
-> u11: Lib.IntTypes.uint_t t l {Lib.IntTypes.uint_v u11 == n} | {
"end_col": 115,
"end_line": 24,
"start_col": 103,
"start_line": 24
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test1_len = 42 | let test1_len = | false | null | false | 42 | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [] | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | true | Spec.HKDF.Test.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 test1_len : Prims.int | [] | Spec.HKDF.Test.test1_len | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 18,
"end_line": 46,
"start_col": 16,
"start_line": 46
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test2_len = 82 | let test2_len = | false | null | false | 82 | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [] | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | true | Spec.HKDF.Test.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 test2_len : Prims.int | [] | Spec.HKDF.Test.test2_len | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 18,
"end_line": 126,
"start_col": 16,
"start_line": 126
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test2_hash = Spec.Hash.Definitions.SHA2_256 | let test2_hash = | false | null | false | Spec.Hash.Definitions.SHA2_256 | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Spec.Hash.Definitions.SHA2_256"
] | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | true | Spec.HKDF.Test.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 test2_hash : Spec.Hash.Definitions.hash_alg | [] | Spec.HKDF.Test.test2_hash | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Hash.Definitions.hash_alg | {
"end_col": 47,
"end_line": 74,
"start_col": 17,
"start_line": 74
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test3_len = 42 | let test3_len = | false | null | false | 42 | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [] | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | true | Spec.HKDF.Test.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 test3_len : Prims.int | [] | Spec.HKDF.Test.test3_len | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 18,
"end_line": 182,
"start_col": 16,
"start_line": 182
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test1_hash = Spec.Hash.Definitions.SHA2_256 | let test1_hash = | false | null | false | Spec.Hash.Definitions.SHA2_256 | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Spec.Hash.Definitions.SHA2_256"
] | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1 | false | true | Spec.HKDF.Test.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 test1_hash : Spec.Hash.Definitions.hash_alg | [] | Spec.HKDF.Test.test1_hash | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Hash.Definitions.hash_alg | {
"end_col": 47,
"end_line": 17,
"start_col": 17,
"start_line": 17
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test3_hash = Spec.Hash.Definitions.SHA2_256 | let test3_hash = | false | null | false | Spec.Hash.Definitions.SHA2_256 | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Spec.Hash.Definitions.SHA2_256"
] | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | true | Spec.HKDF.Test.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 test3_hash : Spec.Hash.Definitions.hash_alg | [] | Spec.HKDF.Test.test3_hash | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Hash.Definitions.hash_alg | {
"end_col": 47,
"end_line": 159,
"start_col": 17,
"start_line": 159
} | |
Prims.Tot | val test3_info:lbytes 0 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test3_info : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | val test3_info:lbytes 0
let test3_info:lbytes 0 = | false | null | false | let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Nil"
... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test3_info:lbytes 0 | [] | Spec.HKDF.Test.test3_info | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 0 | {
"end_col": 11,
"end_line": 180,
"start_col": 27,
"start_line": 177
} |
Prims.Tot | val test3_salt:lbytes 0 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test3_salt : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | val test3_salt:lbytes 0
let test3_salt:lbytes 0 = | false | null | false | let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Nil"
... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test3_salt:lbytes 0 | [] | Spec.HKDF.Test.test3_salt | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 0 | {
"end_col": 11,
"end_line": 174,
"start_col": 27,
"start_line": 171
} |
Prims.Tot | val test1_ikm:lbytes 22 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test1_ikm : lbytes 22 =
let l = List.Tot.map u8_from_UInt8 [
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy;
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy;
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy
] in
assert_norm (List.Tot.length l == 22);
of_list l | val test1_ikm:lbytes 22
let test1_ikm:lbytes 22 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy;
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy
]
in
assert_norm (List.Tot.length l == 22);
of_list l | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256 | false | false | Spec.HKDF.Test.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 test1_ikm:lbytes 22 | [] | Spec.HKDF.Test.test1_ikm | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 22 | {
"end_col": 11,
"end_line": 26,
"start_col": 27,
"start_line": 19
} |
Prims.Tot | val test1_salt:lbytes 13 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test1_salt : lbytes 13 =
let l = List.Tot.map u8_from_UInt8 [
0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy;
0x08uy; 0x09uy; 0x0auy; 0x0buy; 0x0cuy
] in
assert_norm (List.Tot.length l == 13);
of_list l | val test1_salt:lbytes 13
let test1_salt:lbytes 13 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy; 0x08uy; 0x09uy; 0x0auy; 0x0buy;
0x0cuy
]
in
assert_norm (List.Tot.length l == 13);
of_list l | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test1_salt:lbytes 13 | [] | Spec.HKDF.Test.test1_salt | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 13 | {
"end_col": 11,
"end_line": 35,
"start_col": 28,
"start_line": 29
} |
FStar.All.ALL | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test_one (v:vec) =
let Vec a salt ikm expected_prk info out_len expected_okm = v in
let test_prk = HKDF.extract a salt ikm in
let test_okm = HKDF.expand a expected_prk info out_len in
IO.print_string "\nPRK:";
let r_a = PS.print_compare true (length expected_prk) expected_prk test_prk in
IO.print_strin... | let test_one (v: vec) = | true | null | false | let Vec a salt ikm expected_prk info out_len expected_okm = v in
let test_prk = HKDF.extract a salt ikm in
let test_okm = HKDF.expand a expected_prk info out_len in
IO.print_string "\nPRK:";
let r_a = PS.print_compare true (length expected_prk) expected_prk test_prk in
IO.print_string "\nOKM:";
let r_b = PS.print_compa... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [] | [
"Spec.HKDF.Test.vec",
"Spec.Hash.Definitions.fixed_len_alg",
"Lib.ByteSequence.bytes",
"Spec.Agile.HMAC.keysized",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.b2t",
"Spec.Agile.HKDF.extract_ikm_length_pred",
"Lib.ByteSequence.lbytes",
"Spec.Hash.... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val test_one : v: Spec.HKDF.Test.vec -> FStar.All.ALL Prims.bool | [] | Spec.HKDF.Test.test_one | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | v: Spec.HKDF.Test.vec -> FStar.All.ALL Prims.bool | {
"end_col": 5,
"end_line": 250,
"start_col": 22,
"start_line": 235
} | |
Prims.Tot | val test3_ikm:lbytes 22 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test3_ikm : lbytes 22 =
let l = List.Tot.map u8_from_UInt8 [
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy;
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy;
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy
] in
assert_norm (List.Tot.length l == 22);
of_list l | val test3_ikm:lbytes 22
let test3_ikm:lbytes 22 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy;
0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy; 0x0buy
]
in
assert_norm (List.Tot.length l == 22);
of_list l | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test3_ikm:lbytes 22 | [] | Spec.HKDF.Test.test3_ikm | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 22 | {
"end_col": 11,
"end_line": 168,
"start_col": 27,
"start_line": 161
} |
FStar.All.ALL | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test () =
let res = List.for_all test_one test_vectors in
if res then begin IO.print_string "\n\nHKDF: Success!\n"; true end
else begin IO.print_string "\n\nHKDF: Failure :(\n"; false end | let test () = | true | null | false | let res = List.for_all test_one test_vectors in
if res
then
(IO.print_string "\n\nHKDF: Success!\n";
true)
else
(IO.print_string "\n\nHKDF: Failure :(\n";
false) | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [] | [
"Prims.unit",
"Prims.bool",
"FStar.IO.print_string",
"FStar.List.for_all",
"Spec.HKDF.Test.vec",
"Spec.HKDF.Test.test_one",
"Spec.HKDF.Test.test_vectors"
] | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val test : _: Prims.unit -> FStar.All.ALL Prims.bool | [] | Spec.HKDF.Test.test | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Prims.unit -> FStar.All.ALL Prims.bool | {
"end_col": 64,
"end_line": 256,
"start_col": 13,
"start_line": 253
} | |
Prims.Tot | val test1_info:lbytes 10 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test1_info : lbytes 10 =
let l = List.Tot.map u8_from_UInt8 [
0xf0uy; 0xf1uy; 0xf2uy; 0xf3uy; 0xf4uy; 0xf5uy; 0xf6uy; 0xf7uy;
0xf8uy; 0xf9uy
] in
assert_norm (List.Tot.length l == 10);
of_list l | val test1_info:lbytes 10
let test1_info:lbytes 10 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[0xf0uy; 0xf1uy; 0xf2uy; 0xf3uy; 0xf4uy; 0xf5uy; 0xf6uy; 0xf7uy; 0xf8uy; 0xf9uy]
in
assert_norm (List.Tot.length l == 10);
of_list l | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test1_info:lbytes 10 | [] | Spec.HKDF.Test.test1_info | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 10 | {
"end_col": 11,
"end_line": 44,
"start_col": 28,
"start_line": 38
} |
Prims.Tot | val test2_expected_prk:lbytes 32 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test2_expected_prk : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x06uy; 0xa6uy; 0xb8uy; 0x8cuy; 0x58uy; 0x53uy; 0x36uy; 0x1auy;
0x06uy; 0x10uy; 0x4cuy; 0x9cuy; 0xebuy; 0x35uy; 0xb4uy; 0x5cuy;
0xefuy; 0x76uy; 0x00uy; 0x14uy; 0x90uy; 0x46uy; 0x71uy; 0x01uy;
0x4auy; 0x19uy; 0x3fuy; 0x40uy; 0xc1... | val test2_expected_prk:lbytes 32
let test2_expected_prk:lbytes 32 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x06uy; 0xa6uy; 0xb8uy; 0x8cuy; 0x58uy; 0x53uy; 0x36uy; 0x1auy; 0x06uy; 0x10uy; 0x4cuy; 0x9cuy;
0xebuy; 0x35uy; 0xb4uy; 0x5cuy; 0xefuy; 0x76uy; 0x00uy; 0x14uy; 0x90uy; 0x46uy; 0x71uy; 0x01uy;
0x4auy; 0x19uy; 0x3fuy; 0x40uy; 0xc1uy; 0x5fuy; 0xc2uy; 0x44uy
... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test2_expected_prk:lbytes 32 | [] | Spec.HKDF.Test.test2_expected_prk | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | {
"end_col": 11,
"end_line": 136,
"start_col": 36,
"start_line": 128
} |
Prims.Tot | val test1_expected_prk:lbytes 32 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test1_expected_prk : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x07uy; 0x77uy; 0x09uy; 0x36uy; 0x2cuy; 0x2euy; 0x32uy; 0xdfuy;
0x0duy; 0xdcuy; 0x3fuy; 0x0duy; 0xc4uy; 0x7buy; 0xbauy; 0x63uy;
0x90uy; 0xb6uy; 0xc7uy; 0x3buy; 0xb5uy; 0x0fuy; 0x9cuy; 0x31uy;
0x22uy; 0xecuy; 0x84uy; 0x4auy; 0xd7... | val test1_expected_prk:lbytes 32
let test1_expected_prk:lbytes 32 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x07uy; 0x77uy; 0x09uy; 0x36uy; 0x2cuy; 0x2euy; 0x32uy; 0xdfuy; 0x0duy; 0xdcuy; 0x3fuy; 0x0duy;
0xc4uy; 0x7buy; 0xbauy; 0x63uy; 0x90uy; 0xb6uy; 0xc7uy; 0x3buy; 0xb5uy; 0x0fuy; 0x9cuy; 0x31uy;
0x22uy; 0xecuy; 0x84uy; 0x4auy; 0xd7uy; 0xc2uy; 0xb3uy; 0xe5uy
... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test1_expected_prk:lbytes 32 | [] | Spec.HKDF.Test.test1_expected_prk | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | {
"end_col": 11,
"end_line": 56,
"start_col": 36,
"start_line": 48
} |
Prims.Tot | val test1_expected_okm:lbytes 42 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test1_expected_okm : lbytes 42 =
let l = List.Tot.map u8_from_UInt8 [
0x3cuy; 0xb2uy; 0x5fuy; 0x25uy; 0xfauy; 0xacuy; 0xd5uy; 0x7auy;
0x90uy; 0x43uy; 0x4fuy; 0x64uy; 0xd0uy; 0x36uy; 0x2fuy; 0x2auy;
0x2duy; 0x2duy; 0x0auy; 0x90uy; 0xcfuy; 0x1auy; 0x5auy; 0x4cuy;
0x5duy; 0xb0uy; 0x2duy; 0x56uy; 0xec... | val test1_expected_okm:lbytes 42
let test1_expected_okm:lbytes 42 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x3cuy; 0xb2uy; 0x5fuy; 0x25uy; 0xfauy; 0xacuy; 0xd5uy; 0x7auy; 0x90uy; 0x43uy; 0x4fuy; 0x64uy;
0xd0uy; 0x36uy; 0x2fuy; 0x2auy; 0x2duy; 0x2duy; 0x0auy; 0x90uy; 0xcfuy; 0x1auy; 0x5auy; 0x4cuy;
0x5duy; 0xb0uy; 0x2duy; 0x56uy; 0xecuy; 0xc4uy; 0xc5uy; 0xbfuy; 0x3... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test1_expected_okm:lbytes 42 | [] | Spec.HKDF.Test.test1_expected_okm | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 42 | {
"end_col": 11,
"end_line": 69,
"start_col": 36,
"start_line": 59
} |
Prims.Tot | val test3_expected_prk:lbytes 32 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test3_expected_prk : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x19uy; 0xefuy; 0x24uy; 0xa3uy; 0x2cuy; 0x71uy; 0x7buy; 0x16uy;
0x7fuy; 0x33uy; 0xa9uy; 0x1duy; 0x6fuy; 0x64uy; 0x8buy; 0xdfuy;
0x96uy; 0x59uy; 0x67uy; 0x76uy; 0xafuy; 0xdbuy; 0x63uy; 0x77uy;
0xacuy; 0x43uy; 0x4cuy; 0x1cuy; 0x29... | val test3_expected_prk:lbytes 32
let test3_expected_prk:lbytes 32 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x19uy; 0xefuy; 0x24uy; 0xa3uy; 0x2cuy; 0x71uy; 0x7buy; 0x16uy; 0x7fuy; 0x33uy; 0xa9uy; 0x1duy;
0x6fuy; 0x64uy; 0x8buy; 0xdfuy; 0x96uy; 0x59uy; 0x67uy; 0x76uy; 0xafuy; 0xdbuy; 0x63uy; 0x77uy;
0xacuy; 0x43uy; 0x4cuy; 0x1cuy; 0x29uy; 0x3cuy; 0xcbuy; 0x04uy
... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test3_expected_prk:lbytes 32 | [] | Spec.HKDF.Test.test3_expected_prk | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | {
"end_col": 11,
"end_line": 192,
"start_col": 36,
"start_line": 184
} |
Prims.Tot | val test3_expected_okm:lbytes 42 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test3_expected_okm : lbytes 42 =
let l = List.Tot.map u8_from_UInt8 [
0x8duy; 0xa4uy; 0xe7uy; 0x75uy; 0xa5uy; 0x63uy; 0xc1uy; 0x8fuy;
0x71uy; 0x5fuy; 0x80uy; 0x2auy; 0x06uy; 0x3cuy; 0x5auy; 0x31uy;
0xb8uy; 0xa1uy; 0x1fuy; 0x5cuy; 0x5euy; 0xe1uy; 0x87uy; 0x9euy;
0xc3uy; 0x45uy; 0x4euy; 0x5fuy; 0x3c... | val test3_expected_okm:lbytes 42
let test3_expected_okm:lbytes 42 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x8duy; 0xa4uy; 0xe7uy; 0x75uy; 0xa5uy; 0x63uy; 0xc1uy; 0x8fuy; 0x71uy; 0x5fuy; 0x80uy; 0x2auy;
0x06uy; 0x3cuy; 0x5auy; 0x31uy; 0xb8uy; 0xa1uy; 0x1fuy; 0x5cuy; 0x5euy; 0xe1uy; 0x87uy; 0x9euy;
0xc3uy; 0x45uy; 0x4euy; 0x5fuy; 0x3cuy; 0x73uy; 0x8duy; 0x2duy; 0x9... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test3_expected_okm:lbytes 42 | [] | Spec.HKDF.Test.test3_expected_okm | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 42 | {
"end_col": 11,
"end_line": 205,
"start_col": 36,
"start_line": 195
} |
Prims.Tot | val test2_ikm:lbytes 80 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test2_ikm : lbytes 80 =
let l = List.Tot.map u8_from_UInt8 [
0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy;
0x08uy; 0x09uy; 0x0auy; 0x0buy; 0x0cuy; 0x0duy; 0x0euy; 0x0fuy;
0x10uy; 0x11uy; 0x12uy; 0x13uy; 0x14uy; 0x15uy; 0x16uy; 0x17uy;
0x18uy; 0x19uy; 0x1auy; 0x1buy; 0x1cuy; 0x1du... | val test2_ikm:lbytes 80
let test2_ikm:lbytes 80 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy; 0x08uy; 0x09uy; 0x0auy; 0x0buy;
0x0cuy; 0x0duy; 0x0euy; 0x0fuy; 0x10uy; 0x11uy; 0x12uy; 0x13uy; 0x14uy; 0x15uy; 0x16uy; 0x17uy;
0x18uy; 0x19uy; 0x1auy; 0x1buy; 0x1cuy; 0x1duy; 0x1euy; 0x1fuy; 0x2... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test2_ikm:lbytes 80 | [] | Spec.HKDF.Test.test2_ikm | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 80 | {
"end_col": 11,
"end_line": 90,
"start_col": 27,
"start_line": 76
} |
Prims.Tot | val test2_expected_okm:lbytes 82 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test2_expected_okm : lbytes 82 =
let l = List.Tot.map u8_from_UInt8 [
0xb1uy; 0x1euy; 0x39uy; 0x8duy; 0xc8uy; 0x03uy; 0x27uy; 0xa1uy;
0xc8uy; 0xe7uy; 0xf7uy; 0x8cuy; 0x59uy; 0x6auy; 0x49uy; 0x34uy;
0x4fuy; 0x01uy; 0x2euy; 0xdauy; 0x2duy; 0x4euy; 0xfauy; 0xd8uy;
0xa0uy; 0x50uy; 0xccuy; 0x4cuy; 0x19... | val test2_expected_okm:lbytes 82
let test2_expected_okm:lbytes 82 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0xb1uy; 0x1euy; 0x39uy; 0x8duy; 0xc8uy; 0x03uy; 0x27uy; 0xa1uy; 0xc8uy; 0xe7uy; 0xf7uy; 0x8cuy;
0x59uy; 0x6auy; 0x49uy; 0x34uy; 0x4fuy; 0x01uy; 0x2euy; 0xdauy; 0x2duy; 0x4euy; 0xfauy; 0xd8uy;
0xa0uy; 0x50uy; 0xccuy; 0x4cuy; 0x19uy; 0xafuy; 0xa9uy; 0x7cuy; 0x5... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test2_expected_okm:lbytes 82 | [] | Spec.HKDF.Test.test2_expected_okm | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 82 | {
"end_col": 11,
"end_line": 154,
"start_col": 36,
"start_line": 139
} |
Prims.Tot | val test2_salt:lbytes 80 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test2_salt : lbytes 80 =
let l = List.Tot.map u8_from_UInt8 [
0x60uy; 0x61uy; 0x62uy; 0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy;
0x68uy; 0x69uy; 0x6auy; 0x6buy; 0x6cuy; 0x6duy; 0x6euy; 0x6fuy;
0x70uy; 0x71uy; 0x72uy; 0x73uy; 0x74uy; 0x75uy; 0x76uy; 0x77uy;
0x78uy; 0x79uy; 0x7auy; 0x7buy; 0x7cuy; 0x7d... | val test2_salt:lbytes 80
let test2_salt:lbytes 80 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0x60uy; 0x61uy; 0x62uy; 0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x69uy; 0x6auy; 0x6buy;
0x6cuy; 0x6duy; 0x6euy; 0x6fuy; 0x70uy; 0x71uy; 0x72uy; 0x73uy; 0x74uy; 0x75uy; 0x76uy; 0x77uy;
0x78uy; 0x79uy; 0x7auy; 0x7buy; 0x7cuy; 0x7duy; 0x7euy; 0x7fuy; 0x8... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test2_salt:lbytes 80 | [] | Spec.HKDF.Test.test2_salt | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 80 | {
"end_col": 11,
"end_line": 107,
"start_col": 28,
"start_line": 93
} |
Prims.Tot | val test2_info:lbytes 80 | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test2_info : lbytes 80 =
let l = List.Tot.map u8_from_UInt8 [
0xb0uy; 0xb1uy; 0xb2uy; 0xb3uy; 0xb4uy; 0xb5uy; 0xb6uy; 0xb7uy;
0xb8uy; 0xb9uy; 0xbauy; 0xbbuy; 0xbcuy; 0xbduy; 0xbeuy; 0xbfuy;
0xc0uy; 0xc1uy; 0xc2uy; 0xc3uy; 0xc4uy; 0xc5uy; 0xc6uy; 0xc7uy;
0xc8uy; 0xc9uy; 0xcauy; 0xcbuy; 0xccuy; 0xcd... | val test2_info:lbytes 80
let test2_info:lbytes 80 = | false | null | false | let l =
List.Tot.map u8_from_UInt8
[
0xb0uy; 0xb1uy; 0xb2uy; 0xb3uy; 0xb4uy; 0xb5uy; 0xb6uy; 0xb7uy; 0xb8uy; 0xb9uy; 0xbauy; 0xbbuy;
0xbcuy; 0xbduy; 0xbeuy; 0xbfuy; 0xc0uy; 0xc1uy; 0xc2uy; 0xc3uy; 0xc4uy; 0xc5uy; 0xc6uy; 0xc7uy;
0xc8uy; 0xc9uy; 0xcauy; 0xcbuy; 0xccuy; 0xcduy; 0xceuy; 0xcfuy; 0xd... | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | false | Spec.HKDF.Test.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 test2_info:lbytes 80 | [] | Spec.HKDF.Test.test2_info | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 80 | {
"end_col": 11,
"end_line": 124,
"start_col": 28,
"start_line": 110
} |
Prims.Tot | val test_vectors:list vec | [
{
"abbrev": true,
"full_module": "Spec.Agile.HKDF",
"short_module": "HKDF"
},
{
"abbrev": true,
"full_module": "Spec.Agile.HMAC",
"short_module": "HMAC"
},
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_m... | false | let test_vectors: list vec = [
Vec test1_hash test1_salt test1_ikm
test1_expected_prk test1_info test1_len test1_expected_okm;
Vec test2_hash test2_salt test2_ikm
test2_expected_prk test2_info test2_len test2_expected_okm;
Vec test3_hash test3_salt test3_ikm
test3_expected_prk test3_info test3_l... | val test_vectors:list vec
let test_vectors:list vec = | false | null | false | [
Vec test1_hash test1_salt test1_ikm test1_expected_prk test1_info test1_len test1_expected_okm;
Vec test2_hash test2_salt test2_ikm test2_expected_prk test2_info test2_len test2_expected_okm;
Vec test3_hash test3_salt test3_ikm test3_expected_prk test3_info test3_len test3_expected_okm
] | {
"checked_file": "Spec.HKDF.Test.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.HMAC.fsti.checked",
"Spec.Agile.HKDF.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"... | [
"total"
] | [
"Prims.Cons",
"Spec.HKDF.Test.vec",
"Spec.HKDF.Test.Vec",
"Spec.HKDF.Test.test1_hash",
"Spec.HKDF.Test.test1_salt",
"Spec.HKDF.Test.test1_ikm",
"Spec.HKDF.Test.test1_expected_prk",
"Spec.HKDF.Test.test1_info",
"Spec.HKDF.Test.test1_len",
"Spec.HKDF.Test.test1_expected_okm",
"Spec.HKDF.Test.test2... | [] | module Spec.HKDF.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
module HMAC = Spec.Agile.HMAC
module HKDF = Spec.Agile.HKDF
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test 1
let test1_hash = Spec.Hash.Definitions.SHA2_256
... | false | true | Spec.HKDF.Test.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 test_vectors:list vec | [] | Spec.HKDF.Test.test_vectors | {
"file_name": "specs/tests/Spec.HKDF.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.list Spec.HKDF.Test.vec | {
"end_col": 66,
"end_line": 230,
"start_col": 29,
"start_line": 224
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let finish_ k (acc, r) =
Spec.Poly1305.poly1305_finish k acc | let finish_ k (acc, r) = | false | null | false | Spec.Poly1305.poly1305_finish k acc | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Spec.Poly1305.key",
"FStar.Pervasives.Native.tuple2",
"Spec.Poly1305.felem",
"Spec.Poly1305.poly1305_finish",
"Spec.Poly1305.tag"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 finish_ : k: Spec.Poly1305.key -> _: (Spec.Poly1305.felem * _) -> Spec.Poly1305.tag | [] | Hacl.Streaming.Poly1305.finish_ | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | k: Spec.Poly1305.key -> _: (Spec.Poly1305.felem * _) -> Spec.Poly1305.tag | {
"end_col": 37,
"end_line": 170,
"start_col": 2,
"start_line": 170
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let spec k input =
Spec.Poly1305.poly1305_mac input k | let spec k input = | false | null | false | Spec.Poly1305.poly1305_mac input k | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Spec.Poly1305.key",
"Lib.ByteSequence.bytes",
"Spec.Poly1305.poly1305_mac",
"Spec.Poly1305.tag"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 spec : k: Spec.Poly1305.key -> input: Lib.ByteSequence.bytes -> Spec.Poly1305.tag | [] | Hacl.Streaming.Poly1305.spec | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | k: Spec.Poly1305.key -> input: Lib.ByteSequence.bytes -> Spec.Poly1305.tag | {
"end_col": 36,
"end_line": 174,
"start_col": 2,
"start_line": 174
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module... | false | let uint32 = Lib.IntTypes.uint32 | let uint32 = | false | null | false | Lib.IntTypes.uint32 | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Lib.IntTypes.uint32"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.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 uint32 : Type0 | [] | Hacl.Streaming.Poly1305.uint32 | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 32,
"end_line": 25,
"start_col": 13,
"start_line": 25
} | |
Prims.Tot | val as_raw (#fs: field_spec) (x: t fs) : B.buffer (limb fs) | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let as_raw (#fs : field_spec) (x: t fs): B.buffer (limb fs) = x | val as_raw (#fs: field_spec) (x: t fs) : B.buffer (limb fs)
let as_raw (#fs: field_spec) (x: t fs) : B.buffer (limb fs) = | false | null | false | x | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Hacl.Impl.Poly1305.Fields.field_spec",
"Hacl.Streaming.Poly1305.t",
"LowStar.Buffer.buffer",
"Hacl.Impl.Poly1305.Fields.limb"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 as_raw (#fs: field_spec) (x: t fs) : B.buffer (limb fs) | [] | Hacl.Streaming.Poly1305.as_raw | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: Hacl.Streaming.Poly1305.t fs -> LowStar.Buffer.buffer (Hacl.Impl.Poly1305.Fields.limb fs) | {
"end_col": 63,
"end_line": 40,
"start_col": 62,
"start_line": 40
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let t (fs : field_spec) = b:B.buffer (limb fs) { B.length b == 25 } | let t (fs: field_spec) = | false | null | false | b: B.buffer (limb fs) {B.length b == 25} | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Hacl.Impl.Poly1305.Fields.field_spec",
"LowStar.Buffer.buffer",
"Hacl.Impl.Poly1305.Fields.limb",
"Prims.eq2",
"Prims.int",
"LowStar.Monotonic.Buffer.length",
"LowStar.Buffer.trivial_preorder"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 t : fs: Hacl.Impl.Poly1305.Fields.field_spec -> Type0 | [] | Hacl.Streaming.Poly1305.t | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | fs: Hacl.Impl.Poly1305.Fields.field_spec -> Type0 | {
"end_col": 67,
"end_line": 37,
"start_col": 26,
"start_line": 37
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module... | false | let uint8 = Lib.IntTypes.uint8 | let uint8 = | false | null | false | Lib.IntTypes.uint8 | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Lib.IntTypes.uint8"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.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 uint8 : Type0 | [] | Hacl.Streaming.Poly1305.uint8 | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 30,
"end_line": 22,
"start_col": 12,
"start_line": 22
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update' r acc (block: block) =
Spec.Poly1305.poly1305_update1 r Spec.Poly1305.size_block block acc | let update' r acc (block: block) = | false | null | false | Spec.Poly1305.poly1305_update1 r Spec.Poly1305.size_block block acc | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Spec.Poly1305.felem",
"Hacl.Streaming.Poly1305.block",
"Spec.Poly1305.poly1305_update1",
"Spec.Poly1305.size_block"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update' : r: Spec.Poly1305.felem -> acc: Spec.Poly1305.felem -> block: Hacl.Streaming.Poly1305.block
-> Spec.Poly1305.felem | [] | Hacl.Streaming.Poly1305.update' | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | r: Spec.Poly1305.felem -> acc: Spec.Poly1305.felem -> block: Hacl.Streaming.Poly1305.block
-> Spec.Poly1305.felem | {
"end_col": 69,
"end_line": 126,
"start_col": 2,
"start_line": 126
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let poly1305_key = I.stateful_buffer uint8 32ul (Lib.IntTypes.u8 0) unit | let poly1305_key = | false | null | false | I.stateful_buffer uint8 32ul (Lib.IntTypes.u8 0) unit | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Hacl.Streaming.Interface.stateful_buffer",
"Hacl.Streaming.Poly1305.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.u8",
"Prims.unit"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 poly1305_key : Hacl.Streaming.Interface.stateful Prims.unit | [] | Hacl.Streaming.Poly1305.poly1305_key | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Streaming.Interface.stateful Prims.unit | {
"end_col": 72,
"end_line": 48,
"start_col": 19,
"start_line": 48
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update_ (acc, r) (block: block) =
Spec.Poly1305.poly1305_update1 r Spec.Poly1305.size_block block acc, r | let update_ (acc, r) (block: block) = | false | null | false | Spec.Poly1305.poly1305_update1 r Spec.Poly1305.size_block block acc, r | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"FStar.Pervasives.Native.tuple2",
"Spec.Poly1305.felem",
"Hacl.Streaming.Poly1305.block",
"FStar.Pervasives.Native.Mktuple2",
"Spec.Poly1305.poly1305_update1",
"Spec.Poly1305.size_block"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_ : _: (Spec.Poly1305.felem * Spec.Poly1305.felem) -> block: Hacl.Streaming.Poly1305.block
-> Spec.Poly1305.felem * Spec.Poly1305.felem | [] | Hacl.Streaming.Poly1305.update_ | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: (Spec.Poly1305.felem * Spec.Poly1305.felem) -> block: Hacl.Streaming.Poly1305.block
-> Spec.Poly1305.felem * Spec.Poly1305.felem | {
"end_col": 72,
"end_line": 117,
"start_col": 2,
"start_line": 117
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let block = (block: S.seq uint8 { S.length block = Spec.Poly1305.size_block }) | let block = | false | null | false | (block: S.seq uint8 {S.length block = Spec.Poly1305.size_block}) | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.Seq.Base.length",
"Spec.Poly1305.size_block"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 block : Type0 | [] | Hacl.Streaming.Poly1305.block | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 78,
"end_line": 113,
"start_col": 12,
"start_line": 113
} | |
Prims.Pure | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update_multi =
Lib.UpdateMulti.mk_update_multi Spec.Poly1305.size_block update_ | let update_multi = | false | null | false | Lib.UpdateMulti.mk_update_multi Spec.Poly1305.size_block update_ | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
""
] | [
"Lib.UpdateMulti.mk_update_multi",
"FStar.Pervasives.Native.tuple2",
"Spec.Poly1305.felem",
"Spec.Poly1305.size_block",
"Hacl.Streaming.Poly1305.update_"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_multi : acc: (Spec.Poly1305.felem * Spec.Poly1305.felem) -> blocks: FStar.Seq.Base.seq Lib.UpdateMulti.uint8
-> Prims.Pure (Spec.Poly1305.felem * Spec.Poly1305.felem) | [] | Hacl.Streaming.Poly1305.update_multi | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | acc: (Spec.Poly1305.felem * Spec.Poly1305.felem) -> blocks: FStar.Seq.Base.seq Lib.UpdateMulti.uint8
-> Prims.Pure (Spec.Poly1305.felem * Spec.Poly1305.felem) | {
"end_col": 66,
"end_line": 130,
"start_col": 2,
"start_line": 130
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update__ (acc, r) (input: S.seq uint8{S.length input <= Spec.Poly1305.size_block}) =
Spec.Poly1305.poly1305_update1 r (S.length input) input acc, r | let update__ (acc, r) (input: S.seq uint8 {S.length input <= Spec.Poly1305.size_block}) = | false | null | false | Spec.Poly1305.poly1305_update1 r (S.length input) input acc, r | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"FStar.Pervasives.Native.tuple2",
"Spec.Poly1305.felem",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Spec.Poly1305.size_block",
"FStar.Pervasives.Native.Mktuple2",
"Spec.Poly1305.poly1305_update1"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update__ : _: (Spec.Poly1305.felem * Spec.Poly1305.felem) ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Spec.Poly1305.size_block}
-> Spec.Poly1305.felem * Spec.Poly1305.felem | [] | Hacl.Streaming.Poly1305.update__ | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
_: (Spec.Poly1305.felem * Spec.Poly1305.felem) ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Spec.Poly1305.size_block}
-> Spec.Poly1305.felem * Spec.Poly1305.felem | {
"end_col": 64,
"end_line": 122,
"start_col": 2,
"start_line": 122
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update_last' r acc (input: S.seq uint8 { S.length input <= Spec.Poly1305.size_block }) =
if S.length input = 0 then
acc
else
Spec.Poly1305.poly1305_update1 r (S.length input) input acc | let update_last' r acc (input: S.seq uint8 {S.length input <= Spec.Poly1305.size_block}) = | false | null | false | if S.length input = 0 then acc else Spec.Poly1305.poly1305_update1 r (S.length input) input acc | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Spec.Poly1305.felem",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Spec.Poly1305.size_block",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Spec.Poly1305.poly1305_update1"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_last' : r: Spec.Poly1305.felem ->
acc: Spec.Poly1305.felem ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Spec.Poly1305.size_block}
-> Spec.Poly1305.felem | [] | Hacl.Streaming.Poly1305.update_last' | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
r: Spec.Poly1305.felem ->
acc: Spec.Poly1305.felem ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Spec.Poly1305.size_block}
-> Spec.Poly1305.felem | {
"end_col": 63,
"end_line": 166,
"start_col": 2,
"start_line": 163
} | |
Prims.Tot | val num_lanes (fs: field_spec) : F32xN.lanes | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let num_lanes (fs : field_spec) : F32xN.lanes =
match fs with
| M32 -> 1
| M128 -> 2
| M256 -> 4 | val num_lanes (fs: field_spec) : F32xN.lanes
let num_lanes (fs: field_spec) : F32xN.lanes = | false | null | false | match fs with
| M32 -> 1
| M128 -> 2
| M256 -> 4 | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Hacl.Impl.Poly1305.Fields.field_spec",
"Hacl.Spec.Poly1305.Field32xN.lanes"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 num_lanes (fs: field_spec) : F32xN.lanes | [] | Hacl.Streaming.Poly1305.num_lanes | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | fs: Hacl.Impl.Poly1305.Fields.field_spec -> Hacl.Spec.Poly1305.Field32xN.lanes | {
"end_col": 13,
"end_line": 59,
"start_col": 2,
"start_line": 56
} |
Prims.Pure | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update_multi' r =
Lib.UpdateMulti.mk_update_multi Spec.Poly1305.size_block (update' r) | let update_multi' r = | false | null | false | Lib.UpdateMulti.mk_update_multi Spec.Poly1305.size_block (update' r) | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
""
] | [
"Spec.Poly1305.felem",
"Lib.UpdateMulti.mk_update_multi",
"Spec.Poly1305.size_block",
"Hacl.Streaming.Poly1305.update'",
"FStar.Seq.Base.seq",
"Lib.UpdateMulti.uint8",
"FStar.Seq.Base.length",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.l_True"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_multi' : r: Spec.Poly1305.felem ->
acc: Spec.Poly1305.felem ->
blocks: FStar.Seq.Base.seq Lib.UpdateMulti.uint8
-> Prims.Pure Spec.Poly1305.felem | [] | Hacl.Streaming.Poly1305.update_multi' | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
r: Spec.Poly1305.felem ->
acc: Spec.Poly1305.felem ->
blocks: FStar.Seq.Base.seq Lib.UpdateMulti.uint8
-> Prims.Pure Spec.Poly1305.felem | {
"end_col": 70,
"end_line": 134,
"start_col": 2,
"start_line": 134
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update_last (acc, r) (input: S.seq uint8 { S.length input <= Spec.Poly1305.size_block }) =
if S.length input = 0 then
acc, r
else
Spec.Poly1305.poly1305_update1 r (S.length input) input acc, r | let update_last (acc, r) (input: S.seq uint8 {S.length input <= Spec.Poly1305.size_block}) = | false | null | false | if S.length input = 0
then acc, r
else Spec.Poly1305.poly1305_update1 r (S.length input) input acc, r | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"FStar.Pervasives.Native.tuple2",
"Spec.Poly1305.felem",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Spec.Poly1305.size_block",
"Prims.op_Equality",
"Prims.int",
"FStar.Pervasives.Native.Mktuple2",
"Prims.bool",
"S... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_last : _: (Spec.Poly1305.felem * Spec.Poly1305.felem) ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Spec.Poly1305.size_block}
-> Spec.Poly1305.felem * Spec.Poly1305.felem | [] | Hacl.Streaming.Poly1305.update_last | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
_: (Spec.Poly1305.felem * Spec.Poly1305.felem) ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Spec.Poly1305.size_block}
-> Spec.Poly1305.felem * Spec.Poly1305.felem | {
"end_col": 66,
"end_line": 159,
"start_col": 2,
"start_line": 156
} | |
Prims.Tot | val as_lib_k (x: B.buffer uint8 {B.length x = 32}) : Lib.Buffer.lbuffer uint8 32ul | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let as_lib_k (x: B.buffer uint8 { B.length x = 32 }): Lib.Buffer.lbuffer uint8 32ul =
x | val as_lib_k (x: B.buffer uint8 {B.length x = 32}) : Lib.Buffer.lbuffer uint8 32ul
let as_lib_k (x: B.buffer uint8 {B.length x = 32}) : Lib.Buffer.lbuffer uint8 32ul = | false | null | false | x | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"LowStar.Buffer.buffer",
"Hacl.Streaming.Poly1305.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"LowStar.Monotonic.Buffer.length",
"LowStar.Buffer.trivial_preorder",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t"
] | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 as_lib_k (x: B.buffer uint8 {B.length x = 32}) : Lib.Buffer.lbuffer uint8 32ul | [] | Hacl.Streaming.Poly1305.as_lib_k | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: LowStar.Buffer.buffer Hacl.Streaming.Poly1305.uint8 {LowStar.Monotonic.Buffer.length x = 32}
-> Lib.Buffer.lbuffer Hacl.Streaming.Poly1305.uint8 32ul | {
"end_col": 3,
"end_line": 52,
"start_col": 2,
"start_line": 52
} |
FStar.Pervasives.Lemma | val update_last_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input <= Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let update_last_is_update input acc r =
if S.length input = Spec.Poly1305.size_block
then update_last_block_is_update input acc r
else update_last_not_block_is_update input acc r | val update_last_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input <= Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_last_is_update input acc r = | false | null | true | if S.length input = Spec.Poly1305.size_block
then update_last_block_is_update input acc r
else update_last_not_block_is_update input acc r | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Spec.Poly1305.felem",
"Prims.op_Equality",
"Prims.nat",
"FStar.Seq.Base.length",
"Spec.Poly1305.size_block",
"Hacl.Streaming.Poly1305.update_last_block_is_update",
"Prims.bool",
"Hacl.Streaming.Poly1305.update_last_not_block_is_update",
"Pr... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_last_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input <= Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [] | Hacl.Streaming.Poly1305.update_last_is_update | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 ->
acc: Spec.Poly1305.felem ->
r: Spec.Poly1305.felem
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input <= Spec.Poly1305.size_block)
(ensures
Hacl.Streaming.Poly1305.update_last (acc, r) input ==
FStar.Pervasives.... | {
"end_col": 50,
"end_line": 282,
"start_col": 2,
"start_line": 280
} |
Prims.Tot | val as_lib (#fs: field_spec) (x: t fs) : P.poly1305_ctx fs | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let as_lib (#fs : field_spec) (x: t fs): P.poly1305_ctx fs =
assert (Lib.IntTypes.(v (add #U32 (nlimb fs) (precomplen fs))) == 25);
x | val as_lib (#fs: field_spec) (x: t fs) : P.poly1305_ctx fs
let as_lib (#fs: field_spec) (x: t fs) : P.poly1305_ctx fs = | false | null | false | assert (Lib.IntTypes.(v (add #U32 (nlimb fs) (precomplen fs))) == 25);
x | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Hacl.Impl.Poly1305.Fields.field_spec",
"Hacl.Streaming.Poly1305.t",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.add",
"Hacl.Impl.Poly1305.Fields.nlimb",
"Hacl.Impl.Poly1305.Fields.precomplen",
"Hacl.Impl.Po... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 as_lib (#fs: field_spec) (x: t fs) : P.poly1305_ctx fs | [] | Hacl.Streaming.Poly1305.as_lib | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: Hacl.Streaming.Poly1305.t fs -> Hacl.Impl.Poly1305.poly1305_ctx fs | {
"end_col": 3,
"end_line": 45,
"start_col": 2,
"start_line": 44
} |
FStar.Pervasives.Lemma | val with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8)
: Lemma (requires S.length blocks % Spec.Poly1305.size_block = 0)
(ensures update_multi (acc, r) blocks == (update_multi' r acc blocks, r))
(decreases (S.length blocks)) | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let rec with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8):
Lemma
(requires
S.length blocks % Spec.Poly1305.size_block = 0)
(ensures
update_multi (acc, r) blocks == (update_multi' r acc blocks, r))
(decreases (S.length blocks))
=
if S.length blocks = 0 then
()
else
... | val with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8)
: Lemma (requires S.length blocks % Spec.Poly1305.size_block = 0)
(ensures update_multi (acc, r) blocks == (update_multi' r acc blocks, r))
(decreases (S.length blocks))
let rec with_or_without_r (acc r: Spec.Poly1305.felem) (block... | false | null | true | if S.length blocks = 0
then ()
else
let block, rem = Lib.UpdateMulti.split_block Spec.Poly1305.size_block blocks 1 in
let acc = update' r acc block in
with_or_without_r acc r rem | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"lemma",
""
] | [
"Spec.Poly1305.felem",
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"Lib.UpdateMulti.uint8",
"Hacl.Streaming.Poly1305.with_or_without_r",
"Hacl.Streaming.Poly1305.update'",
"Prims.unit",
"FStar.Pervasives.Native... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8)
: Lemma (requires S.length blocks % Spec.Poly1305.size_block = 0)
(ensures update_multi (acc, r) blocks == (update_multi' r acc blocks, r))
(decreases (S.length blocks)) | [
"recursion"
] | Hacl.Streaming.Poly1305.with_or_without_r | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
acc: Spec.Poly1305.felem ->
r: Spec.Poly1305.felem ->
blocks: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length blocks % Spec.Poly1305.size_block = 0)
(ensures
Hacl.Streaming.Poly1305.update_multi (acc, r) blocks ==
FStar.Perv... | {
"end_col": 31,
"end_line": 151,
"start_col": 2,
"start_line": 146
} |
FStar.Pervasives.Lemma | val update_last_block_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input = Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let update_last_block_is_update input acc r =
let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
assert(input `S.equal` S.append input S.empty);
let acc1 = update' r acc input in
let acc1' = update_multi' r acc input in
// SH: fun fact: ... | val update_last_block_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input = Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_last_block_is_update input acc r = | false | null | true | let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
assert (input `S.equal` (S.append input S.empty));
let acc1 = update' r acc input in
let acc1' = update_multi' r acc input in
Lib.Sequence.Lemmas.repeat_blocks_extensionality block_length
input
(r... | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Spec.Poly1305.felem",
"FStar.Calc.calc_finish",
"FStar.Pervasives.Native.tuple2",
"Prims.eq2",
"Hacl.Streaming.Poly1305.update_last",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Sequence.repeat_blocks",
"Lib.UpdateMulti.Lemmas.uint8",
"Lib.Upd... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_last_block_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input = Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [] | Hacl.Streaming.Poly1305.update_last_block_is_update | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 ->
acc: Spec.Poly1305.felem ->
r: Spec.Poly1305.felem
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input = Spec.Poly1305.size_block)
(ensures
Hacl.Streaming.Poly1305.update_last (acc, r) input ==
FStar.Pervasives.N... | {
"end_col": 3,
"end_line": 268,
"start_col": 2,
"start_line": 224
} |
Prims.Tot | val stateful_poly1305_ctx (fs: field_spec) : I.stateful unit | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let stateful_poly1305_ctx (fs : field_spec) : I.stateful unit =
I.Stateful
(fun () -> t fs)
(fun #_ _ s -> B.loc_addr_of_buffer (as_raw s))
(fun #_ _ s -> B.freeable (as_raw s))
(fun #_ h s -> B.live h (as_raw s) /\ P.state_inv_t h (as_lib s))
(fun () -> Spec.Poly1305.felem & Spec.Poly1305.felem)
... | val stateful_poly1305_ctx (fs: field_spec) : I.stateful unit
let stateful_poly1305_ctx (fs: field_spec) : I.stateful unit = | false | null | false | I.Stateful (fun () -> t fs)
(fun #_ _ s -> B.loc_addr_of_buffer (as_raw s))
(fun #_ _ s -> B.freeable (as_raw s))
(fun #_ h s -> B.live h (as_raw s) /\ P.state_inv_t h (as_lib s))
(fun () -> Spec.Poly1305.felem & Spec.Poly1305.felem)
(fun () h s -> P.as_get_acc h (as_lib s), P.as_get_r h (as_lib s))
(fun #_... | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Hacl.Impl.Poly1305.Fields.field_spec",
"Hacl.Streaming.Interface.Stateful",
"Prims.unit",
"Hacl.Streaming.Poly1305.t",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Monotonic.Buffer.loc_addr_of_buffer",
"Hacl.Impl.Poly1305.Fields.limb",
"LowStar.Buffer.trivial_preorder",
"Hacl.Streaming.Poly1305.as_ra... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 stateful_poly1305_ctx (fs: field_spec) : I.stateful unit | [] | Hacl.Streaming.Poly1305.stateful_poly1305_ctx | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | fs: Hacl.Impl.Poly1305.Fields.field_spec -> Hacl.Streaming.Interface.stateful Prims.unit | {
"end_col": 56,
"end_line": 95,
"start_col": 2,
"start_line": 63
} |
FStar.Pervasives.Lemma | val update_multi_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input % Spec.Poly1305.size_block = 0))
(ensures (update_multi (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let update_multi_is_update input acc r =
let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
calc (==) {
update_multi (acc, r) input;
(==) { with_or_without_r acc r input }
update_multi' r acc input, r;
(==) { }
update_last' r (... | val update_multi_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input % Spec.Poly1305.size_block = 0))
(ensures (update_multi (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_multi_is_update input acc r = | false | null | true | let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
calc ( == ) {
update_multi (acc, r) input;
( == ) { with_or_without_r acc r input }
update_multi' r acc input, r;
( == ) { () }
update_last' r (update_multi' r acc input) S.empty, r;
( == ... | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Spec.Poly1305.felem",
"FStar.Calc.calc_finish",
"FStar.Pervasives.Native.tuple2",
"Prims.eq2",
"Hacl.Streaming.Poly1305.update_multi",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Sequence.repeat_blocks",
"Lib.UpdateMulti.Lemmas.uint8",
"Spec.P... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_multi_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input % Spec.Poly1305.size_block = 0))
(ensures (update_multi (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [] | Hacl.Streaming.Poly1305.update_multi_is_update | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 ->
acc: Spec.Poly1305.felem ->
r: Spec.Poly1305.felem
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input % Spec.Poly1305.size_block = 0)
(ensures
Hacl.Streaming.Poly1305.update_multi (acc, r) input ==
FStar.Pervasi... | {
"end_col": 3,
"end_line": 318,
"start_col": 2,
"start_line": 293
} |
FStar.Pervasives.Lemma | val poly_is_incremental:
key: S.seq uint8 { S.length key = 32 } ->
input:S.seq uint8 { S.length input <= pow2 32 - 1 } ->
Lemma (ensures (
let hash = Lib.UpdateMulti.update_full Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in
finish_ key hash `S.equal` spec key inpu... | [
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let poly_is_incremental key input =
let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
let n = S.length input / block_length in
let bs, l = S.split input (n * block_length) in
FStar.Math.Lemmas.multiple_modulo_lemma n block_length;
let a... | val poly_is_incremental:
key: S.seq uint8 { S.length key = 32 } ->
input:S.seq uint8 { S.length input <= pow2 32 - 1 } ->
Lemma (ensures (
let hash = Lib.UpdateMulti.update_full Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in
finish_ key hash `S.equal` spec key inpu... | false | null | true | let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
let n = S.length input / block_length in
let bs, l = S.split input (n * block_length) in
FStar.Math.Lemmas.multiple_modulo_lemma n block_length;
let acc, r = Spec.Poly1305.poly1305_init key in
calc (S... | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.op_LessThanOrEqual",
"Prims.op_Subtraction",
"Prims.pow2",
"Spec.Poly1305.felem",
"FStar.Calc.calc_finish",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.I... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 poly_is_incremental:
key: S.seq uint8 { S.length key = 32 } ->
input:S.seq uint8 { S.length input <= pow2 32 - 1 } ->
Lemma (ensures (
let hash = Lib.UpdateMulti.update_full Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in
finish_ key hash `S.equal` spec key inpu... | [] | Hacl.Streaming.Poly1305.poly_is_incremental | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
key: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length key = 32} ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Prims.pow2 32 - 1}
-> FStar.Pervasives.Lemma
(ensures
(let hash =
Lib.UpdateMulti.update_full Spe... | {
"end_col": 3,
"end_line": 356,
"start_col": 2,
"start_line": 328
} |
FStar.Pervasives.Lemma | val update_last_not_block_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input < Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full... | false | let update_last_not_block_is_update input acc r =
let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
calc (==) {
update_last (acc, r) input;
(==) { }
update_last' r acc input, r;
(==) { Lib.UpdateMulti.update_multi_zero Spec.Poly13... | val update_last_not_block_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input < Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_last_not_block_is_update input ac... | false | null | true | let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
calc ( == ) {
update_last (acc, r) input;
( == ) { () }
update_last' r acc input, r;
( == ) { Lib.UpdateMulti.update_multi_zero Spec.Poly1305.size_block (update' r) acc }
update_last' r (upd... | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Spec.Poly1305.felem",
"FStar.Calc.calc_finish",
"FStar.Pervasives.Native.tuple2",
"Prims.eq2",
"Hacl.Streaming.Poly1305.update_last",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Sequence.repeat_blocks",
"Lib.UpdateMulti.Lemmas.uint8",
"Spec.Po... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 update_last_not_block_is_update
(input: S.seq uint8)
(acc: Spec.Poly1305.felem)
(r: Spec.Poly1305.felem):
Lemma
(requires (S.length input < Spec.Poly1305.size_block))
(ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r))) | [] | Hacl.Streaming.Poly1305.update_last_not_block_is_update | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 ->
acc: Spec.Poly1305.felem ->
r: Spec.Poly1305.felem
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input < Spec.Poly1305.size_block)
(ensures
Hacl.Streaming.Poly1305.update_last (acc, r) input ==
FStar.Pervasives.N... | {
"end_col": 3,
"end_line": 210,
"start_col": 2,
"start_line": 185
} |
FStar.Pervasives.Lemma | val poly_is_incremental_lazy:
key: S.seq uint8 { S.length key = 32 } ->
input:S.seq uint8 { S.length input <= pow2 32 - 1 } ->
Lemma (ensures (
let hash = Lib.UpdateMulti.update_full_lazy Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in
finish_ key hash `S.equal` spe... | [
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let poly_is_incremental_lazy key input =
let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
let n = S.length input / block_length in
let rem = S.length input % block_length in
let n', rem' = if rem = 0 && n > 0 then n - 1, block_length els... | val poly_is_incremental_lazy:
key: S.seq uint8 { S.length key = 32 } ->
input:S.seq uint8 { S.length input <= pow2 32 - 1 } ->
Lemma (ensures (
let hash = Lib.UpdateMulti.update_full_lazy Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in
finish_ key hash `S.equal` spe... | false | null | true | let open Lib.UpdateMulti.Lemmas in
let block_length = Spec.Poly1305.size_block in
assert_norm (block_length < pow2 32);
let n = S.length input / block_length in
let rem = S.length input % block_length in
let n', rem' = if rem = 0 && n > 0 then n - 1, block_length else n, rem in
let bs, l = S.split input (n' * block_len... | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Hacl.Streaming.Poly1305.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.op_LessThanOrEqual",
"Prims.op_Subtraction",
"Prims.pow2",
"Spec.Poly1305.felem",
"Prims.op_AmpAmp",
"Prims.op_GreaterThan",
"Hacl.Streaming.Poly1305.poly_is_... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | false | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val poly_is_incremental_lazy:
key: S.seq uint8 { S.length key = 32 } ->
input:S.seq uint8 { S.length input <= pow2 32 - 1 } ->
Lemma (ensures (
let hash = Lib.UpdateMulti.update_full_lazy Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in
finish_ key hash `S.equal` spe... | [] | Hacl.Streaming.Poly1305.poly_is_incremental_lazy | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
key: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length key = 32} ->
input:
FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8
{FStar.Seq.Base.length input <= Prims.pow2 32 - 1}
-> FStar.Pervasives.Lemma
(ensures
(let hash =
Lib.UpdateMulti.update_full_laz... | {
"end_col": 36,
"end_line": 396,
"start_col": 2,
"start_line": 369
} |
Prims.Tot | val poly1305 (fs: field_spec) : I.block unit | [
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let poly1305 (fs : field_spec) : I.block unit =
I.Block
I.Runtime
(stateful_poly1305_ctx fs) (* state *)
poly1305_key (* key *)
unit
(fun () -> 0xffffffffUL) (* max_input_len *)
(fun () () -> 16) (* output_len *)
(fun () -> 16ul) (* block_len *)
(* blocks_state_len *)
(fun () ->... | val poly1305 (fs: field_spec) : I.block unit
let poly1305 (fs: field_spec) : I.block unit = | false | null | false | I.Block I.Runtime
(stateful_poly1305_ctx fs)
poly1305_key
unit
(fun () -> 0xffffffffuL)
(fun () () -> 16)
(fun () -> 16ul)
(fun () ->
match fs with
| M32 -> 16ul
| M128 -> 32ul
| M256 -> 64ul)
(fun () -> 0ul)
(fun () _k -> S.empty)
(fun () -> Spec.Poly1305.poly1305_init)
(f... | {
"checked_file": "Hacl.Streaming.Poly1305.fst.checked",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.UpdateMulti.Lemmas.fsti.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.Lemmas.fsti.chec... | [
"total"
] | [
"Hacl.Impl.Poly1305.Fields.field_spec",
"Hacl.Streaming.Interface.Block",
"Prims.unit",
"Hacl.Streaming.Interface.Runtime",
"Hacl.Streaming.Poly1305.stateful_poly1305_ctx",
"Hacl.Streaming.Poly1305.poly1305_key",
"FStar.UInt64.__uint_to_t",
"FStar.UInt64.t",
"Prims.b2t",
"FStar.Integers.op_Greater... | [] | module Hacl.Streaming.Poly1305
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost
module S = FStar.Seq
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module F = Hacl.Streaming.Functor
module I = Hacl.Streaming.Interface
module P = Hacl.Impl.Poly1305
module F32xN = Hacl.Spec.Poly1305.Fie... | false | true | Hacl.Streaming.Poly1305.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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 poly1305 (fs: field_spec) : I.block unit | [] | Hacl.Streaming.Poly1305.poly1305 | {
"file_name": "code/streaming/Hacl.Streaming.Poly1305.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | fs: Hacl.Impl.Poly1305.Fields.field_spec -> Hacl.Streaming.Interface.block Prims.unit | {
"end_col": 5,
"end_line": 505,
"start_col": 2,
"start_line": 405
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "EverParse3d",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | false | let pos_width = normalize_term (64 - error_width) | let pos_width = | false | null | false | normalize_term (64 - error_width) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"Prims.int",
"Prims.op_Subtraction",
"EverParse3d.ErrorCode.error_width"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val pos_width : Prims.int | [] | EverParse3d.ErrorCode.pos_width | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | Prims.int | {
"end_col": 49,
"end_line": 12,
"start_col": 16,
"start_line": 12
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "EverParse3d",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | false | let error_width = 4 | let error_width = | false | null | false | 4 | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val error_width : Prims.int | [] | EverParse3d.ErrorCode.error_width | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | Prims.int | {
"end_col": 19,
"end_line": 8,
"start_col": 18,
"start_line": 8
} | |
Prims.Tot | val is_success (positionOrError: U64.t) : Tot bool | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "EverParse3d",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | false | let is_success (positionOrError: U64.t) : Tot bool = positionOrError `U64.lte` validator_max_length | val is_success (positionOrError: U64.t) : Tot bool
let is_success (positionOrError: U64.t) : Tot bool = | false | null | false | positionOrError `U64.lte` validator_max_length | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"FStar.UInt64.lte",
"EverParse3d.ErrorCode.validator_max_length",
"Prims.bool"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val is_success (positionOrError: U64.t) : Tot bool | [] | EverParse3d.ErrorCode.is_success | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | positionOrError: FStar.UInt64.t -> Prims.bool | {
"end_col": 99,
"end_line": 24,
"start_col": 53,
"start_line": 24
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "EverParse3d",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | false | let pos_t = (pos: U64.t {is_success pos}) | let pos_t = | false | null | false | (pos: U64.t{is_success pos}) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"Prims.b2t",
"EverParse3d.ErrorCode.is_success"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val pos_t : Type0 | [] | EverParse3d.ErrorCode.pos_t | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | Type0 | {
"end_col": 41,
"end_line": 32,
"start_col": 12,
"start_line": 32
} | |
Prims.Tot | val is_error (positionOrError: U64.t) : Tot bool | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "EverParse3d",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | false | let is_error (positionOrError: U64.t) : Tot bool = positionOrError `U64.gt` validator_max_length | val is_error (positionOrError: U64.t) : Tot bool
let is_error (positionOrError: U64.t) : Tot bool = | false | null | false | positionOrError `U64.gt` validator_max_length | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"FStar.UInt64.gt",
"EverParse3d.ErrorCode.validator_max_length",
"Prims.bool"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val is_error (positionOrError: U64.t) : Tot bool | [] | EverParse3d.ErrorCode.is_error | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | positionOrError: FStar.UInt64.t -> Prims.bool | {
"end_col": 96,
"end_line": 22,
"start_col": 51,
"start_line": 22
} |
Prims.Tot | val validator_error_generic:validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let validator_error_generic : validator_error = normalize_term (set_validator_error_kind 0uL 1uL) | val validator_error_generic:validator_error
let validator_error_generic:validator_error = | false | null | false | normalize_term (set_validator_error_kind 0uL 1uL) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.set_validator_error_kind",
"FStar.UInt64.__uint_to_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_error_generic:validator_error | [] | EverParse3d.ErrorCode.validator_error_generic | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | EverParse3d.ErrorCode.validator_error | {
"end_col": 97,
"end_line": 120,
"start_col": 48,
"start_line": 120
} |
Prims.Tot | val validator_error_not_enough_data:validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let validator_error_not_enough_data : validator_error = normalize_term (set_validator_error_kind 0uL 2uL) | val validator_error_not_enough_data:validator_error
let validator_error_not_enough_data:validator_error = | false | null | false | normalize_term (set_validator_error_kind 0uL 2uL) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.set_validator_error_kind",
"FStar.UInt64.__uint_to_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_error_not_enough_data:validator_error | [] | EverParse3d.ErrorCode.validator_error_not_enough_data | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | EverParse3d.ErrorCode.validator_error | {
"end_col": 105,
"end_line": 123,
"start_col": 56,
"start_line": 123
} |
Prims.Tot | val validator_error_impossible:validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let validator_error_impossible : validator_error = normalize_term (set_validator_error_kind 0uL 3uL) | val validator_error_impossible:validator_error
let validator_error_impossible:validator_error = | false | null | false | normalize_term (set_validator_error_kind 0uL 3uL) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.set_validator_error_kind",
"FStar.UInt64.__uint_to_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_error_impossible:validator_error | [] | EverParse3d.ErrorCode.validator_error_impossible | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | EverParse3d.ErrorCode.validator_error | {
"end_col": 100,
"end_line": 126,
"start_col": 51,
"start_line": 126
} |
Prims.Tot | val validator_error_list_size_not_multiple:validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let validator_error_list_size_not_multiple : validator_error = normalize_term (set_validator_error_kind 0uL 4uL) | val validator_error_list_size_not_multiple:validator_error
let validator_error_list_size_not_multiple:validator_error = | false | null | false | normalize_term (set_validator_error_kind 0uL 4uL) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.set_validator_error_kind",
"FStar.UInt64.__uint_to_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_error_list_size_not_multiple:validator_error | [] | EverParse3d.ErrorCode.validator_error_list_size_not_multiple | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | EverParse3d.ErrorCode.validator_error | {
"end_col": 112,
"end_line": 129,
"start_col": 63,
"start_line": 129
} |
Prims.Tot | val validator_error_action_failed:validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let validator_error_action_failed : validator_error = normalize_term (set_validator_error_kind 0uL 5uL) | val validator_error_action_failed:validator_error
let validator_error_action_failed:validator_error = | false | null | false | normalize_term (set_validator_error_kind 0uL 5uL) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.set_validator_error_kind",
"FStar.UInt64.__uint_to_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_error_action_failed:validator_error | [] | EverParse3d.ErrorCode.validator_error_action_failed | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | EverParse3d.ErrorCode.validator_error | {
"end_col": 103,
"end_line": 132,
"start_col": 54,
"start_line": 132
} |
Prims.Tot | val validator_error_constraint_failed:validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let validator_error_constraint_failed : validator_error = normalize_term (set_validator_error_kind 0uL 6uL) | val validator_error_constraint_failed:validator_error
let validator_error_constraint_failed:validator_error = | false | null | false | normalize_term (set_validator_error_kind 0uL 6uL) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.set_validator_error_kind",
"FStar.UInt64.__uint_to_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_error_constraint_failed:validator_error | [] | EverParse3d.ErrorCode.validator_error_constraint_failed | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | EverParse3d.ErrorCode.validator_error | {
"end_col": 107,
"end_line": 135,
"start_col": 58,
"start_line": 135
} |
Prims.Tot | val validator_error_unexpected_padding:validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let validator_error_unexpected_padding : validator_error = normalize_term (set_validator_error_kind 0uL 7uL) | val validator_error_unexpected_padding:validator_error
let validator_error_unexpected_padding:validator_error = | false | null | false | normalize_term (set_validator_error_kind 0uL 7uL) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.set_validator_error_kind",
"FStar.UInt64.__uint_to_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_error_unexpected_padding:validator_error | [] | EverParse3d.ErrorCode.validator_error_unexpected_padding | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | EverParse3d.ErrorCode.validator_error | {
"end_col": 108,
"end_line": 138,
"start_col": 59,
"start_line": 138
} |
Prims.Tot | val check_constraint_ok (ok: bool) (position: pos_t) : Tot U64.t | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let check_constraint_ok (ok:bool) (position: pos_t): Tot U64.t =
if ok
then position
else set_validator_error_pos validator_error_constraint_failed position | val check_constraint_ok (ok: bool) (position: pos_t) : Tot U64.t
let check_constraint_ok (ok: bool) (position: pos_t) : Tot U64.t = | false | null | false | if ok then position else set_validator_error_pos validator_error_constraint_failed position | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"Prims.bool",
"EverParse3d.ErrorCode.pos_t",
"EverParse3d.ErrorCode.set_validator_error_pos",
"EverParse3d.ErrorCode.validator_error_constraint_failed",
"FStar.UInt64.t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val check_constraint_ok (ok: bool) (position: pos_t) : Tot U64.t | [] | EverParse3d.ErrorCode.check_constraint_ok | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | ok: Prims.bool -> position: EverParse3d.ErrorCode.pos_t -> FStar.UInt64.t | {
"end_col": 77,
"end_line": 154,
"start_col": 6,
"start_line": 152
} |
Prims.Tot | val error_reason_of_result (code: U64.t) : string | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let error_reason_of_result (code:U64.t) : string =
match (get_validator_error_kind code) with
| 1uL -> "generic error"
| 2uL -> "not enough data"
| 3uL -> "impossible"
| 4uL -> "list size not multiple of element size"
| 5uL -> "action failed"
| 6uL -> "constraint failed"
| 7uL -> "unexpected padding"
... | val error_reason_of_result (code: U64.t) : string
let error_reason_of_result (code: U64.t) : string = | false | null | false | match (get_validator_error_kind code) with
| 1uL -> "generic error"
| 2uL -> "not enough data"
| 3uL -> "impossible"
| 4uL -> "list size not multiple of element size"
| 5uL -> "action failed"
| 6uL -> "constraint failed"
| 7uL -> "unexpected padding"
| _ -> "unspecified" | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"EverParse3d.ErrorCode.get_validator_error_kind",
"Prims.string"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val error_reason_of_result (code: U64.t) : string | [] | EverParse3d.ErrorCode.error_reason_of_result | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | code: FStar.UInt64.t -> Prims.string | {
"end_col": 22,
"end_line": 149,
"start_col": 2,
"start_line": 141
} |
Prims.Tot | val get_validator_error_pos (x: U64.t) : Tot pos_t | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let get_validator_error_pos (x: U64.t) : Tot pos_t =
(BF.uint64.BF.get_bitfield x 0 pos_width) | val get_validator_error_pos (x: U64.t) : Tot pos_t
let get_validator_error_pos (x: U64.t) : Tot pos_t = | false | null | false | (BF.uint64.BF.get_bitfield x 0 pos_width) | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"LowParse.BitFields.__proj__Mkuint_t__item__get_bitfield",
"LowParse.BitFields.uint64",
"EverParse3d.ErrorCode.pos_width",
"EverParse3d.ErrorCode.pos_t"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val get_validator_error_pos (x: U64.t) : Tot pos_t | [] | EverParse3d.ErrorCode.get_validator_error_pos | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | x: FStar.UInt64.t -> EverParse3d.ErrorCode.pos_t | {
"end_col": 43,
"end_line": 91,
"start_col": 2,
"start_line": 91
} |
FStar.Pervasives.Lemma | val get_validator_error_pos_eq_pos (x: pos_t)
: Lemma (get_validator_error_pos x == x) [SMTPat (get_validator_error_pos x)] | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let get_validator_error_pos_eq_pos (x: pos_t) : Lemma
(get_validator_error_pos x == x)
[SMTPat (get_validator_error_pos x)]
= BF.get_bitfield_size pos_width 64 (U64.v x) 0 pos_width;
BF.get_bitfield_full #pos_width (U64.v x);
BF.lt_pow2_get_bitfield_hi #64 (U64.v x) (64 - error_width);
assert (BF.get_bitfield... | val get_validator_error_pos_eq_pos (x: pos_t)
: Lemma (get_validator_error_pos x == x) [SMTPat (get_validator_error_pos x)]
let get_validator_error_pos_eq_pos (x: pos_t)
: Lemma (get_validator_error_pos x == x) [SMTPat (get_validator_error_pos x)] = | false | null | true | BF.get_bitfield_size pos_width 64 (U64.v x) 0 pos_width;
BF.get_bitfield_full #pos_width (U64.v x);
BF.lt_pow2_get_bitfield_hi #64 (U64.v x) (64 - error_width);
assert (BF.get_bitfield #64 (U64.v x) pos_width 64 == 0);
BF.get_bitfield_set_bitfield_other #64 (U64.v x) pos_width 64 0 0 pos_width;
BF.get_bitfield_set_bitf... | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"lemma"
] | [
"EverParse3d.ErrorCode.pos_t",
"LowParse.BitFields.get_bitfield_partition_2",
"Prims.op_Subtraction",
"EverParse3d.ErrorCode.error_width",
"FStar.UInt64.v",
"LowParse.BitFields.__proj__Mkuint_t__item__set_bitfield",
"FStar.UInt64.t",
"LowParse.BitFields.uint64",
"EverParse3d.ErrorCode.pos_width",
... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | false | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val get_validator_error_pos_eq_pos (x: pos_t)
: Lemma (get_validator_error_pos x == x) [SMTPat (get_validator_error_pos x)] | [] | EverParse3d.ErrorCode.get_validator_error_pos_eq_pos | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | x: EverParse3d.ErrorCode.pos_t
-> FStar.Pervasives.Lemma (ensures EverParse3d.ErrorCode.get_validator_error_pos x == x)
[SMTPat (EverParse3d.ErrorCode.get_validator_error_pos x)] | {
"end_col": 58,
"end_line": 117,
"start_col": 2,
"start_line": 110
} |
Prims.Tot | val set_validator_error_pos (error: validator_error) (position: pos_t) : Tot validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let set_validator_error_pos (error: validator_error) (position: pos_t) : Tot validator_error =
[@inline_let]
let res =
BF.uint64.BF.set_bitfield error 0 pos_width position
in
[@inline_let]
let _ =
BF.get_bitfield_set_bitfield_other (U64.v error) 0 pos_width (U64.v position) pos_width 64;
assert (B... | val set_validator_error_pos (error: validator_error) (position: pos_t) : Tot validator_error
let set_validator_error_pos (error: validator_error) (position: pos_t) : Tot validator_error = | false | null | false | [@@ inline_let ]let res = BF.uint64.BF.set_bitfield error 0 pos_width position in
[@@ inline_let ]let _ =
BF.get_bitfield_set_bitfield_other (U64.v error) 0 pos_width (U64.v position) pos_width 64;
assert (BF.get_bitfield (U64.v res) pos_width 64 == BF.get_bitfield (U64.v error) pos_width 64);
Classical.move_requ... | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"EverParse3d.ErrorCode.validator_error",
"EverParse3d.ErrorCode.pos_t",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.pow2",
"EverParse3d.ErrorCode.pos_width",
"Prims.op_Addition",
"FStar.UInt64.v",
"EverParse3d.ErrorCode.validator_max_length",
"FStar.Classical... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val set_validator_error_pos (error: validator_error) (position: pos_t) : Tot validator_error | [] | EverParse3d.ErrorCode.set_validator_error_pos | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | error: EverParse3d.ErrorCode.validator_error -> position: EverParse3d.ErrorCode.pos_t
-> EverParse3d.ErrorCode.validator_error | {
"end_col": 5,
"end_line": 86,
"start_col": 2,
"start_line": 74
} |
Prims.Tot | val get_validator_error_kind (error: U64.t)
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < normalize_term (pow2 error_width)}) | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let get_validator_error_kind (error: U64.t) : Tot (code: U64.t { 0 <= U64.v code /\ U64.v code < normalize_term (pow2 error_width) }) =
normalize_term_spec (pow2 error_width);
get_validator_error_field error 0 error_width | val get_validator_error_kind (error: U64.t)
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
let get_validator_error_kind (error: U64.t)
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < normalize_term (pow2 error_width)}) = | false | null | false | normalize_term_spec (pow2 error_width);
get_validator_error_field error 0 error_width | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"EverParse3d.ErrorCode.get_validator_error_field",
"EverParse3d.ErrorCode.error_width",
"Prims.unit",
"FStar.Pervasives.normalize_term_spec",
"Prims.pos",
"Prims.pow2",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt64.v",
"Prims.op_LessThan",
"FStar.Per... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | false | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val get_validator_error_kind (error: U64.t)
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < normalize_term (pow2 error_width)}) | [] | EverParse3d.ErrorCode.get_validator_error_kind | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | error: FStar.UInt64.t
-> code:
FStar.UInt64.t
{ 0 <= FStar.UInt64.v code /\
FStar.UInt64.v code <
FStar.Pervasives.normalize_term (Prims.pow2 EverParse3d.ErrorCode.error_width) } | {
"end_col": 47,
"end_line": 99,
"start_col": 2,
"start_line": 98
} |
Prims.Tot | val validator_max_length:(u: U64.t{4 <= U64.v u /\ U64.v u == pow2 pos_width - 1}) | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "EverParse3d",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | false | let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1 } ) =
FStar.Math.Lemmas.pow2_le_compat 64 pos_width;
[@inline_let]
let x = U64.uint_to_t (pow2 pos_width - 1) in
normalize_term_spec x;
normalize_term x | val validator_max_length:(u: U64.t{4 <= U64.v u /\ U64.v u == pow2 pos_width - 1})
let validator_max_length:(u: U64.t{4 <= U64.v u /\ U64.v u == pow2 pos_width - 1}) = | false | null | false | FStar.Math.Lemmas.pow2_le_compat 64 pos_width;
[@@ inline_let ]let x = U64.uint_to_t (pow2 pos_width - 1) in
normalize_term_spec x;
normalize_term x | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.Pervasives.normalize_term",
"FStar.UInt64.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt64.v",
"Prims.eq2",
"Prims.int",
"Prims.op_Subtraction",
"Prims.pow2",
"EverParse3d.ErrorCode.pos_width",
"Prims.unit",
"FStar.Pervasives.normalize_term_spec",
"FStar.UIn... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ] | false | false | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val validator_max_length:(u: U64.t{4 <= U64.v u /\ U64.v u == pow2 pos_width - 1}) | [] | EverParse3d.ErrorCode.validator_max_length | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | u0:
FStar.UInt64.t
{4 <= FStar.UInt64.v u0 /\ FStar.UInt64.v u0 == Prims.pow2 EverParse3d.ErrorCode.pos_width - 1} | {
"end_col": 18,
"end_line": 20,
"start_col": 2,
"start_line": 16
} |
Prims.Tot | val get_validator_error_field (x: U64.t) (lo: nat) (hi: nat{lo < hi /\ hi <= error_width})
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < pow2 (hi - lo)}) | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let get_validator_error_field (x: U64.t) (lo: nat) (hi: nat { lo < hi /\ hi <= error_width }) : Tot (code: U64.t { 0 <= U64.v code /\ U64.v code < pow2 (hi - lo) }) =
[@inline_let]
let res =
BF.uint64.BF.get_bitfield x (pos_width + lo) (pos_width + hi)
in
res | val get_validator_error_field (x: U64.t) (lo: nat) (hi: nat{lo < hi /\ hi <= error_width})
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < pow2 (hi - lo)})
let get_validator_error_field (x: U64.t) (lo: nat) (hi: nat{lo < hi /\ hi <= error_width})
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < pow2 (hi - ... | false | null | false | [@@ inline_let ]let res = BF.uint64.BF.get_bitfield x (pos_width + lo) (pos_width + hi) in
res | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"EverParse3d.ErrorCode.error_width",
"Prims.eq2",
"FStar.UInt.uint_t",
"LowParse.BitFields.__proj__Mkuint_t__item__v",
"LowParse.BitFields.uint64",
"LowParse.BitFields.get_bitfield",
"... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | false | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val get_validator_error_field (x: U64.t) (lo: nat) (hi: nat{lo < hi /\ hi <= error_width})
: Tot (code: U64.t{0 <= U64.v code /\ U64.v code < pow2 (hi - lo)}) | [] | EverParse3d.ErrorCode.get_validator_error_field | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
x: FStar.UInt64.t ->
lo: Prims.nat ->
hi: Prims.nat{lo < hi /\ hi <= EverParse3d.ErrorCode.error_width}
-> code: FStar.UInt64.t{0 <= FStar.UInt64.v code /\ FStar.UInt64.v code < Prims.pow2 (hi - lo)} | {
"end_col": 5,
"end_line": 45,
"start_col": 2,
"start_line": 41
} |
Prims.Tot | val set_validator_error_kind
(error: U64.t)
(code: U64.t{0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
: Tot validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let set_validator_error_kind (error: U64.t) (code: U64.t { 0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width) }) : Tot validator_error =
normalize_term_spec (pow2 error_width);
set_validator_error_field error 0 error_width code | val set_validator_error_kind
(error: U64.t)
(code: U64.t{0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
: Tot validator_error
let set_validator_error_kind
(error: U64.t)
(code: U64.t{0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
: Tot validator_er... | false | null | false | normalize_term_spec (pow2 error_width);
set_validator_error_field error 0 error_width code | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt64.v",
"FStar.Pervasives.normalize_term",
"Prims.int",
"Prims.pow2",
"EverParse3d.ErrorCode.error_width",
"EverParse3d.ErrorCode.set_validator_error_field",
"Prims.unit",
"FStar.Pervasives.normalize_term_spec",
"Pr... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | false | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val set_validator_error_kind
(error: U64.t)
(code: U64.t{0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
: Tot validator_error | [] | EverParse3d.ErrorCode.set_validator_error_kind | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
error: FStar.UInt64.t ->
code:
FStar.UInt64.t
{ 0 < FStar.UInt64.v code /\
FStar.UInt64.v code <
FStar.Pervasives.normalize_term (Prims.pow2 EverParse3d.ErrorCode.error_width) }
-> EverParse3d.ErrorCode.validator_error | {
"end_col": 52,
"end_line": 95,
"start_col": 2,
"start_line": 94
} |
FStar.Pervasives.Lemma | val get_validator_error_kind_set_validator_error_kind
(error: U64.t)
(code: U64.t{0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
: Lemma (get_validator_error_kind (set_validator_error_kind error code) == code)
[SMTPat (get_validator_error_kind (set_validator_error_kind error co... | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let get_validator_error_kind_set_validator_error_kind (error: U64.t) (code: U64.t {0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)}) : Lemma
(get_validator_error_kind (set_validator_error_kind error code) == code)
[SMTPat (get_validator_error_kind (set_validator_error_kind error code))]
= assert_no... | val get_validator_error_kind_set_validator_error_kind
(error: U64.t)
(code: U64.t{0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
: Lemma (get_validator_error_kind (set_validator_error_kind error code) == code)
[SMTPat (get_validator_error_kind (set_validator_error_kind error co... | false | null | true | assert_norm (normalize_term (pow2 error_width) == pow2 error_width);
get_validator_error_field_set_validator_error_field error 0 error_width code | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"lemma"
] | [
"FStar.UInt64.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt64.v",
"FStar.Pervasives.normalize_term",
"Prims.int",
"Prims.pow2",
"EverParse3d.ErrorCode.error_width",
"EverParse3d.ErrorCode.get_validator_error_field_set_validator_error_field",
"Prims.unit",
"FStar.Pervasives.a... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | false | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val get_validator_error_kind_set_validator_error_kind
(error: U64.t)
(code: U64.t{0 < U64.v code /\ U64.v code < normalize_term (pow2 error_width)})
: Lemma (get_validator_error_kind (set_validator_error_kind error code) == code)
[SMTPat (get_validator_error_kind (set_validator_error_kind error co... | [] | EverParse3d.ErrorCode.get_validator_error_kind_set_validator_error_kind | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
error: FStar.UInt64.t ->
code:
FStar.UInt64.t
{ 0 < FStar.UInt64.v code /\
FStar.UInt64.v code <
FStar.Pervasives.normalize_term (Prims.pow2 EverParse3d.ErrorCode.error_width) }
-> FStar.Pervasives.Lemma
(ensures
EverParse3d.ErrorCode.get_validator_error_kind (... | {
"end_col": 78,
"end_line": 105,
"start_col": 2,
"start_line": 104
} |
Prims.Tot | val set_validator_error_field
(x: U64.t)
(lo: nat)
(hi: nat{lo < hi /\ hi <= error_width})
(code: U64.t{0 < U64.v code /\ U64.v code < pow2 (hi - lo)})
: Tot validator_error | [
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_mod... | false | let set_validator_error_field (x: U64.t) (lo: nat) (hi: nat { lo < hi /\ hi <= error_width }) (code: U64.t { 0 < U64.v code /\ U64.v code < pow2 (hi - lo) }) : Tot validator_error =
[@inline_let]
let res =
BF.uint64.BF.set_bitfield x (pos_width + lo) (pos_width + hi) code
in
[@inline_let]
let _ =
BF.g... | val set_validator_error_field
(x: U64.t)
(lo: nat)
(hi: nat{lo < hi /\ hi <= error_width})
(code: U64.t{0 < U64.v code /\ U64.v code < pow2 (hi - lo)})
: Tot validator_error
let set_validator_error_field
(x: U64.t)
(lo: nat)
(hi: nat{lo < hi /\ hi <= error_width})
(co... | false | null | false | [@@ inline_let ]let res = BF.uint64.BF.set_bitfield x (pos_width + lo) (pos_width + hi) code in
[@@ inline_let ]let _ =
BF.get_bitfield_set_bitfield_same #64 (U64.v x) (pos_width + lo) (pos_width + hi) (U64.v code);
BF.get_bitfield_zero_inner (U64.v res) pos_width 64 (pos_width + lo) (pos_width + hi);
assert (BF.... | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt64.t",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"EverParse3d.ErrorCode.error_width",
"FStar.UInt64.v",
"Prims.pow2",
"Prims.op_Subtraction",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"EverParse3d.Er... | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | false | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val set_validator_error_field
(x: U64.t)
(lo: nat)
(hi: nat{lo < hi /\ hi <= error_width})
(code: U64.t{0 < U64.v code /\ U64.v code < pow2 (hi - lo)})
: Tot validator_error | [] | EverParse3d.ErrorCode.set_validator_error_field | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
x: FStar.UInt64.t ->
lo: Prims.nat ->
hi: Prims.nat{lo < hi /\ hi <= EverParse3d.ErrorCode.error_width} ->
code: FStar.UInt64.t{0 < FStar.UInt64.v code /\ FStar.UInt64.v code < Prims.pow2 (hi - lo)}
-> EverParse3d.ErrorCode.validator_error | {
"end_col": 5,
"end_line": 62,
"start_col": 2,
"start_line": 50
} |
Prims.Tot | val is_range_okay (size offset access_size: U32.t) : bool | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"abbrev": true,
"full_modu... | false | let is_range_okay (size offset access_size:U32.t)
: bool
= let open U32 in
size >=^ access_size &&
size -^ access_size >=^ offset | val is_range_okay (size offset access_size: U32.t) : bool
let is_range_okay (size offset access_size: U32.t) : bool = | false | null | false | let open U32 in size >=^ access_size && size -^ access_size >=^ offset | {
"checked_file": "EverParse3d.ErrorCode.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.BitFields.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Classical.fsti.checked"
],... | [
"total"
] | [
"FStar.UInt32.t",
"Prims.op_AmpAmp",
"FStar.UInt32.op_Greater_Equals_Hat",
"FStar.UInt32.op_Subtraction_Hat",
"Prims.bool"
] | [] | module EverParse3d.ErrorCode
module U64 = FStar.UInt64
module BF = LowParse.BitFields
inline_for_extraction
noextract
let error_width = 4
inline_for_extraction
noextract
let pos_width = normalize_term (64 - error_width)
[@ CMacro ]
let validator_max_length : (u: U64.t { 4 <= U64.v u /\ U64.v u == pow2 pos_width - 1... | false | true | EverParse3d.ErrorCode.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val is_range_okay (size offset access_size: U32.t) : bool | [] | EverParse3d.ErrorCode.is_range_okay | {
"file_name": "src/3d/prelude/EverParse3d.ErrorCode.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | size: FStar.UInt32.t -> offset: FStar.UInt32.t -> access_size: FStar.UInt32.t -> Prims.bool | {
"end_col": 34,
"end_line": 166,
"start_col": 4,
"start_line": 164
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let index = i:size_t{size_v i < 16} | let index = | false | null | false | i: size_t{size_v i < 16} | {
"checked_file": "Hacl.Impl.Salsa20.Core32.fst.checked",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.size_v"
] | [] | module Hacl.Impl.Salsa20.Core32
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20 | false | true | Hacl.Impl.Salsa20.Core32.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 index : Type0 | [] | Hacl.Impl.Salsa20.Core32.index | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 35,
"end_line": 16,
"start_col": 12,
"start_line": 16
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let state = lbuffer uint32 16ul | let state = | false | null | false | lbuffer uint32 16ul | {
"checked_file": "Hacl.Impl.Salsa20.Core32.fst.checked",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint32",
"FStar.UInt32.__uint_to_t"
] | [] | module Hacl.Impl.Salsa20.Core32
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20 | false | true | Hacl.Impl.Salsa20.Core32.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 state : Type0 | [] | Hacl.Impl.Salsa20.Core32.state | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 31,
"end_line": 15,
"start_col": 12,
"start_line": 15
} | |
FStar.HyperStack.ST.Stack | val copy_state:
st:state
-> ost:state ->
Stack unit
(requires fun h -> live h st /\ live h ost /\ disjoint st ost)
(ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\
as_seq h1 st == as_seq h0 ost) | [
{
"abbrev": true,
"full_module": "Spec.Salsa20",
"short_module": "Spec"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let copy_state st ost = copy #MUT #uint32 #(size 16) st ost | val copy_state:
st:state
-> ost:state ->
Stack unit
(requires fun h -> live h st /\ live h ost /\ disjoint st ost)
(ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\
as_seq h1 st == as_seq h0 ost)
let copy_state st ost = | true | null | false | copy #MUT #uint32 #(size 16) st ost | {
"checked_file": "Hacl.Impl.Salsa20.Core32.fst.checked",
"dependencies": [
"Spec.Salsa20.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UIn... | [] | [
"Hacl.Impl.Salsa20.Core32.state",
"Lib.Buffer.copy",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint32",
"Lib.IntTypes.size",
"Prims.unit"
] | [] | module Hacl.Impl.Salsa20.Core32
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.ByteBuffer
module ST = FStar.HyperStack.ST
module Spec = Spec.Salsa20
let state = lbuffer uint32 16ul
let index = i:size_t{size_v i < 16}
inline_for_extraction
val create_s... | false | false | Hacl.Impl.Salsa20.Core32.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 copy_state:
st:state
-> ost:state ->
Stack unit
(requires fun h -> live h st /\ live h ost /\ disjoint st ost)
(ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\
as_seq h1 st == as_seq h0 ost) | [] | Hacl.Impl.Salsa20.Core32.copy_state | {
"file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | st: Hacl.Impl.Salsa20.Core32.state -> ost: Hacl.Impl.Salsa20.Core32.state
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 59,
"end_line": 78,
"start_col": 24,
"start_line": 78
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.