Skip to content

Commit 63b5884

Browse files
committed
CI: Exercise MLK_CONFIG_SERIAL_FIPS202_ONLY option
Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent 8767dc5 commit 63b5884

File tree

4 files changed

+496
-1
lines changed

4 files changed

+496
-1
lines changed

.github/actions/config-variations/action.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
description: 'GitHub token'
88
required: true
99
tests:
10-
description: 'List of tests to run (space-separated IDs) or "all" for all tests. Available IDs: pct-enabled, pct-enabled-broken, custom-zeroize, no-asm, custom-randombytes, custom-memcpy, custom-memset, custom-stdlib'
10+
description: 'List of tests to run (space-separated IDs) or "all" for all tests. Available IDs: pct-enabled, pct-enabled-broken, custom-zeroize, no-asm, custom-randombytes, custom-memcpy, custom-memset, custom-stdlib, serial-fips202'
1111
required: false
1212
default: 'all'
1313
opt:
@@ -123,3 +123,16 @@ runs:
123123
acvp: true
124124
opt: ${{ inputs.opt }}
125125
examples: false # Some examples use a custom config themselves
126+
- name: "Serial FIPS202 (no batched Keccak)"
127+
if: ${{ inputs.tests == 'all' || contains(inputs.tests, 'serial-fips202') }}
128+
uses: ./.github/actions/multi-functest
129+
with:
130+
gh_token: ${{ inputs.gh_token }}
131+
compile_mode: native
132+
cflags: "-std=c11 -D_GNU_SOURCE -DMLD_CONFIG_FILE=\\\\\\\"../../test/serial_fips202_config.h\\\\\\\" -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
133+
ldflags: "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
134+
func: true
135+
kat: true
136+
acvp: true
137+
opt: ${{ inputs.opt }}
138+
examples: false # Some examples use a custom config themselves

BIBLIOGRAPHY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ source code and documentation.
3030
- [test/custom_stdlib_config.h](test/custom_stdlib_config.h)
3131
- [test/custom_zeroize_config.h](test/custom_zeroize_config.h)
3232
- [test/no_asm_config.h](test/no_asm_config.h)
33+
- [test/serial_fips202_config.h](test/serial_fips202_config.h)
3334

3435
### `FIPS202`
3536

@@ -72,6 +73,7 @@ source code and documentation.
7273
- [test/custom_stdlib_config.h](test/custom_stdlib_config.h)
7374
- [test/custom_zeroize_config.h](test/custom_zeroize_config.h)
7475
- [test/no_asm_config.h](test/no_asm_config.h)
76+
- [test/serial_fips202_config.h](test/serial_fips202_config.h)
7577

7678
### `HYBRID`
7779

test/configs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ configs:
2323
}
2424
#endif
2525
26+
- path: test/serial_fips202_config.h
27+
description: "Test configuration with serial FIPS202 only"
28+
defines:
29+
MLD_CONFIG_SERIAL_FIPS202_ONLY: true
30+
2631
- path: test/custom_randombytes_config.h
2732
description: "Test configuration with custom randombytes"
2833
defines:

0 commit comments

Comments
 (0)