Skip to content

Commit 7190db9

Browse files
committed
autogen: Port SCU mldsa_native.c generation script from mlkem-native
This commit ports the auto-generation script for mldsa_native.c from mlkem-native. This file will be used in subsequent commits to demonstrate a monolothic build. Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent 4eb5340 commit 7190db9

File tree

4 files changed

+1021
-47
lines changed

4 files changed

+1021
-47
lines changed

BIBLIOGRAPHY.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ source code and documentation.
1414
- National Institute of Standards and Technology
1515
* URL: https://csrc.nist.gov/projects/cryptographic-module-validation-program/fips-140-3-ig-announcements
1616
* Referenced from:
17-
- [examples/bring_your_own_fips202/mldsa_native/src/config.h](examples/bring_your_own_fips202/mldsa_native/src/config.h)
18-
- [examples/bring_your_own_fips202/mldsa_native/src/sign.c](examples/bring_your_own_fips202/mldsa_native/src/sign.c)
1917
- [integration/liboqs/config_aarch64.h](integration/liboqs/config_aarch64.h)
2018
- [integration/liboqs/config_c.h](integration/liboqs/config_c.h)
2119
- [integration/liboqs/config_x86_64.h](integration/liboqs/config_x86_64.h)
@@ -47,16 +45,6 @@ source code and documentation.
4745
* URL: https://csrc.nist.gov/pubs/fips/204/final
4846
* Referenced from:
4947
- [README.md](README.md)
50-
- [examples/bring_your_own_fips202/mldsa_native/mldsa_native.h](examples/bring_your_own_fips202/mldsa_native/mldsa_native.h)
51-
- [examples/bring_your_own_fips202/mldsa_native/src/config.h](examples/bring_your_own_fips202/mldsa_native/src/config.h)
52-
- [examples/bring_your_own_fips202/mldsa_native/src/ct.h](examples/bring_your_own_fips202/mldsa_native/src/ct.h)
53-
- [examples/bring_your_own_fips202/mldsa_native/src/ntt.h](examples/bring_your_own_fips202/mldsa_native/src/ntt.h)
54-
- [examples/bring_your_own_fips202/mldsa_native/src/poly.c](examples/bring_your_own_fips202/mldsa_native/src/poly.c)
55-
- [examples/bring_your_own_fips202/mldsa_native/src/poly_kl.c](examples/bring_your_own_fips202/mldsa_native/src/poly_kl.c)
56-
- [examples/bring_your_own_fips202/mldsa_native/src/polyvec.c](examples/bring_your_own_fips202/mldsa_native/src/polyvec.c)
57-
- [examples/bring_your_own_fips202/mldsa_native/src/rounding.h](examples/bring_your_own_fips202/mldsa_native/src/rounding.h)
58-
- [examples/bring_your_own_fips202/mldsa_native/src/sign.c](examples/bring_your_own_fips202/mldsa_native/src/sign.c)
59-
- [examples/bring_your_own_fips202/mldsa_native/src/sign.h](examples/bring_your_own_fips202/mldsa_native/src/sign.h)
6048
- [mldsa/mldsa_native.h](mldsa/mldsa_native.h)
6149
- [mldsa/src/config.h](mldsa/src/config.h)
6250
- [mldsa/src/ct.h](mldsa/src/ct.h)
@@ -159,9 +147,6 @@ source code and documentation.
159147
* URL: https://github.com/pq-crystals/dilithium/tree/master/ref
160148
* Referenced from:
161149
- [README.md](README.md)
162-
- [examples/bring_your_own_fips202/mldsa_native/src/ntt.c](examples/bring_your_own_fips202/mldsa_native/src/ntt.c)
163-
- [examples/bring_your_own_fips202/mldsa_native/src/poly.c](examples/bring_your_own_fips202/mldsa_native/src/poly.c)
164-
- [examples/bring_your_own_fips202/mldsa_native/src/poly_kl.c](examples/bring_your_own_fips202/mldsa_native/src/poly_kl.c)
165150
- [mldsa/src/ntt.c](mldsa/src/ntt.c)
166151
- [mldsa/src/poly.c](mldsa/src/poly.c)
167152
- [mldsa/src/poly_kl.c](mldsa/src/poly_kl.c)
@@ -237,7 +222,6 @@ source code and documentation.
237222
- Damien Stehlé
238223
* URL: https://pq-crystals.org/dilithium/data/dilithium-specification-round3-20210208.pdf
239224
* Referenced from:
240-
- [examples/bring_your_own_fips202/mldsa_native/src/sign.c](examples/bring_your_own_fips202/mldsa_native/src/sign.c)
241225
- [mldsa/src/sign.c](mldsa/src/sign.c)
242226

243227
### `SLOTHY_Paper`
@@ -263,7 +247,6 @@ source code and documentation.
263247
- Tung Chou
264248
* URL: https://lib.mceliece.org/
265249
* Referenced from:
266-
- [examples/bring_your_own_fips202/mldsa_native/src/ct.h](examples/bring_your_own_fips202/mldsa_native/src/ct.h)
267250
- [mldsa/src/ct.h](mldsa/src/ct.h)
268251

269252
### `m1cycles`
@@ -296,7 +279,6 @@ source code and documentation.
296279
- Daniel J. Bernstein
297280
* URL: https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/H14H0wOlBgAJ
298281
* Referenced from:
299-
- [examples/bring_your_own_fips202/mldsa_native/src/ct.h](examples/bring_your_own_fips202/mldsa_native/src/ct.h)
300282
- [mldsa/src/ct.h](mldsa/src/ct.h)
301283

302284
### `supercop`

examples/basic/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ endif
5656
# Alternatively, you can compile the 'monobuild' source file mldsa_native.c.
5757
# See examples/monolithic_build for that.
5858
MLD_SOURCE=$(wildcard \
59-
mldsa_native/mldsa/*.c \
60-
mldsa_native/mldsa/**/*.c \
61-
mldsa_native/mldsa/**/**/*.c \
62-
mldsa_native/mldsa/**/**/**/*.c)
59+
mldsa_native/mldsa/src/*.c \
60+
mldsa_native/mldsa/src/**/*.c \
61+
mldsa_native/mldsa/src/**/**/*.c \
62+
mldsa_native/mldsa/src/**/**/**/*.c)
6363

6464
INC=-Imldsa_native/mldsa/
6565

0 commit comments

Comments
 (0)