Skip to content

Commit

Permalink
created permutations subdir for keccak-fips
Browse files Browse the repository at this point in the history
  • Loading branch information
falko-strenzke committed Jun 13, 2023
1 parent d1a15ea commit 6833325
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/build-data/policy/bsi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ sha2_32_x86
sha2_32_armv8
sha2_32_bmi2
sha2_64_bmi2
sha3_bmi2
keccak_fips_bmi2

# entropy sources
getentropy
Expand Down
2 changes: 1 addition & 1 deletion src/build-data/policy/modern.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ sha2_32_x86
sha2_32_armv8
sha2_32_bmi2
sha2_64_bmi2
sha3_bmi2
keccak_fips_bmi2

simd

Expand Down
2 changes: 1 addition & 1 deletion src/build-data/policy/nist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ sha2_32_x86
sha2_32_armv8
sha2_32_bmi2
sha2_64_bmi2
sha3_bmi2
keccak_fips_bmi2

# modes
ghash_cpu
Expand Down
2 changes: 1 addition & 1 deletion src/lib/hash/keccak/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ name -> "Keccak"
</module_info>

<requires>
sha3
keccak_fips
</requires>
5 changes: 5 additions & 0 deletions src/lib/hash/sha3/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ SHA3 -> 20161018
<module_info>
name -> "SHA-3"
</module_info>


<requires>
keccak_fips
</requires>
2 changes: 1 addition & 1 deletion src/lib/hash/shake/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ name -> "SHAKE"
</module_info>

<requires>
sha3
keccak_fips
</requires>
2 changes: 1 addition & 1 deletion src/lib/mac/kmac/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ name -> "KMAC"
</module_info>

<requires>
sha3
keccak_fips
</requires>

7 changes: 7 additions & 0 deletions src/lib/permutations/keccak_fips/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<defines>
KECCAK_FIPS -> 20230613
</defines>

<module_info>
name -> "Keccak-FIPS"
</module_info>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Keccak_FIPS final {
void permute();

private:
#if defined(BOTAN_HAS_SHA3_BMI2)
#if defined(BOTAN_HAS_KECCAK_FIPS_BMI2)
static void permute_bmi2(uint64_t A[25]);
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<defines>
SHA3_BMI2 -> 20190117
KECCAK_FIPS_BMI2 -> 20230612
</defines>

<module_info>
name -> "SHA-3 BMI2"
brief -> "SHA-3 using BMI2 instructions"
name -> "KECCAK-FIPS BMI2"
brief -> "KECCAK-FIPS for SHA-3-related functions using BMI2 instructions"
</module_info>

<isa>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/stream/shake_cipher/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ brief -> "SHAKE-128 and SHAKE-256 XOF presented as stream ciphers"
</module_info>

<requires>
sha3
keccak_fips
</requires>

0 comments on commit 6833325

Please sign in to comment.