-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2787db2
commit 0504dae
Showing
6 changed files
with
75 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from Jasmin require import JArray. | ||
|
||
clone export PolyArray as Array2 with op size <- 2. |
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,3 @@ | ||
from Jasmin require import JWord_array. | ||
|
||
clone export WArray as WArray1 with op size <- 1. |
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,3 @@ | ||
from Jasmin require import JWord_array. | ||
|
||
clone export WArray as WArray2 with op size <- 2. |
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,3 @@ | ||
from Jasmin require import JWord_array. | ||
|
||
clone export WArray as WArray4 with op size <- 4. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
require import AllCore IntDiv List. | ||
from Jasmin require import JModel. | ||
|
||
require import FIPS202_Keccakf1600. | ||
require import Keccak1600_Spec Keccakf1600_Spec. | ||
|
||
print Keccak1600_Spec. | ||
require import Jkem_avx2. | ||
|
||
print Jkem_avx2. | ||
|
||
require import Array1 Array2 Array32 Array64. | ||
|
||
(* | ||
hoare sha3_256A_M1184_h _in: | ||
M(Syscall)._sha3_256A_M1184 | ||
: in_0 = _in ==> to_list res = SHA3_256 _in. | ||
*) | ||
|
||
hoare sha3_512A_A32_h _in: | ||
M(Syscall)._sha3_512A_A32 | ||
: in_0 = _in | ||
==> to_list res = SHA3_512 (to_list _in). | ||
admitted. | ||
|
||
(* | ||
hoare shake256_M32__M32_M1088_h _in0 _in1: | ||
M(Syscall)._shake256_M32__M32_M1088 | ||
: in0 = _in0 /\ in1 = _in1 | ||
==> res = SHAKE256 (to_list _in) 32. | ||
admitted. | ||
*) | ||
|
||
(* | ||
_shake256x4_A128__A32_A1 | ||
*) | ||
|
||
(* | ||
hoare shake128_absorb_A32_A2_h _seed _pos: | ||
M(Syscall)._shake128_absorb_A32_A2 | ||
: seed = _seed /\ pos = _pos | ||
==> res = stavx2_from_st25 (SHAKE128_ABSORB (to_list _seed ++ to_list _pos)). | ||
admitted. | ||
*) | ||
|
||
(* | ||
_shake128x4_absorb_A32_A2 | ||
*) | ||
|
||
(* | ||
_shake128_squeeze3blocks | ||
*) | ||
|
||
(* | ||
_shake128_next_state | ||
*) | ||
|
||
(* | ||
_shake128x4_squeeze3blocks | ||
*) | ||
|