file_name stringlengths 5 52 | name stringlengths 4 95 | original_source_type stringlengths 0 23k | source_type stringlengths 9 23k | source_definition stringlengths 9 57.9k | source dict | source_range dict | file_context stringlengths 0 721k | dependencies dict | opens_and_abbrevs listlengths 2 94 | vconfig dict | interleaved bool 1
class | verbose_type stringlengths 1 7.42k | effect stringclasses 118
values | effect_flags listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 0 1 | is_simple_lemma bool 2
classes | is_div bool 2
classes | is_proof bool 2
classes | is_simply_typed bool 2
classes | is_type bool 2
classes | partial_definition stringlengths 5 3.99k | completed_definiton stringlengths 1 1.63M | isa_cross_project_example bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.nat32 | val nat32 : Type0 | let nat32 = Vale.Def.Words_s.nat32 | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 12,
"start_col": 7,
"start_line": 12
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8 | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32"
] | [] | false | false | false | true | true | let nat32 =
| Vale.Def.Words_s.nat32 | false | |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.nat64 | val nat64 : Type0 | let nat64 = Vale.Def.Words_s.nat64 | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 17,
"start_col": 7,
"start_line": 17
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat64"
] | [] | false | false | false | true | true | let nat64 =
| Vale.Def.Words_s.nat64 | false | |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.quad32 | val quad32 : Prims.eqtype | let quad32 = Vale.Def.Types_s.quad32 | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 43,
"end_line": 20,
"start_col": 7,
"start_line": 20
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Types_s.quad32"
] | [] | false | false | false | true | false | let quad32 =
| Vale.Def.Types_s.quad32 | false | |
Hacl.Impl.Frodo.Pack.fst | Hacl.Impl.Frodo.Pack.frodo_unpack8 | val frodo_unpack8:
d:size_t{v d <= 16}
-> b:lbytes d
-> res:lbuffer uint16 8ul
-> Stack unit
(requires fun h0 -> live h0 b /\ live h0 res)
(ensures fun h0 _ h1 ->
modifies1 res h0 h1 /\
Seq.equal (as_seq h1 res) (S.frodo_unpack8 (v d) (as_seq h0 b))) | val frodo_unpack8:
d:size_t{v d <= 16}
-> b:lbytes d
-> res:lbuffer uint16 8ul
-> Stack unit
(requires fun h0 -> live h0 b /\ live h0 res)
(ensures fun h0 _ h1 ->
modifies1 res h0 h1 /\
Seq.equal (as_seq h1 res) (S.frodo_unpack8 (v d) (as_seq h0 b))) | let frodo_unpack8 d b res =
let h0 = ST.get() in
push_frame();
let maskd = to_u16 (u32 1 <<. d) -. u16 1 in
let src = create (size 16) (u8 0) in
update_sub src (size 16 -! d) d b;
let templong = uint_from_bytes_be #U128 #SEC src in
res.(size 0) <- to_u16 (templong >>. (size 7 *! d)) &. maskd;
res.(size ... | {
"file_name": "code/frodo/Hacl.Impl.Frodo.Pack.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 130,
"start_col": 0,
"start_line": 115
} | module Hacl.Impl.Frodo.Pack
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Matrix
module ST = FStar.HyperStack.ST
module Loops = Lib.LoopCombinators
module Seq = Lib.Sequence
module S = Spec.Frodo.Pack
#reset-options "--z3rlimit 10... | {
"checked_file": "/",
"dependencies": [
"Spec.Frodo.Pack.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Matrix.fst.checked",
"FS... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.Pack",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
d: Lib.IntTypes.size_t{Lib.IntTypes.v d <= 16} ->
b: Hacl.Impl.Matrix.lbytes d ->
res: Lib.Buffer.lbuffer Lib.IntTypes.uint16 8ul
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Hacl.Impl.Matrix.lbytes",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint16",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.Buffer.op_Array_As... | [] | false | true | false | false | false | let frodo_unpack8 d b res =
| let h0 = ST.get () in
push_frame ();
let maskd = to_u16 (u32 1 <<. d) -. u16 1 in
let src = create (size 16) (u8 0) in
update_sub src (size 16 -! d) d b;
let templong = uint_from_bytes_be #U128 #SEC src in
res.(size 0) <- to_u16 (templong >>. (size 7 *! d)) &. maskd;
res.(size 1) <- to_u16 (templong >>. (size 6 *! d)) ... | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.vecs_t | val vecs_t : Type0 | let vecs_t = FStar.FunctionalExtensionality.restricted_t vec (fun _ -> quad32) | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 41,
"start_col": 0,
"start_line": 41
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.FunctionalExtensionality.restricted_t",
"Vale.PPC64LE.Machine_s.vec",
"Vale.PPC64LE.Machine_s.quad32"
] | [] | false | false | false | true | true | let vecs_t =
| FStar.FunctionalExtensionality.restricted_t vec (fun _ -> quad32) | false | |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.regs_t | val regs_t : Type0 | let regs_t = FStar.FunctionalExtensionality.restricted_t reg (fun _ -> nat64) | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 77,
"end_line": 40,
"start_col": 0,
"start_line": 40
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.FunctionalExtensionality.restricted_t",
"Vale.PPC64LE.Machine_s.reg",
"Vale.PPC64LE.Machine_s.nat64"
] | [] | false | false | false | true | true | let regs_t =
| FStar.FunctionalExtensionality.restricted_t reg (fun _ -> nat64) | false | |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.regs_make | val regs_make (f: (reg -> nat64)) : regs_t | val regs_make (f: (reg -> nat64)) : regs_t | let regs_make (f:reg -> nat64) : regs_t = FStar.FunctionalExtensionality.on_dom reg f | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 104,
"end_line": 42,
"start_col": 19,
"start_line": 42
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: Vale.PPC64LE.Machine_s.reg -> Vale.PPC64LE.Machine_s.nat64) -> Vale.PPC64LE.Machine_s.regs_t | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.reg",
"Vale.PPC64LE.Machine_s.nat64",
"FStar.FunctionalExtensionality.on_dom",
"Vale.PPC64LE.Machine_s.regs_t"
] | [] | false | false | false | true | false | let regs_make (f: (reg -> nat64)) : regs_t =
| FStar.FunctionalExtensionality.on_dom reg f | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.valid_maddr_offset | val valid_maddr_offset (n: int) : bool | val valid_maddr_offset (n: int) : bool | let valid_maddr_offset (n:int) : bool =
n >= -32768 && n <= 32767 | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 93,
"start_col": 0,
"start_line": 92
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.int -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.op_AmpAmp",
"Prims.op_GreaterThanOrEqual",
"Prims.op_Minus",
"Prims.op_LessThanOrEqual",
"Prims.bool"
] | [] | false | false | false | true | false | let valid_maddr_offset (n: int) : bool =
| n >= - 32768 && n <= 32767 | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.len_lt_max_a_t | val len_lt_max_a_t : a: Spec.Hash.Definitions.sha2_alg -> Type0 | let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a} | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 77,
"end_line": 13,
"start_col": 0,
"start_line": 13
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0" | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat",
"Prims.b2t",
"Spec.Hash.Definitions.less_than_max_input_length"
] | [] | false | false | false | true | true | let len_lt_max_a_t (a: sha2_alg) =
| len: nat{len `less_than_max_input_length` a} | false | |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.vecs_make | val vecs_make (f: (vec -> quad32)) : vecs_t | val vecs_make (f: (vec -> quad32)) : vecs_t | let vecs_make (f:vec -> quad32) : vecs_t = FStar.FunctionalExtensionality.on_dom vec f | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 105,
"end_line": 43,
"start_col": 19,
"start_line": 43
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: Vale.PPC64LE.Machine_s.vec -> Vale.PPC64LE.Machine_s.quad32) -> Vale.PPC64LE.Machine_s.vecs_t | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.vec",
"Vale.PPC64LE.Machine_s.quad32",
"FStar.FunctionalExtensionality.on_dom",
"Vale.PPC64LE.Machine_s.vecs_t"
] | [] | false | false | false | true | false | let vecs_make (f: (vec -> quad32)) : vecs_t =
| FStar.FunctionalExtensionality.on_dom vec f | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.get_cr0 | val get_cr0 : r: Vale.PPC64LE.Machine_s.nat64 -> Vale.PPC64LE.Machine_s.cr0_t | let get_cr0 (r:nat64) =
{ lt = r >= 0x8000000000000000; gt = r < 0x8000000000000000; eq = r = 0 } | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 75,
"end_line": 82,
"start_col": 0,
"start_line": 81
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Vale.PPC64LE.Machine_s.nat64 -> Vale.PPC64LE.Machine_s.cr0_t | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.nat64",
"Vale.PPC64LE.Machine_s.Mkcr0_t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Equality",
"Prims.int",
"Vale.PPC64LE.Machine_s.cr0_t"
] | [] | false | false | false | true | false | let get_cr0 (r: nat64) =
| { lt = r >= 0x8000000000000000; gt = r < 0x8000000000000000; eq = r = 0 } | false | |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.valid_maddr_offset64 | val valid_maddr_offset64 (n: int) : bool | val valid_maddr_offset64 (n: int) : bool | let valid_maddr_offset64 (n:int) : bool =
n >= -32768 && n <= 32764 && n % 4 = 0 | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 97,
"start_col": 0,
"start_line": 96
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.int -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.op_AmpAmp",
"Prims.op_GreaterThanOrEqual",
"Prims.op_Minus",
"Prims.op_LessThanOrEqual",
"Prims.op_Equality",
"Prims.op_Modulus",
"Prims.bool"
] | [] | false | false | false | true | false | let valid_maddr_offset64 (n: int) : bool =
| n >= - 32768 && n <= 32764 && n % 4 = 0 | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.valid_maddr_offset128 | val valid_maddr_offset128 (n: int) : bool | val valid_maddr_offset128 (n: int) : bool | let valid_maddr_offset128 (n:int) : bool =
n >= -32768 && n <= 32752 && n % 16 = 0 | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 101,
"start_col": 0,
"start_line": 100
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.int -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.op_AmpAmp",
"Prims.op_GreaterThanOrEqual",
"Prims.op_Minus",
"Prims.op_LessThanOrEqual",
"Prims.op_Equality",
"Prims.op_Modulus",
"Prims.bool"
] | [] | false | false | false | true | false | let valid_maddr_offset128 (n: int) : bool =
| n >= - 32768 && n <= 32752 && n % 16 = 0 | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.valid_first_cmp_opr | val valid_first_cmp_opr (o: cmp_opr) : bool | val valid_first_cmp_opr (o: cmp_opr) : bool | let valid_first_cmp_opr (o:cmp_opr) : bool =
CReg? o | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 9,
"end_line": 108,
"start_col": 0,
"start_line": 107
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | o: Vale.PPC64LE.Machine_s.cmp_opr -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.cmp_opr",
"Vale.PPC64LE.Machine_s.uu___is_CReg",
"Prims.bool"
] | [] | false | false | false | true | false | let valid_first_cmp_opr (o: cmp_opr) : bool =
| CReg? o | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.op224_256 | val op224_256:ops | val op224_256:ops | let op224_256: ops = {
c0 = 2ul; c1 = 13ul; c2 = 22ul;
c3 = 6ul; c4 = 11ul; c5 = 25ul;
e0 = 7ul; e1 = 18ul; e2 = 3ul;
e3 = 17ul; e4 = 19ul; e5 = 10ul
} | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 66,
"start_col": 0,
"start_line": 61
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Spec.SHA2.ops | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.SHA2.Mkops",
"FStar.UInt32.__uint_to_t"
] | [] | false | false | false | true | false | let op224_256:ops =
| {
c0 = 2ul;
c1 = 13ul;
c2 = 22ul;
c3 = 6ul;
c4 = 11ul;
c5 = 25ul;
e0 = 7ul;
e1 = 18ul;
e2 = 3ul;
e3 = 17ul;
e4 = 19ul;
e5 = 10ul
} | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.op384_512 | val op384_512:ops | val op384_512:ops | let op384_512: ops = {
c0 = 28ul; c1 = 34ul; c2 = 39ul;
c3 = 14ul; c4 = 18ul; c5 = 41ul;
e0 = 1ul ; e1 = 8ul; e2 = 7ul;
e3 = 19ul; e4 = 61ul; e5 = 6ul
} | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 74,
"start_col": 0,
"start_line": 69
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Spec.SHA2.ops | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.SHA2.Mkops",
"FStar.UInt32.__uint_to_t"
] | [] | false | false | false | true | false | let op384_512:ops =
| {
c0 = 28ul;
c1 = 34ul;
c2 = 39ul;
c3 = 14ul;
c4 = 18ul;
c5 = 41ul;
e0 = 1ul;
e1 = 8ul;
e2 = 7ul;
e3 = 19ul;
e4 = 61ul;
e5 = 6ul
} | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.int_to_nat8 | val int_to_nat8 (i: int) : n: nat8{0 <= i && i < pow2_8 ==> i == n} | val int_to_nat8 (i: int) : n: nat8{0 <= i && i < pow2_8 ==> i == n} | let int_to_nat8 (i:int) : n:nat8{0 <= i && i < pow2_8 ==> i == n} =
Vale.Def.Words_s.int_to_natN pow2_8 i | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 14,
"start_col": 0,
"start_line": 13
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Prims.int
-> n: Vale.PPC64LE.Machine_s.nat8{0 <= i && i < Vale.PPC64LE.Machine_s.pow2_8 ==> i == n} | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Vale.Def.Words_s.int_to_natN",
"Vale.PPC64LE.Machine_s.pow2_8",
"Vale.PPC64LE.Machine_s.nat8",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.eq2"
] | [] | false | false | false | false | false | let int_to_nat8 (i: int) : n: nat8{0 <= i && i < pow2_8 ==> i == n} =
| Vale.Def.Words_s.int_to_natN pow2_8 i | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.int_to_nat32 | val int_to_nat32 (i: int) : n: nat32{0 <= i && i < pow2_32 ==> i == n} | val int_to_nat32 (i: int) : n: nat32{0 <= i && i < pow2_32 ==> i == n} | let int_to_nat32 (i:int) : n:nat32{0 <= i && i < pow2_32 ==> i == n} =
Vale.Def.Words_s.int_to_natN pow2_32 i | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 16,
"start_col": 0,
"start_line": 15
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Prims.int
-> n: Vale.PPC64LE.Machine_s.nat32{0 <= i && i < Vale.PPC64LE.Machine_s.pow2_32 ==> i == n} | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Vale.Def.Words_s.int_to_natN",
"Vale.PPC64LE.Machine_s.pow2_32",
"Vale.PPC64LE.Machine_s.nat32",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.eq2"
] | [] | false | false | false | false | false | let int_to_nat32 (i: int) : n: nat32{0 <= i && i < pow2_32 ==> i == n} =
| Vale.Def.Words_s.int_to_natN pow2_32 i | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.size_k_w | val size_k_w: sha2_alg -> Tot nat | val size_k_w: sha2_alg -> Tot nat | let size_k_w: sha2_alg -> Tot nat = function
| SHA2_224 | SHA2_256 -> 64
| SHA2_384 | SHA2_512 -> 80 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 29,
"start_col": 0,
"start_line": 27
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Spec.Hash.Definitions.sha2_alg -> Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat"
] | [] | false | false | false | true | false | let size_k_w: sha2_alg -> Tot nat =
| function
| SHA2_224 | SHA2_256 -> 64
| SHA2_384 | SHA2_512 -> 80 | false |
Vale.PPC64LE.Machine_s.fst | Vale.PPC64LE.Machine_s.int_to_nat64 | val int_to_nat64 (i: int) : n: nat64{0 <= i && i < pow2_64 ==> i == n} | val int_to_nat64 (i: int) : n: nat64{0 <= i && i < pow2_64 ==> i == n} | let int_to_nat64 (i:int) : n:nat64{0 <= i && i < pow2_64 ==> i == n} =
Vale.Def.Words_s.int_to_natN pow2_64 i | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Machine_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 19,
"start_col": 0,
"start_line": 18
} | module Vale.PPC64LE.Machine_s
open Vale.Arch.Heap
include Vale.Arch.HeapTypes_s
irreducible let va_qattr = ()
unfold let pow2_8 = Vale.Def.Words_s.pow2_8
unfold let pow2_32 = Vale.Def.Words_s.pow2_32
unfold let pow2_64 = Vale.Def.Words_s.pow2_64
unfold let nat8 = Vale.Def.Words_s.nat8
unfold let nat16 = Vale.Def.Word... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
"Vale.Arch.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": false,
"full_module": "Vale.Arch.HeapTypes_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Prims.int
-> n: Vale.PPC64LE.Machine_s.nat64{0 <= i && i < Vale.PPC64LE.Machine_s.pow2_64 ==> i == n} | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Vale.Def.Words_s.int_to_natN",
"Vale.PPC64LE.Machine_s.pow2_64",
"Vale.PPC64LE.Machine_s.nat64",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.eq2"
] | [] | false | false | false | false | false | let int_to_nat64 (i: int) : n: nat64{0 <= i && i < pow2_64 ==> i == n} =
| Vale.Def.Words_s.int_to_natN pow2_64 i | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2._Ch | val _Ch: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | val _Ch: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | let _Ch a x y z = (x &. y) ^. (~.x &. z) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 123,
"start_col": 0,
"start_line": 123
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
x: Spec.Hash.Definitions.word a ->
y: Spec.Hash.Definitions.word a ->
z: Spec.Hash.Definitions.word a
-> Spec.Hash.Definitions.word a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Hat_Dot",
"Hacl.Spec.SHA2.op_Amp_Dot",
"Hacl.Spec.SHA2.op_Tilde_Dot"
] | [] | false | false | false | false | false | let _Ch a x y z =
| (x &. y) ^. (~.x &. z) | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.word_n | val word_n: sha2_alg -> Tot nat | val word_n: sha2_alg -> Tot nat | let word_n: sha2_alg -> Tot nat = function
| SHA2_224 | SHA2_256 -> 32
| SHA2_384 | SHA2_512 -> 64 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 34,
"start_col": 0,
"start_line": 32
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Spec.Hash.Definitions.sha2_alg -> Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat"
] | [] | false | false | false | true | false | let word_n: sha2_alg -> Tot nat =
| function
| SHA2_224 | SHA2_256 -> 32
| SHA2_384 | SHA2_512 -> 64 | false |
Hacl.Impl.SHA2.Generic.fst | Hacl.Impl.SHA2.Generic.update | val update: #a:sha2_alg -> #m:m_spec{is_supported a m} -> update_vec_t a m | val update: #a:sha2_alg -> #m:m_spec{is_supported a m} -> update_vec_t a m | let update #a #m b hash =
let h0 = ST.get() in
push_frame ();
let h1 = ST.get() in
let hash_old = create 8ul (zero_element a m) in
let ws = create 16ul (zero_element a m) in
assert (disjoint_multi b hash_old);
assert (disjoint_multi b ws);
assert (disjoint ws hash_old);
assert (disjoint hash hash_old)... | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 231,
"start_col": 0,
"start_line": 203
} | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Transpose.fs... | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.SHA2.Generic.update_vec_t a m | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Lib.MultiBuffer.multibuf",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Hash.Definitions.block_len",
"Hacl.Impl.SHA2.Core.state_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Prims._assert",
"Prims.eq2",... | [] | false | false | false | false | false | let update #a #m b hash =
| let h0 = ST.get () in
push_frame ();
let h1 = ST.get () in
let hash_old = create 8ul (zero_element a m) in
let ws = create 16ul (zero_element a m) in
assert (disjoint_multi b hash_old);
assert (disjoint_multi b ws);
assert (disjoint ws hash_old);
assert (disjoint hash hash_old);
assert (disjoint ws hash);
copy hash_old... | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2._Maj | val _Maj: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | val _Maj: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | let _Maj a x y z = (x &. y) ^. ((x &. z) ^. (y &. z)) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 127,
"start_col": 0,
"start_line": 127
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
x: Spec.Hash.Definitions.word a ->
y: Spec.Hash.Definitions.word a ->
z: Spec.Hash.Definitions.word a
-> Spec.Hash.Definitions.word a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Hat_Dot",
"Hacl.Spec.SHA2.op_Amp_Dot"
] | [] | false | false | false | false | false | let _Maj a x y z =
| (x &. y) ^. ((x &. z) ^. (y &. z)) | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.to_word | val to_word (a: sha2_alg) (n: nat{n < pow2 (word_n a)}) : word a | val to_word (a: sha2_alg) (n: nat{n < pow2 (word_n a)}) : word a | let to_word (a:sha2_alg) (n:nat{n < pow2 (word_n a)}) : word a =
match a with
| SHA2_224 | SHA2_256 -> u32 n
| SHA2_384 | SHA2_512 -> u64 n | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 40,
"start_col": 0,
"start_line": 37
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> n: Prims.nat{n < Prims.pow2 (Hacl.Spec.SHA2.word_n a)}
-> Spec.Hash.Definitions.word a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Hacl.Spec.SHA2.word_n",
"Lib.IntTypes.u32",
"Lib.IntTypes.u64",
"Spec.Hash.Definitions.word"
] | [] | false | false | false | false | false | let to_word (a: sha2_alg) (n: nat{n < pow2 (word_n a)}) : word a =
| match a with
| SHA2_224 | SHA2_256 -> u32 n
| SHA2_384 | SHA2_512 -> u64 n | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.block_t | val block_t : a: Spec.Hash.Definitions.sha2_alg -> Type0 | let block_t (a: sha2_alg) = lseq uint8 (block_length a) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 49,
"start_col": 0,
"start_line": 49
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Spec.Hash.Definitions.block_length"
] | [] | false | false | false | true | true | let block_t (a: sha2_alg) =
| lseq uint8 (block_length a) | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.num_rounds16 | val num_rounds16 (a: sha2_alg) : n: pos{16 * n == size_k_w a} | val num_rounds16 (a: sha2_alg) : n: pos{16 * n == size_k_w a} | let num_rounds16 (a:sha2_alg) : n:pos{16 * n == size_k_w a} =
match a with
| SHA2_224 | SHA2_256 -> 4
| SHA2_384 | SHA2_512 -> 5 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 46,
"start_col": 0,
"start_line": 43
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> n: Prims.pos{16 * n == Hacl.Spec.SHA2.size_k_w a} | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.pos",
"Prims.eq2",
"Prims.int",
"FStar.Mul.op_Star",
"Hacl.Spec.SHA2.size_k_w"
] | [] | false | false | false | false | false | let num_rounds16 (a: sha2_alg) : n: pos{16 * n == size_k_w a} =
| match a with
| SHA2_224 | SHA2_256 -> 4
| SHA2_384 | SHA2_512 -> 5 | false |
Steel.Preorder.fst | Steel.Preorder.pcm_history_induces_preorder | val pcm_history_induces_preorder (#a #p: _)
: Lemma (induces_preorder (pcm_history #a #p) (pcm_history_preorder #a #p)) | val pcm_history_induces_preorder (#a #p: _)
: Lemma (induces_preorder (pcm_history #a #p) (pcm_history_preorder #a #p)) | let pcm_history_induces_preorder #a #p
: Lemma (induces_preorder (pcm_history #a #p)
(pcm_history_preorder #a #p))
= let aux (x y:history a p)
(f:frame_preserving_upd (pcm_history #a #p) x y)
(v:history a p)
: Lemma
(requires compatible (pcm_hist... | {
"file_name": "lib/steel/Steel.Preorder.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 409,
"start_col": 0,
"start_line": 377
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.List.Tot.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Pervasives.Lemma
(ensures
Steel.Preorder.induces_preorder Steel.Preorder.pcm_history Steel.Preorder.pcm_history_preorder) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Preorder.preorder",
"Steel.Preorder.history",
"FStar.PCM.frame_preserving_upd",
"Steel.Preorder.pcm_history",
"Prims.unit",
"FStar.PCM.compatible",
"Prims.squash",
"Steel.Preorder.pcm_history_preorder",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat",
"Prims.Nil",
... | [] | false | false | true | false | false | let pcm_history_induces_preorder #a #p
: Lemma (induces_preorder (pcm_history #a #p) (pcm_history_preorder #a #p)) =
| let aux (x y: history a p) (f: frame_preserving_upd (pcm_history #a #p) x y) (v: history a p)
: Lemma (requires compatible (pcm_history #a #p) x v)
(ensures (pcm_history_preorder #a #p) v (f v))
[SMTPat ()] =
let pcm = pcm_history #a #p in
let v1 = f v in
match x, v, v1 with
| Witnessed _, Witne... | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.k_w | val k_w : a: Spec.Hash.Definitions.sha2_alg -> Type0 | let k_w (a: sha2_alg) = lseq (word a) (block_word_length a) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 61,
"end_line": 48,
"start_col": 0,
"start_line": 48
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.Sequence.lseq",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.block_word_length"
] | [] | false | false | false | true | true | let k_w (a: sha2_alg) =
| lseq (word a) (block_word_length a) | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.op0 | val op0 (a: sha2_alg) : Tot ops | val op0 (a: sha2_alg) : Tot ops | let op0: a:sha2_alg -> Tot ops = function
| SHA2_224 -> op224_256
| SHA2_256 -> op224_256
| SHA2_384 -> op384_512
| SHA2_512 -> op384_512 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 81,
"start_col": 0,
"start_line": 77
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> Hacl.Spec.SHA2.ops | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.op224_256",
"Hacl.Spec.SHA2.op384_512",
"Hacl.Spec.SHA2.ops"
] | [] | false | false | false | true | false | let op0: a: sha2_alg -> Tot ops =
| function
| SHA2_224 -> op224_256
| SHA2_256 -> op224_256
| SHA2_384 -> op384_512
| SHA2_512 -> op384_512 | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.mk_len_t | val mk_len_t (a: sha2_alg) (len: len_lt_max_a_t a) : len_t a | val mk_len_t (a: sha2_alg) (len: len_lt_max_a_t a) : len_t a | let mk_len_t (a:sha2_alg) (len:len_lt_max_a_t a) : len_t a =
match a with
| SHA2_224 | SHA2_256 ->
(Math.Lemmas.pow2_lt_compat 64 61; uint #U64 #PUB len)
| SHA2_384 | SHA2_512 ->
(Math.Lemmas.pow2_lt_compat 128 125; uint #U128 #PUB len) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 61,
"end_line": 20,
"start_col": 0,
"start_line": 15
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a} | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> len: Hacl.Spec.SHA2.len_lt_max_a_t a
-> Spec.Hash.Definitions.len_t a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Lib.IntTypes.uint",
"Lib.IntTypes.U64",
"Lib.IntTypes.PUB",
"Prims.unit",
"FStar.Math.Lemmas.pow2_lt_compat",
"Lib.IntTypes.U128",
"Spec.Hash.Definitions.len_t"
] | [] | false | false | false | false | false | let mk_len_t (a: sha2_alg) (len: len_lt_max_a_t a) : len_t a =
| match a with
| SHA2_224
| SHA2_256 ->
(Math.Lemmas.pow2_lt_compat 64 61;
uint #U64 #PUB len)
| SHA2_384
| SHA2_512 ->
(Math.Lemmas.pow2_lt_compat 128 125;
uint #U128 #PUB len) | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.ws_next | val ws_next (a: sha2_alg) (ws: k_w a) : k_w a | val ws_next (a: sha2_alg) (ws: k_w a) : k_w a | let ws_next (a:sha2_alg) (ws:k_w a) : k_w a =
Lib.LoopCombinators.repeati 16 (ws_next_inner a) ws | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 193,
"start_col": 0,
"start_line": 192
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> ws: Hacl.Spec.SHA2.k_w a -> Hacl.Spec.SHA2.k_w a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.k_w",
"Lib.LoopCombinators.repeati",
"Hacl.Spec.SHA2.ws_next_inner"
] | [] | false | false | false | false | false | let ws_next (a: sha2_alg) (ws: k_w a) : k_w a =
| Lib.LoopCombinators.repeati 16 (ws_next_inner a) ws | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.init | val init (a: sha2_alg) : words_state a | val init (a: sha2_alg) : words_state a | let init (a:sha2_alg) : words_state a = h0 a | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 44,
"end_line": 228,
"start_col": 0,
"start_line": 228
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.h0",
"Spec.Hash.Definitions.words_state"
] | [] | false | false | false | false | false | let init (a: sha2_alg) : words_state a =
| h0 a | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.shuffle_inner_loop | val shuffle_inner_loop:
a:sha2_alg
-> i:nat{i < num_rounds16 a}
-> ws_st:tuple2 (k_w a) (words_state a) ->
k_w a & words_state a | val shuffle_inner_loop:
a:sha2_alg
-> i:nat{i < num_rounds16 a}
-> ws_st:tuple2 (k_w a) (words_state a) ->
k_w a & words_state a | let shuffle_inner_loop a i (ws, st) =
let st' = Lib.LoopCombinators.repeati 16 (shuffle_inner a ws i) st in
let ws' = if i < num_rounds16 a - 1 then ws_next a ws else ws in
(ws', st') | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 219,
"start_col": 0,
"start_line": 216
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
i: Prims.nat{i < Hacl.Spec.SHA2.num_rounds16 a} ->
ws_st: (Hacl.Spec.SHA2.k_w a * Spec.Hash.Definitions.words_state a)
-> Hacl.Spec.SHA2.k_w a * Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.num_rounds16",
"FStar.Pervasives.Native.tuple2",
"Hacl.Spec.SHA2.k_w",
"Spec.Hash.Definitions.words_state",
"FStar.Pervasives.Native.Mktuple2",
"Prims.op_Subtraction",
"Hacl.Spec.SHA2.ws_next",
"Pr... | [] | false | false | false | false | false | let shuffle_inner_loop a i (ws, st) =
| let st' = Lib.LoopCombinators.repeati 16 (shuffle_inner a ws i) st in
let ws' = if i < num_rounds16 a - 1 then ws_next a ws else ws in
(ws', st') | false |
Hacl.Spec.Curve25519.Field64.Lemmas.fst | Hacl.Spec.Curve25519.Field64.Lemmas.lemma_prime | val lemma_prime: unit -> Lemma (pow2 256 % prime == 38) | val lemma_prime: unit -> Lemma (pow2 256 % prime == 38) | let lemma_prime () =
calc (==) {
pow2 256 % prime;
(==) { Math.Lemmas.pow2_plus 255 1 }
2 * pow2 255 % prime;
(==) { Math.Lemmas.lemma_mod_mul_distr_r 2 (pow2 255) prime }
2 * (pow2 255 % prime) % prime;
(==) { Math.Lemmas.sub_div_mod_1 (pow2 255) prime }
2 * (19 % prime) % prime;
(==)... | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 31,
"start_col": 0,
"start_line": 18
} | module Hacl.Spec.Curve25519.Field64.Lemmas
open FStar.Mul
open Lib.Sequence
open Lib.IntTypes
open Spec.Curve25519
open Hacl.Spec.Curve25519.Field64.Definition
module BSeq = Lib.ByteSequence
module SD = Hacl.Spec.Bignum.Definitions
module SL = Hacl.Spec.Bignum.Lib
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0" | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Curve25519.Field64.Definition.fst.checked",
"Hacl.Spec.Bignum.Lib.fst.checked",
"Hacl.Spe... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Lib",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.Pervasives.Lemma (ensures Prims.pow2 256 % Spec.Curve25519.prime == 38) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.unit",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"Prims.pow2",
"Spec.Curve25519.prime",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"FStar.Calc.calc_step",
"FStar.Mul.op_Star",
"FStar.Calc.calc_init",
"FStar.Calc.calc_pack",
"FStar.Math.Lemm... | [] | false | false | true | false | false | let lemma_prime () =
| calc ( == ) {
pow2 256 % prime;
( == ) { Math.Lemmas.pow2_plus 255 1 }
2 * pow2 255 % prime;
( == ) { Math.Lemmas.lemma_mod_mul_distr_r 2 (pow2 255) prime }
2 * (pow2 255 % prime) % prime;
( == ) { Math.Lemmas.sub_div_mod_1 (pow2 255) prime }
2 * (19 % prime) % prime;
( == ) { Math.Lemmas.lemma_mod_mul_... | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2._Sigma0 | val _Sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | val _Sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | let _Sigma0 a x = (x >>>. (op0 a).c0) ^. (x >>>. (op0 a).c1) ^. (x >>>. (op0 a).c2) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 83,
"end_line": 131,
"start_col": 0,
"start_line": 131
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Hat_Dot",
"Hacl.Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Hacl.Spec.SHA2.__proj__Mkops__item__c0",
"Hacl.Spec.SHA2.op0",
"Hacl.Spec.SHA2.__proj__Mkops__item__c1",
"Hacl.Spec.SHA2.__proj__Mkops__item__c2"
] | [] | false | false | false | false | false | let _Sigma0 a x =
| (x >>>. (op0 a).c0) ^. (x >>>. (op0 a).c1) ^. (x >>>. (op0 a).c2) | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_first_cmp_opr | val print_first_cmp_opr : o: Vale.PPC64LE.Machine_s.cmp_opr -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | let print_first_cmp_opr (o:cmp_opr) (p:printer) =
match o with
| CReg r -> print_reg r p
| _ -> "!!! INVALID first compare operand !!! Expected general purpose register." | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 83,
"end_line": 47,
"start_col": 0,
"start_line": 44
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | o: Vale.PPC64LE.Machine_s.cmp_opr -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.cmp_opr",
"Vale.PPC64LE.Print_s.printer",
"Vale.PPC64LE.Machine_s.reg",
"Vale.PPC64LE.Print_s.print_reg",
"Prims.string"
] | [] | false | false | false | true | false | let print_first_cmp_opr (o: cmp_opr) (p: printer) =
| match o with
| CReg r -> print_reg r p
| _ -> "!!! INVALID first compare operand !!! Expected general purpose register." | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.k0 | val k0 (a: sha2_alg) : Tot (m: S.seq (word a) {S.length m = size_k_w a}) | val k0 (a: sha2_alg) : Tot (m: S.seq (word a) {S.length m = size_k_w a}) | let k0: a:sha2_alg -> Tot (m:S.seq (word a) {S.length m = size_k_w a}) = function
| SHA2_224 -> C.k224_256
| SHA2_256 -> C.k224_256
| SHA2_384 -> C.k384_512
| SHA2_512 -> C.k384_512 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 155,
"start_col": 0,
"start_line": 151
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg
-> m:
FStar.Seq.Base.seq (Spec.Hash.Definitions.word a)
{FStar.Seq.Base.length m = Hacl.Spec.SHA2.size_k_w a} | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.Constants.k224_256",
"Spec.SHA2.Constants.k384_512",
"FStar.Seq.Base.seq",
"Spec.Hash.Definitions.word",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.Seq.Base.length",
"Hacl.Spec.SHA2.size_k_w"
] | [] | false | false | false | false | false | let k0: a: sha2_alg -> Tot (m: S.seq (word a) {S.length m = size_k_w a}) =
| function
| SHA2_224 -> C.k224_256
| SHA2_256 -> C.k224_256
| SHA2_384 -> C.k384_512
| SHA2_512 -> C.k384_512 | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_reg | val print_reg : r: Vale.PPC64LE.Machine_s.reg -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | let print_reg (r:reg) (p:printer) =
p.reg_prefix() ^ string_of_int r | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 23,
"start_col": 0,
"start_line": 22
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Vale.PPC64LE.Machine_s.reg -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.reg",
"Vale.PPC64LE.Print_s.printer",
"Prims.op_Hat",
"Vale.PPC64LE.Print_s.__proj__Mkprinter__item__reg_prefix",
"Prims.string_of_int",
"Prims.string"
] | [] | false | false | false | true | false | let print_reg (r: reg) (p: printer) =
| p.reg_prefix () ^ string_of_int r | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.shuffle | val shuffle (a: sha2_alg) (ws: k_w a) (hash: words_state a) : Tot (words_state a) | val shuffle (a: sha2_alg) (ws: k_w a) (hash: words_state a) : Tot (words_state a) | let shuffle (a:sha2_alg) (ws:k_w a) (hash:words_state a) : Tot (words_state a) =
let (ws, st) = Lib.LoopCombinators.repeati (num_rounds16 a) (shuffle_inner_loop a) (ws, hash) in
st | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 225,
"start_col": 0,
"start_line": 223
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
ws: Hacl.Spec.SHA2.k_w a ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.k_w",
"Spec.Hash.Definitions.words_state",
"FStar.Pervasives.Native.tuple2",
"Lib.LoopCombinators.repeati",
"Hacl.Spec.SHA2.num_rounds16",
"Hacl.Spec.SHA2.shuffle_inner_loop",
"FStar.Pervasives.Native.Mktuple2"
] | [] | false | false | false | false | false | let shuffle (a: sha2_alg) (ws: k_w a) (hash: words_state a) : Tot (words_state a) =
| let ws, st = Lib.LoopCombinators.repeati (num_rounds16 a) (shuffle_inner_loop a) (ws, hash) in
st | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_vec | val print_vec : v: Vale.PPC64LE.Machine_s.vec -> vsr: Prims.bool -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | let print_vec (v:vec) (vsr:bool) (p:printer) =
if vsr then p.vsr_prefix() ^ "32+" ^ string_of_int v
else p.vec_prefix() ^ string_of_int v | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 27,
"start_col": 0,
"start_line": 25
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Vale.PPC64LE.Machine_s.vec -> vsr: Prims.bool -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.vec",
"Prims.bool",
"Vale.PPC64LE.Print_s.printer",
"Prims.op_Hat",
"Vale.PPC64LE.Print_s.__proj__Mkprinter__item__vsr_prefix",
"Prims.string_of_int",
"Vale.PPC64LE.Print_s.__proj__Mkprinter__item__vec_prefix",
"Prims.string"
] | [] | false | false | false | true | false | let print_vec (v: vec) (vsr: bool) (p: printer) =
| if vsr then p.vsr_prefix () ^ "32+" ^ string_of_int v else p.vec_prefix () ^ string_of_int v | false | |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_maddr | val print_maddr : m: Vale.PPC64LE.Machine_s.maddr -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | let print_maddr (m:maddr) (p:printer) =
p.maddr (string_of_int m.offset) (print_reg m.address p) | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 30,
"start_col": 0,
"start_line": 29
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Vale.PPC64LE.Machine_s.maddr -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Machine_s.maddr",
"Vale.PPC64LE.Print_s.printer",
"Vale.PPC64LE.Print_s.__proj__Mkprinter__item__maddr",
"Prims.string_of_int",
"Vale.PPC64LE.Machine_s.__proj__Mkmaddr__item__offset",
"Vale.PPC64LE.Print_s.print_reg",
"Vale.PPC64LE.Machine_s.__proj__Mkmaddr__item__address",
"Prims.string... | [] | false | false | false | true | false | let print_maddr (m: maddr) (p: printer) =
| p.maddr (string_of_int m.offset) (print_reg m.address p) | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.shuffle_inner | val shuffle_inner:
a:sha2_alg
-> ws:k_w a
-> i:nat{i < num_rounds16 a}
-> j:nat{j < 16}
-> hash:words_state a ->
words_state a | val shuffle_inner:
a:sha2_alg
-> ws:k_w a
-> i:nat{i < num_rounds16 a}
-> j:nat{j < 16}
-> hash:words_state a ->
words_state a | let shuffle_inner a ws i j hash =
let k_t = Seq.index (k0 a) (16 * i + j) in
let ws_t = ws.[j] in
shuffle_core_pre a k_t ws_t hash | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 207,
"start_col": 0,
"start_line": 204
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
ws: Hacl.Spec.SHA2.k_w a ->
i: Prims.nat{i < Hacl.Spec.SHA2.num_rounds16 a} ->
j: Prims.nat{j < 16} ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.k_w",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.num_rounds16",
"Spec.Hash.Definitions.words_state",
"Hacl.Spec.SHA2.shuffle_core_pre",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_String_Access",
"FStar.Seq.Base.index",
... | [] | false | false | false | false | false | let shuffle_inner a ws i j hash =
| let k_t = Seq.index (k0 a) (16 * i + j) in
let ws_t = ws.[ j ] in
shuffle_core_pre a k_t ws_t hash | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.h0 | val h0 (a: sha2_alg) : Tot (words_state a) | val h0 (a: sha2_alg) : Tot (words_state a) | let h0: a:sha2_alg -> Tot (words_state a) = function
| SHA2_224 -> C.h224
| SHA2_256 -> C.h256
| SHA2_384 -> C.h384
| SHA2_512 -> C.h512 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 149,
"start_col": 0,
"start_line": 145
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.Constants.h224",
"Spec.SHA2.Constants.h256",
"Spec.SHA2.Constants.h384",
"Spec.SHA2.Constants.h512",
"Spec.Hash.Definitions.words_state"
] | [] | false | false | false | false | false | let h0: a: sha2_alg -> Tot (words_state a) =
| function
| SHA2_224 -> C.h224
| SHA2_256 -> C.h256
| SHA2_384 -> C.h384
| SHA2_512 -> C.h512 | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2._Sigma1 | val _Sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | val _Sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | let _Sigma1 a x = (x >>>. (op0 a).c3) ^. (x >>>. (op0 a).c4) ^. (x >>>. (op0 a).c5) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 83,
"end_line": 135,
"start_col": 0,
"start_line": 135
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Hat_Dot",
"Hacl.Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Hacl.Spec.SHA2.__proj__Mkops__item__c3",
"Hacl.Spec.SHA2.op0",
"Hacl.Spec.SHA2.__proj__Mkops__item__c4",
"Hacl.Spec.SHA2.__proj__Mkops__item__c5"
] | [] | false | false | false | false | false | let _Sigma1 a x =
| (x >>>. (op0 a).c3) ^. (x >>>. (op0 a).c4) ^. (x >>>. (op0 a).c5) | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2._sigma0 | val _sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | val _sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | let _sigma0 a x = (x >>>. (op0 a).e0) ^. (x >>>. (op0 a).e1) ^. (x >>. (op0 a).e2) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 82,
"end_line": 139,
"start_col": 0,
"start_line": 139
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Hat_Dot",
"Hacl.Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Hacl.Spec.SHA2.__proj__Mkops__item__e0",
"Hacl.Spec.SHA2.op0",
"Hacl.Spec.SHA2.__proj__Mkops__item__e1",
"Hacl.Spec.SHA2.op_Greater_Greater_Dot",
"Hacl.Spec.... | [] | false | false | false | false | false | let _sigma0 a x =
| (x >>>. (op0 a).e0) ^. (x >>>. (op0 a).e1) ^. (x >>. (op0 a).e2) | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.ws_next_inner | val ws_next_inner (a: sha2_alg) (i: nat{i < 16}) (ws: k_w a) : k_w a | val ws_next_inner (a: sha2_alg) (i: nat{i < 16}) (ws: k_w a) : k_w a | let ws_next_inner (a:sha2_alg) (i:nat{i < 16}) (ws:k_w a) : k_w a =
let t16 = ws.[i] in
let t15 = ws.[(i+1) % 16] in
let t7 = ws.[(i+9) % 16] in
let t2 = ws.[(i+14) % 16] in
let s1 = _sigma1 a t2 in
let s0 = _sigma0 a t15 in
Seq.upd ws i (s1 +. t7 +. s0 +. t16) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 190,
"start_col": 0,
"start_line": 183
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> i: Prims.nat{i < 16} -> ws: Hacl.Spec.SHA2.k_w a
-> Hacl.Spec.SHA2.k_w a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.k_w",
"FStar.Seq.Base.upd",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Plus_Dot",
"Hacl.Spec.SHA2._sigma0",
"Hacl.Spec.SHA2._sigma1",
"Hacl.Spec.SHA2.op_String_Access",
"Prims.op_Modulus",
... | [] | false | false | false | false | false | let ws_next_inner (a: sha2_alg) (i: nat{i < 16}) (ws: k_w a) : k_w a =
| let t16 = ws.[ i ] in
let t15 = ws.[ (i + 1) % 16 ] in
let t7 = ws.[ (i + 9) % 16 ] in
let t2 = ws.[ (i + 14) % 16 ] in
let s1 = _sigma1 a t2 in
let s0 = _sigma0 a t15 in
Seq.upd ws i (s1 +. t7 +. s0 +. t16) | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.gcc | val gcc:printer | val gcc:printer | let gcc : printer =
let reg_prefix unit = "" in
let vec_prefix unit = "" in
let vsr_prefix unit = "" in
let maddr (offset:string) (address:string) =
offset ^ "(" ^ address ^ ")"
in
let const (n:int) = string_of_int n in
let align() = ".align" in
let header() = ".text\n" in
let footer() = ".section... | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 259,
"start_col": 0,
"start_line": 235
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.PPC64LE.Print_s.printer | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Print_s.Mkprinter",
"Prims.string",
"Prims.op_Hat",
"Prims.unit",
"Prims.int",
"Prims.string_of_int"
] | [] | false | false | false | true | false | let gcc:printer =
| let reg_prefix unit = "" in
let vec_prefix unit = "" in
let vsr_prefix unit = "" in
let maddr (offset address: string) = offset ^ "(" ^ address ^ ")" in
let const (n: int) = string_of_int n in
let align () = ".align" in
let header () = ".text\n" in
let footer () = ".section .note.GNU-stack,\"\",%progbits\n" in
let proc... | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.shuffle_core_pre | val shuffle_core_pre (a: sha2_alg) (k_t ws_t: word a) (hash: words_state a) : Tot (words_state a) | val shuffle_core_pre (a: sha2_alg) (k_t ws_t: word a) (hash: words_state a) : Tot (words_state a) | let shuffle_core_pre (a:sha2_alg) (k_t: word a) (ws_t: word a) (hash:words_state a) : Tot (words_state a) =
(**) assert(7 <= S.length hash);
let a0 = hash.[0] in
let b0 = hash.[1] in
let c0 = hash.[2] in
let d0 = hash.[3] in
let e0 = hash.[4] in
let f0 = hash.[5] in
let g0 = hash.[6] in
let h0 = hash.... | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 179,
"start_col": 0,
"start_line": 162
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
k_t: Spec.Hash.Definitions.word a ->
ws_t: Spec.Hash.Definitions.word a ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.words_state",
"FStar.Seq.Base.seq_of_list",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"Prims.Cons",
"Hacl.Spec... | [] | false | false | false | false | false | let shuffle_core_pre (a: sha2_alg) (k_t ws_t: word a) (hash: words_state a) : Tot (words_state a) =
| assert (7 <= S.length hash);
let a0 = hash.[ 0 ] in
let b0 = hash.[ 1 ] in
let c0 = hash.[ 2 ] in
let d0 = hash.[ 3 ] in
let e0 = hash.[ 4 ] in
let f0 = hash.[ 5 ] in
let g0 = hash.[ 6 ] in
let h0 = hash.[ 7 ] in
assert (S.length (k0 a) = size_k_w a);
let t1 = h0 +. (_Sigma1 a e0) +. (_Ch a e0 f0 g0) +. k_t +. ws_t in
... | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_header | val print_header : p: Vale.PPC64LE.Print_s.printer -> FStar.All.ML Prims.unit | let print_header (p:printer) =
print_string (p.header()) | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 222,
"start_col": 0,
"start_line": 221
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Vale.PPC64LE.Print_s.printer -> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Vale.PPC64LE.Print_s.printer",
"FStar.IO.print_string",
"Vale.PPC64LE.Print_s.__proj__Mkprinter__item__header",
"Prims.unit"
] | [] | false | true | false | false | false | let print_header (p: printer) =
| print_string (p.header ()) | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.update | val update (a: sha2_alg) (block: block_t a) (hash: words_state a) : Tot (words_state a) | val update (a: sha2_alg) (block: block_t a) (hash: words_state a) : Tot (words_state a) | let update (a:sha2_alg) (block:block_t a) (hash:words_state a): Tot (words_state a) =
let block_w = Lib.ByteSequence.uints_from_bytes_be #(word_t a) #SEC #(block_word_length a) block in
let hash_1 = shuffle a block_w hash in
map2 #_ #_ #_ #8 ( +. ) hash_1 hash | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 233,
"start_col": 0,
"start_line": 230
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
block: Hacl.Spec.SHA2.block_t a ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.block_t",
"Spec.Hash.Definitions.words_state",
"Lib.Sequence.map2",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Plus_Dot",
"Hacl.Spec.SHA2.shuffle",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Spec.Hash.Definitions.word_t",
"Lib.IntTypes.SEC... | [] | false | false | false | false | false | let update (a: sha2_alg) (block: block_t a) (hash: words_state a) : Tot (words_state a) =
| let block_w = Lib.ByteSequence.uints_from_bytes_be #(word_t a) #SEC #(block_word_length a) block in
let hash_1 = shuffle a block_w hash in
map2 #_ #_ #_ #8 ( +. ) hash_1 hash | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_proc | val print_proc (name: string) (code: code) (label: int) (p: printer) : FStar.All.ML int | val print_proc (name: string) (code: code) (label: int) (p: printer) : FStar.All.ML int | let print_proc (name:string) (code:code) (label:int) (p:printer) : FStar.All.ML int =
let proc = p.proc_name name in
let (code_str, final_label) = print_code code label p in
let ret = p.ret name in
print_string (proc ^ code_str ^ ret);
final_label | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 229,
"start_col": 0,
"start_line": 224
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
name: Prims.string ->
code: Vale.PPC64LE.Semantics_s.code ->
label: Prims.int ->
p: Vale.PPC64LE.Print_s.printer
-> FStar.All.ML Prims.int | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Vale.PPC64LE.Semantics_s.code",
"Prims.int",
"Vale.PPC64LE.Print_s.printer",
"Prims.unit",
"FStar.IO.print_string",
"Prims.op_Hat",
"Vale.PPC64LE.Print_s.__proj__Mkprinter__item__ret",
"FStar.Pervasives.Native.tuple2",
"Vale.PPC64LE.Print_s.print_code",
"Vale.PPC64LE.Print_s.__p... | [] | false | true | false | false | false | let print_proc (name: string) (code: code) (label: int) (p: printer) : FStar.All.ML int =
| let proc = p.proc_name name in
let code_str, final_label = print_code code label p in
let ret = p.ret name in
print_string (proc ^ code_str ^ ret);
final_label | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2._sigma1 | val _sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | val _sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | let _sigma1 a x = (x >>>. (op0 a).e3) ^. (x >>>. (op0 a).e4) ^. (x >>. (op0 a).e5) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 82,
"end_line": 143,
"start_col": 0,
"start_line": 143
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Hacl.Spec.SHA2.op_Hat_Dot",
"Hacl.Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Hacl.Spec.SHA2.__proj__Mkops__item__e3",
"Hacl.Spec.SHA2.op0",
"Hacl.Spec.SHA2.__proj__Mkops__item__e4",
"Hacl.Spec.SHA2.op_Greater_Greater_Dot",
"Hacl.Spec.... | [] | false | false | false | false | false | let _sigma1 a x =
| (x >>>. (op0 a).e3) ^. (x >>>. (op0 a).e4) ^. (x >>. (op0 a).e5) | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_footer | val print_footer : p: Vale.PPC64LE.Print_s.printer -> FStar.All.ML Prims.unit | let print_footer (p:printer) =
print_string (p.footer()) | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 232,
"start_col": 0,
"start_line": 231
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Vale.PPC64LE.Print_s.printer -> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Vale.PPC64LE.Print_s.printer",
"FStar.IO.print_string",
"Vale.PPC64LE.Print_s.__proj__Mkprinter__item__footer",
"Prims.unit"
] | [] | false | true | false | false | false | let print_footer (p: printer) =
| print_string (p.footer ()) | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.sha224 | val sha224 : len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_224 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_224) | let sha224 (len:len_lt_max_a_t SHA2_224) (b:seq uint8{length b = len}) =
hash #SHA2_224 len b | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 301,
"start_col": 0,
"start_line": 300
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_224 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_224) | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Spec.Hash.Definitions.SHA2_224",
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"Lib.Sequence.length",
"Hacl.Spec.SHA2.hash",
"Lib.Sequence.lseq",
"Spec.Hash.Definitions.hash_length"
] | [] | false | false | false | false | false | let sha224 (len: len_lt_max_a_t SHA2_224) (b: seq uint8 {length b = len}) =
| hash #SHA2_224 len b | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.sha512 | val sha512 : len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_512 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_512) | let sha512 (len:len_lt_max_a_t SHA2_512) (b:seq uint8{length b = len}) =
hash #SHA2_512 len b | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 310,
"start_col": 0,
"start_line": 309
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_512 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_512) | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Spec.Hash.Definitions.SHA2_512",
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"Lib.Sequence.length",
"Hacl.Spec.SHA2.hash",
"Lib.Sequence.lseq",
"Spec.Hash.Definitions.hash_length"
] | [] | false | false | false | false | false | let sha512 (len: len_lt_max_a_t SHA2_512) (b: seq uint8 {length b = len}) =
| hash #SHA2_512 len b | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.padded_blocks | val padded_blocks (a: sha2_alg) (len: nat{len <= block_length a}) : n: nat{n <= 2} | val padded_blocks (a: sha2_alg) (len: nat{len <= block_length a}) : n: nat{n <= 2} | let padded_blocks (a:sha2_alg) (len:nat{len <= block_length a}) : n:nat{n <= 2} =
if (len + len_length a + 1 <= block_length a) then 1 else 2 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 61,
"end_line": 237,
"start_col": 0,
"start_line": 236
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> len: Prims.nat{len <= Spec.Hash.Definitions.block_length a}
-> n: Prims.nat{n <= 2} | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Spec.Hash.Definitions.block_length",
"Prims.op_Addition",
"Spec.Hash.Definitions.len_length",
"Prims.bool"
] | [] | false | false | false | false | false | let padded_blocks (a: sha2_alg) (len: nat{len <= block_length a}) : n: nat{n <= 2} =
| if (len + len_length a + 1 <= block_length a) then 1 else 2 | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.update_block | val update_block
(a: sha2_alg)
(len: len_lt_max_a_t a)
(b: seq uint8 {length b = len})
(i: nat{i < len / block_length a})
(st: words_state a)
: words_state a | val update_block
(a: sha2_alg)
(len: len_lt_max_a_t a)
(b: seq uint8 {length b = len})
(i: nat{i < len / block_length a})
(st: words_state a)
: words_state a | let update_block (a:sha2_alg) (len:len_lt_max_a_t a) (b:seq uint8{length b = len})
(i:nat{i < len / block_length a}) (st:words_state a) : words_state a
=
let mb = Seq.slice b (i * block_length a) (i * block_length a + block_length a) in
update a mb st | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 283,
"start_col": 0,
"start_line": 279
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len} ->
i: Prims.nat{i < len / Spec.Hash.Definitions.block_length a} ->
st: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"Lib.Sequence.length",
"Prims.op_LessThan",
"Prims.op_Division",
"Spec.Hash.Definitions.block_length",
"Spec.Hash.Definitions.words_state"... | [] | false | false | false | false | false | let update_block
(a: sha2_alg)
(len: len_lt_max_a_t a)
(b: seq uint8 {length b = len})
(i: nat{i < len / block_length a})
(st: words_state a)
: words_state a =
| let mb = Seq.slice b (i * block_length a) (i * block_length a + block_length a) in
update a mb st | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.sha384 | val sha384 : len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_384 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_384) | let sha384 (len:len_lt_max_a_t SHA2_384) (b:seq uint8{length b = len}) =
hash #SHA2_384 len b | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 307,
"start_col": 0,
"start_line": 306
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_384 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_384) | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Spec.Hash.Definitions.SHA2_384",
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"Lib.Sequence.length",
"Hacl.Spec.SHA2.hash",
"Lib.Sequence.lseq",
"Spec.Hash.Definitions.hash_length"
] | [] | false | false | false | false | false | let sha384 (len: len_lt_max_a_t SHA2_384) (b: seq uint8 {length b = len}) =
| hash #SHA2_384 len b | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.sha256 | val sha256 : len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_256 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_256) | let sha256 (len:len_lt_max_a_t SHA2_256) (b:seq uint8{length b = len}) =
hash #SHA2_256 len b | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 304,
"start_col": 0,
"start_line": 303
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
len: Hacl.Spec.SHA2.len_lt_max_a_t Spec.Hash.Definitions.SHA2_256 ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8
(Spec.Hash.Definitions.hash_length Spec.Hash.Definitions.SHA2_256) | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Spec.Hash.Definitions.SHA2_256",
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"Lib.Sequence.length",
"Hacl.Spec.SHA2.hash",
"Lib.Sequence.lseq",
"Spec.Hash.Definitions.hash_length"
] | [] | false | false | false | false | false | let sha256 (len: len_lt_max_a_t SHA2_256) (b: seq uint8 {length b = len}) =
| hash #SHA2_256 len b | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.update_last | val update_last
(a: sha2_alg)
(totlen: len_t a)
(len: nat{len <= block_length a})
(b: bytes{S.length b = len})
(hash: words_state a)
: Tot (words_state a) | val update_last
(a: sha2_alg)
(totlen: len_t a)
(len: nat{len <= block_length a})
(b: bytes{S.length b = len})
(hash: words_state a)
: Tot (words_state a) | let update_last (a:sha2_alg) (totlen:len_t a)
(len:nat{len <= block_length a})
(b:bytes{S.length b = len}) (hash:words_state a) : Tot (words_state a) =
let blocks = padded_blocks a len in
let fin = blocks * block_length a in
let total_len_bits = secret (shift_left #(len_int_type a) totlen 3ul) in
let totlen... | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 263,
"start_col": 0,
"start_line": 254
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
totlen: Spec.Hash.Definitions.len_t a ->
len: Prims.nat{len <= Spec.Hash.Definitions.block_length a} ->
b: Spec.Hash.Definitions.bytes{FStar.Seq.Base.length b = len} ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.len_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Spec.Hash.Definitions.block_length",
"Spec.Hash.Definitions.bytes",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Lib.IntTypes.uint8",
"Spec.Hash.Definitions.words_state",
"... | [] | false | false | false | false | false | let update_last
(a: sha2_alg)
(totlen: len_t a)
(len: nat{len <= block_length a})
(b: bytes{S.length b = len})
(hash: words_state a)
: Tot (words_state a) =
| let blocks = padded_blocks a len in
let fin = blocks * block_length a in
let total_len_bits = secret (shift_left #(len_int_type a) totlen 3ul) in
let totlen_seq = Lib.ByteSequence.uint_to_bytes_be #(len_int_type a) total_len_bits in
let b0, b1 = load_last a totlen_seq fin len b in
let hash = update a b0 hash in
if bloc... | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.finish | val finish (a: sha2_alg) (st: words_state a) : Tot (lseq uint8 (hash_length a)) | val finish (a: sha2_alg) (st: words_state a) : Tot (lseq uint8 (hash_length a)) | let finish (a:sha2_alg) (st:words_state a) : Tot (lseq uint8 (hash_length a)) =
let hseq = store_state a st in
emit a hseq | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 276,
"start_col": 0,
"start_line": 274
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> st: Spec.Hash.Definitions.words_state a
-> Lib.Sequence.lseq Lib.IntTypes.uint8 (Spec.Hash.Definitions.hash_length a) | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.words_state",
"Hacl.Spec.SHA2.emit",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.op_Multiply",
"Spec.Hash.Definitions.word_length",
"Hacl.Spec.SHA2.store_state",
"Lib.IntTypes.uint8",
"Spec.Ha... | [] | false | false | false | false | false | let finish (a: sha2_alg) (st: words_state a) : Tot (lseq uint8 (hash_length a)) =
| let hseq = store_state a st in
emit a hseq | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.update_nblocks | val update_nblocks
(a: sha2_alg)
(len: len_lt_max_a_t a)
(b: seq uint8 {length b = len})
(st: words_state a)
: words_state a | val update_nblocks
(a: sha2_alg)
(len: len_lt_max_a_t a)
(b: seq uint8 {length b = len})
(st: words_state a)
: words_state a | let update_nblocks (a:sha2_alg) (len:len_lt_max_a_t a) (b:seq uint8{length b = len}) (st:words_state a) : words_state a =
let blocks = len / block_length a in
Lib.LoopCombinators.repeati blocks (update_block a len b) st | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 288,
"start_col": 0,
"start_line": 286
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len} ->
st: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"Lib.Sequence.length",
"Spec.Hash.Definitions.words_state",
"Lib.LoopCombinators.repeati",
"Hacl.Spec.SHA2.update_block",
"Prims.int",
"... | [] | false | false | false | false | false | let update_nblocks
(a: sha2_alg)
(len: len_lt_max_a_t a)
(b: seq uint8 {length b = len})
(st: words_state a)
: words_state a =
| let blocks = len / block_length a in
Lib.LoopCombinators.repeati blocks (update_block a len b) st | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.hash | val hash : len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8 (Spec.Hash.Definitions.hash_length a) | let hash (#a:sha2_alg) (len:len_lt_max_a_t a) (b:seq uint8{length b = len}) =
let len' : len_t a = mk_len_t a len in
let st = init a in
let st = update_nblocks a len b st in
let rem = len % block_length a in
let mb = Seq.slice b (len - rem) len in
let st = update_last a len' rem mb st in
finish a st | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 298,
"start_col": 0,
"start_line": 291
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Lib.Sequence.seq Lib.IntTypes.uint8 {Lib.Sequence.length b = len}
-> Lib.Sequence.lseq Lib.IntTypes.uint8 (Spec.Hash.Definitions.hash_length a) | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"Lib.Sequence.length",
"Hacl.Spec.SHA2.finish",
"Spec.Hash.Definitions.words_state",
"Hacl.Spec.SHA2.update_last",
"FStar.Seq.Base.seq",
... | [] | false | false | false | false | false | let hash (#a: sha2_alg) (len: len_lt_max_a_t a) (b: seq uint8 {length b = len}) =
| let len':len_t a = mk_len_t a len in
let st = init a in
let st = update_nblocks a len b st in
let rem = len % block_length a in
let mb = Seq.slice b (len - rem) len in
let st = update_last a len' rem mb st in
finish a st | false | |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.emit | val emit (a: sha2_alg) (h: lseq uint8 (8 * word_length a)) : Tot (lseq uint8 (hash_length a)) | val emit (a: sha2_alg) (h: lseq uint8 (8 * word_length a)) : Tot (lseq uint8 (hash_length a)) | let emit (a:sha2_alg) (h:lseq uint8 (8 * word_length a)) : Tot (lseq uint8 (hash_length a)) =
sub h 0 (hash_length a) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 271,
"start_col": 0,
"start_line": 270
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
h: Lib.Sequence.lseq Lib.IntTypes.uint8 (8 * Spec.Hash.Definitions.word_length a)
-> Lib.Sequence.lseq Lib.IntTypes.uint8 (Spec.Hash.Definitions.hash_length a) | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"FStar.Mul.op_Star",
"Spec.Hash.Definitions.word_length",
"Lib.Sequence.sub",
"Spec.Hash.Definitions.hash_length"
] | [] | false | false | false | false | false | let emit (a: sha2_alg) (h: lseq uint8 (8 * word_length a)) : Tot (lseq uint8 (hash_length a)) =
| sub h 0 (hash_length a) | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_cmp | val print_cmp (c: ocmp) (counter: int) (p: printer) : string | val print_cmp (c: ocmp) (counter: int) (p: printer) : string | let print_cmp (c:ocmp) (counter:int) (p:printer) : string =
let print_cmp_ops (o1:cmp_opr) (o2:cmp_opr) : string =
match o2 with
| CReg r -> " cmpld " ^ (print_first_cmp_opr o1 p) ^ ", " ^ (print_reg r p) ^ "\n"
| CImm n -> " cmpldi " ^ (print_first_cmp_opr o1 p) ^ ", " ^ (string_of_int n) ^ "\n"
in
... | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 84,
"end_line": 188,
"start_col": 0,
"start_line": 176
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: Vale.PPC64LE.Semantics_s.ocmp -> counter: Prims.int -> p: Vale.PPC64LE.Print_s.printer
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Semantics_s.ocmp",
"Prims.int",
"Vale.PPC64LE.Print_s.printer",
"Vale.PPC64LE.Machine_s.cmp_opr",
"Prims.op_Hat",
"Prims.string_of_int",
"Prims.string",
"Vale.PPC64LE.Machine_s.reg",
"Vale.PPC64LE.Print_s.print_first_cmp_opr",
"Vale.PPC64LE.Print_s.print_reg",
"Vale.PPC64LE.Machine... | [] | false | false | false | true | false | let print_cmp (c: ocmp) (counter: int) (p: printer) : string =
| let print_cmp_ops (o1 o2: cmp_opr) : string =
match o2 with
| CReg r -> " cmpld " ^ (print_first_cmp_opr o1 p) ^ ", " ^ (print_reg r p) ^ "\n"
| CImm n -> " cmpldi " ^ (print_first_cmp_opr o1 p) ^ ", " ^ (string_of_int n) ^ "\n"
in
match c with
| OEq o1 o2 -> print_cmp_ops o1 o2 ^ " beq " ^ "L" ^ string_of_int... | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.store_state | val store_state (a: sha2_alg) (hashw: words_state a) : Tot (lseq uint8 (8 * word_length a)) | val store_state (a: sha2_alg) (hashw: words_state a) : Tot (lseq uint8 (8 * word_length a)) | let store_state (a:sha2_alg) (hashw:words_state a) : Tot (lseq uint8 (8 * word_length a)) =
Lib.ByteSequence.uints_to_bytes_be #(word_t a) #SEC #8 hashw | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 267,
"start_col": 0,
"start_line": 266
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Hash.Definitions.sha2_alg -> hashw: Spec.Hash.Definitions.words_state a
-> Lib.Sequence.lseq Lib.IntTypes.uint8 (8 * Spec.Hash.Definitions.word_length a) | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.words_state",
"Lib.ByteSequence.uints_to_bytes_be",
"Spec.Hash.Definitions.word_t",
"Lib.IntTypes.SEC",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"FStar.Mul.op_Star",
"Spec.Hash.Definitions.word_length"
] | [] | false | false | false | false | false | let store_state (a: sha2_alg) (hashw: words_state a) : Tot (lseq uint8 (8 * word_length a)) =
| Lib.ByteSequence.uints_to_bytes_be #(word_t a) #SEC #8 hashw | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_block | val print_block (b: codes) (n: int) (p: printer) : string & int | val print_block (b: codes) (n: int) (p: printer) : string & int | let rec print_block (b:codes) (n:int) (p:printer) : string & int =
match b with
| Nil -> ("", n)
| head :: tail ->
let (head_str, n') = print_code head n p in
let (rest, n'') = print_block tail n' p in
(head_str ^ rest, n'')
and print_code (c:code) (n:int) (p:printer) : string & int =
match c with
... | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 219,
"start_col": 0,
"start_line": 190
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Vale.PPC64LE.Semantics_s.codes -> n: Prims.int -> p: Vale.PPC64LE.Print_s.printer
-> Prims.string * Prims.int | Prims.Tot | [
"total"
] | [
"print_block",
"print_code"
] | [
"Vale.PPC64LE.Semantics_s.codes",
"Prims.int",
"Vale.PPC64LE.Print_s.printer",
"FStar.Pervasives.Native.Mktuple2",
"Prims.string",
"Vale.PPC64LE.Semantics_s.code",
"Prims.list",
"Prims.op_Hat",
"FStar.Pervasives.Native.tuple2",
"Vale.PPC64LE.Print_s.print_block",
"Vale.PPC64LE.Print_s.print_code... | [
"mutual recursion"
] | false | false | false | true | false | let rec print_block (b: codes) (n: int) (p: printer) : string & int =
| match b with
| Nil -> ("", n)
| head :: tail ->
let head_str, n' = print_code head n p in
let rest, n'' = print_block tail n' p in
(head_str ^ rest, n'') | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_ins | val print_ins : ins: Vale.PPC64LE.Semantics_s.ins -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | let print_ins (ins:ins) (p:printer) =
let print_pair (o1 o2:string) =
o1 ^ ", " ^ o2
in
let print_triple (o1 o2 o3:string) =
o1 ^ ", " ^ o2 ^ ", " ^ o3
in
let print_quadruple (o1 o2 o3 o4:string) =
o1 ^ ", " ^ o2 ^ ", " ^ o3 ^ ", " ^ o4
in
let print_reg_pair (dst src:reg) =
print_pair (pri... | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 175,
"start_col": 0,
"start_line": 49
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ins: Vale.PPC64LE.Semantics_s.ins -> p: Vale.PPC64LE.Print_s.printer -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Semantics_s.ins",
"Vale.PPC64LE.Print_s.printer",
"Vale.PPC64LE.Machine_s.reg",
"Prims.op_Hat",
"Prims.int",
"Vale.PPC64LE.Machine_s.Mkmaddr",
"Vale.PPC64LE.Machine_s.simm16",
"Vale.PPC64LE.Machine_s.nsimm16",
"Vale.PPC64LE.Machine_s.bits64",
"Vale.PPC64LE.Machine_s.vec",
"Vale.PPC... | [] | false | false | false | true | false | let print_ins (ins: ins) (p: printer) =
| let print_pair (o1 o2: string) = o1 ^ ", " ^ o2 in
let print_triple (o1 o2 o3: string) = o1 ^ ", " ^ o2 ^ ", " ^ o3 in
let print_quadruple (o1 o2 o3 o4: string) = o1 ^ ", " ^ o2 ^ ", " ^ o3 ^ ", " ^ o4 in
let print_reg_pair (dst src: reg) = print_pair (print_reg dst p) (print_reg src p) in
let print_reg_mem (o1: reg) (... | false | |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.cmp_not | val cmp_not (o: ocmp) : ocmp | val cmp_not (o: ocmp) : ocmp | let cmp_not(o:ocmp) : ocmp =
match o with
| OEq o1 o2 -> ONe o1 o2
| ONe o1 o2 -> OEq o1 o2
| OLe o1 o2 -> OGt o1 o2
| OGe o1 o2 -> OLt o1 o2
| OLt o1 o2 -> OGe o1 o2
| OGt o1 o2 -> OLe o1 o2 | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 39,
"start_col": 0,
"start_line": 32
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | o: Vale.PPC64LE.Semantics_s.ocmp -> Vale.PPC64LE.Semantics_s.ocmp | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Semantics_s.ocmp",
"Vale.PPC64LE.Machine_s.cmp_opr",
"Vale.PPC64LE.Semantics_s.ONe",
"Vale.PPC64LE.Semantics_s.OEq",
"Vale.PPC64LE.Semantics_s.OGt",
"Vale.PPC64LE.Semantics_s.OLt",
"Vale.PPC64LE.Semantics_s.OGe",
"Vale.PPC64LE.Semantics_s.OLe"
] | [] | false | false | false | true | false | let cmp_not (o: ocmp) : ocmp =
| match o with
| OEq o1 o2 -> ONe o1 o2
| ONe o1 o2 -> OEq o1 o2
| OLe o1 o2 -> OGt o1 o2
| OGe o1 o2 -> OLt o1 o2
| OLt o1 o2 -> OGe o1 o2
| OGt o1 o2 -> OLe o1 o2 | false |
Hacl.Spec.SHA2.fst | Hacl.Spec.SHA2.load_last | val load_last
(a: sha2_alg)
(totlen_seq: lseq uint8 (len_length a))
(fin: nat{fin == block_length a \/ fin == 2 * block_length a})
(len: nat{len <= block_length a})
(b: bytes{S.length b = len})
: (block_t a & block_t a) | val load_last
(a: sha2_alg)
(totlen_seq: lseq uint8 (len_length a))
(fin: nat{fin == block_length a \/ fin == 2 * block_length a})
(len: nat{len <= block_length a})
(b: bytes{S.length b = len})
: (block_t a & block_t a) | let load_last (a:sha2_alg) (totlen_seq:lseq uint8 (len_length a))
(fin:nat{fin == block_length a \/ fin == 2 * block_length a})
(len:nat{len <= block_length a}) (b:bytes{S.length b = len}) :
(block_t a & block_t a)
=
let last = create (2 * block_length a) (u8 0) in
let last = update_sub last 0 len b in
... | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 10,
"end_line": 251,
"start_col": 0,
"start_line": 240
} | module Hacl.Spec.SHA2
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
let len_lt_max_a_t (a:sha2_alg) = len:nat{len `less_than_max_input_length` a}
let mk_len_t (a:sha2_alg) (len:len_lt... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.chec... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.sha2_alg ->
totlen_seq: Lib.Sequence.lseq Lib.IntTypes.uint8 (Spec.Hash.Definitions.len_length a) ->
fin:
Prims.nat
{ fin == Spec.Hash.Definitions.block_length a \/
fin == 2 * Spec.Hash.Definitions.block_length a } ->
len: Prims.nat{len <= Spec.Hash.Defi... | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Spec.Hash.Definitions.len_length",
"Prims.nat",
"Prims.l_or",
"Prims.eq2",
"Prims.int",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_disEquality",
"Spec.Hash.Definitions.block_length",
"FStar.Mul.op_Star",... | [] | false | false | false | false | false | let load_last
(a: sha2_alg)
(totlen_seq: lseq uint8 (len_length a))
(fin: nat{fin == block_length a \/ fin == 2 * block_length a})
(len: nat{len <= block_length a})
(b: bytes{S.length b = len})
: (block_t a & block_t a) =
| let last = create (2 * block_length a) (u8 0) in
let last = update_sub last 0 len b in
let last = last.[ len ] <- u8 0x80 in
let last = update_sub last (fin - len_length a) (len_length a) totlen_seq in
let b0 = sub last 0 (block_length a) in
let b1 = sub last (block_length a) (block_length a) in
(b0, b1) | false |
Vale.PPC64LE.Print_s.fst | Vale.PPC64LE.Print_s.print_code | val print_code (c: code) (n: int) (p: printer) : string & int | val print_code (c: code) (n: int) (p: printer) : string & int | let rec print_block (b:codes) (n:int) (p:printer) : string & int =
match b with
| Nil -> ("", n)
| head :: tail ->
let (head_str, n') = print_code head n p in
let (rest, n'') = print_block tail n' p in
(head_str ^ rest, n'')
and print_code (c:code) (n:int) (p:printer) : string & int =
match c with
... | {
"file_name": "vale/specs/hardware/Vale.PPC64LE.Print_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 219,
"start_col": 0,
"start_line": 190
} | module Vale.PPC64LE.Print_s
// Trusted code for producing assembly code
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Semantics_s
open FStar.IO
noeq type printer = {
reg_prefix : unit -> string;
vec_prefix : unit -> string;
vsr_prefix : unit -> string;
maddr : string -> string -> string;
const : ... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.Semantics_s.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IO.fst.checked",
"FStar.All.fst.checked"
],
"interface_file": fal... | [
{
"abbrev": false,
"full_module": "FStar.IO",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.Machine_s",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: Vale.PPC64LE.Semantics_s.code -> n: Prims.int -> p: Vale.PPC64LE.Print_s.printer
-> Prims.string * Prims.int | Prims.Tot | [
"total"
] | [
"print_block",
"print_code"
] | [
"Vale.PPC64LE.Semantics_s.code",
"Prims.int",
"Vale.PPC64LE.Print_s.printer",
"Vale.PPC64LE.Semantics_s.ins",
"FStar.Pervasives.Native.Mktuple2",
"Prims.string",
"Prims.op_Hat",
"Vale.PPC64LE.Print_s.print_ins",
"Prims.list",
"Vale.PPC64LE.Machine_s.precode",
"Vale.PPC64LE.Semantics_s.ocmp",
"... | [
"mutual recursion"
] | false | false | false | true | false | let rec print_code (c: code) (n: int) (p: printer) : string & int =
| match c with
| Ins ins -> (print_ins ins p ^ "\n", n)
| Block b -> print_block b n p
| IfElse cond true_code false_code ->
let n1 = n in
let n2 = n + 1 in
let cmp = print_cmp (cmp_not cond) n1 p in
let true_str, n' = print_code true_code (n + 2) p in
let branch = " b L" ^ string_of_int n2 ^ "\n" in
let lab... | false |
InterpreterTarget.fsti | InterpreterTarget.expr | val expr : Type0 | let expr = T.expr | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 17,
"end_line": 22,
"start_col": 0,
"start_line": 22
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Target.expr"
] | [] | false | false | false | true | true | let expr =
| T.expr | false | |
InterpreterTarget.fsti | InterpreterTarget.lam | val lam : a: Type -> Type | let lam a = A.ident & a | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple2",
"Ast.ident"
] | [] | false | false | false | true | true | let lam a =
| A.ident & a | false | |
InterpreterTarget.fsti | InterpreterTarget.readable_itype | val readable_itype : Type0 | let readable_itype = (i: itype { allow_reader_of_itype i == true }) | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 67,
"end_line": 45,
"start_col": 0,
"start_line": 45
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.itype",
"Prims.eq2",
"Prims.bool",
"InterpreterTarget.allow_reader_of_itype"
] | [] | false | false | false | true | true | let readable_itype =
| (i: itype{allow_reader_of_itype i == true}) | false | |
InterpreterTarget.fsti | InterpreterTarget.action | val action : Type0 | let action = T.action | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 21,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Target.action"
] | [] | false | false | false | true | true | let action =
| T.action | false | |
InterpreterTarget.fsti | InterpreterTarget.readable_dtyp | val readable_dtyp : Type0 | let readable_dtyp = (d: dtyp { allow_reader_of_dtyp d == true }) | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 64,
"end_line": 63,
"start_col": 0,
"start_line": 63
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.dtyp",
"Prims.eq2",
"Prims.bool",
"InterpreterTarget.allow_reader_of_dtyp"
] | [] | false | false | false | true | true | let readable_dtyp =
| (d: dtyp{allow_reader_of_dtyp d == true}) | false | |
InterpreterTarget.fsti | InterpreterTarget.allow_reader_of_itype | val allow_reader_of_itype (i: itype) : bool | val allow_reader_of_itype (i: itype) : bool | let allow_reader_of_itype (i:itype)
: bool
= match i with
| AllBytes
| AllZeros -> false
| _ -> true | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 15,
"end_line": 43,
"start_col": 0,
"start_line": 38
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: InterpreterTarget.itype -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.itype",
"Prims.bool"
] | [] | false | false | false | true | false | let allow_reader_of_itype (i: itype) : bool =
| match i with
| AllBytes | AllZeros -> false
| _ -> true | false |
InterpreterTarget.fsti | InterpreterTarget.non_empty_string | val non_empty_string : Type0 | let non_empty_string = s:string { s <> "" } | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 43,
"end_line": 65,
"start_col": 0,
"start_line": 65
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.b2t",
"Prims.op_disEquality"
] | [] | false | false | false | true | true | let non_empty_string =
| s: string{s <> ""} | false | |
InterpreterTarget.fsti | InterpreterTarget.decl | val decl:Type0 | val decl:Type0 | let decl : Type0 = either not_type_decl type_decl | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 49,
"end_line": 197,
"start_col": 0,
"start_line": 197
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.either",
"InterpreterTarget.not_type_decl",
"InterpreterTarget.type_decl"
] | [] | false | false | false | true | true | let decl:Type0 =
| either not_type_decl type_decl | false |
InterpreterTarget.fsti | InterpreterTarget.not_type_decl | val not_type_decl : Type0 | let not_type_decl = (d: T.decl { ~ (T.Type_decl? (fst d)) }) | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 60,
"end_line": 196,
"start_col": 0,
"start_line": 196
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Target.decl",
"Prims.l_not",
"Prims.b2t",
"Target.uu___is_Type_decl",
"FStar.Pervasives.Native.fst",
"Target.decl'",
"Target.decl_attributes"
] | [] | false | false | false | true | true | let not_type_decl =
| (d: T.decl{~(T.Type_decl? (fst d))}) | false | |
Vale.AES.AES256_helpers_BE.fst | Vale.AES.AES256_helpers_BE.lemma_reveal_expand_key_256 | val lemma_reveal_expand_key_256 (key: aes_key_word AES_256) (round: nat)
: Lemma
(expand_key_256 key round ==
(if round = 0
then Mkfour key.[ 3 ] key.[ 2 ] key.[ 1 ] key.[ 0 ]
else
if round = 1
then Mkfour key.[ 7 ] key.[ 6 ] key.[ 5 ] key.[ 4 ]
else round_key... | val lemma_reveal_expand_key_256 (key: aes_key_word AES_256) (round: nat)
: Lemma
(expand_key_256 key round ==
(if round = 0
then Mkfour key.[ 3 ] key.[ 2 ] key.[ 1 ] key.[ 0 ]
else
if round = 1
then Mkfour key.[ 7 ] key.[ 6 ] key.[ 5 ] key.[ 4 ]
else round_key... | let lemma_reveal_expand_key_256 (key:aes_key_word AES_256) (round:nat) : Lemma
(expand_key_256 key round == (
if round = 0 then Mkfour key.[3] key.[2] key.[1] key.[0]
else if round = 1 then Mkfour key.[7] key.[6] key.[5] key.[4]
else round_key_256 (expand_key_256 key (round - 2)) (expand_key_256 key (roun... | {
"file_name": "vale/code/crypto/aes/Vale.AES.AES256_helpers_BE.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 10,
"start_col": 0,
"start_line": 3
} | module Vale.AES.AES256_helpers_BE | {
"checked_file": "/",
"dependencies": [
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.AES.AES256_helpers_BE.fst"
} | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_BE_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | key: Vale.AES.AES_BE_s.aes_key_word Vale.AES.AES_common_s.AES_256 -> round: Prims.nat
-> FStar.Pervasives.Lemma
(ensures
Vale.AES.AES256_helpers_BE.expand_key_256 key round ==
(match round = 0 with
| true -> Vale.Def.Words_s.Mkfour key.[ 3 ] key.[ 2 ] key.[ 1 ] key.[ 0 ]
| _ ->
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.AES.AES_BE_s.aes_key_word",
"Vale.AES.AES_common_s.AES_256",
"Prims.nat",
"Vale.AES.AES256_helpers_BE.expand_key_256_reveal",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat32",
"Vale.AES.AES256_helpers_BE.expand_key_256",
"Prims.... | [] | true | false | true | false | false | let lemma_reveal_expand_key_256 (key: aes_key_word AES_256) (round: nat)
: Lemma
(expand_key_256 key round ==
(if round = 0
then Mkfour key.[ 3 ] key.[ 2 ] key.[ 1 ] key.[ 0 ]
else
if round = 1
then Mkfour key.[ 7 ] key.[ 6 ] key.[ 5 ] key.[ 4 ]
else round_key... | expand_key_256_reveal () | false |
FStar.Int8.fsti | FStar.Int8.n | val n : Prims.int | let n = 8 | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 20,
"start_col": 7,
"start_line": 20
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let n =
| 8 | false | |
FStar.Int8.fsti | FStar.Int8.eq | val eq (a b: t) : Tot bool | val eq (a b: t) : Tot bool | let eq (a:t) (b:t) : Tot bool = eq #n (v a) (v b) | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 114,
"start_col": 0,
"start_line": 114
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Int8.t",
"FStar.Int.eq",
"FStar.Int8.n",
"FStar.Int8.v",
"Prims.bool"
] | [] | false | false | false | true | false | let eq (a b: t) : Tot bool =
| eq #n (v a) (v b) | false |
FStar.Int8.fsti | FStar.Int8.gt | val gt (a b: t) : Tot bool | val gt (a b: t) : Tot bool | let gt (a:t) (b:t) : Tot bool = gt #n (v a) (v b) | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 115,
"start_col": 0,
"start_line": 115
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Int8.t",
"FStar.Int.gt",
"FStar.Int8.n",
"FStar.Int8.v",
"Prims.bool"
] | [] | false | false | false | true | false | let gt (a b: t) : Tot bool =
| gt #n (v a) (v b) | false |
FStar.Int8.fsti | FStar.Int8.gte | val gte (a b: t) : Tot bool | val gte (a b: t) : Tot bool | let gte (a:t) (b:t) : Tot bool = gte #n (v a) (v b) | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 116,
"start_col": 0,
"start_line": 116
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Int8.t",
"FStar.Int.gte",
"FStar.Int8.n",
"FStar.Int8.v",
"Prims.bool"
] | [] | false | false | false | true | false | let gte (a b: t) : Tot bool =
| gte #n (v a) (v b) | false |
Vale.AES.AES256_helpers_BE.fst | Vale.AES.AES256_helpers_BE.lemma_expand_append | val lemma_expand_append (key: aes_key_word AES_256) (size1 size2: nat)
: Lemma (requires size1 <= size2 /\ size2 <= 60)
(ensures equal (expand_key AES_256 key size1) (slice (expand_key AES_256 key size2) 0 size1))
(decreases size2) | val lemma_expand_append (key: aes_key_word AES_256) (size1 size2: nat)
: Lemma (requires size1 <= size2 /\ size2 <= 60)
(ensures equal (expand_key AES_256 key size1) (slice (expand_key AES_256 key size2) 0 size1))
(decreases size2) | let rec lemma_expand_append (key:aes_key_word AES_256) (size1:nat) (size2:nat) : Lemma
(requires size1 <= size2 /\ size2 <= 60)
(ensures equal (expand_key AES_256 key size1) (slice (expand_key AES_256 key size2) 0 size1))
(decreases size2)
=
expand_key_reveal ();
if size1 < size2 then lemma_expand_append ke... | {
"file_name": "vale/code/crypto/aes/Vale.AES.AES256_helpers_BE.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 57,
"start_col": 0,
"start_line": 51
} | module Vale.AES.AES256_helpers_BE
let lemma_reveal_expand_key_256 (key:aes_key_word AES_256) (round:nat) : Lemma
(expand_key_256 key round == (
if round = 0 then Mkfour key.[3] key.[2] key.[1] key.[0]
else if round = 1 then Mkfour key.[7] key.[6] key.[5] key.[4]
else round_key_256 (expand_key_256 key (ro... | {
"checked_file": "/",
"dependencies": [
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.AES.AES256_helpers_BE.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_BE_s",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
key: Vale.AES.AES_BE_s.aes_key_word Vale.AES.AES_common_s.AES_256 ->
size1: Prims.nat ->
size2: Prims.nat
-> FStar.Pervasives.Lemma (requires size1 <= size2 /\ size2 <= 60)
(ensures
FStar.Seq.Base.equal (Vale.AES.AES_BE_s.expand_key Vale.AES.AES_common_s.AES_256 key size1)
(FStar.... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Vale.AES.AES_BE_s.aes_key_word",
"Vale.AES.AES_common_s.AES_256",
"Prims.nat",
"Prims.op_LessThan",
"Vale.AES.AES256_helpers_BE.lemma_expand_append",
"Prims.op_Subtraction",
"Prims.bool",
"Prims.unit",
"Vale.AES.AES_BE_s.expand_key_reveal",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqua... | [
"recursion"
] | false | false | true | false | false | let rec lemma_expand_append (key: aes_key_word AES_256) (size1 size2: nat)
: Lemma (requires size1 <= size2 /\ size2 <= 60)
(ensures equal (expand_key AES_256 key size1) (slice (expand_key AES_256 key size2) 0 size1))
(decreases size2) =
| expand_key_reveal ();
if size1 < size2 then lemma_expand_append key size1 (size2 - 1) | false |
FStar.Int8.fsti | FStar.Int8.lt | val lt (a b: t) : Tot bool | val lt (a b: t) : Tot bool | let lt (a:t) (b:t) : Tot bool = lt #n (v a) (v b) | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 117,
"start_col": 0,
"start_line": 117
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Int8.t",
"FStar.Int.lt",
"FStar.Int8.n",
"FStar.Int8.v",
"Prims.bool"
] | [] | false | false | false | true | false | let lt (a b: t) : Tot bool =
| lt #n (v a) (v b) | false |
Vale.AES.AES256_helpers_BE.fst | Vale.AES.AES256_helpers_BE.lemma_simd_round_key | val lemma_simd_round_key (prev0 prev1:quad32) (rcon:nat32) (round:int) : Lemma
(simd_round_key_256 prev0 prev1 rcon round == round_key_256_rcon prev0 prev1 rcon round) | val lemma_simd_round_key (prev0 prev1:quad32) (rcon:nat32) (round:int) : Lemma
(simd_round_key_256 prev0 prev1 rcon round == round_key_256_rcon prev0 prev1 rcon round) | let lemma_simd_round_key (prev0 prev1:quad32) (rcon:nat32) (round:int) =
quad32_xor_reveal ();
commute_rot_word_sub_word prev1.lo0 rcon;
Vale.Arch.Types.xor_lemmas () | {
"file_name": "vale/code/crypto/aes/Vale.AES.AES256_helpers_BE.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 84,
"start_col": 0,
"start_line": 81
} | module Vale.AES.AES256_helpers_BE
let lemma_reveal_expand_key_256 (key:aes_key_word AES_256) (round:nat) : Lemma
(expand_key_256 key round == (
if round = 0 then Mkfour key.[3] key.[2] key.[1] key.[0]
else if round = 1 then Mkfour key.[7] key.[6] key.[5] key.[4]
else round_key_256 (expand_key_256 key (ro... | {
"checked_file": "/",
"dependencies": [
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.AES.AES256_helpers_BE.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_BE_s",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 3,
"initial_ifuel": 3,
"max_fuel": 3,
"max_ifuel": 3,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
prev0: Vale.Def.Types_s.quad32 ->
prev1: Vale.Def.Types_s.quad32 ->
rcon: Vale.Def.Types_s.nat32 ->
round: Prims.int
-> FStar.Pervasives.Lemma
(ensures
Vale.AES.AES256_helpers_BE.simd_round_key_256 prev0 prev1 rcon round ==
Vale.AES.AES256_helpers_BE.round_key_256_rcon prev0 prev1 rco... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat32",
"Prims.int",
"Vale.Arch.Types.xor_lemmas",
"Prims.unit",
"Vale.AES.AES_BE_s.commute_rot_word_sub_word",
"Vale.Def.Words_s.__proj__Mkfour__item__lo0",
"Vale.Def.Types_s.quad32_xor_reveal"
] | [] | true | false | true | false | false | let lemma_simd_round_key (prev0 prev1: quad32) (rcon: nat32) (round: int) =
| quad32_xor_reveal ();
commute_rot_word_sub_word prev1.lo0 rcon;
Vale.Arch.Types.xor_lemmas () | false |
FStar.Int8.fsti | FStar.Int8.lte | val lte (a b: t) : Tot bool | val lte (a b: t) : Tot bool | let lte (a:t) (b:t) : Tot bool = lte #n (v a) (v b) | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 118,
"start_col": 0,
"start_line": 118
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Int8.t",
"FStar.Int.lte",
"FStar.Int8.n",
"FStar.Int8.v",
"Prims.bool"
] | [] | false | false | false | true | false | let lte (a b: t) : Tot bool =
| lte #n (v a) (v b) | false |
Vale.AES.AES256_helpers_BE.fst | Vale.AES.AES256_helpers_BE.lemma_expand_key_256_0 | val lemma_expand_key_256_0 (key: aes_key_word AES_256)
: Lemma (equal key (expand_key AES_256 key 8)) | val lemma_expand_key_256_0 (key: aes_key_word AES_256)
: Lemma (equal key (expand_key AES_256 key 8)) | let lemma_expand_key_256_0 (key:aes_key_word AES_256) : Lemma
(equal key (expand_key AES_256 key 8))
=
expand_key_reveal () | {
"file_name": "vale/code/crypto/aes/Vale.AES.AES256_helpers_BE.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 16,
"start_col": 0,
"start_line": 13
} | module Vale.AES.AES256_helpers_BE
let lemma_reveal_expand_key_256 (key:aes_key_word AES_256) (round:nat) : Lemma
(expand_key_256 key round == (
if round = 0 then Mkfour key.[3] key.[2] key.[1] key.[0]
else if round = 1 then Mkfour key.[7] key.[6] key.[5] key.[4]
else round_key_256 (expand_key_256 key (ro... | {
"checked_file": "/",
"dependencies": [
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.AES.AES256_helpers_BE.fst"
} | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_BE_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 8,
"initial_ifuel": 0,
"max_fuel": 8,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | key: Vale.AES.AES_BE_s.aes_key_word Vale.AES.AES_common_s.AES_256
-> FStar.Pervasives.Lemma
(ensures
FStar.Seq.Base.equal key (Vale.AES.AES_BE_s.expand_key Vale.AES.AES_common_s.AES_256 key 8)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.AES.AES_BE_s.aes_key_word",
"Vale.AES.AES_common_s.AES_256",
"Vale.AES.AES_BE_s.expand_key_reveal",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"FStar.Seq.Base.equal",
"Vale.Def.Types_s.nat32",
"Vale.AES.AES_BE_s.expand_key",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let lemma_expand_key_256_0 (key: aes_key_word AES_256)
: Lemma (equal key (expand_key AES_256 key 8)) =
| expand_key_reveal () | false |
FStar.Int8.fsti | FStar.Int8.op_Slash_Hat | val op_Slash_Hat : a: FStar.Int8.t -> b: FStar.Int8.t{FStar.Int8.v b <> 0} -> Prims.Pure FStar.Int8.t | let op_Slash_Hat = div | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 29,
"end_line": 124,
"start_col": 7,
"start_line": 124
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t{FStar.Int8.v b <> 0} -> Prims.Pure FStar.Int8.t | Prims.Pure | [] | [] | [
"FStar.Int8.div"
] | [] | false | false | false | false | false | let op_Slash_Hat =
| div | false | |
FStar.Int8.fsti | FStar.Int8.op_Subtraction_Hat | val op_Subtraction_Hat : a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.Pure FStar.Int8.t | let op_Subtraction_Hat = sub | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 122,
"start_col": 7,
"start_line": 122
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.Pure FStar.Int8.t | Prims.Pure | [] | [] | [
"FStar.Int8.sub"
] | [] | false | false | false | false | false | let op_Subtraction_Hat =
| sub | false | |
FStar.Int8.fsti | FStar.Int8.op_Star_Hat | val op_Star_Hat : a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.Pure FStar.Int8.t | let op_Star_Hat = mul | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 123,
"start_col": 7,
"start_line": 123
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.Pure FStar.Int8.t | Prims.Pure | [] | [] | [
"FStar.Int8.mul"
] | [] | false | false | false | false | false | let op_Star_Hat =
| mul | false | |
FStar.Int8.fsti | FStar.Int8.op_Plus_Hat | val op_Plus_Hat : a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.Pure FStar.Int8.t | let op_Plus_Hat = add | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 121,
"start_col": 7,
"start_line": 121
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t -> Prims.Pure FStar.Int8.t | Prims.Pure | [] | [] | [
"FStar.Int8.add"
] | [] | false | false | false | false | false | let op_Plus_Hat =
| add | false | |
FStar.Int8.fsti | FStar.Int8.op_Hat_Hat | val op_Hat_Hat : x: FStar.Int8.t -> y: FStar.Int8.t -> Prims.Pure FStar.Int8.t | let op_Hat_Hat = logxor | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 126,
"start_col": 7,
"start_line": 126
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.Int8.t -> y: FStar.Int8.t -> Prims.Pure FStar.Int8.t | Prims.Pure | [] | [] | [
"FStar.Int8.logxor"
] | [] | false | false | false | false | false | let op_Hat_Hat =
| logxor | false | |
FStar.Int8.fsti | FStar.Int8.op_Percent_Hat | val op_Percent_Hat : a: FStar.Int8.t -> b: FStar.Int8.t{FStar.Int8.v b <> 0} -> Prims.Pure FStar.Int8.t | let op_Percent_Hat = rem | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 125,
"start_col": 7,
"start_line": 125
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> b: FStar.Int8.t{FStar.Int8.v b <> 0} -> Prims.Pure FStar.Int8.t | Prims.Pure | [] | [] | [
"FStar.Int8.rem"
] | [] | false | false | false | false | false | let op_Percent_Hat =
| rem | false | |
Vale.AES.AES256_helpers_BE.fst | Vale.AES.AES256_helpers_BE.lemma_expand_key_256 | val lemma_expand_key_256 (key:seq nat32) (size:nat) : Lemma
(requires size <= 15 /\ is_aes_key_word AES_256 key)
(ensures (
let s = key_schedule_to_round_keys size (expand_key AES_256 key 60) in
(forall (i:nat).{:pattern (expand_key_256 key i)} i < size ==> expand_key_256 key i == s.[i])
)) | val lemma_expand_key_256 (key:seq nat32) (size:nat) : Lemma
(requires size <= 15 /\ is_aes_key_word AES_256 key)
(ensures (
let s = key_schedule_to_round_keys size (expand_key AES_256 key 60) in
(forall (i:nat).{:pattern (expand_key_256 key i)} i < size ==> expand_key_256 key i == s.[i])
)) | let rec lemma_expand_key_256 (key:seq nat32) (size:nat) =
lemma_expand_append key (4 * size) 60;
if size = 0 then () else
let i = size - 1 in
lemma_expand_key_256 key i;
lemma_reveal_expand_key_256 key i;
if i < 2 then
(
lemma_expand_append key 4 60;
lemma_expand_append key 8 60;
lemma_expand_... | {
"file_name": "vale/code/crypto/aes/Vale.AES.AES256_helpers_BE.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 77,
"start_col": 0,
"start_line": 60
} | module Vale.AES.AES256_helpers_BE
let lemma_reveal_expand_key_256 (key:aes_key_word AES_256) (round:nat) : Lemma
(expand_key_256 key round == (
if round = 0 then Mkfour key.[3] key.[2] key.[1] key.[0]
else if round = 1 then Mkfour key.[7] key.[6] key.[5] key.[4]
else round_key_256 (expand_key_256 key (ro... | {
"checked_file": "/",
"dependencies": [
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.AES.AES256_helpers_BE.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_BE_s",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 -> size: Prims.nat
-> FStar.Pervasives.Lemma
(requires size <= 15 /\ Vale.AES.AES_BE_s.is_aes_key_word Vale.AES.AES_common_s.AES_256 key)
(ensures
(let s =
Vale.AES.AES_BE_s.key_schedule_to_round_keys size
(Vale.AES.AES_BE_s.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Prims.op_LessThan",
"Vale.AES.AES256_helpers_BE.lemma_expand_key_256_0",
"Prims.unit",
"Vale.AES.AES256_helpers_BE.lemma_expand_append",
"Vale.AES.AES256_helpers_BE.lemma_expand_key_256_... | [
"recursion"
] | false | false | true | false | false | let rec lemma_expand_key_256 (key: seq nat32) (size: nat) =
| lemma_expand_append key (4 * size) 60;
if size = 0
then ()
else
let i = size - 1 in
lemma_expand_key_256 key i;
lemma_reveal_expand_key_256 key i;
if i < 2
then
(lemma_expand_append key 4 60;
lemma_expand_append key 8 60;
lemma_expand_key_256_0 key)
else
(lemma_expand_append key (4 * i) ... | false |
FStar.Int8.fsti | FStar.Int8.op_Less_Less_Hat | val op_Less_Less_Hat : a: FStar.Int8.t -> s: FStar.UInt32.t -> Prims.Pure FStar.Int8.t | let op_Less_Less_Hat = shift_left | {
"file_name": "ulib/FStar.Int8.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 129,
"start_col": 7,
"start_line": 129
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int8.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Int8.t -> s: FStar.UInt32.t -> Prims.Pure FStar.Int8.t | Prims.Pure | [] | [] | [
"FStar.Int8.shift_left"
] | [] | false | false | false | false | false | let op_Less_Less_Hat =
| shift_left | false | |
InterpreterTarget.fsti | InterpreterTarget.allow_reader_of_dtyp | val allow_reader_of_dtyp (d: dtyp) : Tot bool | val allow_reader_of_dtyp (d: dtyp) : Tot bool | let allow_reader_of_dtyp (d: dtyp) : Tot bool =
match d with
| DT_IType i -> allow_reader_of_itype i
| DT_App readable _ _ -> readable | {
"file_name": "src/3d/InterpreterTarget.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 35,
"end_line": 61,
"start_col": 0,
"start_line": 58
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Target.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.All.fst.checked",
"Binding.fsti.checked",
"Ast.fst.checked"
],
"interface_file": false,
"source_file": "InterpreterTarget.fsti"
} | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | d: InterpreterTarget.dtyp -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.dtyp",
"InterpreterTarget.itype",
"InterpreterTarget.allow_reader_of_itype",
"Prims.bool",
"Ast.ident",
"Prims.list",
"InterpreterTarget.expr"
] | [] | false | false | false | true | false | let allow_reader_of_dtyp (d: dtyp) : Tot bool =
| match d with
| DT_IType i -> allow_reader_of_itype i
| DT_App readable _ _ -> readable | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.