file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
Spec.Exponentiation.fsti
Spec.Exponentiation.one_st
val one_st : t: Type -> to: Spec.Exponentiation.to_comm_monoid t -> Type
let one_st (t:Type) (to:to_comm_monoid t) = unit -> Pure t (requires True) (ensures fun one -> to.refl one == to.comm_monoid.S.one)
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 55, "start_col": 0, "start_line": 52 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> to: Spec.Exponentiation.to_comm_monoid t -> Type
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.to_comm_monoid", "Prims.unit", "Prims.l_True", "Prims.eq2", "Spec.Exponentiation.__proj__Mkto_comm_monoid__item__a_spec", "Spec.Exponentiation.__proj__Mkto_comm_monoid__item__refl", "Lib.Exponentiation.Definition.__proj__Mkcomm_monoid__item__one", "Spec.Exponentiation.__proj__Mkto...
[]
false
false
false
true
true
let one_st (t: Type) (to: to_comm_monoid t) =
unit -> Pure t (requires True) (ensures fun one -> to.refl one == to.comm_monoid.S.one)
false
Hacl.EC.K256.fst
Hacl.EC.K256.point_add
val point_add (p q out:P.point) : Stack unit (requires fun h -> live h out /\ live h p /\ live h q /\ eq_or_disjoint p out /\ eq_or_disjoint q out /\ eq_or_disjoint p q /\ P.point_inv h p /\ P.point_inv h q) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ P.point_inv h1 out /\ P.point_eval ...
val point_add (p q out:P.point) : Stack unit (requires fun h -> live h out /\ live h p /\ live h q /\ eq_or_disjoint p out /\ eq_or_disjoint q out /\ eq_or_disjoint p q /\ P.point_inv h p /\ P.point_inv h q) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ P.point_inv h1 out /\ P.point_eval ...
let point_add p q out = PA.point_add out p q
{ "file_name": "code/k256/Hacl.EC.K256.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 285, "start_col": 0, "start_line": 284 }
module Hacl.EC.K256 open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module S = Spec.K256 module F = Hacl.K256.Field module Q = Hacl.K256.Scalar module FI = Hacl.Impl.K256.Finv module P = Hacl.Impl.K256.P...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointMul", "short_module": "PM" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointDouble", "short_module": "PD" }, { "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Hacl.Impl.K256.Point.point -> q: Hacl.Impl.K256.Point.point -> out: Hacl.Impl.K256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.K256.Point.point", "Hacl.Impl.K256.PointAdd.point_add", "Prims.unit" ]
[]
false
true
false
false
false
let point_add p q out =
PA.point_add out p q
false
Spec.Exponentiation.fsti
Spec.Exponentiation.sqr_st
val sqr_st : t: Type -> to: Spec.Exponentiation.to_comm_monoid t -> Type
let sqr_st (t:Type) (to:to_comm_monoid t) = x:t -> Pure t (requires True) (ensures fun xy -> to.refl xy == to.comm_monoid.S.mul (to.refl x) (to.refl x))
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 69, "start_col": 0, "start_line": 66 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> to: Spec.Exponentiation.to_comm_monoid t -> Type
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.to_comm_monoid", "Prims.l_True", "Prims.eq2", "Spec.Exponentiation.__proj__Mkto_comm_monoid__item__a_spec", "Spec.Exponentiation.__proj__Mkto_comm_monoid__item__refl", "Lib.Exponentiation.Definition.__proj__Mkcomm_monoid__item__mul", "Spec.Exponentiation.__proj__Mkto_comm_monoid__it...
[]
false
false
false
true
true
let sqr_st (t: Type) (to: to_comm_monoid t) =
x: t -> Pure t (requires True) (ensures fun xy -> to.refl xy == to.comm_monoid.S.mul (to.refl x) (to.refl x))
false
FStar.InteractiveHelpers.Tutorial.fst
FStar.InteractiveHelpers.Tutorial.split_ex1
val split_ex1 (x y z: nat) : unit
val split_ex1 (x y z: nat) : unit
let split_ex1 (x y z : nat) : unit = assert( (* <- Try C-c C-e C-s anywhere inside the assert *) pred1 x y z /\ pred2 x y z /\ pred3 x y z /\ pred4 x y z /\ pred5 x y z /\ pred6 x y z)
{ "file_name": "examples/interactive/FStar.InteractiveHelpers.Tutorial.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 222, "start_col": 0, "start_line": 215 }
module FStar.InteractiveHelpers.Tutorial module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module B = LowStar.Buffer open FStar.List open FStar.Tactics.V2 open FStar.Mul open FStar.InteractiveHelpers.Tutorial.Definitions /// WARNING: if a command fails, it is very likely because of the below issue /// The...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.List.fst.checked", "FStar.InteractiveHelpers.Tutorial.Definitions.fst....
[ { "abbrev": true, "full_module": "FStar.InteractiveHelpers", "short_module": "FI" }, { "abbrev": false, "full_module": "FStar.InteractiveHelpers.Tutorial.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.nat -> y: Prims.nat -> z: Prims.nat -> Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims._assert", "Prims.l_and", "FStar.InteractiveHelpers.Tutorial.Definitions.pred1", "FStar.InteractiveHelpers.Tutorial.Definitions.pred2", "FStar.InteractiveHelpers.Tutorial.Definitions.pred3", "FStar.InteractiveHelpers.Tutorial.Definitions.pred4", "FStar.InteractiveHelpers.Tutorial.De...
[]
false
false
false
true
false
let split_ex1 (x y z: nat) : unit =
assert (pred1 x y z /\ pred2 x y z /\ pred3 x y z /\ pred4 x y z /\ pred5 x y z /\ pred6 x y z)
false
Spec.Exponentiation.fsti
Spec.Exponentiation.mul_st
val mul_st : t: Type -> to: Spec.Exponentiation.to_comm_monoid t -> Type
let mul_st (t:Type) (to:to_comm_monoid t) = x:t -> y:t -> Pure t (requires True) (ensures fun xy -> to.refl xy == to.comm_monoid.S.mul (to.refl x) (to.refl y))
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 62, "start_col": 0, "start_line": 59 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> to: Spec.Exponentiation.to_comm_monoid t -> Type
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.to_comm_monoid", "Prims.l_True", "Prims.eq2", "Spec.Exponentiation.__proj__Mkto_comm_monoid__item__a_spec", "Spec.Exponentiation.__proj__Mkto_comm_monoid__item__refl", "Lib.Exponentiation.Definition.__proj__Mkcomm_monoid__item__mul", "Spec.Exponentiation.__proj__Mkto_comm_monoid__it...
[]
false
false
false
true
true
let mul_st (t: Type) (to: to_comm_monoid t) =
x: t -> y: t -> Pure t (requires True) (ensures fun xy -> to.refl xy == to.comm_monoid.S.mul (to.refl x) (to.refl y))
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_rl
val exp_rl (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) : t
val exp_rl (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) : t
let exp_rl (#t:Type) (k:concrete_ops t) (a:t) (bBits:nat) (b:nat{b < pow2 bBits}) : t = let one = k.one () in let (acc, c) = Loops.repeati bBits (exp_rl_f k bBits b) (one, a) in acc
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 93, "start_col": 0, "start_line": 90 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a: t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Pervasives.Native.tuple2", "Lib.LoopCombinators.repeati", "Spec.Exponentiation.exp_rl_f", "FStar.Pervasives.Native.Mktuple2", "Spec.Exponentiation.__proj__Mkconcrete_ops__item__one" ]
[]
false
false
false
false
false
let exp_rl (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) : t =
let one = k.one () in let acc, c = Loops.repeati bBits (exp_rl_f k bBits b) (one, a) in acc
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_mont_ladder_swap
val exp_mont_ladder_swap (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) : t
val exp_mont_ladder_swap (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) : t
let exp_mont_ladder_swap (#t:Type) (k:concrete_ops t) (a:t) (bBits:nat) (b:nat{b < pow2 bBits}) : t = let (r0, r1, sw) = Loops.repeati bBits (exp_mont_ladder_swap_f k bBits b) (one (), a, 0) in let (r0, r1) = S.cswap sw r0 r1 in r0
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 114, "start_col": 0, "start_line": 111 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a: t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Pervasives.Native.tuple2", "Lib.Exponentiation.cswap", "FStar.Pervasives.Native.tuple3", "Lib.LoopCombinators.repeati", "Spec.Exponentiation.exp_mont_ladder_swap_f", "FStar.Pervasives.Native.M...
[]
false
false
false
false
false
let exp_mont_ladder_swap (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) : t =
let r0, r1, sw = Loops.repeati bBits (exp_mont_ladder_swap_f k bBits b) (one (), a, 0) in let r0, r1 = S.cswap sw r0 r1 in r0
false
Hacl.Impl.Frodo.KEM.Decaps.fst
Hacl.Impl.Frodo.KEM.Decaps.crypto_kem_dec1
val crypto_kem_dec1: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ss:lbytes (crypto_bytes a) -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matrix_t params_nbar params_nbar -> Stack unit (r...
val crypto_kem_dec1: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ss:lbytes (crypto_bytes a) -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matrix_t params_nbar params_nbar -> Stack unit (r...
let crypto_kem_dec1 a gen_a ss ct sk bp_matrix c_matrix = push_frame (); let mu_decode = create (bytes_mu a) (u8 0) in crypto_kem_dec0 a gen_a ss ct sk bp_matrix c_matrix mu_decode; clear_words_u8 mu_decode; pop_frame ()
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Decaps.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 382, "start_col": 0, "start_line": 377 }
module Hacl.Impl.Frodo.KEM.Decaps open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.KEM.Encaps open Hacl.Impl.Frodo.Encode open Hacl.Impl.Frodo.Pack open ...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.Decaps.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "L...
[ { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module": "Spec.Frodo.KEM.Decaps", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Frodo.KEM.KeyGen", "short_module": "KG" }, { "abbrev": true, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> ss: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) -> ct: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_ciphertextbytes a) -> sk: Hacl.Impl.Matrix.lbytes (H...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.crypto_bytes", "Hacl.Impl.Frodo.Params.crypto_ciphertextbytes", "Hacl.Impl.Frodo.Params.crypto_secretkeybytes", "Hacl.Impl.Matrix.mat...
[]
false
true
false
false
false
let crypto_kem_dec1 a gen_a ss ct sk bp_matrix c_matrix =
push_frame (); let mu_decode = create (bytes_mu a) (u8 0) in crypto_kem_dec0 a gen_a ss ct sk bp_matrix c_matrix mu_decode; clear_words_u8 mu_decode; pop_frame ()
false
Hacl.EC.K256.fst
Hacl.EC.K256.is_point_valid
val is_point_valid: b:lbuffer uint8 64ul -> Stack bool (requires fun h -> live h b) (ensures fun h0 res h1 -> modifies0 h0 h1 /\ res <==> (S.point_inv_bytes (as_seq h0 b)))
val is_point_valid: b:lbuffer uint8 64ul -> Stack bool (requires fun h -> live h b) (ensures fun h0 res h1 -> modifies0 h0 h1 /\ res <==> (S.point_inv_bytes (as_seq h0 b)))
let is_point_valid b = push_frame (); let p = P.create_aff_point () in let res = P.aff_point_load_vartime p b in pop_frame (); res
{ "file_name": "code/k256/Hacl.EC.K256.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 400, "start_col": 0, "start_line": 395 }
module Hacl.EC.K256 open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module S = Spec.K256 module F = Hacl.K256.Field module Q = Hacl.K256.Scalar module FI = Hacl.Impl.K256.Finv module P = Hacl.Impl.K256.P...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointMul", "short_module": "PM" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointDouble", "short_module": "PD" }, { "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Prims.bool", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Hacl.Impl.K256.Point.aff_point_load_vartime", "Hacl.Impl.K256.Point.aff_point", "Hacl.Impl.K256.Point.create_aff_point", "FStar.HyperStack.ST.push_frame" ]
[]
false
true
false
false
false
let is_point_valid b =
push_frame (); let p = P.create_aff_point () in let res = P.aff_point_load_vartime p b in pop_frame (); res
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_rl_f
val exp_rl_f : k: Spec.Exponentiation.concrete_ops t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> i: Prims.nat{i < bBits} -> _: (t * t) -> t * t
let exp_rl_f (#t:Type) (k:concrete_ops t) (bBits:nat) (b:nat{b < pow2 bBits}) (i:nat{i < bBits}) ((acc, c) : tuple2 t t) : tuple2 t t = let acc = if (S.get_ith_bit bBits b i = 0) then acc else k.mul acc c in let c = k.sqr c in (acc, c)
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 87, "start_col": 0, "start_line": 81 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> i: Prims.nat{i < bBits} -> _: (t * t) -> t * t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "Spec.Exponentiation.__proj__Mkconcrete_ops__item__sqr", "Prims.op_Equality", "Prims.int", "Lib.Exponentiation.get_ith_bit", "P...
[]
false
false
false
false
false
let exp_rl_f (#t: Type) (k: concrete_ops t) (bBits: nat) (b: nat{b < pow2 bBits}) (i: nat{i < bBits}) (acc, c: tuple2 t t) : tuple2 t t =
let acc = if (S.get_ith_bit bBits b i = 0) then acc else k.mul acc c in let c = k.sqr c in (acc, c)
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_pow2
val exp_pow2 (#t: Type) (k: concrete_ops t) (a: t) (b: nat) : t
val exp_pow2 (#t: Type) (k: concrete_ops t) (a: t) (b: nat) : t
let exp_pow2 (#t:Type) (k:concrete_ops t) (a:t) (b:nat) : t = Loops.repeat b k.sqr a
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 122, "start_col": 0, "start_line": 121 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a: t -> b: Prims.nat -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Lib.LoopCombinators.repeat", "Spec.Exponentiation.__proj__Mkconcrete_ops__item__sqr" ]
[]
false
false
false
true
false
let exp_pow2 (#t: Type) (k: concrete_ops t) (a: t) (b: nat) : t =
Loops.repeat b k.sqr a
false
Hacl.EC.K256.fst
Hacl.EC.K256.felem_store
val felem_store: a:F.felem -> out:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h a /\ live h out /\ disjoint a out /\ F.inv_lazy_reduced2 h a) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == BSeq.nat_to_bytes_be 32 (F.feval h0 a))
val felem_store: a:F.felem -> out:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h a /\ live h out /\ disjoint a out /\ F.inv_lazy_reduced2 h a) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == BSeq.nat_to_bytes_be 32 (F.feval h0 a))
let felem_store a out = push_frame (); let tmp = F.create_felem () in let h0 = ST.get () in BL.normalize5_lemma (1,1,1,1,2) (F.as_felem5 h0 a); F.fnormalize tmp a; F.store_felem out tmp; pop_frame ()
{ "file_name": "code/k256/Hacl.EC.K256.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 214, "start_col": 0, "start_line": 207 }
module Hacl.EC.K256 open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module S = Spec.K256 module F = Hacl.K256.Field module Q = Hacl.K256.Scalar module FI = Hacl.Impl.K256.Finv module P = Hacl.Impl.K256.P...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointMul", "short_module": "PM" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointDouble", "short_module": "PD" }, { "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.K256.Field.felem -> out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Field.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.K256.Field.store_felem", "Hacl.K256.Field.fnormalize", "Hacl.Spec.K256.Field52.Lemmas.normalize5_lemma", "FStar.Pervasives.Native.Mktuple5", "Prim...
[]
false
true
false
false
false
let felem_store a out =
push_frame (); let tmp = F.create_felem () in let h0 = ST.get () in BL.normalize5_lemma (1, 1, 1, 1, 2) (F.as_felem5 h0 a); F.fnormalize tmp a; F.store_felem out tmp; pop_frame ()
false
OPLSS.MAC.fst
OPLSS.MAC.loc
val loc : k: OPLSS.MAC.key -> Prims.GTot LowStar.Monotonic.Buffer.loc
let loc (k:key) = B.loc_mreference k.log
{ "file_name": "examples/crypto/OPLSS.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 36, "start_col": 0, "start_line": 36 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.HMACSHA1.fst.checked", "OPLSS.Flag.fsti.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: OPLSS.MAC.key -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "OPLSS.MAC.key", "LowStar.Monotonic.Buffer.loc_mreference", "FStar.Seq.Base.seq", "OPLSS.MAC.log_entry", "OPLSS.Log.grows", "OPLSS.MAC.__proj__Key__item__log", "LowStar.Monotonic.Buffer.loc" ]
[]
false
false
false
false
false
let loc (k: key) =
B.loc_mreference k.log
false
Hacl.Impl.Frodo.KEM.Decaps.fst
Hacl.Impl.Frodo.KEM.Decaps.crypto_kem_dec_ss1
val crypto_kem_dec_ss1: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> mu_decode:lbytes (bytes_mu a) -> seed_se_k:lbytes (2ul *! crypto_bytes a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matr...
val crypto_kem_dec_ss1: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> mu_decode:lbytes (bytes_mu a) -> seed_se_k:lbytes (2ul *! crypto_bytes a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matr...
let crypto_kem_dec_ss1 a gen_a ct sk mu_decode seed_se_k bp_matrix c_matrix ss = let seed_se = sub seed_se_k 0ul (crypto_bytes a) in let kp = sub seed_se_k (crypto_bytes a) (crypto_bytes a) in let s = sub sk 0ul (crypto_bytes a) in let mask = crypto_kem_dec_kp_s a gen_a mu_decode seed_se sk bp_matrix c_matrix ...
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Decaps.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 278, "start_col": 0, "start_line": 272 }
module Hacl.Impl.Frodo.KEM.Decaps open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.KEM.Encaps open Hacl.Impl.Frodo.Encode open Hacl.Impl.Frodo.Pack open ...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.Decaps.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "L...
[ { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module": "Spec.Frodo.KEM.Decaps", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Frodo.KEM.KeyGen", "short_module": "KG" }, { "abbrev": true, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> ct: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_ciphertextbytes a) -> sk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_secretkeybytes a) -> mu_decode: Hacl.Impl....
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.crypto_ciphertextbytes", "Hacl.Impl.Frodo.Params.crypto_secretkeybytes", "Hacl.Impl.Frodo.Params.bytes_mu", "Lib.IntTypes.op_Star_Ban...
[]
false
true
false
false
false
let crypto_kem_dec_ss1 a gen_a ct sk mu_decode seed_se_k bp_matrix c_matrix ss =
let seed_se = sub seed_se_k 0ul (crypto_bytes a) in let kp = sub seed_se_k (crypto_bytes a) (crypto_bytes a) in let s = sub sk 0ul (crypto_bytes a) in let mask = crypto_kem_dec_kp_s a gen_a mu_decode seed_se sk bp_matrix c_matrix in crypto_kem_dec_ss0 a ct mask kp s ss
false
Hacl.Spec.Bignum.ModInv.fst
Hacl.Spec.Bignum.ModInv.bn_check_mod_inv_prime
val bn_check_mod_inv_prime: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> a:lbignum t len -> res:limb t{ let b = bn_v n % 2 = 1 && 1 < bn_v n && 0 < bn_v a && bn_v a < bn_v n in v res == (if b then v (ones t SEC) else v (zeros t SEC))}
val bn_check_mod_inv_prime: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> a:lbignum t len -> res:limb t{ let b = bn_v n % 2 = 1 && 1 < bn_v n && 0 < bn_v a && bn_v a < bn_v n in v res == (if b then v (ones t SEC) else v (zeros t SEC))}
let bn_check_mod_inv_prime #t #len n a = let m0 = BM.bn_check_modulus n in let m1 = BN.bn_is_zero_mask a in BN.bn_is_zero_mask_lemma a; let m1' = lognot m1 in lognot_lemma m1; let m2 = BN.bn_lt_mask a n in BN.bn_lt_mask_lemma a n; logand_ones (m0 &. m1'); logand_zeros (m0 &. m1'); logand_ones m0; ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 74, "start_col": 0, "start_line": 62 }
module Hacl.Spec.Bignum.ModInv open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module BE = Hacl.Spec.Bignum.Exponentiation module BM = Hacl.Spec.Bignum.Montgomery ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Exponentiation.fsti.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Exponentiation", "short_module": "BE" }, { "abbr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> res: Hacl.Spec.Bignum.Definitions.limb t { let b = Hacl.Spec.Bignum.Definitions.bn_v n % 2 = 1 && 1 < Hacl.Spec.Bignum.Definitions.bn_v n && 0 < Hacl.Spec.Bignum.Definitions.bn_v a && ...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.SEC", "Prims.unit", "Lib.IntTypes.logand_zeros", "Lib.IntTypes.logand_ones", "Hacl.Spec.Bignum.bn_lt_mask_lemma", "Hacl.Spec.Bignum.Definitions.limb", ...
[]
false
false
false
false
false
let bn_check_mod_inv_prime #t #len n a =
let m0 = BM.bn_check_modulus n in let m1 = BN.bn_is_zero_mask a in BN.bn_is_zero_mask_lemma a; let m1' = lognot m1 in lognot_lemma m1; let m2 = BN.bn_lt_mask a n in BN.bn_lt_mask_lemma a n; logand_ones (m0 &. m1'); logand_zeros (m0 &. m1'); logand_ones m0; logand_zeros m0; m0 &. m1' &. m2
false
Hacl.Spec.Bignum.ModInv.fst
Hacl.Spec.Bignum.ModInv.bn_mod_inv_prime_pre
val bn_mod_inv_prime_pre : n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Prims.logical
let bn_mod_inv_prime_pre (#t:limb_t) (#len:BN.bn_len t) (n:lbignum t len) (a:lbignum t len) = bn_v n % 2 = 1 /\ 1 < bn_v n /\ 0 < bn_v a /\ bn_v a < bn_v n /\ Euclid.is_prime (bn_v n)
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 105, "start_col": 0, "start_line": 97 }
module Hacl.Spec.Bignum.ModInv open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module BE = Hacl.Spec.Bignum.Exponentiation module BM = Hacl.Spec.Bignum.Montgomery ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Exponentiation.fsti.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Exponentiation", "short_module": "BE" }, { "abbr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims.op_LessThan", "FStar.Math.Euclid.is_prime", "Prims.logical" ]
[]
false
false
false
false
true
let bn_mod_inv_prime_pre (#t: limb_t) (#len: BN.bn_len t) (n a: lbignum t len) =
bn_v n % 2 = 1 /\ 1 < bn_v n /\ 0 < bn_v a /\ bn_v a < bn_v n /\ Euclid.is_prime (bn_v n)
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_mont_ladder_swap_f
val exp_mont_ladder_swap_f : k: Spec.Exponentiation.concrete_ops t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> i: Prims.nat{i < bBits} -> _: ((t * t) * Prims.nat) -> (t * t) * Prims.nat
let exp_mont_ladder_swap_f (#t:Type) (k:concrete_ops t) (bBits:nat) (b:nat{b < pow2 bBits}) (i:nat{i < bBits}) ((r0, r1, privbit) : tuple3 t t nat) : tuple3 t t nat = let bit = S.get_ith_bit bBits b (bBits - 1 - i) in let sw = (bit + privbit) % 2 in let r0, r1 = S.cswap sw r0 r1 in let r0, r1 = (k.sqr r0, ...
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 108, "start_col": 0, "start_line": 100 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> i: Prims.nat{i < bBits} -> _: ((t * t) * Prims.nat) -> (t * t) * Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.Mktuple3", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "Spec.Exponentiation.__proj__Mkconcrete_ops__item__sqr", "S...
[]
false
false
false
false
false
let exp_mont_ladder_swap_f (#t: Type) (k: concrete_ops t) (bBits: nat) (b: nat{b < pow2 bBits}) (i: nat{i < bBits}) (r0, r1, privbit: tuple3 t t nat) : tuple3 t t nat =
let bit = S.get_ith_bit bBits b (bBits - 1 - i) in let sw = (bit + privbit) % 2 in let r0, r1 = S.cswap sw r0 r1 in let r0, r1 = (k.sqr r0, k.mul r1 r0) in (r0, r1, bit)
false
Hacl.Spec.Bignum.ModInv.fst
Hacl.Spec.Bignum.ModInv.pow_eq
val pow_eq: a:nat -> n:nat -> Lemma (Fermat.pow a n == Lib.NatMod.pow a n)
val pow_eq: a:nat -> n:nat -> Lemma (Fermat.pow a n == Lib.NatMod.pow a n)
let rec pow_eq a n = if n = 0 then () else pow_eq a (n - 1)
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 25, "start_col": 0, "start_line": 23 }
module Hacl.Spec.Bignum.ModInv open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module BE = Hacl.Spec.Bignum.Exponentiation module BM = Hacl.Spec.Bignum.Montgomery ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Exponentiation.fsti.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Exponentiation", "short_module": "BE" }, { "abbr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.nat -> n: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow a n == Lib.NatMod.pow a n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.bool", "Hacl.Spec.Bignum.ModInv.pow_eq", "Prims.op_Subtraction", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec pow_eq a n =
if n = 0 then () else pow_eq a (n - 1)
false
Hacl.Spec.Bignum.ModInv.fst
Hacl.Spec.Bignum.ModInv.bn_mod_inv_prime_n2
val bn_mod_inv_prime_n2: #t:limb_t -> #len:size_pos -> n:lbignum t len -> Pure (lbignum t len) (requires 1 < bn_v n) (ensures fun res -> bn_v res == bn_v n - 2)
val bn_mod_inv_prime_n2: #t:limb_t -> #len:size_pos -> n:lbignum t len -> Pure (lbignum t len) (requires 1 < bn_v n) (ensures fun res -> bn_v res == bn_v n - 2)
let bn_mod_inv_prime_n2 #t #len n = let c, n2 = bn_sub1 n (uint #t 2) in bn_sub1_lemma n (uint #t 2); assert (bn_v n2 - v c * pow2 (bits t * len) == bn_v n - 2); bn_eval_bound n2 len; bn_eval_bound n len; assert (v c = 0); assert (bn_v n2 == bn_v n - 2); n2
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 94, "start_col": 0, "start_line": 86 }
module Hacl.Spec.Bignum.ModInv open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module BE = Hacl.Spec.Bignum.Exponentiation module BM = Hacl.Spec.Bignum.Montgomery ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Exponentiation.fsti.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Exponentiation", "short_module": "BE" }, { "abbr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> Prims.Pure (Hacl.Spec.Bignum.Definitions.lbignum t len)
Prims.Pure
[]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims.op_Subtraction", "Prims.b2t", "Prims.op_Equality", "Lib....
[]
false
false
false
false
false
let bn_mod_inv_prime_n2 #t #len n =
let c, n2 = bn_sub1 n (uint #t 2) in bn_sub1_lemma n (uint #t 2); assert (bn_v n2 - v c * pow2 (bits t * len) == bn_v n - 2); bn_eval_bound n2 len; bn_eval_bound n len; assert (v c = 0); assert (bn_v n2 == bn_v n - 2); n2
false
Vale.Curve25519.FastUtil_helpers.fsti
Vale.Curve25519.FastUtil_helpers.int_canon
val int_canon : _: _ -> FStar.Tactics.Effect.Tac Prims.unit
let int_canon = fun _ -> norm [delta; zeta; iota]; int_semiring ()
{ "file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastUtil_helpers.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 10, "start_col": 0, "start_line": 10 }
module Vale.Curve25519.FastUtil_helpers open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Mul open FStar.Tactics open FStar.Tactics.CanonCommSemiring open Vale.Curve25519.Fast_defs
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Curve25519.Fast_defs.fst.checked", "prims.fst.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "...
[ { "abbrev": false, "full_module": "Vale.Curve25519.Fast_defs", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSemiring", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: _ -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.CanonCommSemiring.int_semiring", "Prims.unit", "FStar.Stubs.Tactics.V1.Builtins.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.delta", "FStar.Pervasives.zeta", "FStar.Pervasives.iota", "Prims.Nil" ]
[]
false
true
false
false
false
let int_canon =
fun _ -> norm [delta; zeta; iota]; int_semiring ()
false
Hacl.Spec.Bignum.ModInv.fst
Hacl.Spec.Bignum.ModInv.bn_mod_inv_prime
val bn_mod_inv_prime: #t:limb_t -> #len:BN.bn_len t -> nBits:size_nat -> n:lbignum t len -> a:lbignum t len -> Pure (lbignum t len) (requires bn_mod_inv_prime_pre n a /\ nBits / bits t < len /\ pow2 nBits < bn_v n) (ensures fun res -> bn_v res * bn_v a % bn_v n = 1)
val bn_mod_inv_prime: #t:limb_t -> #len:BN.bn_len t -> nBits:size_nat -> n:lbignum t len -> a:lbignum t len -> Pure (lbignum t len) (requires bn_mod_inv_prime_pre n a /\ nBits / bits t < len /\ pow2 nBits < bn_v n) (ensures fun res -> bn_v res * bn_v a % bn_v n = 1)
let bn_mod_inv_prime #t #len nBits n a = let r2, mu = BM.bn_mont_precomp nBits n in let res = bn_mod_inv_prime_precomp #t #len n mu r2 a in mod_inv_prime_lemma (bn_v n) (bn_v a); res
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 149, "start_col": 0, "start_line": 145 }
module Hacl.Spec.Bignum.ModInv open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module BE = Hacl.Spec.Bignum.Exponentiation module BM = Hacl.Spec.Bignum.Montgomery ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Exponentiation.fsti.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Exponentiation", "short_module": "BE" }, { "abbr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
nBits: Lib.IntTypes.size_nat -> n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Prims.Pure (Hacl.Spec.Bignum.Definitions.lbignum t len)
Prims.Pure
[]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.unit", "Hacl.Spec.Bignum.ModInv.mod_inv_prime_lemma", "Hacl.Spec.Bignum.Definitions.bn_v", "Hacl.Spec.Bignum.ModInv.bn_mod_in...
[]
false
false
false
false
false
let bn_mod_inv_prime #t #len nBits n a =
let r2, mu = BM.bn_mont_precomp nBits n in let res = bn_mod_inv_prime_precomp #t #len n mu r2 a in mod_inv_prime_lemma (bn_v n) (bn_v a); res
false
RandomTapes.fst
RandomTapes.minus
val minus : int -> int -> Tot int
val minus : int -> int -> Tot int
let minus x y = y - x
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 34, "start_col": 0, "start_line": 34 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.int -> y: Prims.int -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Prims.op_Subtraction" ]
[]
false
false
false
true
false
let minus x y =
y - x
false
Spec.Exponentiation.fsti
Spec.Exponentiation.mul_acc_pow_a_bits_l
val mul_acc_pow_a_bits_l (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t
val mul_acc_pow_a_bits_l (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t
let mul_acc_pow_a_bits_l (#t:Type) (k:concrete_ops t) (a:t) (bBits:nat) (b:nat{b < pow2 bBits}) (l:pos) (i:nat{i < bBits / l}) (acc:t) : t = let bits_l = S.get_bits_l bBits b l i in k.mul acc (pow k a bits_l)
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 156, "start_col": 0, "start_line": 152 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a: t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> l: Prims.pos -> i: Prims.nat{i < bBits / l} -> acc: t -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Prims.pos", "Prims.op_Division", "Spec.Exponentiation.__proj__Mkconcrete_ops__item__mul", "Spec.Exponentiation.pow", "Lib.Exponentiation.get_bits_l" ]
[]
false
false
false
false
false
let mul_acc_pow_a_bits_l (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t =
let bits_l = S.get_bits_l bBits b l i in k.mul acc (pow k a bits_l)
false
OPLSS.MAC.fst
OPLSS.MAC.log
val log : k: OPLSS.MAC.key -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot (FStar.Seq.Base.seq OPLSS.MAC.log_entry)
let log (k:key) (h:HS.mem) = Log.entries k.log h
{ "file_name": "examples/crypto/OPLSS.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 37, "start_col": 0, "start_line": 37 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.HMACSHA1.fst.checked", "OPLSS.Flag.fsti.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: OPLSS.MAC.key -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot (FStar.Seq.Base.seq OPLSS.MAC.log_entry)
Prims.GTot
[ "sometrivial" ]
[]
[ "OPLSS.MAC.key", "FStar.Monotonic.HyperStack.mem", "OPLSS.Log.entries", "OPLSS.MAC.log_entry", "OPLSS.MAC.__proj__Key__item__log", "FStar.Seq.Base.seq" ]
[]
false
false
false
false
false
let log (k: key) (h: HS.mem) =
Log.entries k.log h
false
RandomTapes.fst
RandomTapes.sample
val sample : random_tape -> int -> Tot int
val sample : random_tape -> int -> Tot int
let sample r i = r i
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 26, "start_col": 0, "start_line": 26 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: RandomTapes.random_tape -> i: Prims.int -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "RandomTapes.random_tape", "Prims.int" ]
[]
false
false
false
true
false
let sample r i =
r i
false
Steel.ST.Array.fsti
Steel.ST.Array.array
val array ([@@@ strictly_positive]elt: Type0) : Tot Type0
val array ([@@@ strictly_positive]elt: Type0) : Tot Type0
let array ([@@@strictly_positive] elt: Type0) : Tot Type0 = (p: ptr elt & (length: Ghost.erased nat {offset p + length <= base_len (base p)}))
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 84, "end_line": 76, "start_col": 0, "start_line": 75 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
elt: Type0 -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.dtuple2", "Steel.ST.Array.ptr", "FStar.Ghost.erased", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "FStar.Ghost.reveal", "Steel.ST.Array.base_len", "Steel.ST.Array.base" ]
[]
false
false
false
true
true
let array ([@@@ strictly_positive]elt: Type0) : Tot Type0 =
(p: ptr elt & (length: Ghost.erased nat {offset p + length <= base_len (base p)}))
false
RandomTapes.fst
RandomTapes.otp
val otp : int -> random_tape -> int -> Tot int
val otp : int -> random_tape -> int -> Tot int
let otp n r i = n + r i
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 42, "start_col": 0, "start_line": 42 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.int -> r: RandomTapes.random_tape -> i: Prims.int -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "RandomTapes.random_tape", "Prims.op_Addition" ]
[]
false
false
false
true
false
let otp n r i =
n + r i
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_double_fw_f
val exp_double_fw_f (#t: Type) (k: concrete_ops t) (a1: t) (bBits: nat) (b1: nat{b1 < pow2 bBits}) (a2: t) (b2: nat{b2 < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t
val exp_double_fw_f (#t: Type) (k: concrete_ops t) (a1: t) (bBits: nat) (b1: nat{b1 < pow2 bBits}) (a2: t) (b2: nat{b2 < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t
let exp_double_fw_f (#t:Type) (k:concrete_ops t) (a1:t) (bBits:nat) (b1:nat{b1 < pow2 bBits}) (a2:t) (b2:nat{b2 < pow2 bBits}) (l:pos) (i:nat{i < bBits / l}) (acc:t) : t = let acc1 = exp_fw_f k a2 bBits b2 l i acc in mul_acc_pow_a_bits_l k a1 bBits b1 l i acc1
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 196, "start_col": 0, "start_line": 190 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a1: t -> bBits: Prims.nat -> b1: Prims.nat{b1 < Prims.pow2 bBits} -> a2: t -> b2: Prims.nat{b2 < Prims.pow2 bBits} -> l: Prims.pos -> i: Prims.nat{i < bBits / l} -> acc: t -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Prims.pos", "Prims.op_Division", "Spec.Exponentiation.mul_acc_pow_a_bits_l", "Spec.Exponentiation.exp_fw_f" ]
[]
false
false
false
false
false
let exp_double_fw_f (#t: Type) (k: concrete_ops t) (a1: t) (bBits: nat) (b1: nat{b1 < pow2 bBits}) (a2: t) (b2: nat{b2 < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t =
let acc1 = exp_fw_f k a2 bBits b2 l i acc in mul_acc_pow_a_bits_l k a1 bBits b1 l i acc1
false
RandomTapes.fst
RandomTapes.otp2
val otp2 : int -> int -> random_tape -> int -> int -> Tot (int * int)
val otp2 : int -> int -> random_tape -> int -> int -> Tot (int * int)
let otp2 n m r i j = (n + r i, m + r j)
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 58, "start_col": 0, "start_line": 58 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.int -> m: Prims.int -> r: RandomTapes.random_tape -> i: Prims.int -> j: Prims.int -> Prims.int * Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "RandomTapes.random_tape", "FStar.Pervasives.Native.Mktuple2", "Prims.op_Addition", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
true
false
let otp2 n m r i j =
(n + r i, m + r j)
false
Steel.ST.Array.fsti
Steel.ST.Array.ptr_of
val ptr_of (#elt: Type) (a: array elt) : Tot (ptr elt)
val ptr_of (#elt: Type) (a: array elt) : Tot (ptr elt)
let ptr_of (#elt: Type) (a: array elt) : Tot (ptr elt) = match a with // dfst is not marked inline_for_extraction, so we need to reimplement it | (| p, _ |) -> p
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 19, "end_line": 91, "start_col": 0, "start_line": 86 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array elt -> Steel.ST.Array.ptr elt
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.Array.array", "Steel.ST.Array.ptr", "FStar.Ghost.erased", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "FStar.Ghost.reveal", "Steel.ST.Array.base_len", "Steel.ST.Array.base" ]
[]
false
false
false
true
false
let ptr_of (#elt: Type) (a: array elt) : Tot (ptr elt) =
match a with | (| p , _ |) -> p
false
RandomTapes.fst
RandomTapes.otp_rand
val otp_rand : x:(rel int) -> int -> Tot (bij #int #int)
val otp_rand : x:(rel int) -> int -> Tot (bij #int #int)
let otp_rand x i = if i = 0 then add (R?.l x - R?.r x) else id
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 49, "start_col": 0, "start_line": 46 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Rel.rel Prims.int -> i: Prims.int -> Bijection.bij
Prims.Tot
[ "total" ]
[]
[ "Rel.rel", "Prims.int", "Prims.op_Equality", "RandomTapes.add", "Prims.op_Subtraction", "Rel.__proj__R__item__l", "Rel.__proj__R__item__r", "Prims.bool", "RandomTapes.id", "Bijection.bij" ]
[]
false
false
false
true
false
let otp_rand x i =
if i = 0 then add (R?.l x - R?.r x) else id
false
Spec.Exponentiation.fsti
Spec.Exponentiation.pow
val pow (#t: Type) (k: concrete_ops t) (a: t) (b: nat) : t
val pow (#t: Type) (k: concrete_ops t) (a: t) (b: nat) : t
let rec pow (#t:Type) (k:concrete_ops t) (a:t) (b:nat) : t = if b = 0 then k.one () else k.mul a (pow k a (b - 1))
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 132, "start_col": 0, "start_line": 130 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a: t -> b: Prims.nat -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.op_Equality", "Prims.int", "Spec.Exponentiation.__proj__Mkconcrete_ops__item__one", "Prims.bool", "Spec.Exponentiation.__proj__Mkconcrete_ops__item__mul", "Spec.Exponentiation.pow", "Prims.op_Subtraction" ]
[ "recursion" ]
false
false
false
true
false
let rec pow (#t: Type) (k: concrete_ops t) (a: t) (b: nat) : t =
if b = 0 then k.one () else k.mul a (pow k a (b - 1))
false
OPLSS.MAC.fst
OPLSS.MAC.verify
val verify (k: key) (m: HMACSHA1.msg) (t: HMACSHA1.tag) : ST bool (requires invariant k) (ensures fun h0 b h1 -> invariant k h1 /\ h0 == h1 /\ (b <==> t == HMACSHA1.hmac_sha1 k.raw m /\ (Flag.reveal Ideal.uf_cma ==> (log k h1) `Log.has` (Entry m t))))
val verify (k: key) (m: HMACSHA1.msg) (t: HMACSHA1.tag) : ST bool (requires invariant k) (ensures fun h0 b h1 -> invariant k h1 /\ h0 == h1 /\ (b <==> t == HMACSHA1.hmac_sha1 k.raw m /\ (Flag.reveal Ideal.uf_cma ==> (log k h1) `Log.has` (Entry m t))))
let verify (k:key) (m:HMACSHA1.msg) (t:HMACSHA1.tag) : ST bool (requires invariant k) (ensures fun h0 b h1 -> invariant k h1 /\ h0 == h1 /\ (b <==> t == HMACSHA1.hmac_sha1 k.raw m /\ (Flag.reveal Ideal.uf_cma ==> log k h1 `Log.has` Entry m t))) = let verified = (t = HMACS...
{ "file_name": "examples/crypto/OPLSS.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 100, "start_col": 0, "start_line": 84 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.HMACSHA1.fst.checked", "OPLSS.Flag.fsti.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: OPLSS.MAC.key -> m: OPLSS.HMACSHA1.msg -> t: OPLSS.HMACSHA1.tag -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "OPLSS.MAC.key", "OPLSS.HMACSHA1.msg", "OPLSS.HMACSHA1.tag", "OPLSS.Flag.idealizing", "OPLSS.Ideal.uf_cma", "Prims.op_AmpAmp", "Prims.bool", "FStar.Pervasives.Native.uu___is_Some", "OPLSS.MAC.log_entry", "FStar.Pervasives.Native.option", "OPLSS.Log.find", "OPLSS.MAC.__proj__Key__item__log", ...
[]
false
true
false
false
false
let verify (k: key) (m: HMACSHA1.msg) (t: HMACSHA1.tag) : ST bool (requires invariant k) (ensures fun h0 b h1 -> invariant k h1 /\ h0 == h1 /\ (b <==> t == HMACSHA1.hmac_sha1 k.raw m /\ (Flag.reveal Ideal.uf_cma ==> (log k h1) `Log.has` (Entry m t)))) ...
let verified = (t = HMACSHA1.hmac_sha1 k.raw m) in if Flag.idealizing Ideal.uf_cma then let found = Some? (Log.find k.log (fun e -> e.msg = m && e.tag = t)) in verified && found else verified
false
RandomTapes.fst
RandomTapes.otp2_rand
val otp2_rand : x:(rel int) -> y:(rel int) -> int -> Tot (bij #int #int)
val otp2_rand : x:(rel int) -> y:(rel int) -> int -> Tot (bij #int #int)
let otp2_rand x y i = match i with | 0 -> add (R?.l x - R?.r x) | 1 -> add (R?.l y - R?.r y) | _ -> id
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 65, "start_col": 0, "start_line": 61 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Rel.rel Prims.int -> y: Rel.rel Prims.int -> i: Prims.int -> Bijection.bij
Prims.Tot
[ "total" ]
[]
[ "Rel.rel", "Prims.int", "RandomTapes.add", "Prims.op_Subtraction", "Rel.__proj__R__item__l", "Rel.__proj__R__item__r", "RandomTapes.id", "Bijection.bij" ]
[]
false
false
false
true
false
let otp2_rand x y i =
match i with | 0 -> add (R?.l x - R?.r x) | 1 -> add (R?.l y - R?.r y) | _ -> id
false
OPLSS.MAC.fst
OPLSS.MAC.keygen
val keygen: Prims.unit -> ST key (requires fun _ -> True) (ensures fun h0 k h1 -> invariant k h1 /\ B.modifies B.loc_none h0 h1 /\ B.fresh_loc (Log.fp k.log) h0 h1 /\ log k h1 == Seq.empty)
val keygen: Prims.unit -> ST key (requires fun _ -> True) (ensures fun h0 k h1 -> invariant k h1 /\ B.modifies B.loc_none h0 h1 /\ B.fresh_loc (Log.fp k.log) h0 h1 /\ log k h1 == Seq.empty)
let keygen () : ST key (requires fun _ -> True) (ensures fun h0 k h1 -> invariant k h1 /\ B.modifies B.loc_none h0 h1 /\ B.fresh_loc (Log.fp k.log) h0 h1 /\ log k h1 == Seq.empty) = let raw = random HMACSHA1.keysize in let l = Log.new_log #log_entry in Key raw l
{ "file_name": "examples/crypto/OPLSS.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 13, "end_line": 57, "start_col": 0, "start_line": 47 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.HMACSHA1.fst.checked", "OPLSS.Flag.fsti.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.HyperStack.ST.ST OPLSS.MAC.key
FStar.HyperStack.ST.ST
[]
[]
[ "Prims.unit", "OPLSS.MAC.Key", "OPLSS.MAC.key", "OPLSS.Log.t", "OPLSS.MAC.log_entry", "OPLSS.Log.new_log", "OPLSS.lbytes", "OPLSS.HMACSHA1.keysize", "OPLSS.random", "FStar.Monotonic.HyperStack.mem", "Prims.l_True", "Prims.l_and", "OPLSS.MAC.invariant", "LowStar.Monotonic.Buffer.modifies", ...
[]
false
true
false
false
false
let keygen () : ST key (requires fun _ -> True) (ensures fun h0 k h1 -> invariant k h1 /\ B.modifies B.loc_none h0 h1 /\ B.fresh_loc (Log.fp k.log) h0 h1 /\ log k h1 == Seq.empty) =
let raw = random HMACSHA1.keysize in let l = Log.new_log #log_entry in Key raw l
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_fw_f
val exp_fw_f (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t
val exp_fw_f (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t
let exp_fw_f (#t:Type) (k:concrete_ops t) (a:t) (bBits:nat) (b:nat{b < pow2 bBits}) (l:pos) (i:nat{i < bBits / l}) (acc:t) : t = let acc1 = exp_pow2 k acc l in mul_acc_pow_a_bits_l k a bBits b l i acc1
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 164, "start_col": 0, "start_line": 159 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a: t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> l: Prims.pos -> i: Prims.nat{i < bBits / l} -> acc: t -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Prims.pos", "Prims.op_Division", "Spec.Exponentiation.mul_acc_pow_a_bits_l", "Spec.Exponentiation.exp_pow2" ]
[]
false
false
false
false
false
let exp_fw_f (#t: Type) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (acc: t) : t =
let acc1 = exp_pow2 k acc l in mul_acc_pow_a_bits_l k a bBits b l i acc1
false
Hacl.Spec.Bignum.ModInv.fst
Hacl.Spec.Bignum.ModInv.bn_mod_inv_prime_precomp
val bn_mod_inv_prime_precomp: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t len -> Pure (lbignum t len) (requires bn_mod_inv_prime_pre n a /\ bn_v r2 == pow2 (2 * bits t * len) % bn_v n /\ (1 + bn_v n * v mu) % pow2 (bits t) == 0) (ensur...
val bn_mod_inv_prime_precomp: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t len -> Pure (lbignum t len) (requires bn_mod_inv_prime_pre n a /\ bn_v r2 == pow2 (2 * bits t * len) % bn_v n /\ (1 + bn_v n * v mu) % pow2 (bits t) == 0) (ensur...
let bn_mod_inv_prime_precomp #t #len n mu r2 a = let n2 = bn_mod_inv_prime_n2 n in bn_eval_bound n len; let res = BE.bn_mod_exp_vartime_precompr2 len n r2 a (bits t * len) n2 in assert (bn_v res == Lib.NatMod.pow_mod #(bn_v n) (bn_v a) (bn_v n2)); mod_inv_prime_lemma (bn_v n) (bn_v a); res
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 129, "start_col": 0, "start_line": 123 }
module Hacl.Spec.Bignum.ModInv open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module BE = Hacl.Spec.Bignum.Exponentiation module BM = Hacl.Spec.Bignum.Montgomery ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Exponentiation.fsti.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Exponentiation", "short_module": "BE" }, { "abbr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> mu: Hacl.Spec.Bignum.Definitions.limb t -> r2: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Prims.Pure (Hacl.Spec.Bignum.Definitions.lbignum t len)
Prims.Pure
[]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.unit", "Hacl.Spec.Bignum.ModInv.mod_inv_prime_lemma", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims._assert", "Prims.eq2", "Prims.nat", "Lib.NatMod....
[]
false
false
false
false
false
let bn_mod_inv_prime_precomp #t #len n mu r2 a =
let n2 = bn_mod_inv_prime_n2 n in bn_eval_bound n len; let res = BE.bn_mod_exp_vartime_precompr2 len n r2 a (bits t * len) n2 in assert (bn_v res == Lib.NatMod.pow_mod #(bn_v n) (bn_v a) (bn_v n2)); mod_inv_prime_lemma (bn_v n) (bn_v a); res
false
RandomTapes.fst
RandomTapes.add
val add : int -> Tot (bij #int #int)
val add : int -> Tot (bij #int #int)
let add x = cut (inverses (op_Addition x) (minus x)); op_Addition x
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 67, "end_line": 38, "start_col": 0, "start_line": 38 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.int -> Bijection.bij
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Prims.op_Addition", "Prims.unit", "Prims.cut", "Bijection.inverses", "RandomTapes.minus", "Bijection.bij" ]
[]
false
false
false
true
false
let add x =
cut (inverses (op_Addition x) (minus x)); op_Addition x
false
Hacl.Spec.Bignum.ModInv.fst
Hacl.Spec.Bignum.ModInv.mod_inv_prime_lemma
val mod_inv_prime_lemma: n:nat{1 < n /\ Euclid.is_prime n} -> a:pos{a < n} -> Lemma (Lib.NatMod.pow_mod #n a (n - 2) * a % n = 1)
val mod_inv_prime_lemma: n:nat{1 < n /\ Euclid.is_prime n} -> a:pos{a < n} -> Lemma (Lib.NatMod.pow_mod #n a (n - 2) * a % n = 1)
let mod_inv_prime_lemma n a = Math.Lemmas.small_mod a n; assert (a == a % n); assert (a <> 0 /\ a % n <> 0); calc (==) { Lib.NatMod.pow_mod #n a (n - 2) * a % n; (==) { Lib.NatMod.lemma_pow_mod #n a (n - 2) } Lib.NatMod.pow a (n - 2) % n * a % n; (==) { Math.Lemmas.lemma_mod_mul_distr_l (Lib.Na...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInv.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 48, "start_col": 0, "start_line": 31 }
module Hacl.Spec.Bignum.ModInv open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module BE = Hacl.Spec.Bignum.Exponentiation module BM = Hacl.Spec.Bignum.Montgomery ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Exponentiation.fsti.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Exponentiation", "short_module": "BE" }, { "abbr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat{1 < n /\ FStar.Math.Euclid.is_prime n} -> a: Prims.pos{a < n} -> FStar.Pervasives.Lemma (ensures Lib.NatMod.pow_mod a (n - 2) * a % n = 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "FStar.Math.Euclid.is_prime", "Prims.pos", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Modulus", "FStar.Mul.op_Star", "Lib.NatMod.pow_mod", "Prims.op_Subtraction", "Prims.Cons", "FStar.Preorder.relation", "...
[]
false
false
true
false
false
let mod_inv_prime_lemma n a =
Math.Lemmas.small_mod a n; assert (a == a % n); assert (a <> 0 /\ a % n <> 0); calc ( == ) { Lib.NatMod.pow_mod #n a (n - 2) * a % n; ( == ) { Lib.NatMod.lemma_pow_mod #n a (n - 2) } (Lib.NatMod.pow a (n - 2) % n) * a % n; ( == ) { Math.Lemmas.lemma_mod_mul_distr_l (Lib.NatMod.pow a (n - 2)) a n } Lib.NatMod....
false
RandomTapes.fst
RandomTapes.id
val id : bij #int #int
val id : bij #int #int
let id x = x
{ "file_name": "examples/rel/RandomTapes.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 31, "start_col": 0, "start_line": 31 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "Bijection.fst.checked" ], "interface_file": false, "source_file": "RandomTapes.fst" }
[ { "abbrev": false, "full_module": "Bijection", "short_module": null }, { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Bijection.bij
Prims.Tot
[ "total" ]
[]
[ "Prims.int" ]
[]
false
false
false
true
false
let id x =
x
false
Steel.ST.Array.fsti
Steel.ST.Array.length
val length (#elt: Type) (a: array elt) : GTot nat
val length (#elt: Type) (a: array elt) : GTot nat
let length (#elt: Type) (a: array elt) : GTot nat = dsnd a
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 8, "end_line": 103, "start_col": 0, "start_line": 102 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array elt -> Prims.GTot Prims.nat
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.Array.array", "FStar.Ghost.reveal", "Prims.nat", "FStar.Pervasives.dsnd", "Steel.ST.Array.ptr", "FStar.Ghost.erased", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "Steel.ST.Array.base_len", "Steel.ST.Array.base" ]
[]
false
false
false
false
false
let length (#elt: Type) (a: array elt) : GTot nat =
dsnd a
false
Steel.ST.Array.fsti
Steel.ST.Array.is_full_array
val is_full_array (#elt: Type) (a: array elt) : Tot prop
val is_full_array (#elt: Type) (a: array elt) : Tot prop
let is_full_array (#elt: Type) (a: array elt) : Tot prop = length a == base_len (base (ptr_of a))
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 40, "end_line": 188, "start_col": 0, "start_line": 187 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array elt -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.Array.array", "Prims.eq2", "Prims.nat", "Steel.ST.Array.length", "Steel.ST.Array.base_len", "Steel.ST.Array.base", "Steel.ST.Array.ptr_of", "Prims.prop" ]
[]
false
false
false
true
true
let is_full_array (#elt: Type) (a: array elt) : Tot prop =
length a == base_len (base (ptr_of a))
false
Hacl.EC.K256.fst
Hacl.EC.K256.point_mul
val point_mul: scalar:lbuffer uint8 32ul -> p:P.point -> out:P.point -> Stack unit (requires fun h -> live h scalar /\ live h p /\ live h out /\ disjoint out p /\ disjoint out scalar /\ disjoint p scalar /\ P.point_inv h p /\ BSeq.nat_from_bytes_be (as_seq h scalar) < S.q) // it's still safe to invoke...
val point_mul: scalar:lbuffer uint8 32ul -> p:P.point -> out:P.point -> Stack unit (requires fun h -> live h scalar /\ live h p /\ live h out /\ disjoint out p /\ disjoint out scalar /\ disjoint p scalar /\ P.point_inv h p /\ BSeq.nat_from_bytes_be (as_seq h scalar) < S.q) // it's still safe to invoke...
let point_mul scalar p out = push_frame (); let scalar_q = Q.create_qelem () in Q.load_qelem scalar_q scalar; PM.point_mul out scalar_q p; pop_frame ()
{ "file_name": "code/k256/Hacl.EC.K256.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 333, "start_col": 0, "start_line": 328 }
module Hacl.EC.K256 open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module S = Spec.K256 module F = Hacl.K256.Field module Q = Hacl.K256.Scalar module FI = Hacl.Impl.K256.Finv module P = Hacl.Impl.K256.P...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointMul", "short_module": "PM" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.PointDouble", "short_module": "PD" }, { "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
scalar: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> p: Hacl.Impl.K256.Point.point -> out: Hacl.Impl.K256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.K256.Point.point", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.K256.PointMul.point_mul", "Hacl.K256.Scalar.load_qelem", "Hacl.K256.Scalar.qelem", "Hacl.K256.Scalar.create_qelem", "FStar.HyperStack.ST...
[]
false
true
false
false
false
let point_mul scalar p out =
push_frame (); let scalar_q = Q.create_qelem () in Q.load_qelem scalar_q scalar; PM.point_mul out scalar_q p; pop_frame ()
false
OPLSS.MAC.fst
OPLSS.MAC.mac
val mac (k: key) (m: HMACSHA1.msg) : ST HMACSHA1.tag (requires invariant k) (ensures fun h0 t h1 -> invariant k h1 /\ B.modifies (Log.fp k.log) h0 h1 /\ t == HMACSHA1.hmac_sha1 k.raw m /\ (if Flag.reveal Ideal.uf_cma then log k h1 == Seq.snoc (log k h0) (Entry m t...
val mac (k: key) (m: HMACSHA1.msg) : ST HMACSHA1.tag (requires invariant k) (ensures fun h0 t h1 -> invariant k h1 /\ B.modifies (Log.fp k.log) h0 h1 /\ t == HMACSHA1.hmac_sha1 k.raw m /\ (if Flag.reveal Ideal.uf_cma then log k h1 == Seq.snoc (log k h0) (Entry m t...
let mac (k:key) (m:HMACSHA1.msg) : ST HMACSHA1.tag (requires invariant k) (ensures fun h0 t h1 -> invariant k h1 /\ B.modifies (Log.fp k.log) h0 h1 /\ t == HMACSHA1.hmac_sha1 k.raw m /\ (if Flag.reveal Ideal.uf_cma then log k h1 == Seq.snoc (log k h0) (Entry m t) el...
{ "file_name": "examples/crypto/OPLSS.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 79, "start_col": 0, "start_line": 62 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.HMACSHA1.fst.checked", "OPLSS.Flag.fsti.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: OPLSS.MAC.key -> m: OPLSS.HMACSHA1.msg -> FStar.HyperStack.ST.ST OPLSS.HMACSHA1.tag
FStar.HyperStack.ST.ST
[]
[]
[ "OPLSS.MAC.key", "OPLSS.HMACSHA1.msg", "OPLSS.HMACSHA1.tag", "Prims.unit", "OPLSS.Flag.idealizing", "OPLSS.Ideal.uf_cma", "OPLSS.Log.add", "OPLSS.MAC.log_entry", "OPLSS.MAC.__proj__Key__item__log", "OPLSS.MAC.Entry", "Prims.bool", "OPLSS.HMACSHA1.hmac_sha1", "OPLSS.MAC.__proj__Key__item__raw...
[]
false
true
false
false
false
let mac (k: key) (m: HMACSHA1.msg) : ST HMACSHA1.tag (requires invariant k) (ensures fun h0 t h1 -> invariant k h1 /\ B.modifies (Log.fp k.log) h0 h1 /\ t == HMACSHA1.hmac_sha1 k.raw m /\ (if Flag.reveal Ideal.uf_cma then log k h1 == Seq.snoc (log k h0) (Entry m t...
let t = HMACSHA1.hmac_sha1 k.raw m in if Flag.idealizing Ideal.uf_cma then Log.add k.log (Entry m t); t
false
Steel.ST.Array.fsti
Steel.ST.Array.read
val read : a: Steel.ST.Array.array t -> i: FStar.SizeT.t -> Steel.ST.Effect.ST t
let read #t #p = index #t #p
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 268, "start_col": 0, "start_line": 268 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array t -> i: FStar.SizeT.t -> Steel.ST.Effect.ST t
Steel.ST.Effect.ST
[]
[]
[ "Steel.FractionalPermission.perm", "Steel.ST.Array.index", "Steel.ST.Array.array", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "FStar.SizeT.t", "Steel.ST.Array.pts_to", "FStar.Ghost.reveal", "Steel.Effect.Common.vprop", "Prims.l_or", "Prims.b2t", "Prims.op_LessThan", "FStar.SizeT.v", "Stee...
[]
false
true
false
false
false
let read #t #p =
index #t #p
false
Hacl.Impl.Curve25519.AddAndDouble.fst
Hacl.Impl.Curve25519.AddAndDouble.point_double
val point_double: #s:field_spec -> nq:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state...
val point_double: #s:field_spec -> nq:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state...
let point_double #s nq tmp1 tmp2 = let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let d : felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c : felem s = sub tmp1 (3ul *! nlimb s) (nlim...
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 245, "start_col": 0, "start_line": 210 }
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module ...
{ "checked_file": "/", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fie...
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abb...
{ "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...
false
nq: Hacl.Impl.Curve25519.AddAndDouble.point s -> tmp1: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (4ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> tmp2: Hacl.Impl.Curve25519.Fields.Core.felem_wide2 s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Hacl....
[]
false
true
false
false
false
let point_double #s nq tmp1 tmp2 =
let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let a:felem s = sub tmp1 0ul (nlimb s) in let b:felem s = sub tmp1 (nlimb s) (nlimb s) in let d:felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c:felem s = sub tmp1 (3ul *! nlimb s) (nlimb s) in let ab:felem2 s = sub tmp1 0ul (2ul *! nlimb s) ...
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_fw_acc0
val exp_fw_acc0 (#t: Type0) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos{bBits % l <> 0}) : t
val exp_fw_acc0 (#t: Type0) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos{bBits % l <> 0}) : t
let exp_fw_acc0 (#t:Type0) (k:concrete_ops t) (a:t) (bBits:nat) (b:nat{b < pow2 bBits}) (l:pos{bBits % l <> 0}) : t = let bits_c = S.get_ith_lbits bBits b (bBits / l * l) l in pow k a bits_c
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 149, "start_col": 0, "start_line": 145 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a: t -> bBits: Prims.nat -> b: Prims.nat{b < Prims.pow2 bBits} -> l: Prims.pos{bBits % l <> 0} -> t
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Prims.pos", "Prims.op_disEquality", "Prims.int", "Prims.op_Modulus", "Spec.Exponentiation.pow", "Lib.Exponentiation.get_ith_lbits", "FStar.Mul.op_Star", "Prims.op_Division" ]
[]
false
false
false
false
false
let exp_fw_acc0 (#t: Type0) (k: concrete_ops t) (a: t) (bBits: nat) (b: nat{b < pow2 bBits}) (l: pos{bBits % l <> 0}) : t =
let bits_c = S.get_ith_lbits bBits b ((bBits / l) * l) l in pow k a bits_c
false
Spec.Exponentiation.fsti
Spec.Exponentiation.exp_four_fw_f
val exp_four_fw_f (#t: Type) (k: concrete_ops t) (a1: t) (bBits: nat) (b1: nat{b1 < pow2 bBits}) (a2: t) (b2: nat{b2 < pow2 bBits}) (a3: t) (b3: nat{b3 < pow2 bBits}) (a4: t) (b4: nat{b4 < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (...
val exp_four_fw_f (#t: Type) (k: concrete_ops t) (a1: t) (bBits: nat) (b1: nat{b1 < pow2 bBits}) (a2: t) (b2: nat{b2 < pow2 bBits}) (a3: t) (b3: nat{b3 < pow2 bBits}) (a4: t) (b4: nat{b4 < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (...
let exp_four_fw_f (#t:Type) (k:concrete_ops t) (a1:t) (bBits:nat) (b1:nat{b1 < pow2 bBits}) (a2:t) (b2:nat{b2 < pow2 bBits}) (a3:t) (b3:nat{b3 < pow2 bBits}) (a4:t) (b4:nat{b4 < pow2 bBits}) (l:pos) (i:nat{i < bBits / l}) (acc:t) : t = let acc = exp_fw_f k a4 bBits b4 l i acc in let acc = mul_acc_pow_a_b...
{ "file_name": "specs/Spec.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 243, "start_col": 0, "start_line": 232 }
module Spec.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence module S = Lib.Exponentiation module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** This is a specification for generic exponentiation defined as a repeated application of a commutative monoid operation...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Exponentiation", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Exponentiation.concrete_ops t -> a1: t -> bBits: Prims.nat -> b1: Prims.nat{b1 < Prims.pow2 bBits} -> a2: t -> b2: Prims.nat{b2 < Prims.pow2 bBits} -> a3: t -> b3: Prims.nat{b3 < Prims.pow2 bBits} -> a4: t -> b4: Prims.nat{b4 < Prims.pow2 bBits} -> l: Prims.pos -> ...
Prims.Tot
[ "total" ]
[]
[ "Spec.Exponentiation.concrete_ops", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Prims.pos", "Prims.op_Division", "Spec.Exponentiation.mul_acc_pow_a_bits_l", "Spec.Exponentiation.exp_fw_f" ]
[]
false
false
false
false
false
let exp_four_fw_f (#t: Type) (k: concrete_ops t) (a1: t) (bBits: nat) (b1: nat{b1 < pow2 bBits}) (a2: t) (b2: nat{b2 < pow2 bBits}) (a3: t) (b3: nat{b3 < pow2 bBits}) (a4: t) (b4: nat{b4 < pow2 bBits}) (l: pos) (i: nat{i < bBits / l}) (...
let acc = exp_fw_f k a4 bBits b4 l i acc in let acc = mul_acc_pow_a_bits_l k a3 bBits b3 l i acc in let acc = mul_acc_pow_a_bits_l k a2 bBits b2 l i acc in let acc = mul_acc_pow_a_bits_l k a1 bBits b1 l i acc in acc
false
LowParse.Low.Writers.Instances.fst
LowParse.Low.Writers.Instances.swrite_bitsum
val swrite_bitsum (h0: HS.mem) (space_beyond: nat) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _))) (pout_from0: U32.t) (#kt: parser_kind) (#tot: pos) (#t: eqtype) (#cl: uint_t tot t) (b: b...
val swrite_bitsum (h0: HS.mem) (space_beyond: nat) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _))) (pout_from0: U32.t) (#kt: parser_kind) (#tot: pos) (#t: eqtype) (#cl: uint_t tot t) (b: b...
let swrite_bitsum (h0: HS.mem) (space_beyond: nat) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _))) (pout_from0: U32.t) (#kt: parser_kind) (#tot: pos) (#t: eqtype) (#cl: uint_t tot t) (b: bitsum' cl tot) (#data: Type) (tag_of_data: (data -> To...
{ "file_name": "src/lowparse/LowParse.Low.Writers.Instances.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 298, "start_col": 0, "start_line": 254 }
module LowParse.Low.Writers.Instances include LowParse.Low.Writers include LowParse.Low.Combinators include LowParse.Low.Bytes include LowParse.Low.BitSum module HS = FStar.HyperStack module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST inline_for_extraction noextract let swrite_weaken...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Endianness.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Low.Writers.fst.checked", "LowParse.Low.Combinators.fsti.checked", "LowParse.Low.Bytes.fst.checked", "LowParse.Low.BitSum.fst.checked", "LowParse.En...
[ { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "FB" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: FStar.Monotonic.HyperStack.mem -> space_beyond: Prims.nat -> sout: LowParse.Slice.slice (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte )) (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte)) -> ...
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "Prims.nat", "LowParse.Slice.slice", "LowParse.Slice.srel_of_buffer_srel", "LowParse.Bytes.byte", "LowStar.Buffer.trivial_preorder", "FStar.UInt32.t", "LowParse.Spec.Base.parser_kind", "Prims.pos", "Prims.eqtype", "LowParse.BitFields.uint_t", "LowParse.Spec.Bi...
[]
false
false
false
false
false
let swrite_bitsum (h0: HS.mem) (space_beyond: nat) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _))) (pout_from0: U32.t) (#kt: parser_kind) (#tot: pos) (#t: eqtype) (#cl: uint_t tot t) (b: b...
SWriter (Ghost.hide (synth_case.f k (swvalue w_pl))) (fun pout_from -> serialized_length_eq (serialize_bitsum b tag_of_data type_of_tag synth_case s #f g) (synth_case.f k (swvalue w_pl)); serialized_length_eq s (synth_bitsum'_recip b k); serialized_length_eq (g (bitsum'_key_of_t b k)) (swval...
false
Steel.ST.Array.fsti
Steel.ST.Array.alloc
val alloc : x: elt -> n: FStar.SizeT.t -> Steel.ST.Effect.ST (Steel.ST.Array.array elt)
let alloc #elt = malloc #elt
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 207, "start_col": 0, "start_line": 207 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: elt -> n: FStar.SizeT.t -> Steel.ST.Effect.ST (Steel.ST.Array.array elt)
Steel.ST.Effect.ST
[]
[]
[ "Steel.ST.Array.malloc", "FStar.SizeT.t", "Steel.ST.Array.array", "Steel.Effect.Common.emp", "Steel.ST.Array.pts_to", "Steel.FractionalPermission.full_perm", "FStar.Seq.Base.create", "FStar.SizeT.v", "Steel.Effect.Common.vprop", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.nat", "Ste...
[]
false
true
false
false
false
let alloc #elt =
malloc #elt
false
Steel.ST.Array.fsti
Steel.ST.Array.write
val write : a: Steel.ST.Array.array t -> i: FStar.SizeT.t{FStar.SizeT.v i < FStar.Seq.Base.length (FStar.Ghost.reveal s)} -> v: t -> Steel.ST.Effect.STT Prims.unit
let write #t = upd #t
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 286, "start_col": 0, "start_line": 286 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array t -> i: FStar.SizeT.t{FStar.SizeT.v i < FStar.Seq.Base.length (FStar.Ghost.reveal s)} -> v: t -> Steel.ST.Effect.STT Prims.unit
Steel.ST.Effect.STT
[]
[]
[ "Steel.ST.Array.upd", "Steel.ST.Array.array", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "FStar.SizeT.t", "Prims.b2t", "Prims.op_LessThan", "FStar.SizeT.v", "FStar.Seq.Base.length", "FStar.Ghost.reveal", "Prims.unit", "Steel.ST.Array.pts_to", "Steel.FractionalPermission.full_perm", "FStar...
[]
false
true
false
false
false
let write #t =
upd #t
false
Steel.ST.Array.fsti
Steel.ST.Array.adjacent
val adjacent (#elt: Type) (a1 a2: array elt) : Tot prop
val adjacent (#elt: Type) (a1 a2: array elt) : Tot prop
let adjacent (#elt: Type) (a1 a2: array elt) : Tot prop = base (ptr_of a1) == base (ptr_of a2) /\ offset (ptr_of a1) + (length a1) == offset (ptr_of a2)
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 293, "start_col": 0, "start_line": 291 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a1: Steel.ST.Array.array elt -> a2: Steel.ST.Array.array elt -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.Array.array", "Prims.l_and", "Prims.eq2", "Steel.ST.Array.base_t", "Steel.ST.Array.base", "Steel.ST.Array.ptr_of", "Prims.int", "Prims.op_Addition", "Steel.ST.Array.offset", "Steel.ST.Array.length", "Prims.prop" ]
[]
false
false
false
true
true
let adjacent (#elt: Type) (a1 a2: array elt) : Tot prop =
base (ptr_of a1) == base (ptr_of a2) /\ offset (ptr_of a1) + (length a1) == offset (ptr_of a2)
false
FStar.Printf.fst
FStar.Printf.no_extensions
val no_extensions:extension_parser
val no_extensions:extension_parser
let no_extensions : extension_parser = fun s -> None
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 52, "end_line": 185, "start_col": 0, "start_line": 185 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Printf.extension_parser
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.String.char", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.tuple2", "FStar.Printf.extension", "Prims.precedes", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let no_extensions:extension_parser =
fun s -> None
false
FStar.Printf.fst
FStar.Printf.parse_format_string
val parse_format_string (s: string) (parse_ext: extension_parser) : option (list dir)
val parse_format_string (s: string) (parse_ext: extension_parser) : option (list dir)
let parse_format_string (s:string) (parse_ext:extension_parser) : option (list dir) = parse_format (list_of_string s) parse_ext
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 183, "start_col": 0, "start_line": 179 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Prims.string -> parse_ext: FStar.Printf.extension_parser -> FStar.Pervasives.Native.option (Prims.list FStar.Printf.dir)
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.Printf.extension_parser", "FStar.Printf.parse_format", "FStar.String.list_of_string", "FStar.Pervasives.Native.option", "Prims.list", "FStar.Printf.dir" ]
[]
false
false
false
true
false
let parse_format_string (s: string) (parse_ext: extension_parser) : option (list dir) =
parse_format (list_of_string s) parse_ext
false
HyE.Plain.fst
HyE.Plain.repr
val repr: p:t{not conf} -> Tot r
val repr: p:t{not conf} -> Tot r
let repr t = t
{ "file_name": "examples/crypto/HyE.Plain.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 25, "start_col": 0, "start_line": 25 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Platform.Bytes.fst.checked", "HyE.Ideal.fsti.checked", "FStar.Pervasives.fsti.checked", "CoreCrypto.fst.checked" ], "interface_file": true, "source_file": "HyE.Plain.fst" }
[ { "abbrev": false, "full_module": "HyE.Ideal", "short_module": null }, { "abbrev": false, "full_module": "CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platform.Bytes", "short_module": null }, { "abbrev": false, "full_module": "HyE", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: HyE.Plain.t{Prims.op_Negation HyE.Ideal.conf} -> HyE.Plain.r
Prims.Tot
[ "total" ]
[]
[ "HyE.Plain.t", "Prims.b2t", "Prims.op_Negation", "HyE.Ideal.conf", "HyE.Plain.r" ]
[]
false
false
false
false
false
let repr t =
t
false
HyE.Plain.fst
HyE.Plain.coerce
val coerce: x:r -> Tot t
val coerce: x:r -> Tot t
let coerce t =t
{ "file_name": "examples/crypto/HyE.Plain.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 15, "end_line": 27, "start_col": 0, "start_line": 27 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Platform.Bytes.fst.checked", "HyE.Ideal.fsti.checked", "FStar.Pervasives.fsti.checked", "CoreCrypto.fst.checked" ], "interface_file": true, "source_file": "HyE.Plain.fst" }
[ { "abbrev": false, "full_module": "HyE.Ideal", "short_module": null }, { "abbrev": false, "full_module": "CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platform.Bytes", "short_module": null }, { "abbrev": false, "full_module": "HyE", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: HyE.Plain.r -> HyE.Plain.t
Prims.Tot
[ "total" ]
[]
[ "HyE.Plain.r", "HyE.Plain.t" ]
[]
false
false
false
true
false
let coerce t =
t
false
HyE.Plain.fst
HyE.Plain.length
val length: p:t -> Tot nat
val length: p:t -> Tot nat
let length p = length p
{ "file_name": "examples/crypto/HyE.Plain.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 29, "start_col": 0, "start_line": 29 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Platform.Bytes.fst.checked", "HyE.Ideal.fsti.checked", "FStar.Pervasives.fsti.checked", "CoreCrypto.fst.checked" ], "interface_file": true, "source_file": "HyE.Plain.fst" }
[ { "abbrev": false, "full_module": "HyE.Ideal", "short_module": null }, { "abbrev": false, "full_module": "CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platform.Bytes", "short_module": null }, { "abbrev": false, "full_module": "HyE", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: HyE.Plain.t -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "HyE.Plain.t", "Platform.Bytes.length", "Prims.nat" ]
[]
false
false
false
true
false
let length p =
length p
false
Steel.ST.Array.fsti
Steel.ST.Array.merge_into
val merge_into (#elt: Type) (a1 a2 a: array elt) : Tot prop
val merge_into (#elt: Type) (a1 a2 a: array elt) : Tot prop
let merge_into (#elt: Type) (a1 a2 a: array elt) : Tot prop = adjacent a1 a2 /\ merge a1 a2 == a
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 18, "end_line": 322, "start_col": 0, "start_line": 320 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a1: Steel.ST.Array.array elt -> a2: Steel.ST.Array.array elt -> a: Steel.ST.Array.array elt -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.Array.array", "Prims.l_and", "Steel.ST.Array.adjacent", "Prims.eq2", "Steel.ST.Array.merge", "FStar.Ghost.hide", "Prims.prop" ]
[]
false
false
false
true
true
let merge_into (#elt: Type) (a1 a2 a: array elt) : Tot prop =
adjacent a1 a2 /\ merge a1 a2 == a
false
Vale.Curve25519.FastUtil_helpers.fsti
Vale.Curve25519.FastUtil_helpers.sub_carry
val sub_carry (x y: nat64) (c: bit) : nat64 & bit
val sub_carry (x y: nat64) (c: bit) : nat64 & bit
let sub_carry (x y:nat64) (c:bit) : nat64 & bit = if x - (y + c) < 0 then (x - (y + c) + pow2_64, 1) else (x - (y + c)), 0
{ "file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastUtil_helpers.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 17, "start_col": 0, "start_line": 12 }
module Vale.Curve25519.FastUtil_helpers open Vale.Def.Words_s open Vale.Def.Types_s open FStar.Mul open FStar.Tactics open FStar.Tactics.CanonCommSemiring open Vale.Curve25519.Fast_defs let int_canon = fun _ -> norm [delta; zeta; iota]; int_semiring () //; dump "Final"
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Curve25519.Fast_defs.fst.checked", "prims.fst.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "...
[ { "abbrev": false, "full_module": "Vale.Curve25519.Fast_defs", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSemiring", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Vale.Def.Types_s.nat64 -> y: Vale.Def.Types_s.nat64 -> c: Vale.Curve25519.Fast_defs.bit -> Vale.Def.Types_s.nat64 * Vale.Curve25519.Fast_defs.bit
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.nat64", "Vale.Curve25519.Fast_defs.bit", "Prims.op_LessThan", "Prims.op_Subtraction", "Prims.op_Addition", "FStar.Pervasives.Native.Mktuple2", "Vale.Def.Words_s.pow2_64", "Prims.bool", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
true
false
let sub_carry (x y: nat64) (c: bit) : nat64 & bit =
if x - (y + c) < 0 then (x - (y + c) + pow2_64, 1) else (x - (y + c)), 0
false
FStar.Printf.fst
FStar.Printf.arg_type
val arg_type (a: arg) : Tot Type0
val arg_type (a: arg) : Tot Type0
let arg_type (a:arg) : Tot Type0 = match a with | Bool -> bool | Int -> int | Char -> char | String -> string | U8 -> FStar.UInt8.t | U16 -> FStar.UInt16.t | U32 -> FStar.UInt32.t | U64 -> FStar.UInt64.t | I8 -> FStar.Int8.t | I16 -> FStar.Int16.t | I32 -> FStar.Int...
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 75, "start_col": 0, "start_line": 61 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.Printf.arg -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Printf.arg", "Prims.bool", "Prims.int", "FStar.String.char", "Prims.string", "FStar.UInt8.t", "FStar.UInt16.t", "FStar.UInt32.t", "FStar.UInt64.t", "FStar.Int8.t", "FStar.Int16.t", "FStar.Int32.t", "FStar.Int64.t" ]
[]
false
false
false
true
true
let arg_type (a: arg) : Tot Type0 =
match a with | Bool -> bool | Int -> int | Char -> char | String -> string | U8 -> FStar.UInt8.t | U16 -> FStar.UInt16.t | U32 -> FStar.UInt32.t | U64 -> FStar.UInt64.t | I8 -> FStar.Int8.t | I16 -> FStar.Int16.t | I32 -> FStar.Int32.t | I64 -> FStar.Int64.t | Extension (MkExtension #t _) -> t
false
FStar.Printf.fst
FStar.Printf.string_of_dirs
val string_of_dirs (ds: list dir) (k: (string -> string)) : dir_type ds
val string_of_dirs (ds: list dir) (k: (string -> string)) : dir_type ds
let rec string_of_dirs (ds:list dir) (k:string -> string) : dir_type ds = match ds with | [] -> k "" | Lit c :: ds' -> coerce_eq () ( string_of_dirs ds' (fun res -> k (string_of_char c ^ res)) ) | Arg a :: ds' -> fun (x : arg_type a) -> string_of_dirs ds' ...
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 124, "start_col": 0, "start_line": 110 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ds: Prims.list FStar.Printf.dir -> k: (_: Prims.string -> Prims.string) -> FStar.Printf.dir_type ds
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Printf.dir", "Prims.string", "FStar.String.char", "FStar.Pervasives.coerce_eq", "FStar.Printf.dir_type", "FStar.Printf.string_of_dirs", "Prims.op_Hat", "FStar.String.string_of_char", "FStar.Printf.arg", "FStar.Printf.arg_type", "FStar.Printf.string_of_arg" ]
[ "recursion" ]
false
false
false
false
false
let rec string_of_dirs (ds: list dir) (k: (string -> string)) : dir_type ds =
match ds with | [] -> k "" | Lit c :: ds' -> coerce_eq () (string_of_dirs ds' (fun res -> k (string_of_char c ^ res))) | Arg a :: ds' -> fun (x: arg_type a) -> string_of_dirs ds' (fun res -> ((k "") ^ string_of_arg x ^ res))
false
FStar.Printf.fst
FStar.Printf.string_of_arg
val string_of_arg (#a: arg) (x: arg_type a) : string
val string_of_arg (#a: arg) (x: arg_type a) : string
let string_of_arg (#a:arg) (x:arg_type a) : string = match a with | Bool -> string_of_bool x | Int -> string_of_int x | Char -> string_of_char x | String -> x | U8 -> FStar.UInt8.to_string x | U16 -> FStar.UInt16.to_string x | U32 -> FStar.UInt32.to_string x | U64 ...
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 91, "start_col": 0, "start_line": 77 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.Printf.arg_type a -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "FStar.Printf.arg", "FStar.Printf.arg_type", "Prims.string_of_bool", "Prims.string_of_int", "FStar.String.string_of_char", "FStar.UInt8.to_string", "FStar.UInt16.to_string", "FStar.UInt32.to_string", "FStar.UInt64.to_string", "FStar.Int8.to_string", "FStar.Int16.to_string", "FStar.Int32.to_str...
[]
false
false
false
false
false
let string_of_arg (#a: arg) (x: arg_type a) : string =
match a with | Bool -> string_of_bool x | Int -> string_of_int x | Char -> string_of_char x | String -> x | U8 -> FStar.UInt8.to_string x | U16 -> FStar.UInt16.to_string x | U32 -> FStar.UInt32.to_string x | U64 -> FStar.UInt64.to_string x | I8 -> FStar.Int8.to_string x | I16 -> FStar.Int16.to_string x | I32 -> FStar.I...
false
Hacl.Impl.Load56.fst
Hacl.Impl.Load56.lemma_load_64_bytes
val lemma_load_64_bytes (k: lbytes 64) (b0 b1 b2 b3 b4 b5 b6 b7 b8 b9: uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28)...
val lemma_load_64_bytes (k: lbytes 64) (b0 b1 b2 b3 b4 b5 b6 b7 b8 b9: uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28)...
let lemma_load_64_bytes (k:lbytes 64) (b0 b1 b2 b3 b4 b5 b6 b7 b8 b9:uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28) /\ v b4 == na...
{ "file_name": "code/ed25519/Hacl.Impl.Load56.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 157, "end_line": 116, "start_col": 0, "start_line": 74 }
module Hacl.Impl.Load56 module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.ByteSequence open Lib.Buffer open Lib.ByteBuffer module F56 = Hacl.Impl.BignumQ.Mul module S56 = Hacl.Spec.BignumQ.Definitions #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" inline...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.BignumQ.Definitions.fst.checked", "Hacl.Impl.BignumQ.Mul.fsti.checked", "Hacl.Bignum25519.f...
[ { "abbrev": true, "full_module": "Hacl.Spec.BignumQ.Definitions", "short_module": "S56" }, { "abbrev": true, "full_module": "Hacl.Impl.BignumQ.Mul", "short_module": "F56" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": fa...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Lib.ByteSequence.lbytes 64 -> b0: Lib.IntTypes.uint64 -> b1: Lib.IntTypes.uint64 -> b2: Lib.IntTypes.uint64 -> b3: Lib.IntTypes.uint64 -> b4: Lib.IntTypes.uint64 -> b5: Lib.IntTypes.uint64 -> b6: Lib.IntTypes.uint64 -> b7: Lib.IntTypes.uint64 -> b8: Lib.IntTypes.uint64 -> ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.ByteSequence.lbytes", "Lib.IntTypes.uint64", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.pow2", "Prims.unit", "Lib.ByteSequence.nat_from_intseq_le_lemma0", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "FStar.Seq.Base.create", "Lib.IntTypes.uint_t", "FStar.Seq.Base.index",...
[]
true
false
true
false
false
let lemma_load_64_bytes (k: lbytes 64) (b0 b1 b2 b3 b4 b5 b6 b7 b8 b9: uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28)...
lemma_nat_from_bytes_le_append (Seq.slice k 0 7) (Seq.slice k 7 14); lemma_nat_from_bytes_le_append (Seq.slice k 0 14) (Seq.slice k 14 21); lemma_nat_from_bytes_le_append (Seq.slice k 0 21) (Seq.slice k 21 28); lemma_nat_from_bytes_le_append (Seq.slice k 0 28) (Seq.slice k 28 35); lemma_nat_from_bytes_le_append (Seq.sl...
false
FStar.Printf.fst
FStar.Printf.parse_format
val parse_format (s: list char) (parse_ext: extension_parser) : option (list dir)
val parse_format (s: list char) (parse_ext: extension_parser) : option (list dir)
let rec parse_format (s:list char) (parse_ext: extension_parser) : option (list dir) = let add_dir (d:dir) (ods : option (list dir)) : option (list dir) = match ods with | None -> None | Some ds -> Some (d::ds) in match s with | [] -> Some [] ...
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 176, "start_col": 0, "start_line": 131 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Prims.list FStar.String.char -> parse_ext: FStar.Printf.extension_parser -> FStar.Pervasives.Native.option (Prims.list FStar.Printf.dir)
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.String.char", "FStar.Printf.extension_parser", "FStar.Pervasives.Native.Some", "FStar.Printf.dir", "Prims.Nil", "FStar.Pervasives.Native.None", "FStar.Printf.Arg", "FStar.Printf.U8", "FStar.Printf.parse_format", "FStar.Printf.U16", "FStar.Printf.U32", "FStar.Printf.U64",...
[ "recursion" ]
false
false
false
true
false
let rec parse_format (s: list char) (parse_ext: extension_parser) : option (list dir) =
let add_dir (d: dir) (ods: option (list dir)) : option (list dir) = match ods with | None -> None | Some ds -> Some (d :: ds) in match s with | [] -> Some [] | ['%'] -> None | '%' :: 'u' :: s' -> (match s' with | 'y' :: s'' -> add_dir (Arg U8) (parse_format s'' parse_ext) | 's' :: s'' -> add_dir (Arg U1...
false
FStar.Printf.fst
FStar.Printf.dir_type
val dir_type (ds: list dir) : Tot Type0
val dir_type (ds: list dir) : Tot Type0
let rec dir_type (ds:list dir) : Tot Type0 = match ds with | [] -> string | Lit c :: ds' -> dir_type ds' | Arg a :: ds' -> arg_type a -> dir_type ds'
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 105, "start_col": 0, "start_line": 101 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ds: Prims.list FStar.Printf.dir -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Printf.dir", "Prims.string", "FStar.String.char", "FStar.Printf.dir_type", "FStar.Printf.arg", "FStar.Printf.arg_type" ]
[ "recursion" ]
false
false
false
true
true
let rec dir_type (ds: list dir) : Tot Type0 =
match ds with | [] -> string | Lit c :: ds' -> dir_type ds' | Arg a :: ds' -> arg_type a -> dir_type ds'
false
Steel.ST.Array.fsti
Steel.ST.Array.null
val null (#a: Type0) : array a
val null (#a: Type0) : array a
let null (#a: Type0) : array a = (| null_ptr a, Ghost.hide 0 |)
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 81, "start_col": 0, "start_line": 80 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Steel.ST.Array.array a
Prims.Tot
[ "total" ]
[]
[ "Prims.Mkdtuple2", "Steel.ST.Array.ptr", "FStar.Ghost.erased", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "FStar.Ghost.reveal", "Steel.ST.Array.base_len", "Steel.ST.Array.base", "Steel.ST.Array.null_ptr", "FStar.Ghost.hide", "Steel.S...
[]
false
false
false
true
false
let null (#a: Type0) : array a =
(| null_ptr a, Ghost.hide 0 |)
false
Steel.ST.Array.fsti
Steel.ST.Array.larray
val larray : t: Type0 -> n: Prims.nat -> Type0
let larray (t:Type) (n:nat) = a:array t{ length a = n }
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 55, "end_line": 110, "start_col": 0, "start_line": 110 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type0 -> n: Prims.nat -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Steel.ST.Array.array", "Prims.b2t", "Prims.op_Equality", "Steel.ST.Array.length" ]
[]
false
false
false
true
true
let larray (t: Type) (n: nat) =
a: array t {length a = n}
false
Steel.ST.Array.fsti
Steel.ST.Array.is_null
val is_null (#a: Type0) (p: array a) : Pure bool (requires True) (ensures (fun res -> res == true <==> p == null))
val is_null (#a: Type0) (p: array a) : Pure bool (requires True) (ensures (fun res -> res == true <==> p == null))
let is_null (#a: Type0) (p: array a) : Pure bool (requires True) (ensures (fun res -> res == true <==> p == null)) = is_null_ptr (ptr_of p)
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 98, "start_col": 0, "start_line": 95 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.ST.Array.array a -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "Steel.ST.Array.array", "Steel.ST.Array.is_null_ptr", "Steel.ST.Array.ptr_of", "Prims.bool", "Prims.l_True", "Prims.l_iff", "Prims.eq2", "Steel.ST.Array.null" ]
[]
false
false
false
false
false
let is_null (#a: Type0) (p: array a) : Pure bool (requires True) (ensures (fun res -> res == true <==> p == null)) =
is_null_ptr (ptr_of p)
false
Steel.ST.Array.fsti
Steel.ST.Array.split_l
val split_l (#elt: Type) (a: array elt) (i: Ghost.erased US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> True))
val split_l (#elt: Type) (a: array elt) (i: Ghost.erased US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> True))
let split_l (#elt: Type) (a: array elt) (i: Ghost.erased US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> True)) = (| ptr_of a, Ghost.hide (US.v i) |)
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 37, "end_line": 374, "start_col": 0, "start_line": 369 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array elt -> i: FStar.Ghost.erased FStar.SizeT.t -> Prims.Pure (Steel.ST.Array.array elt)
Prims.Pure
[]
[]
[ "Steel.ST.Array.array", "FStar.Ghost.erased", "FStar.SizeT.t", "Prims.Mkdtuple2", "Steel.ST.Array.ptr", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "FStar.Ghost.reveal", "Steel.ST.Array.base_len", "Steel.ST.Array.base", "Steel.ST.Arra...
[]
false
false
false
false
false
let split_l (#elt: Type) (a: array elt) (i: Ghost.erased US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> True)) =
(| ptr_of a, Ghost.hide (US.v i) |)
false
Steel.ST.Array.fsti
Steel.ST.Array.merge
val merge (#elt: Type) (a1: array elt) (a2: Ghost.erased (array elt)) : Pure (array elt) (requires (adjacent a1 a2)) (ensures (fun y -> length y == length a1 + length a2))
val merge (#elt: Type) (a1: array elt) (a2: Ghost.erased (array elt)) : Pure (array elt) (requires (adjacent a1 a2)) (ensures (fun y -> length y == length a1 + length a2))
let merge (#elt: Type) (a1: array elt) (a2: Ghost.erased (array elt)) : Pure (array elt) (requires (adjacent a1 a2)) (ensures (fun y -> length y == length a1 + length a2)) = (| ptr_of a1, Ghost.hide (length a1 + length a2) |)
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 53, "end_line": 304, "start_col": 0, "start_line": 300 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a1: Steel.ST.Array.array elt -> a2: FStar.Ghost.erased (Steel.ST.Array.array elt) -> Prims.Pure (Steel.ST.Array.array elt)
Prims.Pure
[]
[]
[ "Steel.ST.Array.array", "FStar.Ghost.erased", "Prims.Mkdtuple2", "Steel.ST.Array.ptr", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "FStar.Ghost.reveal", "Steel.ST.Array.base_len", "Steel.ST.Array.base", "Steel.ST.Array.ptr_of", "FStar...
[]
false
false
false
false
false
let merge (#elt: Type) (a1: array elt) (a2: Ghost.erased (array elt)) : Pure (array elt) (requires (adjacent a1 a2)) (ensures (fun y -> length y == length a1 + length a2)) =
(| ptr_of a1, Ghost.hide (length a1 + length a2) |)
false
FStar.Printf.fst
FStar.Printf.sprintf
val sprintf (s: string{normalize_term (b2t (Some? (parse_format_string s no_extensions)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s no_extensions)))
val sprintf (s: string{normalize_term (b2t (Some? (parse_format_string s no_extensions)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s no_extensions)))
let sprintf (s:string{normalize_term (b2t (Some? (parse_format_string s no_extensions)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s no_extensions))) = norm [unascribe; delta; iota; zeta; primops] (string_of_dirs (Some?.v (parse_format_string s no_extensions)) ...
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 128, "end_line": 200, "start_col": 0, "start_line": 197 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Prims.string { FStar.Pervasives.normalize_term (Some? (FStar.Printf.parse_format_string s FStar.Printf.no_extensions)) } -> FStar.Pervasives.norm [ FStar.Pervasives.unascribe; FStar.Pervasives.delta; FStar.Pervasives.iota; FStar.Pervasives.zeta...
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.Pervasives.normalize_term", "Prims.b2t", "FStar.Pervasives.Native.uu___is_Some", "Prims.list", "FStar.Printf.dir", "FStar.Printf.parse_format_string", "FStar.Printf.no_extensions", "FStar.Pervasives.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.una...
[]
false
false
false
false
false
let sprintf (s: string{normalize_term (b2t (Some? (parse_format_string s no_extensions)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s no_extensions))) =
norm [unascribe; delta; iota; zeta; primops] (string_of_dirs (Some?.v (parse_format_string s no_extensions)) (fun s -> s))
false
Steel.ST.Array.fsti
Steel.ST.Array.ptr_shift_add
val ptr_shift_add (#elt: Type) (p: ptr elt) (off1 off2: US.t) : Lemma (requires (offset p + US.v off1 + US.v off2 <= base_len (base p) /\ US.fits (US.v off1 + US.v off2))) (ensures (ptr_shift (ptr_shift p off1) off2 == ptr_shift p (off1 `US.add` off2)))
val ptr_shift_add (#elt: Type) (p: ptr elt) (off1 off2: US.t) : Lemma (requires (offset p + US.v off1 + US.v off2 <= base_len (base p) /\ US.fits (US.v off1 + US.v off2))) (ensures (ptr_shift (ptr_shift p off1) off2 == ptr_shift p (off1 `US.add` off2)))
let ptr_shift_add (#elt: Type) (p: ptr elt) (off1 off2: US.t) : Lemma (requires ( offset p + US.v off1 + US.v off2 <= base_len (base p) /\ US.fits (US.v off1 + US.v off2) // cannot be deduced from base_len, because length_fits only works for arrays, not array pointers )) (ensures ( ptr_shift (pt...
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 92, "end_line": 412, "start_col": 0, "start_line": 400 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.ST.Array.ptr elt -> off1: FStar.SizeT.t -> off2: FStar.SizeT.t -> FStar.Pervasives.Lemma (requires Steel.ST.Array.offset p + FStar.SizeT.v off1 + FStar.SizeT.v off2 <= Steel.ST.Array.base_len (Steel.ST.Array.base p) /\ FStar.SizeT.fits (FStar.SizeT.v off1 + FStar.SizeT.v off2)) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.ST.Array.ptr", "FStar.SizeT.t", "Steel.ST.Array.ptr_base_offset_inj", "Steel.ST.Array.ptr_shift", "FStar.SizeT.add", "Prims.unit", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "FStar.SizeT.v", "Steel.ST.Array.base_len", "Steel...
[]
true
false
true
false
false
let ptr_shift_add (#elt: Type) (p: ptr elt) (off1 off2: US.t) : Lemma (requires (offset p + US.v off1 + US.v off2 <= base_len (base p) /\ US.fits (US.v off1 + US.v off2))) (ensures (ptr_shift (ptr_shift p off1) off2 == ptr_shift p (off1 `US.add` off2))) =
ptr_base_offset_inj (ptr_shift (ptr_shift p off1) off2) (ptr_shift p (off1 `US.add` off2))
false
Steel.ST.Array.fsti
Steel.ST.Array.ptr_shift_zero
val ptr_shift_zero (#elt: Type) (p: ptr elt) : Lemma (ptr_shift p 0sz == p)
val ptr_shift_zero (#elt: Type) (p: ptr elt) : Lemma (ptr_shift p 0sz == p)
let ptr_shift_zero (#elt: Type) (p: ptr elt) : Lemma (ptr_shift p 0sz == p) = ptr_base_offset_inj (ptr_shift p 0sz) p
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 41, "end_line": 398, "start_col": 0, "start_line": 393 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.ST.Array.ptr elt -> FStar.Pervasives.Lemma (ensures Steel.ST.Array.ptr_shift p 0sz == p)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.ST.Array.ptr", "Steel.ST.Array.ptr_base_offset_inj", "Steel.ST.Array.ptr_shift", "FStar.SizeT.__uint_to_t", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let ptr_shift_zero (#elt: Type) (p: ptr elt) : Lemma (ptr_shift p 0sz == p) =
ptr_base_offset_inj (ptr_shift p 0sz) p
false
Steel.ST.Array.fsti
Steel.ST.Array.split_r
val split_r (#elt: Type) (a: array elt) (i: US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> merge_into (split_l a i) y a))
val split_r (#elt: Type) (a: array elt) (i: US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> merge_into (split_l a i) y a))
let split_r (#elt: Type) (a: array elt) (i: US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> merge_into (split_l a i) y a)) = (| ptr_shift (ptr_of a) i, Ghost.hide (length a - US.v i) |)
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 423, "start_col": 0, "start_line": 418 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array elt -> i: FStar.SizeT.t -> Prims.Pure (Steel.ST.Array.array elt)
Prims.Pure
[]
[]
[ "Steel.ST.Array.array", "FStar.SizeT.t", "Prims.Mkdtuple2", "Steel.ST.Array.ptr", "FStar.Ghost.erased", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.Array.offset", "FStar.Ghost.reveal", "Steel.ST.Array.base_len", "Steel.ST.Array.base", "Steel.ST.Arra...
[]
false
false
false
false
false
let split_r (#elt: Type) (a: array elt) (i: US.t) : Pure (array elt) (requires (US.v i <= length a)) (ensures (fun y -> merge_into (split_l a i) y a)) =
(| ptr_shift (ptr_of a) i, Ghost.hide (length a - US.v i) |)
false
FStar.Printf.fst
FStar.Printf.ext_sprintf
val ext_sprintf (parse_ext: extension_parser) (s: string{normalize_term (b2t (Some? (parse_format_string s parse_ext)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s parse_ext)))
val ext_sprintf (parse_ext: extension_parser) (s: string{normalize_term (b2t (Some? (parse_format_string s parse_ext)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s parse_ext)))
let ext_sprintf (parse_ext: extension_parser) (s:string{normalize_term (b2t (Some? (parse_format_string s parse_ext)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s parse_ext))) = norm [unascribe; delta; iota; zeta; primops] (string_of_dirs (Some?.v (parse_fo...
{ "file_name": "ulib/FStar.Printf.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 124, "end_line": 209, "start_col": 0, "start_line": 205 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.String.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.Int8...
[ { "abbrev": true, "full_module": "FStar.Integers", "short_module": "I" }, { "abbrev": false, "full_module": "FStar.String", "short_module": null }, { "abbrev": false, "full_module": "FStar.Char", "short_module": null }, { "abbrev": false, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
parse_ext: FStar.Printf.extension_parser -> s: Prims.string {FStar.Pervasives.normalize_term (Some? (FStar.Printf.parse_format_string s parse_ext))} -> FStar.Pervasives.norm [ FStar.Pervasives.unascribe; FStar.Pervasives.delta; FStar.Pervasives.iota; FStar.Pervas...
Prims.Tot
[ "total" ]
[]
[ "FStar.Printf.extension_parser", "Prims.string", "FStar.Pervasives.normalize_term", "Prims.b2t", "FStar.Pervasives.Native.uu___is_Some", "Prims.list", "FStar.Printf.dir", "FStar.Printf.parse_format_string", "FStar.Pervasives.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives....
[]
false
false
false
false
false
let ext_sprintf (parse_ext: extension_parser) (s: string{normalize_term (b2t (Some? (parse_format_string s parse_ext)))}) : norm [unascribe; delta; iota; zeta; primops] (dir_type (Some?.v (parse_format_string s parse_ext))) =
norm [unascribe; delta; iota; zeta; primops] (string_of_dirs (Some?.v (parse_format_string s parse_ext)) (fun s -> s))
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.key0
val key0:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b})
val key0:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b})
let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0xb5uy; 0xf0uy; 0x47uy; 0x39uy; 0x17uy; 0xc1uy; 0x40uy; 0x2buy; 0x80uy; 0x09uy; 0x9duy; 0xcauy; 0x5cuy; 0xbcuy...
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 10, "start_col": 0, "start_line": 7 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 32 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let key0:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b}) =
[@@ inline_let ]let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0xb5uy; 0xf0uy; 0x47uy; 0x39uy; 0x17uy; 0xc1uy; 0x40uy; 0x2buy; 0x80uy; 0x09uy; 0x9duy; 0xcauy; 0x5cuy; 0xbcuy; 0x20uy; 0x70uy; 0x75uy; 0xc0uy ] in assert_norm (List....
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.key0_len
val key0_len:(x: UInt32.t{UInt32.v x = B.length key0})
val key0_len:(x: UInt32.t{UInt32.v x = B.length key0})
let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) = 32ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 13, "start_col": 22, "start_line": 12 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.key0}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let key0_len:(x: UInt32.t{UInt32.v x = B.length key0}) =
32ul
false
Hacl.Impl.Frodo.KEM.Decaps.fst
Hacl.Impl.Frodo.KEM.Decaps.crypto_kem_dec_ss2
val crypto_kem_dec_ss2: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> mu_decode:lbytes (bytes_mu a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matrix_t params_nbar params_nbar -> ss:lbytes (c...
val crypto_kem_dec_ss2: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> mu_decode:lbytes (bytes_mu a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matrix_t params_nbar params_nbar -> ss:lbytes (c...
let crypto_kem_dec_ss2 a gen_a ct sk mu_decode bp_matrix c_matrix ss = push_frame (); let seed_se_k = create (2ul *! crypto_bytes a) (u8 0) in crypto_kem_dec_seed_se_k a mu_decode sk seed_se_k; crypto_kem_dec_ss1 a gen_a ct sk mu_decode seed_se_k bp_matrix c_matrix ss; clear_words_u8 seed_se_k; pop_frame ()
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Decaps.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 307, "start_col": 0, "start_line": 301 }
module Hacl.Impl.Frodo.KEM.Decaps open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.KEM.Encaps open Hacl.Impl.Frodo.Encode open Hacl.Impl.Frodo.Pack open ...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.Decaps.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "L...
[ { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module": "Spec.Frodo.KEM.Decaps", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Frodo.KEM.KeyGen", "short_module": "KG" }, { "abbrev": true, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> ct: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_ciphertextbytes a) -> sk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_secretkeybytes a) -> mu_decode: Hacl.Impl....
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.crypto_ciphertextbytes", "Hacl.Impl.Frodo.Params.crypto_secretkeybytes", "Hacl.Impl.Frodo.Params.bytes_mu", "Hacl.Impl.Matrix.matrix_...
[]
false
true
false
false
false
let crypto_kem_dec_ss2 a gen_a ct sk mu_decode bp_matrix c_matrix ss =
push_frame (); let seed_se_k = create (2ul *! crypto_bytes a) (u8 0) in crypto_kem_dec_seed_se_k a mu_decode sk seed_se_k; crypto_kem_dec_ss1 a gen_a ct sk mu_decode seed_se_k bp_matrix c_matrix ss; clear_words_u8 seed_se_k; pop_frame ()
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.nonce0
val nonce0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
val nonce0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) = [@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy; 0x08uy; ] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 18, "start_col": 0, "start_line": 15 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 12 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let nonce0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) =
[@@ inline_let ]let l = [0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy; 0x08uy] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
false
Hacl.Impl.Frodo.KEM.Decaps.fst
Hacl.Impl.Frodo.KEM.Decaps.crypto_kem_dec
val crypto_kem_dec: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ss:lbytes (crypto_bytes a) -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> Stack uint32 (requires fun h -> live h ss /\ live h ct /\ live h sk /\ disjoint ss ct /\ disjoint ...
val crypto_kem_dec: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> ss:lbytes (crypto_bytes a) -> ct:lbytes (crypto_ciphertextbytes a) -> sk:lbytes (crypto_secretkeybytes a) -> Stack uint32 (requires fun h -> live h ss /\ live h ct /\ live h sk /\ disjoint ss ct /\ disjoint ...
let crypto_kem_dec a gen_a ss ct sk = push_frame (); let bp_matrix = matrix_create params_nbar (params_n a) in let c_matrix = matrix_create params_nbar params_nbar in get_bp_c_matrices a ct bp_matrix c_matrix; crypto_kem_dec1 a gen_a ss ct sk bp_matrix c_matrix; pop_frame (); u32 0
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Decaps.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 407, "start_col": 0, "start_line": 399 }
module Hacl.Impl.Frodo.KEM.Decaps open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.KEM.Encaps open Hacl.Impl.Frodo.Encode open Hacl.Impl.Frodo.Pack open ...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.Decaps.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "L...
[ { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module": "Spec.Frodo.KEM.Decaps", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Frodo.KEM.KeyGen", "short_module": "KG" }, { "abbrev": true, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> ss: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) -> ct: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_ciphertextbytes a) -> sk: Hacl.Impl.Matrix.lbytes (H...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.crypto_bytes", "Hacl.Impl.Frodo.Params.crypto_ciphertextbytes", "Hacl.Impl.Frodo.Params.crypto_secretkeybytes", "Lib.IntTypes.u32", ...
[]
false
true
false
false
false
let crypto_kem_dec a gen_a ss ct sk =
push_frame (); let bp_matrix = matrix_create params_nbar (params_n a) in let c_matrix = matrix_create params_nbar params_nbar in get_bp_c_matrices a ct bp_matrix c_matrix; crypto_kem_dec1 a gen_a ss ct sk bp_matrix c_matrix; pop_frame (); u32 0
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.aad0
val aad0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
val aad0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
let aad0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) = [@inline_let] let l = [ 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x4euy; 0x91uy; ] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 26, "start_col": 0, "start_line": 23 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 12 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let aad0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) =
[@@ inline_let ]let l = [0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x4euy; 0x91uy] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.nonce0_len
val nonce0_len:(x: UInt32.t{UInt32.v x = B.length nonce0})
val nonce0_len:(x: UInt32.t{UInt32.v x = B.length nonce0})
let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) = 12ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 21, "start_col": 22, "start_line": 20 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.nonce0}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let nonce0_len:(x: UInt32.t{UInt32.v x = B.length nonce0}) =
12ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.aad0_len
val aad0_len:(x: UInt32.t{UInt32.v x = B.length aad0})
val aad0_len:(x: UInt32.t{UInt32.v x = B.length aad0})
let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) = 12ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 29, "start_col": 22, "start_line": 28 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.aad0}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let aad0_len:(x: UInt32.t{UInt32.v x = B.length aad0}) =
12ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.input0_len
val input0_len:(x: UInt32.t{UInt32.v x = B.length input0})
val input0_len:(x: UInt32.t{UInt32.v x = B.length input0})
let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) = 265ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 37, "start_col": 22, "start_line": 36 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.input0}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let input0_len:(x: UInt32.t{UInt32.v x = B.length input0}) =
265ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.output0_len
val output0_len:(x: UInt32.t{UInt32.v x = B.length output0})
val output0_len:(x: UInt32.t{UInt32.v x = B.length output0})
let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) = 281ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 45, "start_col": 22, "start_line": 44 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.output0}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let output0_len:(x: UInt32.t{UInt32.v x = B.length output0}) =
281ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.key1_len
val key1_len:(x: UInt32.t{UInt32.v x = B.length key1})
val key1_len:(x: UInt32.t{UInt32.v x = B.length key1})
let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) = 32ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 53, "start_col": 22, "start_line": 52 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.key1}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let key1_len:(x: UInt32.t{UInt32.v x = B.length key1}) =
32ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.nonce1
val nonce1:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
val nonce1:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) = [@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0xcauy; 0xbfuy; 0x33uy; 0x71uy; 0x32uy; 0x45uy; 0x77uy; 0x8euy; ] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 58, "start_col": 0, "start_line": 55 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 12 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let nonce1:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) =
[@@ inline_let ]let l = [0x00uy; 0x00uy; 0x00uy; 0x00uy; 0xcauy; 0xbfuy; 0x33uy; 0x71uy; 0x32uy; 0x45uy; 0x77uy; 0x8euy] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
false
Hacl.Impl.Frodo.KEM.Decaps.fst
Hacl.Impl.Frodo.KEM.Decaps.crypto_kem_dec_kp_s
val crypto_kem_dec_kp_s: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> mu_decode:lbytes (bytes_mu a) -> seed_se:lbytes (crypto_bytes a) -> sk:lbytes (crypto_secretkeybytes a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matrix_t params_nbar params_nbar -> Stack uint16 ...
val crypto_kem_dec_kp_s: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> mu_decode:lbytes (bytes_mu a) -> seed_se:lbytes (crypto_bytes a) -> sk:lbytes (crypto_secretkeybytes a) -> bp_matrix:matrix_t params_nbar (params_n a) -> c_matrix:matrix_t params_nbar params_nbar -> Stack uint16 ...
let crypto_kem_dec_kp_s a gen_a mu_decode seed_se sk bp_matrix c_matrix = push_frame (); let bpp_matrix = matrix_create params_nbar (params_n a) in let cp_matrix = matrix_create params_nbar params_nbar in get_bpp_cp_matrices a gen_a mu_decode seed_se sk bpp_matrix cp_matrix; let mask = crypto_kem_dec_kp_s_co...
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Decaps.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 194, "start_col": 0, "start_line": 187 }
module Hacl.Impl.Frodo.KEM.Decaps open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.KEM.Encaps open Hacl.Impl.Frodo.Encode open Hacl.Impl.Frodo.Pack open ...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.Decaps.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "L...
[ { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module": "Spec.Frodo.KEM.Decaps", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Frodo.KEM.KeyGen", "short_module": "KG" }, { "abbrev": true, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> mu_decode: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.bytes_mu a) -> seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) -> sk: Hacl.Impl.Matrix.lbytes (Hac...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.bytes_mu", "Hacl.Impl.Frodo.Params.crypto_bytes", "Hacl.Impl.Frodo.Params.crypto_secretkeybytes", "Hacl.Impl.Matrix.matrix_t", "Hac...
[]
false
true
false
false
false
let crypto_kem_dec_kp_s a gen_a mu_decode seed_se sk bp_matrix c_matrix =
push_frame (); let bpp_matrix = matrix_create params_nbar (params_n a) in let cp_matrix = matrix_create params_nbar params_nbar in get_bpp_cp_matrices a gen_a mu_decode seed_se sk bpp_matrix cp_matrix; let mask = crypto_kem_dec_kp_s_cond a bp_matrix bpp_matrix c_matrix cp_matrix in pop_frame (); mask
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.aad1_len
val aad1_len:(x: UInt32.t{UInt32.v x = B.length aad1})
val aad1_len:(x: UInt32.t{UInt32.v x = B.length aad1})
let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) = 0ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 69, "start_col": 22, "start_line": 68 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.aad1}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let aad1_len:(x: UInt32.t{UInt32.v x = B.length aad1}) =
0ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.aad1
val aad1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b})
val aad1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b})
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) = [@inline_let] let l = [ ] in assert_norm (List.Tot.length l = 0); B.gcmalloc_of_list HyperStack.root l
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 66, "start_col": 0, "start_line": 63 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 0 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let aad1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) =
[@@ inline_let ]let l = [] in assert_norm (List.Tot.length l = 0); B.gcmalloc_of_list HyperStack.root l
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.nonce1_len
val nonce1_len:(x: UInt32.t{UInt32.v x = B.length nonce1})
val nonce1_len:(x: UInt32.t{UInt32.v x = B.length nonce1})
let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) = 12ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 61, "start_col": 22, "start_line": 60 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.nonce1}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let nonce1_len:(x: UInt32.t{UInt32.v x = B.length nonce1}) =
12ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.output1
val output1:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b})
val output1:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b})
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) = [@inline_let] let l = [ 0xeauy; 0xe0uy; 0x1euy; 0x9euy; 0x2cuy; 0x91uy; 0xaauy; 0xe1uy; 0xdbuy; 0x5duy; 0x99uy; 0x3fuy; 0x8auy; 0xf7uy; 0x69uy; 0x92uy; ] in assert_norm (List.Tot.length l = 16); B.gcmalloc_of_list HyperStack.root l
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 82, "start_col": 0, "start_line": 79 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 16 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let output1:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) =
[@@ inline_let ]let l = [ 0xeauy; 0xe0uy; 0x1euy; 0x9euy; 0x2cuy; 0x91uy; 0xaauy; 0xe1uy; 0xdbuy; 0x5duy; 0x99uy; 0x3fuy; 0x8auy; 0xf7uy; 0x69uy; 0x92uy ] in assert_norm (List.Tot.length l = 16); B.gcmalloc_of_list HyperStack.root l
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.output1_len
val output1_len:(x: UInt32.t{UInt32.v x = B.length output1})
val output1_len:(x: UInt32.t{UInt32.v x = B.length output1})
let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) = 16ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 85, "start_col": 22, "start_line": 84 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.output1}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let output1_len:(x: UInt32.t{UInt32.v x = B.length output1}) =
16ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.key1
val key1:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b})
val key1:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b})
let key1: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x4cuy; 0xf5uy; 0x96uy; 0x83uy; 0x38uy; 0xe6uy; 0xaeuy; 0x7fuy; 0x2duy; 0x29uy; 0x25uy; 0x76uy; 0xd5uy; 0x75uy; 0x27uy; 0x86uy; 0x91uy; 0x9auy; 0x27uy; 0x7auy; 0xfbuy; 0x46uy; 0xc5uy; 0xefuy; 0x94uy; 0x81uy; 0x79uy; 0x57uy...
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 50, "start_col": 0, "start_line": 47 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 32 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let key1:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b}) =
[@@ inline_let ]let l = [ 0x4cuy; 0xf5uy; 0x96uy; 0x83uy; 0x38uy; 0xe6uy; 0xaeuy; 0x7fuy; 0x2duy; 0x29uy; 0x25uy; 0x76uy; 0xd5uy; 0x75uy; 0x27uy; 0x86uy; 0x91uy; 0x9auy; 0x27uy; 0x7auy; 0xfbuy; 0x46uy; 0xc5uy; 0xefuy; 0x94uy; 0x81uy; 0x79uy; 0x57uy; 0x14uy; 0x59uy; 0x40uy; 0x68uy ] in assert_norm (List....
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.key2
val key2:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b})
val key2:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b})
let key2: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x2duy; 0xb0uy; 0x5duy; 0x40uy; 0xc8uy; 0xeduy; 0x44uy; 0x88uy; 0x34uy; 0xd1uy; 0x13uy; 0xafuy; 0x57uy; 0xa1uy; 0xebuy; 0x3auy; 0x2auy; 0x80uy; 0x51uy; 0x36uy; 0xecuy; 0x5buy; 0xbcuy; 0x08uy; 0x93uy; 0x84uy; 0x21uy; 0xb5uy...
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 90, "start_col": 0, "start_line": 87 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 32 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let key2:(b: B.buffer UInt8.t {B.length b = 32 /\ B.recallable b}) =
[@@ inline_let ]let l = [ 0x2duy; 0xb0uy; 0x5duy; 0x40uy; 0xc8uy; 0xeduy; 0x44uy; 0x88uy; 0x34uy; 0xd1uy; 0x13uy; 0xafuy; 0x57uy; 0xa1uy; 0xebuy; 0x3auy; 0x2auy; 0x80uy; 0x51uy; 0x36uy; 0xecuy; 0x5buy; 0xbcuy; 0x08uy; 0x93uy; 0x84uy; 0x21uy; 0xb5uy; 0x13uy; 0x88uy; 0x3cuy; 0x0duy ] in assert_norm (List....
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.input1_len
val input1_len:(x: UInt32.t{UInt32.v x = B.length input1})
val input1_len:(x: UInt32.t{UInt32.v x = B.length input1})
let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) = 0ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 77, "start_col": 22, "start_line": 76 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.input1}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let input1_len:(x: UInt32.t{UInt32.v x = B.length input1}) =
0ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.nonce2
val nonce2:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
val nonce2:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) = [@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x3duy; 0x86uy; 0xb5uy; 0x6buy; 0xc8uy; 0xa3uy; 0x1fuy; 0x1duy; ] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 98, "start_col": 0, "start_line": 95 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 12 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let nonce2:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) =
[@@ inline_let ]let l = [0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x3duy; 0x86uy; 0xb5uy; 0x6buy; 0xc8uy; 0xa3uy; 0x1fuy; 0x1duy] in assert_norm (List.Tot.length l = 12); B.gcmalloc_of_list HyperStack.root l
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.input1
val input1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b /\ B.disjoint b aad1})
val input1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b /\ B.disjoint b aad1})
let input1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad1 }) = B.recall aad1;[@inline_let] let l = [ ] in assert_norm (List.Tot.length l = 0); B.gcmalloc_of_list HyperStack.root l
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 74, "start_col": 0, "start_line": 71 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Buffer.buffer FStar.UInt8.t { LowStar.Monotonic.Buffer.length b = 0 /\ LowStar.Monotonic.Buffer.recallable b /\ LowStar.Monotonic.Buffer.disjoint b Test.Vectors.Chacha20Poly1305.aad1 }
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let input1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b /\ B.disjoint b aad1}) =
B.recall aad1; [@@ inline_let ]let l = [] in assert_norm (List.Tot.length l = 0); B.gcmalloc_of_list HyperStack.root l
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.key2_len
val key2_len:(x: UInt32.t{UInt32.v x = B.length key2})
val key2_len:(x: UInt32.t{UInt32.v x = B.length key2})
let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) = 32ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 93, "start_col": 22, "start_line": 92 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.key2}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let key2_len:(x: UInt32.t{UInt32.v x = B.length key2}) =
32ul
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.aad2_len
val aad2_len:(x: UInt32.t{UInt32.v x = B.length aad2})
val aad2_len:(x: UInt32.t{UInt32.v x = B.length aad2})
let aad2_len: (x:UInt32.t { UInt32.v x = B.length aad2 }) = 8ul
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 109, "start_col": 22, "start_line": 108 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t {FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Chacha20Poly1305.aad2}
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
false
false
let aad2_len:(x: UInt32.t{UInt32.v x = B.length aad2}) =
8ul
false