-
Notifications
You must be signed in to change notification settings - Fork 20
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
43fd681
commit a283669
Showing
12 changed files
with
37 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from Jade require "common/keccak/keccak1600/amd64/avx2/keccak1600.jinc" | ||
|
||
inline fn __shake128_avx2(reg u64 out outlen in inlen) | ||
inline fn __shake128_avx2(reg u64 out outlen in inlen, #msf reg u64 ms) | ||
{ | ||
reg u64 rate; | ||
reg u8 trail_byte; | ||
|
||
trail_byte = 0x1F; | ||
rate = (1344/8); | ||
|
||
__keccak1600_avx2(out, outlen, in, inlen, trail_byte, rate); | ||
__keccak1600_avx2(out, outlen, in, inlen, trail_byte, rate, ms); | ||
} | ||
|
||
|
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from Jade require "common/keccak/keccak1600/amd64/avx2/keccak1600.jinc" | ||
|
||
inline fn __shake256_avx2(reg u64 out outlen in inlen) | ||
inline fn __shake256_avx2(reg u64 out outlen in inlen, #msf reg u64 ms) | ||
{ | ||
reg u64 rate; | ||
reg u8 trail_byte; | ||
|
||
trail_byte = 0x1F; | ||
rate = (1088/8); | ||
|
||
__keccak1600_avx2(out, outlen, in, inlen, trail_byte, rate); | ||
__keccak1600_avx2(out, outlen, in, inlen, trail_byte, rate, ms); | ||
} | ||
|
||
|
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
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