-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Init-Absorb-Squeeze* API in ML-KEM (#220)
Enabling the incremental (nblocks) API for Shake128 (scalar and avx2) in ml-kem. --------- Co-authored-by: Karthikeyan Bhargavan <[email protected]>
- Loading branch information
1 parent
9850114
commit 700700f
Showing
33 changed files
with
9,458 additions
and
4,747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
proofs/fstar/extraction/Libcrux.Digest.Incremental_x4.fsti
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module Libcrux.Digest.Incremental_x4 | ||
#set-options "--fuel 0 --ifuel 1 --z3rlimit 15" | ||
open Core | ||
open FStar.Mul | ||
|
||
val t_Shake128StateX4:Type | ||
|
||
val impl__Shake128StateX4__absorb_final | ||
(v_N: usize) | ||
(self: t_Shake128StateX4) | ||
(input: t_Array (t_Slice u8) v_N) | ||
: Prims.Pure t_Shake128StateX4 Prims.l_True (fun _ -> Prims.l_True) | ||
|
||
val impl__Shake128StateX4__free_memory (self: t_Shake128StateX4) | ||
: Prims.Pure Prims.unit Prims.l_True (fun _ -> Prims.l_True) | ||
|
||
val impl__Shake128StateX4__new: Prims.unit | ||
-> Prims.Pure t_Shake128StateX4 Prims.l_True (fun _ -> Prims.l_True) | ||
|
||
val impl__Shake128StateX4__squeeze_blocks (v_N v_M: usize) (self: t_Shake128StateX4) | ||
: Prims.Pure (t_Shake128StateX4 & t_Array (t_Array u8 v_N) v_M) | ||
Prims.l_True | ||
(fun _ -> Prims.l_True) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.