Skip to content

Commit 43dfe79

Browse files
hanno-beckermkannwischer
authored andcommitted
Tweak wording of serial-FIPS202 config
Signed-off-by: Hanno Becker <[email protected]>
1 parent 64b5f9d commit 43dfe79

14 files changed

+70
-14
lines changed

examples/basic_deterministic/mlkem_native/custom_no_randomized_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@
509509
/******************************************************************************
510510
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
511511
*
512-
* Description: If this option is set, batched Keccak operations will be
512+
* Description: Set this to use a FIPS202 implementation with global state
513+
* that supports only one active Keccak computation at a time
514+
* (e.g. some hardware accelerators).
515+
*
516+
* If this option is set, batched Keccak operations are
513517
* disabled for rejection sampling during matrix generation.
514518
* Instead, matrix entries will be generated one at a time.
515519
*

mlkem/src/config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@
509509
/******************************************************************************
510510
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
511511
*
512-
* Description: If this option is set, batched Keccak operations will be
512+
* Description: Set this to use a FIPS202 implementation with global state
513+
* that supports only one active Keccak computation at a time
514+
* (e.g. some hardware accelerators).
515+
*
516+
* If this option is set, batched Keccak operations are
513517
* disabled for rejection sampling during matrix generation.
514518
* Instead, matrix entries will be generated one at a time.
515519
*

test/break_pct_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,11 @@ static MLK_INLINE int mlk_break_pct(void)
313313
/******************************************************************************
314314
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
315315
*
316-
* Description: If this option is set, batched Keccak operations will be
316+
* Description: Set this to use a FIPS202 implementation with global state
317+
* that supports only one active Keccak computation at a time
318+
* (e.g. some hardware accelerators).
319+
*
320+
* If this option is set, batched Keccak operations are
317321
* disabled for rejection sampling during matrix generation.
318322
* Instead, matrix entries will be generated one at a time.
319323
*

test/custom_memcpy_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,11 @@ static MLK_INLINE void *mlk_memcpy(void *dest, const void *src, size_t n)
466466
/******************************************************************************
467467
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
468468
*
469-
* Description: If this option is set, batched Keccak operations will be
469+
* Description: Set this to use a FIPS202 implementation with global state
470+
* that supports only one active Keccak computation at a time
471+
* (e.g. some hardware accelerators).
472+
*
473+
* If this option is set, batched Keccak operations are
470474
* disabled for rejection sampling during matrix generation.
471475
* Instead, matrix entries will be generated one at a time.
472476
*

test/custom_memset_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,11 @@ static MLK_INLINE void *mlk_memset(void *s, int c, size_t n)
465465
/******************************************************************************
466466
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
467467
*
468-
* Description: If this option is set, batched Keccak operations will be
468+
* Description: Set this to use a FIPS202 implementation with global state
469+
* that supports only one active Keccak computation at a time
470+
* (e.g. some hardware accelerators).
471+
*
472+
* If this option is set, batched Keccak operations are
469473
* disabled for rejection sampling during matrix generation.
470474
* Instead, matrix entries will be generated one at a time.
471475
*

test/custom_native_capability_config_0.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,11 @@ static MLK_INLINE int mlk_sys_check_capability(mlk_sys_cap cap)
366366
/******************************************************************************
367367
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
368368
*
369-
* Description: If this option is set, batched Keccak operations will be
369+
* Description: Set this to use a FIPS202 implementation with global state
370+
* that supports only one active Keccak computation at a time
371+
* (e.g. some hardware accelerators).
372+
*
373+
* If this option is set, batched Keccak operations are
370374
* disabled for rejection sampling during matrix generation.
371375
* Instead, matrix entries will be generated one at a time.
372376
*

test/custom_native_capability_config_1.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,11 @@ static MLK_INLINE int mlk_sys_check_capability(mlk_sys_cap cap)
365365
/******************************************************************************
366366
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
367367
*
368-
* Description: If this option is set, batched Keccak operations will be
368+
* Description: Set this to use a FIPS202 implementation with global state
369+
* that supports only one active Keccak computation at a time
370+
* (e.g. some hardware accelerators).
371+
*
372+
* If this option is set, batched Keccak operations are
369373
* disabled for rejection sampling during matrix generation.
370374
* Instead, matrix entries will be generated one at a time.
371375
*

test/custom_native_capability_config_CPUID_AVX2.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,11 @@ static MLK_INLINE int mlk_sys_check_capability(mlk_sys_cap cap)
397397
/******************************************************************************
398398
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
399399
*
400-
* Description: If this option is set, batched Keccak operations will be
400+
* Description: Set this to use a FIPS202 implementation with global state
401+
* that supports only one active Keccak computation at a time
402+
* (e.g. some hardware accelerators).
403+
*
404+
* If this option is set, batched Keccak operations are
401405
* disabled for rejection sampling during matrix generation.
402406
* Instead, matrix entries will be generated one at a time.
403407
*

test/custom_native_capability_config_ID_AA64PFR1_EL1.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,11 @@ static MLK_INLINE int mlk_sys_check_capability(mlk_sys_cap cap)
384384
/******************************************************************************
385385
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
386386
*
387-
* Description: If this option is set, batched Keccak operations will be
387+
* Description: Set this to use a FIPS202 implementation with global state
388+
* that supports only one active Keccak computation at a time
389+
* (e.g. some hardware accelerators).
390+
*
391+
* If this option is set, batched Keccak operations are
388392
* disabled for rejection sampling during matrix generation.
389393
* Instead, matrix entries will be generated one at a time.
390394
*

test/custom_randombytes_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,11 @@ static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
362362
/******************************************************************************
363363
* Name: MLK_CONFIG_SERIAL_FIPS202_ONLY
364364
*
365-
* Description: If this option is set, batched Keccak operations will be
365+
* Description: Set this to use a FIPS202 implementation with global state
366+
* that supports only one active Keccak computation at a time
367+
* (e.g. some hardware accelerators).
368+
*
369+
* If this option is set, batched Keccak operations are
366370
* disabled for rejection sampling during matrix generation.
367371
* Instead, matrix entries will be generated one at a time.
368372
*

0 commit comments

Comments
 (0)