effect
stringclasses
48 values
original_source_type
stringlengths
0
23k
opens_and_abbrevs
listlengths
2
92
isa_cross_project_example
bool
1 class
source_definition
stringlengths
9
57.9k
partial_definition
stringlengths
7
23.3k
is_div
bool
2 classes
is_type
null
is_proof
bool
2 classes
completed_definiton
stringlengths
1
250k
dependencies
dict
effect_flags
listlengths
0
2
ideal_premises
listlengths
0
236
mutual_with
listlengths
0
11
file_context
stringlengths
0
407k
interleaved
bool
1 class
is_simply_typed
bool
2 classes
file_name
stringlengths
5
48
vconfig
dict
is_simple_lemma
null
source_type
stringlengths
10
23k
proof_features
listlengths
0
1
name
stringlengths
8
95
source
dict
verbose_type
stringlengths
1
7.42k
source_range
dict
Prims.Tot
val sha384_update: update_vec_t SHA2_384 M32
[ { "abbrev": false, "full_module": "Hacl.Impl.SHA2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": fals...
false
let sha384_update b st = let open Hacl.SHA2.Scalar32.Lemmas in let h0 = ST.get () in Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_vec_384_512 (as_seq_multi h0 b) (as_seq h0 st); sha512_update b st
val sha384_update: update_vec_t SHA2_384 M32 let sha384_update b st =
false
null
false
let open Hacl.SHA2.Scalar32.Lemmas in let h0 = ST.get () in Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_vec_384_512 (as_seq_multi h0 b) (as_seq h0 st); sha512_update b st
{ "checked_file": "Hacl.SHA2.Scalar32.fst.checked", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NTuple.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buf...
[ "total" ]
[ "Lib.MultiBuffer.multibuf", "Hacl.Spec.SHA2.Vec.lanes", "Spec.Hash.Definitions.SHA2_384", "Hacl.Spec.SHA2.Vec.M32", "Hacl.Hash.Definitions.block_len", "Hacl.Impl.SHA2.Core.state_t", "Hacl.SHA2.Scalar32.sha512_update", "Prims.unit", "Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_vec_384_512", "Lib.Mu...
[]
module Hacl.SHA2.Scalar32 open FStar.HyperStack.ST module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.NTuple open Lib.Buffer open Lib.MultiBuffer open Spec.Hash.Definitions open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec open Hacl.Impl.SHA2.Generic // This module only conta...
false
true
Hacl.SHA2.Scalar32.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val sha384_update: update_vec_t SHA2_384 M32
[]
Hacl.SHA2.Scalar32.sha384_update
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Impl.SHA2.Generic.update_vec_t Spec.Hash.Definitions.SHA2_384 Hacl.Spec.SHA2.Vec.M32
{ "end_col": 20, "end_line": 78, "start_col": 2, "start_line": 75 }
Prims.Tot
val sha224_update_nblocks: update_nblocks_vec_t' SHA2_224 M32
[ { "abbrev": false, "full_module": "Hacl.Impl.SHA2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": fals...
false
let sha224_update_nblocks len b st = let h0 = ST.get () in Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_nblocks_vec_224_256 len (as_seq_multi h0 b) (as_seq h0 st); sha256_update_nblocks len b st
val sha224_update_nblocks: update_nblocks_vec_t' SHA2_224 M32 let sha224_update_nblocks len b st =
false
null
false
let h0 = ST.get () in Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_nblocks_vec_224_256 len (as_seq_multi h0 b) (as_seq h0 st); sha256_update_nblocks len b st
{ "checked_file": "Hacl.SHA2.Scalar32.fst.checked", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NTuple.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buf...
[ "total" ]
[ "Lib.IntTypes.size_t", "Lib.MultiBuffer.multibuf", "Hacl.Spec.SHA2.Vec.lanes", "Spec.Hash.Definitions.SHA2_224", "Hacl.Spec.SHA2.Vec.M32", "Hacl.Impl.SHA2.Core.state_t", "Hacl.SHA2.Scalar32.sha256_update_nblocks", "Prims.unit", "Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_nblocks_vec_224_256", "Li...
[]
module Hacl.SHA2.Scalar32 open FStar.HyperStack.ST module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.NTuple open Lib.Buffer open Lib.MultiBuffer open Spec.Hash.Definitions open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec open Hacl.Impl.SHA2.Generic // This module only conta...
false
true
Hacl.SHA2.Scalar32.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val sha224_update_nblocks: update_nblocks_vec_t' SHA2_224 M32
[]
Hacl.SHA2.Scalar32.sha224_update_nblocks
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Impl.SHA2.Generic.update_nblocks_vec_t' Spec.Hash.Definitions.SHA2_224 Hacl.Spec.SHA2.Vec.M32
{ "end_col": 32, "end_line": 46, "start_col": 36, "start_line": 43 }
Prims.Tot
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let less_than_max_input_length = Spec.Hash.Definitions.less_than_max_input_length
let less_than_max_input_length =
false
null
false
Spec.Hash.Definitions.less_than_max_input_length
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Spec.Hash.Definitions.less_than_max_input_length" ]
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
true
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val less_than_max_input_length : l: Prims.int -> a: Spec.Hash.Definitions.hash_alg -> Prims.bool
[]
Hacl.Spec.RSAPSS.less_than_max_input_length
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
l: Prims.int -> a: Spec.Hash.Definitions.hash_alg -> Prims.bool
{ "end_col": 81, "end_line": 159, "start_col": 33, "start_line": 159 }
Prims.Tot
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let pkey_len_pre (t:limb_t) (modBits:size_nat) (eBits:size_nat) = let bits = bits t in 1 < modBits /\ 0 < eBits /\ 2 * bits * blocks modBits bits <= max_size_t /\ bits * blocks eBits bits <= max_size_t /\ 2 * blocks modBits bits + blocks eBits bits <= max_size_t
let pkey_len_pre (t: limb_t) (modBits eBits: size_nat) =
false
null
false
let bits = bits t in 1 < modBits /\ 0 < eBits /\ (2 * bits) * blocks modBits bits <= max_size_t /\ bits * blocks eBits bits <= max_size_t /\ 2 * blocks modBits bits + blocks eBits bits <= max_size_t
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Prims.op_Addition", "Prims.int", "Lib.IntTypes.bits", "Prims.lo...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
true
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val pkey_len_pre : t: Hacl.Spec.Bignum.Definitions.limb_t -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> Prims.logical
[]
Hacl.Spec.RSAPSS.pkey_len_pre
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Hacl.Spec.Bignum.Definitions.limb_t -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> Prims.logical
{ "end_col": 59, "end_line": 100, "start_col": 65, "start_line": 95 }
Prims.Tot
val rsapss_verify_pre: a:Hash.hash_alg{S.hash_is_supported a} -> sLen:size_nat //saltLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> Type0
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_pre a sLen msgLen msg = sLen + Hash.hash_length a + 8 <= max_size_t /\ (sLen + Hash.hash_length a + 8) `less_than_max_input_length` a /\ msgLen `less_than_max_input_length` a
val rsapss_verify_pre: a:Hash.hash_alg{S.hash_is_supported a} -> sLen:size_nat //saltLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> Type0 let rsapss_verify_pre a sLen msgLen msg =
false
null
false
sLen + Hash.hash_length a + 8 <= max_size_t /\ (sLen + Hash.hash_length a + 8) `less_than_max_input_length` a /\ msgLen `less_than_max_input_length` a
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Prims.nat", "Lib.Sequence.seq", "Lib.IntTypes.uint8", "Prims.eq2", "Lib.Sequence.length", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Spec.Hash.Definitions.hash_leng...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_pre: a:Hash.hash_alg{S.hash_is_supported a} -> sLen:size_nat //saltLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> Type0
[]
Hacl.Spec.RSAPSS.rsapss_verify_pre
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> sLen: Lib.IntTypes.size_nat -> msgLen: Prims.nat -> msg: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length msg == msgLen} -> Type0
{ "end_col": 39, "end_line": 238, "start_col": 2, "start_line": 236 }
Prims.Tot
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let skey_len_pre (t:limb_t) (modBits:size_nat) (eBits:size_nat) (dBits:size_nat) = let bits = bits t in pkey_len_pre t modBits eBits /\ 0 < dBits /\ bits * blocks dBits bits <= max_size_t /\ 2 * blocks modBits bits + blocks eBits bits + blocks dBits bits <= max_size_t
let skey_len_pre (t: limb_t) (modBits eBits dBits: size_nat) =
false
null
false
let bits = bits t in pkey_len_pre t modBits eBits /\ 0 < dBits /\ bits * blocks dBits bits <= max_size_t /\ 2 * blocks modBits bits + blocks eBits bits + blocks dBits bits <= max_size_t
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.l_and", "Hacl.Spec.RSAPSS.pkey_len_pre", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Prims.op_Addition", "Prims.int",...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
true
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val skey_len_pre : t: Hacl.Spec.Bignum.Definitions.limb_t -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat -> Prims.logical
[]
Hacl.Spec.RSAPSS.skey_len_pre
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Hacl.Spec.Bignum.Definitions.limb_t -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat -> Prims.logical
{ "end_col": 79, "end_line": 107, "start_col": 82, "start_line": 103 }
Prims.Tot
val bn_lt_pow2: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> bool
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let bn_lt_pow2 #t modBits m = if (modBits - 1) % 8 <> 0 then true else BB.unsafe_bool_of_limb0 (bn_get_ith_bit m (modBits - 1))
val bn_lt_pow2: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> bool let bn_lt_pow2 #t modBits m =
false
null
false
if (modBits - 1) % 8 <> 0 then true else BB.unsafe_bool_of_limb0 (bn_get_ith_bit m (modBits - 1))
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.op_disEquality", "Prims.int", "Prims.op_Modulus", "Prims.op_Subtraction", "Prims.bool", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val bn_lt_pow2: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> bool
[]
Hacl.Spec.RSAPSS.bn_lt_pow2
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_pos{1 < modBits} -> m: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t)) -> Prims.bool
{ "end_col": 63, "end_line": 33, "start_col": 2, "start_line": 32 }
Prims.Tot
val rsapss_verify_post1: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> ms...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_post1 #t a modBits eBits pkey sLen k sgnt msgLen msg verify = rsapss_pkey_pre modBits eBits pkey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = bn_v (sub pkey 0 nLen) in let e = bn_v (sub pkey (nLen + nLen) eLen) in let pkeys : S.rsapss...
val rsapss_verify_post1: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> ms...
false
null
false
rsapss_pkey_pre modBits eBits pkey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = bn_v (sub pkey 0 nLen) in let e = bn_v (sub pkey (nLen + nLen) eLen) in let pkeys:S.rsapss_pkey modBits = S.Mk_rsapss_pkey n e in verify == S.rsapss_verify a modBits pkeys sL...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_post1: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> ms...
[]
Hacl.Spec.RSAPSS.rsapss_verify_post1
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntType...
{ "end_col": 67, "end_line": 288, "start_col": 2, "start_line": 280 }
Prims.Tot
val rsapss_verify_post: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> ms...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_post #t a modBits eBits pkey sLen sgnt msgLen msg verify = rsapss_verify_pre a sLen msgLen msg /\ rsapss_pkey_pre modBits eBits pkey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = bn_v (sub pkey 0 nLen) in let e = bn_v (sub pkey (nLen +...
val rsapss_verify_post: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> ms...
false
null
false
rsapss_verify_pre a sLen msgLen msg /\ rsapss_pkey_pre modBits eBits pkey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = bn_v (sub pkey 0 nLen) in let e = bn_v (sub pkey (nLen + nLen) eLen) in let pkeys:S.rsapss_pkey modBits = S.Mk_rsapss_pkey n e in verif...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_post: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> ms...
[]
Hacl.Spec.RSAPSS.rsapss_verify_post
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntType...
{ "end_col": 66, "end_line": 263, "start_col": 2, "start_line": 254 }
Prims.Tot
val rsapss_check_exponent: #t:limb_t -> eBits:size_pos -> e:lbignum t (blocks eBits (bits t)) -> res:limb t{v res == (if (0 < bn_v e && bn_v e < pow2 eBits) then v (ones t SEC) else v (zeros t SEC))}
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_check_exponent #t eBits e = let m0 = bn_is_zero_mask e in bn_is_zero_mask_lemma e; let m1 = bn_check_num_bits eBits e in let m = (lognot m0) &. m1 in lognot_lemma m0; logand_lemma (lognot m0) m1; m
val rsapss_check_exponent: #t:limb_t -> eBits:size_pos -> e:lbignum t (blocks eBits (bits t)) -> res:limb t{v res == (if (0 < bn_v e && bn_v e < pow2 eBits) then v (ones t SEC) else v (zeros t SEC))} let rsapss_check_exponent #t eBits e =
false
null
false
let m0 = bn_is_zero_mask e in bn_is_zero_mask_lemma e; let m1 = bn_check_num_bits eBits e in let m = (lognot m0) &. m1 in lognot_lemma m0; logand_lemma (lognot m0) m1; m
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.unit", "Lib.IntTypes.logand_lemma", "Lib.IntTypes.SEC", "Lib.IntTypes.lognot", "Lib.IntTypes.lognot_lemma", "Lib.IntTypes.int...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_check_exponent: #t:limb_t -> eBits:size_pos -> e:lbignum t (blocks eBits (bits t)) -> res:limb t{v res == (if (0 < bn_v e && bn_v e < pow2 eBits) then v (ones t SEC) else v (zeros t SEC))}
[]
Hacl.Spec.RSAPSS.rsapss_check_exponent
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
eBits: Lib.IntTypes.size_pos -> e: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks eBits (Lib.IntTypes.bits t)) -> res: Hacl.Spec.Bignum.Definitions.limb t { Lib.IntTypes.v res == (match 0 < Hacl.Spec.Bignum.Definitions.bn_v e && ...
{ "end_col": 3, "end_line": 780, "start_col": 38, "start_line": 773 }
Prims.Pure
val rsapss_verify_: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> msg:se...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_ #t a modBits eBits pkey sLen sgnt msgLen msg = let (b, m) = rsapss_verify_compute_msg #t modBits eBits pkey sgnt in if b then rsapss_verify_bn_to_msg a modBits sLen msgLen msg m else false
val rsapss_verify_: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> msg:se...
false
null
false
let b, m = rsapss_verify_compute_msg #t modBits eBits pkey sgnt in if b then rsapss_verify_bn_to_msg a modBits sLen msgLen msg m else false
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> msg:se...
[]
Hacl.Spec.RSAPSS.rsapss_verify_
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntType...
{ "end_col": 9, "end_line": 630, "start_col": 65, "start_line": 625 }
Prims.Tot
val bn_check_num_bits: #t:limb_t -> bs:size_pos -> b:lbignum t (blocks bs (bits t)) -> res:limb t{v res == (if bn_v b < pow2 bs then v (ones t SEC) else v (zeros t SEC))}
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let bn_check_num_bits #t bs b = let bLen = blocks bs (bits t) in assert (bs <= bits t * bLen); let m : limb t = if bs = bits t * bLen then ones t SEC else bn_lt_pow2_mask b bs in (if bs = bits t * bLen then begin bn_eval_bound b bLen; Math.Lemmas.pow2_le_compat (bits t * bLen) bs end else bn_lt_po...
val bn_check_num_bits: #t:limb_t -> bs:size_pos -> b:lbignum t (blocks bs (bits t)) -> res:limb t{v res == (if bn_v b < pow2 bs then v (ones t SEC) else v (zeros t SEC))} let bn_check_num_bits #t bs b =
false
null
false
let bLen = blocks bs (bits t) in assert (bs <= bits t * bLen); let m:limb t = if bs = bits t * bLen then ones t SEC else bn_lt_pow2_mask b bs in (if bs = bits t * bLen then (bn_eval_bound b bLen; Math.Lemmas.pow2_le_compat (bits t * bLen) bs) else bn_lt_pow2_mask_lemma b bs); assert (v m == (if bn_v b < p...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.unit", "Prims._assert", "Prims.eq2", "Lib.IntTypes.range_t", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Prims.op_LessThan", "...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val bn_check_num_bits: #t:limb_t -> bs:size_pos -> b:lbignum t (blocks bs (bits t)) -> res:limb t{v res == (if bn_v b < pow2 bs then v (ones t SEC) else v (zeros t SEC))}
[]
Hacl.Spec.RSAPSS.bn_check_num_bits
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
bs: Lib.IntTypes.size_pos -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks bs (Lib.IntTypes.bits t)) -> res: Hacl.Spec.Bignum.Definitions.limb t { Lib.IntTypes.v res == (match Hacl.Spec.Bignum.Definitions.bn_v b < Prims.pow2 bs with |...
{ "end_col": 3, "end_line": 748, "start_col": 31, "start_line": 738 }
FStar.Pervasives.Lemma
val bn_lt_pow2_lemma: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 modBits) (ensures bn_lt_pow2 modBits m == (bn_v m < pow2 (8 * blocks (modBits - 1) 8)))
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let bn_lt_pow2_lemma #t modBits m = let k = blocks modBits 8 in let emLen = blocks (modBits - 1) 8 in let nLen = blocks k (numbytes t) in assert (nLen == blocks modBits (bits t)); if (modBits - 1) % 8 <> 0 then Math.Lemmas.pow2_le_compat (8 * emLen) modBits else begin assert (k == emLen + 1); bn_ev...
val bn_lt_pow2_lemma: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 modBits) (ensures bn_lt_pow2 modBits m == (bn_v m < pow2 (8 * blocks (modBits - 1) 8))) let bn_lt_pow2_lemma #t modBits m =
false
null
true
let k = blocks modBits 8 in let emLen = blocks (modBits - 1) 8 in let nLen = blocks k (numbytes t) in assert (nLen == blocks modBits (bits t)); if (modBits - 1) % 8 <> 0 then Math.Lemmas.pow2_le_compat (8 * emLen) modBits else (assert (k == emLen + 1); bn_eval_unfold_i m nLen; assert (8 * k == modBits + 7); ...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "lemma" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.op_disEquality", "Prims.int", "Prims.op_Modulus", "Prims.op_Subtraction", "FStar.Math.Lem...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val bn_lt_pow2_lemma: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 modBits) (ensures bn_lt_pow2 modBits m == (bn_v m < pow2 (8 * blocks (modBits - 1) 8)))
[]
Hacl.Spec.RSAPSS.bn_lt_pow2_lemma
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_pos{1 < modBits} -> m: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t)) -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v m < Prims.pow2 modBits) (ensures Hacl.Spec.RSAPSS.bn_l...
{ "end_col": 44, "end_line": 75, "start_col": 35, "start_line": 61 }
Prims.Pure
val rsapss_verify_bn_to_msg: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat{1 < modBits} -> sLen:size_nat //saltLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> m:lbignum t (blocks modBits (bits t)) -> Pure bool (requires rsapss_verify_pre a sLen msgLen msg) (en...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_bn_to_msg #t a modBits sLen msgLen msg m = let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let emBits = modBits - 1 in let emLen = blocks emBits 8 in blocks_bits_lemma t emBits; blocks_numb_lemma t emBits; assert (blocks emLen numb == blocks emBits bit...
val rsapss_verify_bn_to_msg: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat{1 < modBits} -> sLen:size_nat //saltLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> m:lbignum t (blocks modBits (bits t)) -> Pure bool (requires rsapss_verify_pre a sLen msgLen msg) (en...
false
null
false
let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let emBits = modBits - 1 in let emLen = blocks emBits 8 in blocks_bits_lemma t emBits; blocks_numb_lemma t emBits; assert (blocks emLen numb == blocks emBits bits); assert (numb * blocks emLen numb <= max_size_t); let m1 = sub m 0 (blocks e...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Prims.op_LessThan", "Prims.nat", "Lib.Sequence.seq", "Lib.IntTypes.uint8", "Prims.eq2", "Lib.Sequence.length", "Hacl.Spec.Bignum.Definitions.lbignum"...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_bn_to_msg: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat{1 < modBits} -> sLen:size_nat //saltLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> m:lbignum t (blocks modBits (bits t)) -> Pure bool (requires rsapss_verify_pre a sLen msgLen msg) (en...
[]
Hacl.Spec.RSAPSS.rsapss_verify_bn_to_msg
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat{1 < modBits} -> sLen: Lib.IntTypes.size_nat -> msgLen: Prims.nat -> msg: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length msg == msgLen} -> m: Hacl.Spec.Bignum.Definitions.lbignum ...
{ "end_col": 42, "end_line": 580, "start_col": 60, "start_line": 565 }
Prims.Tot
val rsapss_check_modulus: #t:limb_t -> modBits:size_pos -> n:lbignum t (blocks modBits (bits t)) -> res:limb t{v res == (if (bn_v n % 2 = 1 && pow2 (modBits - 1) < bn_v n && bn_v n < pow2 modBits) then v (ones t SEC) else v (zeros t SEC))}
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_check_modulus #t modBits n = let bit0 = bn_is_odd n in bn_is_odd_lemma n; assert (v bit0 == bn_v n % 2); let m0 = uint #t 0 -. bit0 in let m1 = bn_gt_pow2_mask n (modBits - 1) in bn_gt_pow2_mask_lemma n (modBits - 1); let m2 = bn_check_num_bits modBits n in let m = m0 &. (m1 &. m2) in log...
val rsapss_check_modulus: #t:limb_t -> modBits:size_pos -> n:lbignum t (blocks modBits (bits t)) -> res:limb t{v res == (if (bn_v n % 2 = 1 && pow2 (modBits - 1) < bn_v n && bn_v n < pow2 modBits) then v (ones t SEC) else v (zeros t SEC))} let rsapss_check_modulus #t modBits n =
false
null
false
let bit0 = bn_is_odd n in bn_is_odd_lemma n; assert (v bit0 == bn_v n % 2); let m0 = uint #t 0 -. bit0 in let m1 = bn_gt_pow2_mask n (modBits - 1) in bn_gt_pow2_mask_lemma n (modBits - 1); let m2 = bn_check_num_bits modBits n in let m = m0 &. (m1 &. m2) in logand_lemma m0 (m1 &. m2); logand_lemma m1 m2; m
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.unit", "Lib.IntTypes.logand_lemma", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.int_t", "Hacl.Spec.Bignum.De...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_check_modulus: #t:limb_t -> modBits:size_pos -> n:lbignum t (blocks modBits (bits t)) -> res:limb t{v res == (if (bn_v n % 2 = 1 && pow2 (modBits - 1) < bn_v n && bn_v n < pow2 modBits) then v (ones t SEC) else v (zeros t SEC))}
[]
Hacl.Spec.RSAPSS.rsapss_check_modulus
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_pos -> n: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t)) -> res: Hacl.Spec.Bignum.Definitions.limb t { Lib.IntTypes.v res == (match Hacl.Spec.Bignum.Definitions.bn_v n % 2 = 1 &&...
{ "end_col": 3, "end_line": 767, "start_col": 39, "start_line": 754 }
Prims.Pure
val rsapss_pkey_verify: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> msg...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_pkey_verify #t a modBits eBits nb eb sLen k sgnt msgLen msg = let b, pkey = rsapss_load_pkey #t modBits eBits nb eb in rsapss_load_pkey_lemma #t modBits eBits nb eb; if b then rsapss_verify a modBits eBits pkey sLen k sgnt msgLen msg else false
val rsapss_pkey_verify: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> msg...
false
null
false
let b, pkey = rsapss_load_pkey #t modBits eBits nb eb in rsapss_load_pkey_lemma #t modBits eBits nb eb; if b then rsapss_verify a modBits eBits pkey sLen k sgnt msgLen msg else false
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "Prims.nat", "Lib.Sequence.seq", "P...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_pkey_verify: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> msg...
[]
Hacl.Spec.RSAPSS.rsapss_pkey_verify
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks modBits 8) -> eb: Lib.Sequence.lseq Li...
{ "end_col": 9, "end_line": 1002, "start_col": 72, "start_line": 995 }
Prims.Tot
val rsapss_skey_pre: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> Type0
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_skey_pre #t modBits eBits dBits skey = let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let pkeyLen = nLen + nLen + eLen in let pkey = sub skey 0 pkeyLen in let d = sub skey pkeyLen dLen in rsapss_pkey_pre modBits eBits...
val rsapss_skey_pre: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> Type0 let rsapss_skey_pre #t modBits eBits dBits skey =
false
null
false
let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let pkeyLen = nLen + nLen + eLen in let pkey = sub skey 0 pkeyLen in let d = sub skey pkeyLen dLen in rsapss_pkey_pre modBits eBits pkey /\ 0 < bn_v d /\ bn_v d < pow2 dBits
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.l_and", "Hacl.Spec.RSAPSS.rsapss_pkey_pre", "Prims...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_skey_pre: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> Type0
[]
Hacl.Spec.RSAPSS.rsapss_skey_pre
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t) + Hacl.Spec....
{ "end_col": 35, "end_line": 147, "start_col": 49, "start_line": 137 }
Prims.Tot
val rsapss_sign_post1: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLe...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign_post1 #t a modBits eBits dBits skey sLen salt msgLen msg eq_m sgnt = rsapss_skey_pre modBits eBits dBits skey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = bn_v (sub skey 0 nLen) in let e = bn_v (sub skey ...
val rsapss_sign_post1: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLe...
false
null
false
rsapss_skey_pre modBits eBits dBits skey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = bn_v (sub skey 0 nLen) in let e = bn_v (sub skey (nLen + nLen) eLen) in let d = bn_v (sub skey (nLen + nLen + eLen) dLen) in let pkeys...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign_post1: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLe...
[]
Hacl.Spec.RSAPSS.rsapss_sign_post1
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bign...
{ "end_col": 72, "end_line": 226, "start_col": 2, "start_line": 214 }
Prims.Pure
val rsapss_verify_compute_msg: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sgnt:lseq uint8 (blocks modBits 8) -> Pure (tuple2 bool (lbignum t (blocks modBits (bits t)))) (requires rsapss_pkey_pre...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_compute_msg #t modBits eBits pkey sgnt = let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let k = blocks modBits 8 in blocks_bits_lemma t modBits; blocks_numb_lemma t modBits; assert (blocks k numb == nLen); assert (numb * blocks k numb <= max_size_t); ...
val rsapss_verify_compute_msg: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sgnt:lseq uint8 (blocks modBits 8) -> Pure (tuple2 bool (lbignum t (blocks modBits (bits t)))) (requires rsapss_pkey_pre...
false
null
false
let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let k = blocks modBits 8 in blocks_bits_lemma t modBits; blocks_numb_lemma t modBits; assert (blocks k numb == nLen); assert (numb * blocks k numb <= max_size_t); let s = bn_from_bytes_be k sgnt in let m_def = create nLen (uint #t 0) in rsa...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.RSA...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_compute_msg: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sgnt:lseq uint8 (blocks modBits 8) -> Pure (tuple2 bool (lbignum t (blocks modBits (bits t)))) (requires rsapss_pkey_pre...
[]
Hacl.Spec.RSAPSS.rsapss_verify_compute_msg
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t) + Hacl.Spec.Bignum.Definitions.blocks eBits (Lib.IntTy...
{ "end_col": 48, "end_line": 606, "start_col": 58, "start_line": 593 }
Prims.Pure
val rsapss_verify: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> msg:seq ...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify #t a modBits eBits pkey sLen k sgnt msgLen msg = let hLen = Hash.hash_length a in Math.Lemmas.pow2_lt_compat 61 32; Math.Lemmas.pow2_lt_compat 125 32; //assert (max_size_t < Hash.max_input_length a); assert (hLen + 8 < max_size_t); let b = sLen <= v (0xfffffffful) - hLen - 8 && ms...
val rsapss_verify: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> msg:seq ...
false
null
false
let hLen = Hash.hash_length a in Math.Lemmas.pow2_lt_compat 61 32; Math.Lemmas.pow2_lt_compat 125 32; assert (hLen + 8 < max_size_t); let b = sLen <= v (0xfffffffful) - hLen - 8 && msgLen `less_than_max_input_length` a && k = blocks modBits 8 in if b then (rsapss_verify_lemma a modBits eBits pkey sLen sgnt msgLen...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> k:size_nat -> sgnt:lseq uint8 k -> msgLen:nat -> msg:seq ...
[]
Hacl.Spec.RSAPSS.rsapss_verify
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntType...
{ "end_col": 9, "end_line": 731, "start_col": 66, "start_line": 715 }
Prims.Tot
val rsapss_load_pkey_post: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> Type0
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_load_pkey_post #t modBits eBits nb eb pkey = let bits = bits t in let pkey_s = S.rsapss_load_pkey modBits eBits nb eb in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let e = sub pkey (nLen + nLen) eLen in rsapss_pkey_pre modBits eBits pkey /\...
val rsapss_load_pkey_post: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> Type0 let rsapss_load_pkey_post #t modBits eBits nb eb p...
false
null
false
let bits = bits t in let pkey_s = S.rsapss_load_pkey modBits eBits nb eb in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let e = sub pkey (nLen + nLen) eLen in rsapss_pkey_pre modBits eBits pkey /\ Some? pkey_s /\ bn_v n == S.Mk_rsapss_pkey?.n (Some?.v pkey_s) /\ bn_v e =...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Prims.l_and",...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_load_pkey_post: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> Type0
[]
Hacl.Spec.RSAPSS.rsapss_load_pkey_post
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks modBits 8) -> eb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks eBits 8) -> pkey...
{ "end_col": 48, "end_line": 804, "start_col": 55, "start_line": 791 }
Prims.Tot
val rsapss_sign_post: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign_post #t a modBits eBits dBits skey sLen salt msgLen msg eq_m sgnt = rsapss_sign_pre a modBits sLen salt msgLen msg /\ rsapss_skey_pre modBits eBits dBits skey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = ...
val rsapss_sign_post: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen...
false
null
false
rsapss_sign_pre a modBits sLen salt msgLen msg /\ rsapss_skey_pre modBits eBits dBits skey /\ (let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = bn_v (sub skey 0 nLen) in let e = bn_v (sub skey (nLen + nLen) eLen) in let d = bn_v (...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign_post: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen...
[]
Hacl.Spec.RSAPSS.rsapss_sign_post
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bign...
{ "end_col": 35, "end_line": 196, "start_col": 2, "start_line": 183 }
Prims.Pure
val rsapss_sign: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen ->...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign #t a modBits eBits dBits skey sLen salt msgLen msg sgnt = let hLen = Hash.hash_length a in Math.Lemmas.pow2_lt_compat 61 32; Math.Lemmas.pow2_lt_compat 125 32; let b = sLen <= v (0xfffffffful) - hLen - 8 && msgLen `less_than_max_input_length` a && sLen + hLen + 2 <= blocks (modBits ...
val rsapss_sign: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen ->...
false
null
false
let hLen = Hash.hash_length a in Math.Lemmas.pow2_lt_compat 61 32; Math.Lemmas.pow2_lt_compat 125 32; let b = sLen <= v (0xfffffffful) - hLen - 8 && msgLen `less_than_max_input_length` a && sLen + hLen + 2 <= blocks (modBits - 1) 8 in if b then (rsapss_sign_lemma a modBits eBits dBits skey sLen salt msgLen msg; ...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen ->...
[]
Hacl.Spec.RSAPSS.rsapss_sign
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bign...
{ "end_col": 15, "end_line": 516, "start_col": 73, "start_line": 502 }
Prims.Tot
val rsapss_pkey_pre: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> Type0
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_pkey_pre #t modBits eBits pkey = let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let r2 = sub pkey nLen nLen in let e = sub pkey (nLen + nLen) eLen in r2 == SM.bn_precomp_r2_mod_n (modBits - 1) n /\ bn_v n % 2 = 1 /\ pow2 (...
val rsapss_pkey_pre: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> Type0 let rsapss_pkey_pre #t modBits eBits pkey =
false
null
false
let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let r2 = sub pkey nLen nLen in let e = sub pkey (nLen + nLen) eLen in r2 == SM.bn_precomp_r2_mod_n (modBits - 1) n /\ bn_v n % 2 = 1 /\ pow2 (modBits - 1) < bn_v n /\ bn_v n < pow2 modBits /\ 0 < bn_v e /\ ...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.l_and", "Prims.eq2", "Lib.Sequence.lseq", "Hacl....
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_pkey_pre: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> Type0
[]
Hacl.Spec.RSAPSS.rsapss_pkey_pre
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t) + Hacl.Spec.Bignum.Definitions.blocks eBits (Lib.IntTy...
{ "end_col": 35, "end_line": 127, "start_col": 43, "start_line": 116 }
FStar.Pervasives.Lemma
val bn_eval_sub: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 (8 * blocks (modBits - 1) 8)) (ensures bn_v m == bn_v (sub m 0 (blocks (blocks (modBits - 1) 8) (numbytes t))))
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let bn_eval_sub #t modBits m = let emLen = blocks (modBits - 1) 8 in let mLen = blocks emLen (numbytes t) in let nLen = blocks modBits (bits t) in assert (bn_v m < pow2 (8 * emLen)); let m1 = sub m 0 mLen in bn_eval_split_i m mLen; assert (bn_v m == bn_v m1 + pow2 (bits t * mLen) * bn_v (slice m mLen nLen...
val bn_eval_sub: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 (8 * blocks (modBits - 1) 8)) (ensures bn_v m == bn_v (sub m 0 (blocks (blocks (modBits - 1) 8) (numbytes t)))) let bn_eval_sub #t modBits m =
false
null
true
let emLen = blocks (modBits - 1) 8 in let mLen = blocks emLen (numbytes t) in let nLen = blocks modBits (bits t) in assert (bn_v m < pow2 (8 * emLen)); let m1 = sub m 0 mLen in bn_eval_split_i m mLen; assert (bn_v m == bn_v m1 + pow2 (bits t * mLen) * bn_v (slice m mLen nLen)); bn_eval_bound m1 mLen; assert (bn_v m1 < ...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "lemma" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "FStar.Math.Lemmas.pow2_le_compat", "FStar.Mul.op_Star", "Prims.unit", "Prims._assert", "Hacl.Sp...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val bn_eval_sub: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 (8 * blocks (modBits - 1) 8)) (ensures bn_v m == bn_v (sub m 0 (blocks (blocks (modBits - 1) 8) (numbytes t))))
[]
Hacl.Spec.RSAPSS.bn_eval_sub
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_pos{1 < modBits} -> m: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t)) -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v m < Prims.pow2 (8 * Hacl.Spec.Bignum.Definitio...
{ "end_col": 56, "end_line": 92, "start_col": 30, "start_line": 82 }
Prims.Pure
val rsapss_sign_msg_to_bn: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat{1 < modBits} -> sLen:size_nat -> salt:lseq uint8 sLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> Pure (lbignum t (blocks modBits (bits t))) (requires rsapss_sign_pre a modBits sLen salt ms...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign_msg_to_bn #t a modBits sLen salt msgLen msg = let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let emBits = modBits - 1 in let emLen = blocks emBits 8 in let em = S.pss_encode a sLen salt msgLen msg emBits in blocks_bits_lemma t emBits; blocks_numb_lemma ...
val rsapss_sign_msg_to_bn: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat{1 < modBits} -> sLen:size_nat -> salt:lseq uint8 sLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> Pure (lbignum t (blocks modBits (bits t))) (requires rsapss_sign_pre a modBits sLen salt ms...
false
null
false
let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let emBits = modBits - 1 in let emLen = blocks emBits 8 in let em = S.pss_encode a sLen salt msgLen msg emBits in blocks_bits_lemma t emBits; blocks_numb_lemma t emBits; assert (blocks emLen numb == blocks emBits bits); assert (numb * block...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Prims.op_LessThan", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Prims.nat", "Lib.Sequence.seq", "Prims.eq2", "Lib.Sequence.length", "Prims.unit", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign_msg_to_bn: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat{1 < modBits} -> sLen:size_nat -> salt:lseq uint8 sLen -> msgLen:nat -> msg:seq uint8{length msg == msgLen} -> Pure (lbignum t (blocks modBits (bits t))) (requires rsapss_sign_pre a modBits sLen salt ms...
[]
Hacl.Spec.RSAPSS.rsapss_sign_msg_to_bn
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat{1 < modBits} -> sLen: Lib.IntTypes.size_nat -> salt: Lib.Sequence.lseq Lib.IntTypes.uint8 sLen -> msgLen: Prims.nat -> msg: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length msg == msgLen...
{ "end_col": 3, "end_line": 359, "start_col": 61, "start_line": 339 }
Prims.Pure
val rsapss_skey_sign: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> sLen:size_nat -> salt:lse...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_skey_sign #t a modBits eBits dBits nb eb db sLen salt msgLen msg sgnt = let b, skey = rsapss_load_skey #t modBits eBits dBits nb eb db in rsapss_load_skey_lemma #t modBits eBits dBits nb eb db; if b then rsapss_sign a modBits eBits dBits skey sLen salt msgLen msg sgnt else false, sgnt
val rsapss_skey_sign: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> sLen:size_nat -> salt:lse...
false
null
false
let b, skey = rsapss_load_skey #t modBits eBits dBits nb eb db in rsapss_load_skey_lemma #t modBits eBits dBits nb eb db; if b then rsapss_sign a modBits eBits dBits skey sLen salt msgLen msg sgnt else false, sgnt
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "Prims.nat", "Lib.Sequence.seq", "P...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_skey_sign: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> sLen:size_nat -> salt:lse...
[]
Hacl.Spec.RSAPSS.rsapss_skey_sign
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks ...
{ "end_col": 15, "end_line": 975, "start_col": 82, "start_line": 968 }
Prims.Pure
val rsapss_sign_: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen -...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign_ #t a modBits eBits dBits skey sLen salt msgLen msg = let m = rsapss_sign_msg_to_bn #t a modBits sLen salt msgLen msg in rsapss_sign_compute_sgnt #t modBits eBits dBits skey m
val rsapss_sign_: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen -...
false
null
false
let m = rsapss_sign_msg_to_bn #t a modBits sLen salt msgLen msg in rsapss_sign_compute_sgnt #t modBits eBits dBits skey m
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign_: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLen -...
[]
Hacl.Spec.RSAPSS.rsapss_sign_
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bign...
{ "end_col": 56, "end_line": 412, "start_col": 69, "start_line": 410 }
Prims.Tot
val rsapss_load_pkey: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> tuple2 bool (lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)))
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_load_pkey #t modBits eBits nb eb = let n = bn_from_bytes_be (blocks modBits 8) nb in let r2 = SM.bn_precomp_r2_mod_n (modBits - 1) n in let e = bn_from_bytes_be (blocks eBits 8) eb in let pkey = (n @| r2) @| e in let m0 = rsapss_check_modulus modBits n in let m1 = rsapss_check_exponent eBits e...
val rsapss_load_pkey: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> tuple2 bool (lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t))) let rsapss_load_pkey #t modBits eBits nb eb =
false
null
false
let n = bn_from_bytes_be (blocks modBits 8) nb in let r2 = SM.bn_precomp_r2_mod_n (modBits - 1) n in let e = bn_from_bytes_be (blocks eBits 8) eb in let pkey = (n @| r2) @| e in let m0 = rsapss_check_modulus modBits n in let m1 = rsapss_check_exponent eBits e in let m = m0 &. m1 in BB.unsafe_bool_of_limb m, pkey
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "FStar.Pervasives.Native.Mktuple2", "Prims.bool", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_load_pkey: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> tuple2 bool (lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)))
[]
Hacl.Spec.RSAPSS.rsapss_load_pkey
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks modBits 8) -> eb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks eBits 8) -> Prims....
{ "end_col": 32, "end_line": 854, "start_col": 45, "start_line": 845 }
Prims.Pure
val rsapss_sign_compute_sgnt: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> m:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lseq uint8 (b...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign_compute_sgnt #t modBits eBits dBits skey m = let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let k = blocks modBits 8 in let eq_b, s = rsapss_sign_bn #t modBits eBits dBits skey m in blocks_bits_lemma t modBits; blocks_numb_lemma t modBits; assert (blocks...
val rsapss_sign_compute_sgnt: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> m:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lseq uint8 (b...
false
null
false
let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let k = blocks modBits 8 in let eq_b, s = rsapss_sign_bn #t modBits eBits dBits skey m in blocks_bits_lemma t modBits; blocks_numb_lemma t modBits; assert (blocks k numb == nLen); assert (numb * blocks k numb <= max_size_t); let sgnt = bn_t...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Prims.bool", "FStar.Pervasives.Native.Mktuple2", "Lib.Se...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign_compute_sgnt: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> m:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lseq uint8 (b...
[]
Hacl.Spec.RSAPSS.rsapss_sign_compute_sgnt
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t) + Hacl.Spec....
{ "end_col": 12, "end_line": 389, "start_col": 60, "start_line": 377 }
Prims.Pure
val rsapss_verify_bn: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> m_def:lbignum t (blocks modBits (bits t)) -> s:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lbignum t (blocks modBit...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_bn #t modBits eBits pkey m_def s = let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let r2 = sub pkey nLen nLen in let e = sub pkey (nLen + nLen) eLen in let mask = bn_lt_mask s n in bn_lt_m...
val rsapss_verify_bn: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> m_def:lbignum t (blocks modBits (bits t)) -> s:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lbignum t (blocks modBit...
false
null
false
let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let r2 = sub pkey nLen nLen in let e = sub pkey (nLen + nLen) eLen in let mask = bn_lt_mask s n in bn_lt_mask_lemma s n; if BB.unsafe_bool_of_limb mask then (Math.Lemmas.pow2_le_c...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Base.unsafe_bool_of_limb", "Hacl.Spec.RSA...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_bn: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> m_def:lbignum t (blocks modBits (bits t)) -> s:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lbignum t (blocks modBit...
[]
Hacl.Spec.RSAPSS.rsapss_verify_bn
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t) + Hacl.Spec.Bignum.Definitions.blocks eBits (Lib.IntTy...
{ "end_col": 19, "end_line": 550, "start_col": 52, "start_line": 530 }
FStar.Pervasives.Lemma
val bn_eval_lt_pow2_modBits: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 modBits) (ensures bn_v m == (bn_v m / pow2 (modBits - 1) % 2) * pow2 (modBits - 1) + bn_v m % pow2 (modBits - 1))
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let bn_eval_lt_pow2_modBits #t modBits m = calc (==) { bn_v m; (==) { Math.Lemmas.euclidean_division_definition (bn_v m) (pow2 (modBits - 1)) } bn_v m / pow2 (modBits - 1) * pow2 (modBits - 1) + bn_v m % pow2 (modBits - 1); (==) { Math.Lemmas.euclidean_division_definition (bn_v m / pow2 (modBits - 1))...
val bn_eval_lt_pow2_modBits: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 modBits) (ensures bn_v m == (bn_v m / pow2 (modBits - 1) % 2) * pow2 (modBits - 1) + bn_v m % pow2 (modBits - 1)) let bn_eval_lt_pow2_modBits #t modBits m =
false
null
true
calc ( == ) { bn_v m; ( == ) { Math.Lemmas.euclidean_division_definition (bn_v m) (pow2 (modBits - 1)) } (bn_v m / pow2 (modBits - 1)) * pow2 (modBits - 1) + bn_v m % pow2 (modBits - 1); ( == ) { Math.Lemmas.euclidean_division_definition (bn_v m / pow2 (modBits - 1)) 2 } ((bn_v m / pow2 (modBits - 1) / 2) * 2...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "lemma" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "FStar.Calc.calc_finish", "Prims.nat", "Prims.eq2", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims....
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val bn_eval_lt_pow2_modBits: #t:limb_t -> modBits:size_pos{1 < modBits} -> m:lbignum t (blocks modBits (bits t)) -> Lemma (requires bn_v m < pow2 modBits) (ensures bn_v m == (bn_v m / pow2 (modBits - 1) % 2) * pow2 (modBits - 1) + bn_v m % pow2 (modBits - 1))
[]
Hacl.Spec.RSAPSS.bn_eval_lt_pow2_modBits
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_pos{1 < modBits} -> m: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t)) -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v m < Prims.pow2 modBits) (ensures Hacl.Spec.Bignum.Defi...
{ "end_col": 5, "end_line": 54, "start_col": 2, "start_line": 44 }
Prims.Tot
val rsapss_load_skey_post: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_load_skey_post #t modBits eBits dBits nb eb db skey = let bits = bits t in let skey_s = S.rsapss_load_skey modBits eBits dBits nb eb db in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = sub skey 0 nLen in let e = sub skey (nLen + nL...
val rsapss_load_skey_post: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t...
false
null
false
let bits = bits t in let skey_s = S.rsapss_load_skey modBits eBits dBits nb eb db in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = sub skey 0 nLen in let e = sub skey (nLen + nLen) eLen in let d = sub skey (nLen + nLen + eLen) dLen in rsapss_skey_pre modBits e...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Prims.l_and",...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_load_skey_post: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t...
[]
Hacl.Spec.RSAPSS.rsapss_load_skey_post
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks modBits 8) -> eb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bign...
{ "end_col": 49, "end_line": 834, "start_col": 64, "start_line": 818 }
Prims.Tot
val rsapss_load_skey: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> tuple2 bool (lbignum t (2 * blocks modBits (bits t) + blocks eBits (bit...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_load_skey #t modBits eBits dBits nb eb db = let b, pkey = rsapss_load_pkey modBits eBits nb eb in let d = bn_from_bytes_be #t (blocks dBits 8) db in let skey = pkey @| d in let m0 = rsapss_check_exponent dBits d in let b1 = b && BB.unsafe_bool_of_limb m0 in b1, skey
val rsapss_load_skey: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> tuple2 bool (lbignum t (2 * blocks modBits (bits t) + blocks eBits (bit...
false
null
false
let b, pkey = rsapss_load_pkey modBits eBits nb eb in let d = bn_from_bytes_be #t (blocks dBits 8) db in let skey = pkey @| d in let m0 = rsapss_check_exponent dBits d in let b1 = b && BB.unsafe_bool_of_limb m0 in b1, skey
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "total" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "Prims.bool", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.bits", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_load_skey: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> tuple2 bool (lbignum t (2 * blocks modBits (bits t) + blocks eBits (bit...
[]
Hacl.Spec.RSAPSS.rsapss_load_skey
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks modBits 8) -> eb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bign...
{ "end_col": 10, "end_line": 911, "start_col": 54, "start_line": 904 }
FStar.Pervasives.Lemma
val rsapss_load_pkey_lemma: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> Lemma (let b, pkey = rsapss_load_pkey #t modBits eBits nb eb in let pkey_s = S.rsapss_load_pkey modBits eBits nb eb in ...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_load_pkey_lemma #t modBits eBits nb eb = let bits = bits t in let nbLen = blocks modBits 8 in let ebLen = blocks eBits 8 in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = bn_from_bytes_be #t nbLen nb in bn_from_bytes_be_lemma #t nbLen nb; let r2 = SM.bn_precomp_r...
val rsapss_load_pkey_lemma: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> Lemma (let b, pkey = rsapss_load_pkey #t modBits eBits nb eb in let pkey_s = S.rsapss_load_pkey modBits eBits nb eb in ...
false
null
true
let bits = bits t in let nbLen = blocks modBits 8 in let ebLen = blocks eBits 8 in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = bn_from_bytes_be #t nbLen nb in bn_from_bytes_be_lemma #t nbLen nb; let r2 = SM.bn_precomp_r2_mod_n (modBits - 1) n in let e = bn_from_bytes_be #t ebLen eb in bn_f...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "lemma" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.logand_lemma", "Lib.IntTypes.SEC", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Amp_Dot", "Hacl.Spec.Bignum.D...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_load_pkey_lemma: #t:limb_t -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> Lemma (let b, pkey = rsapss_load_pkey #t modBits eBits nb eb in let pkey_s = S.rsapss_load_pkey modBits eBits nb eb in ...
[]
Hacl.Spec.RSAPSS.rsapss_load_pkey_lemma
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks modBits 8) -> eb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks eBits 8) -> FStar....
{ "end_col": 20, "end_line": 891, "start_col": 51, "start_line": 868 }
FStar.Pervasives.Lemma
val rsapss_load_skey_lemma: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> Lemma (let b, skey = rsapss_load_skey #t modBits eBits dBits nb...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_load_skey_lemma #t modBits eBits dBits nb eb db = let bits = bits t in let nbLen = blocks modBits 8 in let ebLen = blocks eBits 8 in let dbLen = blocks dBits 8 in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let b, pkey = rsapss_load_pkey...
val rsapss_load_skey_lemma: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> Lemma (let b, skey = rsapss_load_skey #t modBits eBits dBits nb...
false
null
true
let bits = bits t in let nbLen = blocks modBits 8 in let ebLen = blocks eBits 8 in let dbLen = blocks dBits 8 in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let b, pkey = rsapss_load_pkey #t modBits eBits nb eb in rsapss_load_pkey_lemma #t modBits eBits nb eb; let d...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "lemma" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Definitions.blocks", "Prims.bool", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.bits", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_load_skey_lemma: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> nb:lseq uint8 (blocks modBits 8) -> eb:lseq uint8 (blocks eBits 8) -> db:lseq uint8 (blocks dBits 8) -> Lemma (let b, skey = rsapss_load_skey #t modBits eBits dBits nb...
[]
Hacl.Spec.RSAPSS.rsapss_load_skey_lemma
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> nb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bignum.Definitions.blocks modBits 8) -> eb: Lib.Sequence.lseq Lib.IntTypes.uint8 (Hacl.Spec.Bign...
{ "end_col": 49, "end_line": 945, "start_col": 60, "start_line": 927 }
FStar.Pervasives.Lemma
val rsapss_verify_lemma: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> m...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_verify_lemma #t a modBits eBits pkey sLen sgnt msgLen msg = let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let r2 = sub pkey nLen nLen in let e = sub pkey (nLen + nLen) eLen in let k = blocks modBi...
val rsapss_verify_lemma: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> m...
false
null
true
let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let n = sub pkey 0 nLen in let r2 = sub pkey nLen nLen in let e = sub pkey (nLen + nLen) eLen in let k = blocks modBits 8 in let emBits = modBits - 1 in let emLen = blocks emBits 8 in blocks_bits_lemma t modB...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "lemma" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.pkey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_verify_lemma: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat{pkey_len_pre t modBits eBits} -> pkey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t)) -> sLen:size_nat //saltLen -> sgnt:lseq uint8 (blocks modBits 8) -> msgLen:nat -> m...
[]
Hacl.Spec.RSAPSS.rsapss_verify_lemma
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.pkey_len_pre t modBits eBits} -> pkey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntType...
{ "end_col": 4, "end_line": 697, "start_col": 70, "start_line": 650 }
Prims.Pure
val rsapss_sign_bn: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> m:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lbignum t (blocks modBi...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign_bn #t modBits eBits dBits skey m = let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = sub skey 0 nLen in let r2 = sub skey nLen nLen in let e = sub skey (nLen + nLen) eLen in let d = sub skey (nLen + nLen + e...
val rsapss_sign_bn: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> m:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lbignum t (blocks modBi...
false
null
false
let bits = bits t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = sub skey 0 nLen in let r2 = sub skey nLen nLen in let e = sub skey (nLen + nLen) eLen in let d = sub skey (nLen + nLen + eLen) dLen in let k = blocks modBits 8 in Math.Lemmas.pow2_le_compat (bi...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.bits", "FStar.Pervasives.Native.Mktuple2", "Prims.bool", "Hacl.S...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign_bn: #t:limb_t -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> m:lbignum t (blocks modBits (bits t)) -> Pure (tuple2 bool (lbignum t (blocks modBi...
[]
Hacl.Spec.RSAPSS.rsapss_sign_bn
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bignum.Definitions.blocks modBits (Lib.IntTypes.bits t) + Hacl.Spec....
{ "end_col": 32, "end_line": 324, "start_col": 50, "start_line": 306 }
FStar.Pervasives.Lemma
val rsapss_sign_lemma: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLe...
[ { "abbrev": true, "full_module": "Spec.Agile.Hash", "short_module": "Hash" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "SM" }, { "abbrev": true, ...
false
let rsapss_sign_lemma #t a modBits eBits dBits skey sLen salt msgLen msg = let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = sub skey 0 nLen in let r2 = sub skey nLen nLen in let e = sub skey (nLen +...
val rsapss_sign_lemma: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLe...
false
null
true
let bits = bits t in let numb = numbytes t in let nLen = blocks modBits bits in let eLen = blocks eBits bits in let dLen = blocks dBits bits in let n = sub skey 0 nLen in let r2 = sub skey nLen nLen in let e = sub skey (nLen + nLen) eLen in let d = sub skey (nLen + nLen + eLen) dLen in let k = blocks modBits 8 in let e...
{ "checked_file": "Hacl.Spec.RSAPSS.fst.checked", "dependencies": [ "Spec.RSAPSS.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Sp...
[ "lemma" ]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.RSAPSS.hash_is_supported", "Lib.IntTypes.size_nat", "Hacl.Spec.RSAPSS.skey_len_pre", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "FStar.Mul.op_Star", "Hacl.Spec.Bignum.Definitions.blocks", ...
[]
module Hacl.Spec.RSAPSS open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum open Hacl.Spec.Bignum.Exponentiation module S = Spec.RSAPSS module BB = Hacl.Spec.Bignum.Base module SM = Hacl.Spec.Bignum.Montgomery module BSeq = Lib.ByteSequence module Hash = Spec.A...
false
false
Hacl.Spec.RSAPSS.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val rsapss_sign_lemma: #t:limb_t -> a:Hash.hash_alg{S.hash_is_supported a} -> modBits:size_nat -> eBits:size_nat -> dBits:size_nat{skey_len_pre t modBits eBits dBits} -> skey:lbignum t (2 * blocks modBits (bits t) + blocks eBits (bits t) + blocks dBits (bits t)) -> sLen:size_nat -> salt:lseq uint8 sLe...
[]
Hacl.Spec.RSAPSS.rsapss_sign_lemma
{ "file_name": "code/rsapss/Hacl.Spec.RSAPSS.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} -> modBits: Lib.IntTypes.size_nat -> eBits: Lib.IntTypes.size_nat -> dBits: Lib.IntTypes.size_nat{Hacl.Spec.RSAPSS.skey_len_pre t modBits eBits dBits} -> skey: Hacl.Spec.Bignum.Definitions.lbignum t (2 * Hacl.Spec.Bign...
{ "end_col": 27, "end_line": 482, "start_col": 74, "start_line": 433 }
Prims.Tot
val pts_to (#a:Type) (#p:Preorder.preorder a) (r:ref a p) ([@@@smt_fallback]f:perm) ([@@@smt_fallback]v:a) : vprop
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let pts_to (#a:Type) (#p:Preorder.preorder a) (r:ref a p) ([@@@smt_fallback]f:perm) ([@@@smt_fallback]v:a) : vprop = MR.pts_to #a #p r f v
val pts_to (#a:Type) (#p:Preorder.preorder a) (r:ref a p) ([@@@smt_fallback]f:perm) ([@@@smt_fallback]v:a) : vprop let pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) ([@@@ smt_fallback]f: perm) ([@@@ smt_fallback]v: a) : vprop =
false
null
false
MR.pts_to #a #p r f v
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[ "total" ]
[ "FStar.Preorder.preorder", "Steel.ST.MonotonicReference.ref", "Steel.FractionalPermission.perm", "Steel.MonotonicReference.pts_to", "Steel.Effect.Common.vprop" ]
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val pts_to (#a:Type) (#p:Preorder.preorder a) (r:ref a p) ([@@@smt_fallback]f:perm) ([@@@smt_fallback]v:a) : vprop
[]
Steel.ST.MonotonicReference.pts_to
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
r: Steel.ST.MonotonicReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a -> Steel.Effect.Common.vprop
{ "end_col": 26, "end_line": 34, "start_col": 5, "start_line": 34 }
Prims.Tot
val witnessed (#a:Type u#0) (#p:Preorder.preorder a) (r:ref a p) (fact:property a) : Type0
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let witnessed (#a:Type u#0) (#p:Preorder.preorder a) (r:ref a p) (fact:property a) : Type0 = MR.witnessed r fact
val witnessed (#a:Type u#0) (#p:Preorder.preorder a) (r:ref a p) (fact:property a) : Type0 let witnessed (#a: Type u#0) (#p: Preorder.preorder a) (r: ref a p) (fact: property a) : Type0 =
false
null
false
MR.witnessed r fact
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[ "total" ]
[ "FStar.Preorder.preorder", "Steel.ST.MonotonicReference.ref", "Steel.ST.MonotonicReference.property", "Steel.MonotonicReference.witnessed" ]
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val witnessed (#a:Type u#0) (#p:Preorder.preorder a) (r:ref a p) (fact:property a) : Type0
[]
Steel.ST.MonotonicReference.witnessed
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
r: Steel.ST.MonotonicReference.ref a p -> fact: Steel.ST.MonotonicReference.property a -> Type0
{ "end_col": 23, "end_line": 55, "start_col": 4, "start_line": 55 }
Prims.Tot
val ref (a:Type u#0) (p:Preorder.preorder a) : Type u#0
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let ref (a:Type u#0) (p:Preorder.preorder a) : Type u#0 = MR.ref a p
val ref (a:Type u#0) (p:Preorder.preorder a) : Type u#0 let ref (a: Type u#0) (p: Preorder.preorder a) : Type u#0 =
false
null
false
MR.ref a p
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[ "total" ]
[ "FStar.Preorder.preorder", "Steel.MonotonicReference.ref" ]
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val ref (a:Type u#0) (p:Preorder.preorder a) : Type u#0
[]
Steel.ST.MonotonicReference.ref
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
a: Type0 -> p: FStar.Preorder.preorder a -> Type0
{ "end_col": 14, "end_line": 26, "start_col": 4, "start_line": 26 }
Steel.ST.Effect.Atomic.STAtomicU
val recall (#inames: _) (#a:Type u#0) (#q:perm) (#p:Preorder.preorder a) (fact:property a) (r:erased (ref a p)) (v:erased a) (w:witnessed r fact) : STAtomicU unit inames (pts_to r q v) (fun _ -> pts_to r q v) (requires True...
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let recall (#inames: _) (#a:Type u#0) (#q:perm) (#p:Preorder.preorder a) (fact:property a) (r:erased (ref a p)) (v:erased a) (w:witnessed r fact) = coerce_atomic (fun _ -> MR.recall #inames #a #q #p fact r v w)
val recall (#inames: _) (#a:Type u#0) (#q:perm) (#p:Preorder.preorder a) (fact:property a) (r:erased (ref a p)) (v:erased a) (w:witnessed r fact) : STAtomicU unit inames (pts_to r q v) (fun _ -> pts_to r q v) (requires True...
true
null
false
coerce_atomic (fun _ -> MR.recall #inames #a #q #p fact r v w)
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "FStar.Preorder.preorder", "Steel.ST.MonotonicReference.property", "FStar.Ghost.erased", "Steel.ST.MonotonicReference.ref", "Steel.ST.MonotonicReference.witnessed", "FStar.Ghost.reveal", "Steel.ST.Coercions.coerce_atomic", "Prims.unit", "...
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val recall (#inames: _) (#a:Type u#0) (#q:perm) (#p:Preorder.preorder a) (fact:property a) (r:erased (ref a p)) (v:erased a) (w:witnessed r fact) : STAtomicU unit inames (pts_to r q v) (fun _ -> pts_to r q v) (requires True...
[]
Steel.ST.MonotonicReference.recall
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
fact: Steel.ST.MonotonicReference.property a -> r: FStar.Ghost.erased (Steel.ST.MonotonicReference.ref a p) -> v: FStar.Ghost.erased a -> w: Steel.ST.MonotonicReference.witnessed (FStar.Ghost.reveal r) fact -> Steel.ST.Effect.Atomic.STAtomicU Prims.unit
{ "end_col": 66, "end_line": 89, "start_col": 4, "start_line": 89 }
Steel.ST.Effect.Atomic.STAtomicUT
val witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a) (r:erased (ref a p)) (fact:stable_property p) (v:erased a) (_:squash (fact v)) : STAtomicUT (witnessed r fact) inames (pts_to r q v) (fun _ -> pts_to r ...
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a) (r:erased (ref a p)) (fact:stable_property p) (v:erased a) (pf:squash (fact v)) = coerce_atomic (witness' r fact v pf)
val witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a) (r:erased (ref a p)) (fact:stable_property p) (v:erased a) (_:squash (fact v)) : STAtomicUT (witnessed r fact) inames (pts_to r q v) (fun _ -> pts_to r ...
true
null
false
coerce_atomic (witness' r fact v pf)
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "FStar.Preorder.preorder", "FStar.Ghost.erased", "Steel.ST.MonotonicReference.ref", "Steel.ST.MonotonicReference.stable_property", "Prims.squash", "FStar.Ghost.reveal", "Steel.ST.Coercions.coerce_atomic", "Steel.ST.MonotonicReference.witnes...
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a) (r:erased (ref a p)) (fact:stable_property p) (v:erased a) (_:squash (fact v)) : STAtomicUT (witnessed r fact) inames (pts_to r q v) (fun _ -> pts_to r ...
[]
Steel.ST.MonotonicReference.witness
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
r: FStar.Ghost.erased (Steel.ST.MonotonicReference.ref a p) -> fact: Steel.ST.MonotonicReference.stable_property p -> v: FStar.Ghost.erased a -> pf: Prims.squash (fact (FStar.Ghost.reveal v)) -> Steel.ST.Effect.Atomic.STAtomicUT (Steel.ST.MonotonicReference.witnessed (FStar.Ghost.reveal r) fact)
{ "end_col": 40, "end_line": 79, "start_col": 4, "start_line": 79 }
Steel.ST.Effect.ST
val write (#a:Type) (#p:Preorder.preorder a) (#v:erased a) (r:ref a p) (x:a) : ST unit (pts_to r full_perm v) (fun v -> pts_to r full_perm x) (requires p v x) (ensures fun _ -> True)
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a) (r:ref a p) (x:a) : ST unit (pts_to r full_perm v) (fun v -> pts_to r full_perm x) (requires p v x) (ensures fun _ -> True) = coerce_steel (fun _ -> MR.write r x)
val write (#a:Type) (#p:Preorder.preorder a) (#v:erased a) (r:ref a p) (x:a) : ST unit (pts_to r full_perm v) (fun v -> pts_to r full_perm x) (requires p v x) (ensures fun _ -> True) let write (#a: Type) (#p: Preorder.preorder a) (#v: erased a) (r: ref a p) (x: a) : ST unit ...
true
null
false
coerce_steel (fun _ -> MR.write r x)
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[]
[ "FStar.Preorder.preorder", "FStar.Ghost.erased", "Steel.ST.MonotonicReference.ref", "Steel.ST.Coercions.coerce_steel", "Prims.unit", "Steel.Effect.Common.VUnit", "Steel.Effect.Common.to_vprop'", "Steel.MonotonicReference.pts_to_sl", "Steel.FractionalPermission.full_perm", "FStar.Ghost.reveal", "...
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val write (#a:Type) (#p:Preorder.preorder a) (#v:erased a) (r:ref a p) (x:a) : ST unit (pts_to r full_perm v) (fun v -> pts_to r full_perm x) (requires p v x) (ensures fun _ -> True)
[]
Steel.ST.MonotonicReference.write
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
r: Steel.ST.MonotonicReference.ref a p -> x: a -> Steel.ST.Effect.ST Prims.unit
{ "end_col": 40, "end_line": 48, "start_col": 4, "start_line": 48 }
Steel.ST.Effect.Ghost.STGhostT
val share (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v) (fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v)
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let share (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v) (fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v) = coerce_ghost (fun _ -> MR.share r f v)
val share (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v) (fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v) let share (#inames: _) (#a: Type) (#p: ...
true
null
false
coerce_ghost (fun _ -> MR.share r f v)
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[]
[ "Steel.Memory.inames", "FStar.Preorder.preorder", "Steel.ST.MonotonicReference.ref", "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "Steel.ST.Coercions.coerce_ghost", "Prims.unit", "Steel.Effect.Common.VUnit", "Steel.Effect.Common.to_vprop'", "Steel.MonotonicReference.pts_to_sl", "FSta...
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val share (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v) (fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v)
[]
Steel.ST.MonotonicReference.share
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
r: Steel.ST.MonotonicReference.ref a p -> f: Steel.FractionalPermission.perm -> v: FStar.Ghost.erased a -> Steel.ST.Effect.Ghost.STGhostT Prims.unit
{ "end_col": 42, "end_line": 100, "start_col": 4, "start_line": 100 }
Steel.ST.Effect.Ghost.STGhostT
val gather (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f g:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v `star` pts_to r g v) (fun _ -> pts_to r (sum_perm f g) v)
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let gather (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f g:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v `star` pts_to r g v) (fun _ -> pts_to r (sum_perm f g) v) = coerce_ghost (fun _ -> MR.gather #inames #a #p r f g v)
val gather (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f g:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v `star` pts_to r g v) (fun _ -> pts_to r (sum_perm f g) v) let gather (#inames: _) (#a: Type) (#p: Pr...
true
null
false
coerce_ghost (fun _ -> MR.gather #inames #a #p r f g v)
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[]
[ "Steel.Memory.inames", "FStar.Preorder.preorder", "Steel.ST.MonotonicReference.ref", "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "Steel.ST.Coercions.coerce_ghost", "Prims.unit", "Steel.Effect.Common.star", "Steel.Effect.Common.VUnit", "Steel.Effect.Common.to_vprop'", "Steel.Monotoni...
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val gather (#inames:_) (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f g:perm) (v:Ghost.erased a) : STGhostT unit inames (pts_to r f v `star` pts_to r g v) (fun _ -> pts_to r (sum_perm f g) v)
[]
Steel.ST.MonotonicReference.gather
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
r: Steel.ST.MonotonicReference.ref a p -> f: Steel.FractionalPermission.perm -> g: Steel.FractionalPermission.perm -> v: FStar.Ghost.erased a -> Steel.ST.Effect.Ghost.STGhostT Prims.unit
{ "end_col": 59, "end_line": 111, "start_col": 4, "start_line": 111 }
Steel.Effect.Atomic.SteelAtomicUT
val witness': #inames: _ -> #a: Type -> #q: perm -> #p: Preorder.preorder a -> r: erased (ref a p) -> fact: stable_property p -> v: erased a -> pf: squash (fact v) -> unit -> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r q v) (fun _ -> pts_...
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let witness' (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a) (r:erased (ref a p)) (fact:stable_property p) (v:erased a) (pf:squash (fact v)) (_:unit) : Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames ...
val witness': #inames: _ -> #a: Type -> #q: perm -> #p: Preorder.preorder a -> r: erased (ref a p) -> fact: stable_property p -> v: erased a -> pf: squash (fact v) -> unit -> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r q v) (fun _ -> pts_...
true
null
false
MR.witness #inames #a #q #p r fact v pf
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "FStar.Preorder.preorder", "FStar.Ghost.erased", "Steel.ST.MonotonicReference.ref", "Steel.ST.MonotonicReference.stable_property", "Prims.squash", "FStar.Ghost.reveal", "Prims.unit", "Steel.MonotonicReference.witness", "Steel.MonotonicRef...
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val witness': #inames: _ -> #a: Type -> #q: perm -> #p: Preorder.preorder a -> r: erased (ref a p) -> fact: stable_property p -> v: erased a -> pf: squash (fact v) -> unit -> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r q v) (fun _ -> pts_...
[]
Steel.ST.MonotonicReference.witness'
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
r: FStar.Ghost.erased (Steel.ST.MonotonicReference.ref a p) -> fact: Steel.ST.MonotonicReference.stable_property p -> v: FStar.Ghost.erased a -> pf: Prims.squash (fact (FStar.Ghost.reveal v)) -> _: Prims.unit -> Steel.Effect.Atomic.SteelAtomicUT (Steel.ST.MonotonicReference.witnessed (FStar.G...
{ "end_col": 43, "end_line": 69, "start_col": 4, "start_line": 69 }
Steel.ST.Effect.STT
val alloc (#a:Type) (p:Preorder.preorder a) (v:a) : STT (ref a p) emp (fun r -> pts_to r full_perm v)
[ { "abbrev": true, "full_module": "Steel.MonotonicReference", "short_module": "MR" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "Preorder" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false,...
false
let alloc (#a:Type) (p:Preorder.preorder a) (v:a) : STT (ref a p) emp (fun r -> pts_to r full_perm v) = let x = coerce_steel (fun _ -> MR.alloc p v) in return x
val alloc (#a:Type) (p:Preorder.preorder a) (v:a) : STT (ref a p) emp (fun r -> pts_to r full_perm v) let alloc (#a: Type) (p: Preorder.preorder a) (v: a) : STT (ref a p) emp (fun r -> pts_to r full_perm v) =
true
null
false
let x = coerce_steel (fun _ -> MR.alloc p v) in return x
{ "checked_file": "Steel.ST.MonotonicReference.fst.checked", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.MonotonicReference.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasive...
[]
[ "FStar.Preorder.preorder", "Steel.ST.Util.return", "Steel.ST.MonotonicReference.ref", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.ST.MonotonicReference.pts_to", "Steel.FractionalPermission.full_perm", "Steel.Effect.Common.vprop", "Steel.MonotonicReference...
[]
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
false
false
Steel.ST.MonotonicReference.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val alloc (#a:Type) (p:Preorder.preorder a) (v:a) : STT (ref a p) emp (fun r -> pts_to r full_perm v)
[]
Steel.ST.MonotonicReference.alloc
{ "file_name": "lib/steel/Steel.ST.MonotonicReference.fst", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
p: FStar.Preorder.preorder a -> v: a -> Steel.ST.Effect.STT (Steel.ST.MonotonicReference.ref a p)
{ "end_col": 12, "end_line": 39, "start_col": 3, "start_line": 38 }
Prims.Tot
val inull (#a: Type0) : ibuffer a
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let inull (#a:Type0) :ibuffer a = mnull #a #(immutable_preorder a) #(immutable_preorder a)
val inull (#a: Type0) : ibuffer a let inull (#a: Type0) : ibuffer a =
false
null
false
mnull #a #(immutable_preorder a) #(immutable_preorder a)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "total" ]
[ "LowStar.Monotonic.Buffer.mnull", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.ibuffer" ]
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val inull (#a: Type0) : ibuffer a
[]
LowStar.ImmutableBuffer.inull
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
LowStar.ImmutableBuffer.ibuffer a
{ "end_col": 97, "end_line": 32, "start_col": 41, "start_line": 32 }
Prims.Ghost
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let igsub (#a:Type0) = mgsub #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a)
let igsub (#a: Type0) =
false
null
false
mgsub #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.Monotonic.Buffer.mgsub", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.length", "Prims.l_True" ]
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val igsub : b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> Prims.Ghost (LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_pr...
[]
LowStar.ImmutableBuffer.igsub
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> Prims.Ghost (LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder ...
{ "end_col": 109, "end_line": 34, "start_col": 30, "start_line": 34 }
FStar.Pervasives.Lemma
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let igsub_inj (#a:Type0) = mgsub_inj #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a) (immutable_preorder a)
let igsub_inj (#a: Type0) =
false
null
true
mgsub_inj #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a) (immutable_preorder a)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "lemma" ]
[ "LowStar.Monotonic.Buffer.mgsub_inj", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "Prims.unit", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.length", "Prims.op_Eq...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val igsub_inj : b1: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> b2: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable...
[]
LowStar.ImmutableBuffer.igsub_inj
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b1: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> b2: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a...
{ "end_col": 140, "end_line": 36, "start_col": 34, "start_line": 36 }
FStar.HyperStack.ST.Stack
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let isub (#a:Type0) = msub #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a)
let isub (#a: Type0) =
true
null
false
msub #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.Monotonic.Buffer.msub", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Ghost.erased", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v", "FStar.Gho...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val isub : b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> i: FStar.UInt32.t -> len: FStar.Ghost.erased FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowS...
[]
LowStar.ImmutableBuffer.isub
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> i: FStar.UInt32.t -> len: FStar.Ghost.erased FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowStar.Im...
{ "end_col": 122, "end_line": 44, "start_col": 44, "start_line": 44 }
FStar.HyperStack.ST.Stack
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let ioffset (#a:Type0) = moffset #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a)
let ioffset (#a: Type0) =
true
null
false
moffset #a #(immutable_preorder a) #(immutable_preorder a) (immutable_preorder a)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.Monotonic.Buffer.moffset", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.length", "Prims.l_Forall",...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val ioffset : b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) ...
[]
LowStar.ImmutableBuffer.ioffset
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (L...
{ "end_col": 128, "end_line": 46, "start_col": 47, "start_line": 46 }
Prims.Tot
val seq_eq (s: Ghost.erased (Seq.seq 'a)) : spred 'a
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let seq_eq (s:Ghost.erased (Seq.seq 'a)) : spred 'a = fun s' -> s' `Seq.equal` Ghost.reveal s
val seq_eq (s: Ghost.erased (Seq.seq 'a)) : spred 'a let seq_eq (s: Ghost.erased (Seq.seq 'a)) : spred 'a =
false
null
false
fun s' -> s' `Seq.equal` (Ghost.reveal s)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "total" ]
[ "FStar.Ghost.erased", "FStar.Seq.Base.seq", "FStar.Seq.Base.equal", "FStar.Ghost.reveal", "LowStar.Monotonic.Buffer.spred" ]
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val seq_eq (s: Ghost.erased (Seq.seq 'a)) : spred 'a
[]
LowStar.ImmutableBuffer.seq_eq
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
s: FStar.Ghost.erased (FStar.Seq.Base.seq 'a) -> LowStar.Monotonic.Buffer.spred 'a
{ "end_col": 41, "end_line": 58, "start_col": 2, "start_line": 58 }
Prims.Tot
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let value_is #a (b:ibuffer a) (s:Ghost.erased (Seq.seq a)) = witnessed b (seq_eq s)
let value_is #a (b: ibuffer a) (s: Ghost.erased (Seq.seq a)) =
false
null
false
witnessed b (seq_eq s)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "total" ]
[ "LowStar.ImmutableBuffer.ibuffer", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.witnessed", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.seq_eq" ]
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val value_is : b: LowStar.ImmutableBuffer.ibuffer a -> s: FStar.Ghost.erased (FStar.Seq.Base.seq a) -> Type0
[]
LowStar.ImmutableBuffer.value_is
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.ImmutableBuffer.ibuffer a -> s: FStar.Ghost.erased (FStar.Seq.Base.seq a) -> Type0
{ "end_col": 24, "end_line": 61, "start_col": 2, "start_line": 61 }
Prims.Tot
val cpred (#a: Type0) (s: Seq.seq a) : spred a
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let cpred (#a:Type0) (s:Seq.seq a) :spred a = fun s1 -> Seq.equal s s1
val cpred (#a: Type0) (s: Seq.seq a) : spred a let cpred (#a: Type0) (s: Seq.seq a) : spred a =
false
null
false
fun s1 -> Seq.equal s s1
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "total" ]
[ "FStar.Seq.Base.seq", "FStar.Seq.Base.equal", "LowStar.Monotonic.Buffer.spred" ]
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val cpred (#a: Type0) (s: Seq.seq a) : spred a
[]
LowStar.ImmutableBuffer.cpred
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
s: FStar.Seq.Base.seq a -> LowStar.Monotonic.Buffer.spred a
{ "end_col": 70, "end_line": 55, "start_col": 46, "start_line": 55 }
Prims.Tot
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let libuffer (a:Type0) (len:nat) (s:Seq.seq a) = b:lmbuffer a (immutable_preorder a) (immutable_preorder a) len{witnessed b (cpred s)}
let libuffer (a: Type0) (len: nat) (s: Seq.seq a) =
false
null
false
b: lmbuffer a (immutable_preorder a) (immutable_preorder a) len {witnessed b (cpred s)}
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "total" ]
[ "Prims.nat", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.lmbuffer", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Buffer.witnessed", "LowStar.ImmutableBuffer.cpred" ]
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val libuffer : a: Type0 -> len: Prims.nat -> s: FStar.Seq.Base.seq a -> Type0
[]
LowStar.ImmutableBuffer.libuffer
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
a: Type0 -> len: Prims.nat -> s: FStar.Seq.Base.seq a -> Type0
{ "end_col": 87, "end_line": 76, "start_col": 2, "start_line": 76 }
Prims.Tot
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let libuffer_or_null (a:Type0) (len:nat) (r:HS.rid) (s:Seq.seq a) = b:lmbuffer_or_null a (immutable_preorder a) (immutable_preorder a) len r{(not (g_is_null b)) ==> witnessed b (cpred s)}
let libuffer_or_null (a: Type0) (len: nat) (r: HS.rid) (s: Seq.seq a) =
false
null
false
b: lmbuffer_or_null a (immutable_preorder a) (immutable_preorder a) len r {(not (g_is_null b)) ==> witnessed b (cpred s)}
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "total" ]
[ "Prims.nat", "FStar.Monotonic.HyperHeap.rid", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.lmbuffer_or_null", "LowStar.ImmutableBuffer.immutable_preorder", "Prims.l_imp", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Monotonic.Buffer.witnessed", "LowStar.Imm...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val libuffer_or_null : a: Type0 -> len: Prims.nat -> r: FStar.Monotonic.HyperHeap.rid -> s: FStar.Seq.Base.seq a -> Type0
[]
LowStar.ImmutableBuffer.libuffer_or_null
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
a: Type0 -> len: Prims.nat -> r: FStar.Monotonic.HyperHeap.rid -> s: FStar.Seq.Base.seq a -> Type0
{ "end_col": 97, "end_line": 80, "start_col": 2, "start_line": 79 }
Prims.Tot
val immutable_preorder (a: Type0) : srel a
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let immutable_preorder (a:Type0) :srel a = fun s1 s2 -> Seq.equal s1 s2
val immutable_preorder (a: Type0) : srel a let immutable_preorder (a: Type0) : srel a =
false
null
false
fun s1 s2 -> Seq.equal s1 s2
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "total" ]
[ "FStar.Seq.Base.seq", "FStar.Seq.Base.equal", "Prims.prop", "LowStar.Monotonic.Buffer.srel" ]
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val immutable_preorder (a: Type0) : srel a
[]
LowStar.ImmutableBuffer.immutable_preorder
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
a: Type0 -> LowStar.Monotonic.Buffer.srel a
{ "end_col": 71, "end_line": 28, "start_col": 43, "start_line": 28 }
FStar.HyperStack.ST.ST
val witness_value (#a: Type0) (b: ibuffer a) : HST.ST unit (requires (fun h0 -> True)) (ensures (fun h0 _ h1 -> h0 == h1 /\ b `value_is` (Ghost.hide (as_seq h1 b))))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let witness_value (#a:Type0) (b:ibuffer a) :HST.ST unit (requires (fun h0 -> True)) (ensures (fun h0 _ h1 -> h0 == h1 /\ b `value_is` (Ghost.hide (as_seq h1 b)))) = let h = HST.get () in let s = Ghost.hide (as_seq h b) in witness_p b (seq_eq s)
val witness_value (#a: Type0) (b: ibuffer a) : HST.ST unit (requires (fun h0 -> True)) (ensures (fun h0 _ h1 -> h0 == h1 /\ b `value_is` (Ghost.hide (as_seq h1 b)))) let witness_value (#a: Type0) (b: ibuffer a) : HST.ST unit (requires (fun h0 -> True)) (ensures (fun h0 _ h1 -> h0 == h1 /...
true
null
false
let h = HST.get () in let s = Ghost.hide (as_seq h b) in witness_p b (seq_eq s)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.ImmutableBuffer.ibuffer", "LowStar.Monotonic.Buffer.witness_p", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.seq_eq", "Prims.unit", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "FStar.Ghost.hide", "LowStar.Monotonic.Buffer.as_seq", "FStar.Monotonic.HyperStack.mem"...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val witness_value (#a: Type0) (b: ibuffer a) : HST.ST unit (requires (fun h0 -> True)) (ensures (fun h0 _ h1 -> h0 == h1 /\ b `value_is` (Ghost.hide (as_seq h1 b))))
[]
LowStar.ImmutableBuffer.witness_value
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.ImmutableBuffer.ibuffer a -> FStar.HyperStack.ST.ST Prims.unit
{ "end_col": 26, "end_line": 212, "start_col": 3, "start_line": 210 }
FStar.Pervasives.Lemma
val inhabited_immutable_buffer_is_distinct_from_buffer (#a: Type0) (x: a) (ib: ibuffer a) (b: LowStar.Buffer.buffer a) : Lemma (~(ib === b))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let inhabited_immutable_buffer_is_distinct_from_buffer (#a:Type0) (x:a) (ib:ibuffer a) (b:LowStar.Buffer.buffer a) : Lemma (~ (ib === b)) = let aux () : Lemma (requires (ib === b)) (ensures False) = //use injectivity to prove that all sequences of type a are equal mbuffer_injectivity_in_first_preorder...
val inhabited_immutable_buffer_is_distinct_from_buffer (#a: Type0) (x: a) (ib: ibuffer a) (b: LowStar.Buffer.buffer a) : Lemma (~(ib === b)) let inhabited_immutable_buffer_is_distinct_from_buffer (#a: Type0) (x: a) (ib: ibuffer a) (b: LowStar.Buffer.buffer a) : Le...
false
null
true
let aux () : Lemma (requires (ib === b)) (ensures False) = mbuffer_injectivity_in_first_preorder (); assert (immutable_preorder a == LowStar.Buffer.trivial_preorder a); assert (forall (s1: Seq.seq a) (s2: Seq.seq a). (immutable_preorder a) s1 s2 == (LowStar.Buffer.trivial_preorder a) s1 s2); assert (for...
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "lemma" ]
[ "LowStar.ImmutableBuffer.ibuffer", "LowStar.Buffer.buffer", "FStar.Classical.move_requires", "Prims.unit", "Prims.op_Equals_Equals_Equals", "Prims.l_False", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Prims._assert", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.S...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val inhabited_immutable_buffer_is_distinct_from_buffer (#a: Type0) (x: a) (ib: ibuffer a) (b: LowStar.Buffer.buffer a) : Lemma (~(ib === b))
[]
LowStar.ImmutableBuffer.inhabited_immutable_buffer_is_distinct_from_buffer
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
x: a -> ib: LowStar.ImmutableBuffer.ibuffer a -> b: LowStar.Buffer.buffer a -> FStar.Pervasives.Lemma (ensures ~(ib === b))
{ "end_col": 36, "end_line": 243, "start_col": 3, "start_line": 228 }
FStar.HyperStack.ST.ST
val igcmalloc_of_list_partial (#a: Type0) (r: HS.rid) (init: list a) : HST.ST (b: libuffer_or_null a (normalize_term (List.Tot.length init)) r (Seq.seq_of_list init) {recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let igcmalloc_of_list_partial (#a:Type0) (r:HS.rid) (init:list a) :HST.ST (b:libuffer_or_null a (normalize_term (List.Tot.length init)) r (Seq.seq_of_list init){recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 h1 (S...
val igcmalloc_of_list_partial (#a: Type0) (r: HS.rid) (init: list a) : HST.ST (b: libuffer_or_null a (normalize_term (List.Tot.length init)) r (Seq.seq_of_list init) {recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_...
true
null
false
igcmalloc_of_list r init
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "Prims.list", "LowStar.ImmutableBuffer.igcmalloc_of_list", "LowStar.ImmutableBuffer.libuffer", "FStar.Pervasives.normalize_term", "Prims.nat", "FStar.List.Tot.Base.length", "FStar.Seq.Properties.seq_of_list", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer....
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val igcmalloc_of_list_partial (#a: Type0) (r: HS.rid) (init: list a) : HST.ST (b: libuffer_or_null a (normalize_term (List.Tot.length init)) r (Seq.seq_of_list init) {recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_...
[]
LowStar.ImmutableBuffer.igcmalloc_of_list_partial
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: Prims.list a -> FStar.HyperStack.ST.ST (b: LowStar.ImmutableBuffer.libuffer_or_null a (FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init)) r (FStar.Seq.Properties.seq_of_list init) {LowStar.Monotonic.Buffer.recallable b})
{ "end_col": 28, "end_line": 195, "start_col": 4, "start_line": 195 }
FStar.HyperStack.ST.StackInline
val ialloca_of_list (#a: Type0) (init: list a) : HST.StackInline (libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init)) (requires (fun _ -> alloca_of_list_pre init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq_of_list init) /\ frameOf b == HS....
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let ialloca_of_list (#a:Type0) (init: list a) :HST.StackInline (libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init)) (requires (fun _ -> alloca_of_list_pre init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq_of_list init) /\ ...
val ialloca_of_list (#a: Type0) (init: list a) : HST.StackInline (libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init)) (requires (fun _ -> alloca_of_list_pre init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq_of_list init) /\ frameOf b == HS....
true
null
false
let b = malloca_of_list init in witness_p b (cpred (Seq.seq_of_list init)); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "Prims.list", "LowStar.ImmutableBuffer.libuffer", "FStar.Pervasives.normalize_term", "Prims.nat", "FStar.List.Tot.Base.length", "FStar.Seq.Properties.seq_of_list", "Prims.unit", "LowStar.Monotonic.Buffer.witness_p", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.cpred", "...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val ialloca_of_list (#a: Type0) (init: list a) : HST.StackInline (libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init)) (requires (fun _ -> alloca_of_list_pre init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq_of_list init) /\ frameOf b == HS....
[]
LowStar.ImmutableBuffer.ialloca_of_list
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
init: Prims.list a -> FStar.HyperStack.ST.StackInline (LowStar.ImmutableBuffer.libuffer a (FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init)) (FStar.Seq.Properties.seq_of_list init))
{ "end_col": 5, "end_line": 180, "start_col": 3, "start_line": 178 }
FStar.HyperStack.ST.ST
val witness_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit (requires (fun h0 -> Seq.equal (as_seq h0 b) s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ witnessed b (cpred s)))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let witness_contents (#a:Type0) (b:ibuffer a) (s:Seq.seq a) :HST.ST unit (requires (fun h0 -> Seq.equal (as_seq h0 b) s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ witnessed b (cpred s))) = witness_p b (cpred s)
val witness_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit (requires (fun h0 -> Seq.equal (as_seq h0 b) s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ witnessed b (cpred s))) let witness_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit (requires (fun h0 -> Seq.equal...
true
null
false
witness_p b (cpred s)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.ImmutableBuffer.ibuffer", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.witness_p", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.cpred", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "FStar.Seq.Base.equal", "LowStar.Monotonic.Buffer.as_seq", "Prims.l_and", ...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val witness_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit (requires (fun h0 -> Seq.equal (as_seq h0 b) s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ witnessed b (cpred s)))
[]
LowStar.ImmutableBuffer.witness_contents
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.ImmutableBuffer.ibuffer a -> s: FStar.Seq.Base.seq a -> FStar.HyperStack.ST.ST Prims.unit
{ "end_col": 25, "end_line": 200, "start_col": 4, "start_line": 200 }
FStar.HyperStack.ST.ST
val recall_value (#a: Type0) (b: ibuffer a) (s: Ghost.erased (Seq.seq a)) : HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ b `value_is` s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h1 b /\ as_seq h1 b == Ghost.reveal s))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let recall_value (#a:Type0) (b:ibuffer a) (s:Ghost.erased (Seq.seq a)) :HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ b `value_is` s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h1 b /\ as_seq h1 b == Ghost.reveal s)) = recall_p b (seq_eq s)
val recall_value (#a: Type0) (b: ibuffer a) (s: Ghost.erased (Seq.seq a)) : HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ b `value_is` s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h1 b /\ as_seq h1 b == Ghost.reveal s)) let recall_value (#a: Type0) (b: ibuffer a) (s: Ghost.erased (Seq...
true
null
false
recall_p b (seq_eq s)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.ImmutableBuffer.ibuffer", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.recall_p", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.seq_eq", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Prims.l_or", "LowStar.Monotonic.Buff...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val recall_value (#a: Type0) (b: ibuffer a) (s: Ghost.erased (Seq.seq a)) : HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ b `value_is` s)) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h1 b /\ as_seq h1 b == Ghost.reveal s))
[]
LowStar.ImmutableBuffer.recall_value
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.ImmutableBuffer.ibuffer a -> s: FStar.Ghost.erased (FStar.Seq.Base.seq a) -> FStar.HyperStack.ST.ST Prims.unit
{ "end_col": 25, "end_line": 217, "start_col": 4, "start_line": 217 }
FStar.HyperStack.ST.ST
val recall_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ witnessed b (cpred s))) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h0 b /\ as_seq h0 b == s))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let recall_contents (#a:Type0) (b:ibuffer a) (s:Seq.seq a) :HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ witnessed b (cpred s))) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h0 b /\ as_seq h0 b == s)) = recall_p b (cpred s)
val recall_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ witnessed b (cpred s))) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h0 b /\ as_seq h0 b == s)) let recall_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit ...
true
null
false
recall_p b (cpred s)
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.ImmutableBuffer.ibuffer", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.recall_p", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.cpred", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Prims.l_or", "LowStar.Monotonic.Buffer.recallable", "LowSta...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val recall_contents (#a: Type0) (b: ibuffer a) (s: Seq.seq a) : HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ witnessed b (cpred s))) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h0 b /\ as_seq h0 b == s))
[]
LowStar.ImmutableBuffer.recall_contents
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.ImmutableBuffer.ibuffer a -> s: FStar.Seq.Base.seq a -> FStar.HyperStack.ST.ST Prims.unit
{ "end_col": 24, "end_line": 205, "start_col": 4, "start_line": 205 }
FStar.HyperStack.ST.StackInline
val ialloca (#a: Type0) (init: a) (len: U32.t) : HST.StackInline (libuffer a (U32.v len) (Seq.create (U32.v len) init)) (requires (fun _ -> alloca_pre len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init) /\ frameOf b == HS.get_tip h0)...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let ialloca (#a:Type0) (init:a) (len:U32.t) :HST.StackInline (libuffer a (U32.v len) (Seq.create (U32.v len) init)) (requires (fun _ -> alloca_pre len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init) /\ fram...
val ialloca (#a: Type0) (init: a) (len: U32.t) : HST.StackInline (libuffer a (U32.v len) (Seq.create (U32.v len) init)) (requires (fun _ -> alloca_pre len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init) /\ frameOf b == HS.get_tip h0)...
true
null
false
let b = malloca init len in witness_p b (cpred (Seq.create (U32.v len) init)); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.UInt32.t", "LowStar.ImmutableBuffer.libuffer", "FStar.UInt32.v", "FStar.Seq.Base.create", "Prims.unit", "LowStar.Monotonic.Buffer.witness_p", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.cpred", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "Prims.eq2", "P...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val ialloca (#a: Type0) (init: a) (len: U32.t) : HST.StackInline (libuffer a (U32.v len) (Seq.create (U32.v len) init)) (requires (fun _ -> alloca_pre len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init) /\ frameOf b == HS.get_tip h0)...
[]
LowStar.ImmutableBuffer.ialloca
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.StackInline (LowStar.ImmutableBuffer.libuffer a (FStar.UInt32.v len) (FStar.Seq.Base.create (FStar.UInt32.v len) init))
{ "end_col": 5, "end_line": 155, "start_col": 3, "start_line": 153 }
FStar.HyperStack.ST.ST
val imalloc (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer a (U32.v len) (Seq.create (U32.v len) init) {frameOf b == r /\ freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let imalloc (#a:Type0) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:libuffer a (U32.v len) (Seq.create (U32.v len) init){frameOf b == r /\ freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))) = let b = mma...
val imalloc (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer a (U32.v len) (Seq.create (U32.v len) init) {frameOf b == r /\ freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))) let imalloc (#a...
true
null
false
let b = mmalloc r init len in witness_p b (cpred (Seq.create (U32.v len) init)); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.ImmutableBuffer.libuffer", "FStar.UInt32.v", "FStar.Seq.Base.create", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Buffer.freeable", "Prims.unit", "Lo...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val imalloc (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer a (U32.v len) (Seq.create (U32.v len) init) {frameOf b == r /\ freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
[]
LowStar.ImmutableBuffer.imalloc
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.ImmutableBuffer.libuffer a (FStar.UInt32.v len) (FStar.Seq.Base.create (FStar.UInt32.v len) init) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.freeable b})
{ "end_col": 5, "end_line": 124, "start_col": 3, "start_line": 122 }
FStar.Pervasives.Lemma
val buffer_immutable_buffer_disjoint (#t #ti: Type) (b: LowStar.Buffer.buffer t) (bi: ibuffer ti) (h: HS.mem) : Lemma (requires (live h b /\ live h bi)) (ensures (disjoint b bi))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let buffer_immutable_buffer_disjoint (#t: Type) (#ti: Type) (b: LowStar.Buffer.buffer t) (bi: ibuffer ti) (h: HS.mem) : Lemma (requires ( live h b /\ live h bi )) (ensures ( disjoint b bi )) = if length b = 0 then empty_disjoint b bi else if length bi = 0 then empty_disjoint bi b else be...
val buffer_immutable_buffer_disjoint (#t #ti: Type) (b: LowStar.Buffer.buffer t) (bi: ibuffer ti) (h: HS.mem) : Lemma (requires (live h b /\ live h bi)) (ensures (disjoint b bi)) let buffer_immutable_buffer_disjoint (#t #ti: Type) (b: LowStar.Buffer.buffer t) (bi: ibuffer t...
false
null
true
if length b = 0 then empty_disjoint b bi else if length bi = 0 then empty_disjoint bi b else let s = as_seq h b in assert (~(LowStar.Buffer.trivial_preorder _ Seq.empty s <==> immutable_preorder _ Seq.empty s)); live_same_addresses_equal_types_and_preorders b bi h
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "lemma" ]
[ "LowStar.Buffer.buffer", "LowStar.ImmutableBuffer.ibuffer", "FStar.Monotonic.HyperStack.mem", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.empty_disjoint", "LowStar.ImmutableBuffer.immutable_preorder", "Prims.bool...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val buffer_immutable_buffer_disjoint (#t #ti: Type) (b: LowStar.Buffer.buffer t) (bi: ibuffer ti) (h: HS.mem) : Lemma (requires (live h b /\ live h bi)) (ensures (disjoint b bi))
[]
LowStar.ImmutableBuffer.buffer_immutable_buffer_disjoint
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Buffer.buffer t -> bi: LowStar.ImmutableBuffer.ibuffer ti -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.live h b /\ LowStar.Monotonic.Buffer.live h bi) (ensures LowStar.Monotonic.Buffer.disjoint b bi)
{ "end_col": 5, "end_line": 265, "start_col": 2, "start_line": 257 }
FStar.HyperStack.ST.ST
val imalloc_partial (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init) {(not (g_is_null b)) ==> freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 ...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let imalloc_partial (#a:Type0) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init){(not (g_is_null b)) ==> freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 h1 (Seq.create (U3...
val imalloc_partial (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init) {(not (g_is_null b)) ==> freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 ...
true
null
false
imalloc r init len
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.ImmutableBuffer.imalloc", "LowStar.ImmutableBuffer.libuffer", "FStar.UInt32.v", "FStar.Seq.Base.create", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Bu...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val imalloc_partial (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init) {(not (g_is_null b)) ==> freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 ...
[]
LowStar.ImmutableBuffer.imalloc_partial
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.ImmutableBuffer.libuffer_or_null a (FStar.UInt32.v len) r (FStar.Seq.Base.create (FStar.UInt32.v len) init) { Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) ==> ...
{ "end_col": 22, "end_line": 146, "start_col": 4, "start_line": 146 }
FStar.HyperStack.ST.ST
val igcmalloc_of_list (#a: Type0) (r: HS.rid) (init: list a) : HST.ST (b: libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init) {frameOf b == r /\ recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let igcmalloc_of_list (#a:Type0) (r:HS.rid) (init:list a) :HST.ST (b:libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init){frameOf b == r /\ recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq_o...
val igcmalloc_of_list (#a: Type0) (r: HS.rid) (init: list a) : HST.ST (b: libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init) {frameOf b == r /\ recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b...
true
null
false
let b = mgcmalloc_of_list r init in witness_p b (cpred (Seq.seq_of_list init)); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "Prims.list", "LowStar.ImmutableBuffer.libuffer", "FStar.Pervasives.normalize_term", "Prims.nat", "FStar.List.Tot.Base.length", "FStar.Seq.Properties.seq_of_list", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.ImmutableBuffer.immutable_...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val igcmalloc_of_list (#a: Type0) (r: HS.rid) (init: list a) : HST.ST (b: libuffer a (normalize_term (List.Tot.length init)) (Seq.seq_of_list init) {frameOf b == r /\ recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b...
[]
LowStar.ImmutableBuffer.igcmalloc_of_list
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: Prims.list a -> FStar.HyperStack.ST.ST (b: LowStar.ImmutableBuffer.libuffer a (FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init)) (FStar.Seq.Properties.seq_of_list init) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Mono...
{ "end_col": 5, "end_line": 188, "start_col": 3, "start_line": 186 }
FStar.HyperStack.ST.ST
val igcmalloc_partial (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init) {recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let igcmalloc_partial (#a:Type0) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init){recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 h1 (Seq.create (U32.v len) init))) =...
val igcmalloc_partial (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init) {recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 h1 (Seq.create (U32.v len) init))) let igcma...
true
null
false
igcmalloc r init len
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.ImmutableBuffer.igcmalloc", "LowStar.ImmutableBuffer.libuffer", "FStar.UInt32.v", "FStar.Seq.Base.create", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic....
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val igcmalloc_partial (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer_or_null a (U32.v len) r (Seq.create (U32.v len) init) {recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_partial_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
[]
LowStar.ImmutableBuffer.igcmalloc_partial
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.ImmutableBuffer.libuffer_or_null a (FStar.UInt32.v len) r (FStar.Seq.Base.create (FStar.UInt32.v len) init) {LowStar.Monotonic.Buffer.recallable b})
{ "end_col": 24, "end_line": 116, "start_col": 4, "start_line": 116 }
FStar.HyperStack.ST.ST
val igcmalloc (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer a (U32.v len) (Seq.create (U32.v len) init) {frameOf b == r /\ recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let igcmalloc (#a:Type0) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:libuffer a (U32.v len) (Seq.create (U32.v len) init){frameOf b == r /\ recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))) = let b =...
val igcmalloc (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer a (U32.v len) (Seq.create (U32.v len) init) {frameOf b == r /\ recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))) let igcmall...
true
null
false
let b = mgcmalloc r init len in witness_p b (cpred (Seq.create (U32.v len) init)); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.ImmutableBuffer.libuffer", "FStar.UInt32.v", "FStar.Seq.Base.create", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.Monotonic.Buffer.recallable", "Prims.unit", "...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val igcmalloc (#a: Type0) (r: HS.rid) (init: a) (len: U32.t) : HST.ST (b: libuffer a (U32.v len) (Seq.create (U32.v len) init) {frameOf b == r /\ recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
[]
LowStar.ImmutableBuffer.igcmalloc
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.ImmutableBuffer.libuffer a (FStar.UInt32.v len) (FStar.Seq.Base.create (FStar.UInt32.v len) init) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallable b...
{ "end_col": 5, "end_line": 88, "start_col": 3, "start_line": 86 }
FStar.HyperStack.ST.ST
val imalloc_and_blit (#a: Type0) (r: HS.rid) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.ST (b: lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len) {frameOf b == r /\ freeable b}) (requires fun h0 -> malloc...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let imalloc_and_blit (#a:Type0) (r:HS.rid) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len){frameOf b == r /\ freeable b}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U32.v id_src +...
val imalloc_and_blit (#a: Type0) (r: HS.rid) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.ST (b: lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len) {frameOf b == r /\ freeable b}) (requires fun h0 -> malloc...
true
null
false
let b = mmalloc_and_blit r src id_src len in let h0 = HST.get () in witness_p b (seq_eq (G.hide (Seq.slice (as_seq h0 src) (U32.v id_src) (U32.v id_src + U32.v len)))); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.lmbuffer", "LowStar.ImmutableBuffer.immutable_preorder", "FStar.UInt32.v", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.Mo...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val imalloc_and_blit (#a: Type0) (r: HS.rid) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.ST (b: lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len) {frameOf b == r /\ freeable b}) (requires fun h0 -> malloc...
[]
LowStar.ImmutableBuffer.imalloc_and_blit
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> id_src: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.i...
{ "end_col": 5, "end_line": 139, "start_col": 3, "start_line": 136 }
FStar.Pervasives.Lemma
val sub_ptr_value_is (#a: _) (b0 b1: ibuffer a) (h: HS.mem) (i len: U32.t) (v: Seq.seq a) : Lemma (requires U32.v i + U32.v len <= length b1 /\ b0 == mgsub (immutable_preorder a) b1 i len /\ value_is b1 v /\ Seq.length v == length b1) (ensures value_is b0 (Seq.slice v (U32.v i) (U32.v i ...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let sub_ptr_value_is (#a:_) (b0 b1:ibuffer a) (h:HS.mem) (i len:U32.t) (v:Seq.seq a) : Lemma (requires U32.v i + U32.v len <= length b1 /\ b0 == mgsub (immutable_preorder a) b1 i len /\ value_is b1 v /\ Seq.length v == length b1) (ensures value_is b0 (Seq.slice v (U32.v i) (U32.v...
val sub_ptr_value_is (#a: _) (b0 b1: ibuffer a) (h: HS.mem) (i len: U32.t) (v: Seq.seq a) : Lemma (requires U32.v i + U32.v len <= length b1 /\ b0 == mgsub (immutable_preorder a) b1 i len /\ value_is b1 v /\ Seq.length v == length b1) (ensures value_is b0 (Seq.slice v (U32.v i) (U32.v i ...
false
null
true
let sub_v = Seq.slice v (U32.v i) (U32.v i + U32.v len) in witnessed_functorial b1 b0 i len (seq_eq (Ghost.hide v)) (seq_eq (Ghost.hide sub_v))
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ "lemma" ]
[ "LowStar.ImmutableBuffer.ibuffer", "FStar.Monotonic.HyperStack.mem", "FStar.UInt32.t", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.witnessed_functorial", "LowStar.ImmutableBuffer.immutable_preorder", "LowStar.ImmutableBuffer.seq_eq", "FStar.Ghost.hide", "FStar.Seq.Base.slice", "FStar.UInt32.v"...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val sub_ptr_value_is (#a: _) (b0 b1: ibuffer a) (h: HS.mem) (i len: U32.t) (v: Seq.seq a) : Lemma (requires U32.v i + U32.v len <= length b1 /\ b0 == mgsub (immutable_preorder a) b1 i len /\ value_is b1 v /\ Seq.length v == length b1) (ensures value_is b0 (Seq.slice v (U32.v i) (U32.v i ...
[]
LowStar.ImmutableBuffer.sub_ptr_value_is
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b0: LowStar.ImmutableBuffer.ibuffer a -> b1: LowStar.ImmutableBuffer.ibuffer a -> h: FStar.Monotonic.HyperStack.mem -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> v: FStar.Seq.Base.seq a -> FStar.Pervasives.Lemma (requires FStar.UInt32.v i + FStar.UInt32.v len <= LowStar.Monoton...
{ "end_col": 87, "end_line": 73, "start_col": 2, "start_line": 72 }
FStar.HyperStack.ST.ST
val igcmalloc_and_blit (#a: Type0) (r: HS.rid) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.ST (b: lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len) {frameOf b == r}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let igcmalloc_and_blit (#a:Type0) (r:HS.rid) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len){frameOf b == r}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U32.v id_src + U32.v len <...
val igcmalloc_and_blit (#a: Type0) (r: HS.rid) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.ST (b: lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len) {frameOf b == r}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U...
true
null
false
let b = mgcmalloc_and_blit r src id_src len in let h0 = HST.get () in witness_p b (seq_eq (G.hide (Seq.slice (as_seq h0 src) (U32.v id_src) (U32.v id_src + U32.v len)))); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.lmbuffer", "LowStar.ImmutableBuffer.immutable_preorder", "FStar.UInt32.v", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "Prims.unit", "LowStar.Mon...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val igcmalloc_and_blit (#a: Type0) (r: HS.rid) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.ST (b: lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len) {frameOf b == r}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U...
[]
LowStar.ImmutableBuffer.igcmalloc_and_blit
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> id_src: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.i...
{ "end_col": 5, "end_line": 109, "start_col": 3, "start_line": 106 }
FStar.HyperStack.ST.StackInline
val ialloca_and_blit (#a: Type0) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.StackInline (lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len)) (requires fun h0 -> alloca_pre len /\ live h0 src /\ U32.v id_src + U32.v len <= length src) ...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let ialloca_and_blit (#a:Type0) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.StackInline (lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len)) (requires fun h0 -> alloca_pre len /\ live h0 src /\ U32.v id_src + U32.v len <= length src) (ensur...
val ialloca_and_blit (#a: Type0) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.StackInline (lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len)) (requires fun h0 -> alloca_pre len /\ live h0 src /\ U32.v id_src + U32.v len <= length src) ...
true
null
false
let b = malloca_and_blit src id_src len in let h0 = HST.get () in witness_p b (seq_eq (G.hide (Seq.slice (as_seq h0 src) (U32.v id_src) (U32.v id_src + U32.v len)))); b
{ "checked_file": "LowStar.ImmutableBuffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.lmbuffer", "LowStar.ImmutableBuffer.immutable_preorder", "FStar.UInt32.v", "Prims.unit", "LowStar.Monotonic.Buffer.witness_p", "LowStar.ImmutableBuffer.seq_eq", "FStar.Ghost.hide", "F...
[]
(* 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...
false
false
LowStar.ImmutableBuffer.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val ialloca_and_blit (#a: Type0) (#rrel1 #rel1: srel a) (src: mbuffer a rrel1 rel1) (id_src len: U32.t) : HST.StackInline (lmbuffer a (immutable_preorder a) (immutable_preorder a) (U32.v len)) (requires fun h0 -> alloca_pre len /\ live h0 src /\ U32.v id_src + U32.v len <= length src) ...
[]
LowStar.ImmutableBuffer.ialloca_and_blit
{ "file_name": "ulib/LowStar.ImmutableBuffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> id_src: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.StackInline (LowStar.Monotonic.Buffer.lmbuffer a (LowStar.ImmutableBuffer.immutable_preorder a) (LowStar.ImmutableBuffer.immutable_preorder a) (FStar.UInt32.v len))
{ "end_col": 5, "end_line": 171, "start_col": 3, "start_line": 168 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let m_spec = Core.m_spec
let m_spec =
false
null
false
Core.m_spec
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Impl.Blake2.Core.m_spec" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val m_spec : Type0
[]
Hacl.Streaming.Blake2.m_spec
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 24, "end_line": 55, "start_col": 13, "start_line": 55 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
false
let lbytes = Lib.ByteSequence.lbytes
let lbytes =
false
null
false
Lib.ByteSequence.lbytes
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Lib.ByteSequence.lbytes" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lbytes : len: Lib.IntTypes.size_nat -> Type0
[]
Hacl.Streaming.Blake2.lbytes
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
len: Lib.IntTypes.size_nat -> Type0
{ "end_col": 36, "end_line": 35, "start_col": 13, "start_line": 35 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
false
let size_nat = Lib.IntTypes.size_nat
let size_nat =
false
null
false
Lib.IntTypes.size_nat
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Lib.IntTypes.size_nat" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val size_nat : Type0
[]
Hacl.Streaming.Blake2.size_nat
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 36, "end_line": 29, "start_col": 15, "start_line": 29 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let key_size_t (a : alg) = key_size:U32.t{U32.v key_size <= Spec.max_key a}
let key_size_t (a: alg) =
false
null
false
key_size: U32.t{U32.v key_size <= Spec.max_key a}
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "FStar.UInt32.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt32.v", "Spec.Blake2.max_key" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val key_size_t : a: Hacl.Streaming.Blake2.alg -> Type0
[]
Hacl.Streaming.Blake2.key_size_t
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> Type0
{ "end_col": 50, "end_line": 148, "start_col": 2, "start_line": 148 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
false
let uint8 = Lib.IntTypes.uint8
let uint8 =
false
null
false
Lib.IntTypes.uint8
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Lib.IntTypes.uint8" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val uint8 : Type0
[]
Hacl.Streaming.Blake2.uint8
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 30, "end_line": 23, "start_col": 12, "start_line": 23 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
false
let uint32 = Lib.IntTypes.uint32
let uint32 =
false
null
false
Lib.IntTypes.uint32
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Lib.IntTypes.uint32" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val uint32 : Type0
[]
Hacl.Streaming.Blake2.uint32
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 32, "end_line": 26, "start_col": 13, "start_line": 26 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let alg = Spec.alg
let alg =
false
null
false
Spec.alg
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Spec.Blake2.alg" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val alg : Type0
[]
Hacl.Streaming.Blake2.alg
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 18, "end_line": 52, "start_col": 10, "start_line": 52 }
Prims.Tot
val get_wv (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m)
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let get_wv (#a : alg) (#m : m_spec) (s : s a m) : Tot (Core.state_p a m) = match s with wv, _ -> wv
val get_wv (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m) let get_wv (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m) =
false
null
false
match s with | wv, _ -> wv
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Hacl.Streaming.Blake2.m_spec", "Hacl.Streaming.Blake2.s", "Hacl.Impl.Blake2.Core.state_p" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val get_wv (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m)
[]
Hacl.Streaming.Blake2.get_wv
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: Hacl.Streaming.Blake2.s a m -> Hacl.Impl.Blake2.Core.state_p a m
{ "end_col": 26, "end_line": 69, "start_col": 2, "start_line": 69 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let key_size (a : alg) = kk:nat{kk <= Spec.max_key a}
let key_size (a: alg) =
false
null
false
kk: nat{kk <= Spec.max_key a}
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Spec.Blake2.max_key" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val key_size : a: Hacl.Streaming.Blake2.alg -> Type0
[]
Hacl.Streaming.Blake2.key_size
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> Type0
{ "end_col": 53, "end_line": 144, "start_col": 25, "start_line": 144 }
Prims.Tot
val get_state_p (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m)
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let get_state_p (#a : alg) (#m : m_spec) (s : s a m) : Tot (Core.state_p a m) = match s with _, p -> p
val get_state_p (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m) let get_state_p (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m) =
false
null
false
match s with | _, p -> p
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Hacl.Streaming.Blake2.m_spec", "Hacl.Streaming.Blake2.s", "Hacl.Impl.Blake2.Core.state_p" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val get_state_p (#a: alg) (#m: m_spec) (s: s a m) : Tot (Core.state_p a m)
[]
Hacl.Streaming.Blake2.get_state_p
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: Hacl.Streaming.Blake2.s a m -> Hacl.Impl.Blake2.Core.state_p a m
{ "end_col": 24, "end_line": 73, "start_col": 2, "start_line": 73 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
false
let max_key = Spec.Blake2.max_key
let max_key =
false
null
false
Spec.Blake2.max_key
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Spec.Blake2.max_key" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val max_key : a: Spec.Blake2.alg -> Prims.int
[]
Hacl.Streaming.Blake2.max_key
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Blake2.alg -> Prims.int
{ "end_col": 33, "end_line": 32, "start_col": 14, "start_line": 32 }
Prims.GTot
val state_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (Spec.state a)
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let state_v (#a : alg) (#m : m_spec) (h : HS.mem) (s : s a m) : GTot (Spec.state a) = Core.state_v h (get_state_p s)
val state_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (Spec.state a) let state_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (Spec.state a) =
false
null
false
Core.state_v h (get_state_p s)
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "sometrivial" ]
[ "Hacl.Streaming.Blake2.alg", "Hacl.Streaming.Blake2.m_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Blake2.s", "Hacl.Impl.Blake2.Core.state_v", "Hacl.Streaming.Blake2.get_state_p", "Spec.Blake2.state" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val state_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (Spec.state a)
[]
Hacl.Streaming.Blake2.state_v
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Blake2.s a m -> Prims.GTot (Spec.Blake2.state a)
{ "end_col": 32, "end_line": 79, "start_col": 2, "start_line": 79 }
Prims.GTot
val s_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (t a)
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let s_v (#a : alg) (#m : m_spec) (h : HS.mem) (s : s a m) : GTot (t a) = state_v h s
val s_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (t a) let s_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (t a) =
false
null
false
state_v h s
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "sometrivial" ]
[ "Hacl.Streaming.Blake2.alg", "Hacl.Streaming.Blake2.m_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Blake2.s", "Hacl.Streaming.Blake2.state_v", "Hacl.Streaming.Blake2.t" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val s_v (#a: alg) (#m: m_spec) (h: HS.mem) (s: s a m) : GTot (t a)
[]
Hacl.Streaming.Blake2.s_v
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Blake2.s a m -> Prims.GTot (Hacl.Streaming.Blake2.t a)
{ "end_col": 13, "end_line": 83, "start_col": 2, "start_line": 83 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let s (a : alg) (m : m_spec) = Core.(state_p a m & state_p a m)
let s (a: alg) (m: m_spec) =
false
null
false
let open Core in state_p a m & state_p a m
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Hacl.Streaming.Blake2.m_spec", "FStar.Pervasives.Native.tuple2", "Hacl.Impl.Blake2.Core.state_p" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val s : a: Hacl.Streaming.Blake2.alg -> m: Hacl.Streaming.Blake2.m_spec -> Type0
[]
Hacl.Streaming.Blake2.s
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> m: Hacl.Streaming.Blake2.m_spec -> Type0
{ "end_col": 63, "end_line": 59, "start_col": 31, "start_line": 59 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let k = stateful_key
let k =
false
null
false
stateful_key
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.stateful_key" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val k : a: Hacl.Streaming.Blake2.alg -> kk: Hacl.Streaming.Blake2.key_size a -> Hacl.Streaming.Interface.stateful Prims.unit
[]
Hacl.Streaming.Blake2.k
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> kk: Hacl.Streaming.Blake2.key_size a -> Hacl.Streaming.Interface.stateful Prims.unit
{ "end_col": 20, "end_line": 219, "start_col": 8, "start_line": 219 }
Prims.Tot
val block_len (a: alg) : U32.t
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let block_len (a : alg) : U32.t = Core.size_block a
val block_len (a: alg) : U32.t let block_len (a: alg) : U32.t =
false
null
false
Core.size_block a
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Hacl.Impl.Blake2.Core.size_block", "FStar.UInt32.t" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val block_len (a: alg) : U32.t
[]
Hacl.Streaming.Blake2.block_len
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> FStar.UInt32.t
{ "end_col": 51, "end_line": 239, "start_col": 34, "start_line": 239 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let blake2s_32_block_state = s Spec.Blake2S Core.M32
let blake2s_32_block_state =
false
null
false
s Spec.Blake2S Core.M32
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.s", "Spec.Blake2.Blake2S", "Hacl.Impl.Blake2.Core.M32" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val blake2s_32_block_state : Type0
[]
Hacl.Streaming.Blake2.blake2s_32_block_state
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 52, "end_line": 637, "start_col": 29, "start_line": 637 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let t (a : alg) = Spec.state a
let t (a: alg) =
false
null
false
Spec.state a
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Spec.Blake2.state" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val t : a: Hacl.Streaming.Blake2.alg -> Type0
[]
Hacl.Streaming.Blake2.t
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> Type0
{ "end_col": 30, "end_line": 62, "start_col": 18, "start_line": 62 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let blake2b_32_block_state = s Spec.Blake2B Core.M32
let blake2b_32_block_state =
false
null
false
s Spec.Blake2B Core.M32
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.s", "Spec.Blake2.Blake2B", "Hacl.Impl.Blake2.Core.M32" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val blake2b_32_block_state : Type0
[]
Hacl.Streaming.Blake2.blake2b_32_block_state
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 52, "end_line": 638, "start_col": 29, "start_line": 638 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let block (a : alg) = (block: S.seq uint8 { S.length block = Spec.size_block a })
let block (a: alg) =
false
null
false
(block: S.seq uint8 {S.length block = Spec.size_block a})
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "FStar.Seq.Base.seq", "Hacl.Streaming.Blake2.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "FStar.Seq.Base.length", "Spec.Blake2.size_block" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val block : a: Hacl.Streaming.Blake2.alg -> Type0
[]
Hacl.Streaming.Blake2.block
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> Type0
{ "end_col": 81, "end_line": 236, "start_col": 22, "start_line": 236 }
Prims.Tot
val buffer_to_stateful_key_t (a: alg) (kk: key_size a {kk > 0}) (k: B.buffer uint8 {B.length k == kk}) : Tot (stateful_key_t a kk)
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let buffer_to_stateful_key_t (a : alg) (kk : key_size a{kk > 0}) (k : B.buffer uint8 { B.length k == kk }) : Tot (stateful_key_t a kk) = k
val buffer_to_stateful_key_t (a: alg) (kk: key_size a {kk > 0}) (k: B.buffer uint8 {B.length k == kk}) : Tot (stateful_key_t a kk) let buffer_to_stateful_key_t (a: alg) (kk: key_size a {kk > 0}) (k: B.buffer uint8 {B.length k == kk}) : Tot (stateful_key_t a kk) =
false
null
false
k
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Hacl.Streaming.Blake2.key_size", "Prims.b2t", "Prims.op_GreaterThan", "LowStar.Buffer.buffer", "Hacl.Streaming.Blake2.uint8", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder", "Hacl.Streaming.Blake2.stateful_key_t" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val buffer_to_stateful_key_t (a: alg) (kk: key_size a {kk > 0}) (k: B.buffer uint8 {B.length k == kk}) : Tot (stateful_key_t a kk)
[]
Hacl.Streaming.Blake2.buffer_to_stateful_key_t
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> kk: Hacl.Streaming.Blake2.key_size a {kk > 0} -> k: LowStar.Buffer.buffer Hacl.Streaming.Blake2.uint8 {LowStar.Monotonic.Buffer.length k == kk} -> Hacl.Streaming.Blake2.stateful_key_t a kk
{ "end_col": 3, "end_line": 159, "start_col": 2, "start_line": 159 }
Prims.Tot
val output_size (a: alg) : nat
[ { "abbrev": true, "full_module": "Hacl.Blake2b_32", "short_module": "Blake2b32" }, { "abbrev": true, "full_module": "Hacl.Blake2s_32", "short_module": "Blake2s32" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": ...
false
let output_size (a : alg) : nat = Spec.max_output a
val output_size (a: alg) : nat let output_size (a: alg) : nat =
false
null
false
Spec.max_output a
{ "checked_file": "Hacl.Streaming.Blake2.fst.checked", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", ...
[ "total" ]
[ "Hacl.Streaming.Blake2.alg", "Spec.Blake2.max_output", "Prims.nat" ]
[]
module Hacl.Streaming.Blake2 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module ST = FSta...
false
false
Hacl.Streaming.Blake2.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val output_size (a: alg) : nat
[]
Hacl.Streaming.Blake2.output_size
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Hacl.Streaming.Blake2.alg -> Prims.nat
{ "end_col": 51, "end_line": 242, "start_col": 34, "start_line": 242 }