Skip to content

Commit 639d632

Browse files
committed
Auto-generate monolithic_build configuration
Signed-off-by: willieyz <[email protected]>
1 parent 1557cdb commit 639d632

File tree

4 files changed

+86
-9
lines changed

4 files changed

+86
-9
lines changed

examples/monolithic_build/config_44.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@
1717
* https://csrc.nist.gov/pubs/fips/204/final
1818
*/
1919

20+
/*
21+
* WARNING: This file is auto-generated from scripts/autogen
22+
* in the mldsa-native repository.
23+
* Do not modify it directly.
24+
*/
25+
26+
/*
27+
* Test configuration: Monolithic build config for ML-DSA-44 (native backends
28+
* disabled)
29+
*
30+
* This configuration differs from the default mldsa/src/config.h in the
31+
* following places:
32+
* - MLD_CONFIG_PARAMETER_SET
33+
* - MLD_CONFIG_NAMESPACE_PREFIX
34+
*/
35+
36+
2037
#ifndef MLD_CONFIG_H
2138
#define MLD_CONFIG_H
2239

@@ -98,7 +115,7 @@
98115
* Name: MLD_CONFIG_FILE
99116
*
100117
* Description: If defined, this is a header that will be included instead
101-
* of the default configuration file mldsa/config.h.
118+
* of the default configuration file mldsa/src/config.h.
102119
*
103120
* When you need to build mldsa-native in multiple configurations,
104121
* using varying MLD_CONFIG_FILE can be more convenient
@@ -110,6 +127,7 @@
110127
* on the command line.
111128
*
112129
*****************************************************************************/
130+
/* No need to set this -- we _are_ already in a custom config */
113131
/* #define MLD_CONFIG_FILE "config.h" */
114132

115133
/******************************************************************************
@@ -158,7 +176,7 @@
158176
* with mldsa-native.
159177
*
160178
* If set, it must be the name of a file serving as the
161-
* replacement for mldsa/fips202/fips202.h, and exposing
179+
* replacement for mldsa/src/fips202/fips202.h, and exposing
162180
* the same API (see FIPS202.md).
163181
*
164182
*****************************************************************************/
@@ -174,7 +192,7 @@
174192
* with mldsa-native.
175193
*
176194
* If set, it must be the name of a file serving as the
177-
* replacement for mldsa/fips202/fips202x4.h, and exposing
195+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
178196
* the same API (see FIPS202.md).
179197
*
180198
*****************************************************************************/

examples/monolithic_build/config_65.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@
1717
* https://csrc.nist.gov/pubs/fips/204/final
1818
*/
1919

20+
/*
21+
* WARNING: This file is auto-generated from scripts/autogen
22+
* in the mldsa-native repository.
23+
* Do not modify it directly.
24+
*/
25+
26+
/*
27+
* Test configuration: Monolithic build config for ML-DSA-65 (native backends
28+
* disabled)
29+
*
30+
* This configuration differs from the default mldsa/src/config.h in the
31+
* following places:
32+
* - MLD_CONFIG_PARAMETER_SET
33+
* - MLD_CONFIG_NAMESPACE_PREFIX
34+
*/
35+
36+
2037
#ifndef MLD_CONFIG_H
2138
#define MLD_CONFIG_H
2239

@@ -98,7 +115,7 @@
98115
* Name: MLD_CONFIG_FILE
99116
*
100117
* Description: If defined, this is a header that will be included instead
101-
* of the default configuration file mldsa/config.h.
118+
* of the default configuration file mldsa/src/config.h.
102119
*
103120
* When you need to build mldsa-native in multiple configurations,
104121
* using varying MLD_CONFIG_FILE can be more convenient
@@ -110,6 +127,7 @@
110127
* on the command line.
111128
*
112129
*****************************************************************************/
130+
/* No need to set this -- we _are_ already in a custom config */
113131
/* #define MLD_CONFIG_FILE "config.h" */
114132

115133
/******************************************************************************
@@ -158,7 +176,7 @@
158176
* with mldsa-native.
159177
*
160178
* If set, it must be the name of a file serving as the
161-
* replacement for mldsa/fips202/fips202.h, and exposing
179+
* replacement for mldsa/src/fips202/fips202.h, and exposing
162180
* the same API (see FIPS202.md).
163181
*
164182
*****************************************************************************/
@@ -174,7 +192,7 @@
174192
* with mldsa-native.
175193
*
176194
* If set, it must be the name of a file serving as the
177-
* replacement for mldsa/fips202/fips202x4.h, and exposing
195+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
178196
* the same API (see FIPS202.md).
179197
*
180198
*****************************************************************************/

examples/monolithic_build/config_87.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@
1717
* https://csrc.nist.gov/pubs/fips/204/final
1818
*/
1919

20+
/*
21+
* WARNING: This file is auto-generated from scripts/autogen
22+
* in the mldsa-native repository.
23+
* Do not modify it directly.
24+
*/
25+
26+
/*
27+
* Test configuration: Monolithic build config for ML-DSA-87 (native backends
28+
* disabled)
29+
*
30+
* This configuration differs from the default mldsa/src/config.h in the
31+
* following places:
32+
* - MLD_CONFIG_PARAMETER_SET
33+
* - MLD_CONFIG_NAMESPACE_PREFIX
34+
*/
35+
36+
2037
#ifndef MLD_CONFIG_H
2138
#define MLD_CONFIG_H
2239

@@ -98,7 +115,7 @@
98115
* Name: MLD_CONFIG_FILE
99116
*
100117
* Description: If defined, this is a header that will be included instead
101-
* of the default configuration file mldsa/config.h.
118+
* of the default configuration file mldsa/src/config.h.
102119
*
103120
* When you need to build mldsa-native in multiple configurations,
104121
* using varying MLD_CONFIG_FILE can be more convenient
@@ -110,6 +127,7 @@
110127
* on the command line.
111128
*
112129
*****************************************************************************/
130+
/* No need to set this -- we _are_ already in a custom config */
113131
/* #define MLD_CONFIG_FILE "config.h" */
114132

115133
/******************************************************************************
@@ -158,7 +176,7 @@
158176
* with mldsa-native.
159177
*
160178
* If set, it must be the name of a file serving as the
161-
* replacement for mldsa/fips202/fips202.h, and exposing
179+
* replacement for mldsa/src/fips202/fips202.h, and exposing
162180
* the same API (see FIPS202.md).
163181
*
164182
*****************************************************************************/
@@ -174,7 +192,7 @@
174192
* with mldsa-native.
175193
*
176194
* If set, it must be the name of a file serving as the
177-
* replacement for mldsa/fips202/fips202x4.h, and exposing
195+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
178196
* the same API (see FIPS202.md).
179197
*
180198
*****************************************************************************/

test/configs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,26 @@ configs:
163163
164164
# Example configs
165165

166+
- path: examples/monolithic_build/config_44.h
167+
description: "Monolithic build config for ML-DSA-44 (native backends disabled)"
168+
defines:
169+
MLD_CONFIG_PARAMETER_SET: 44
170+
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
171+
MLD_CONFIG_FILE:
172+
comment: "/* No need to set this -- we _are_ already in a custom config */"
173+
174+
- path: examples/monolithic_build/config_65.h
175+
description: "Monolithic build config for ML-DSA-65 (native backends disabled)"
176+
defines:
177+
MLD_CONFIG_PARAMETER_SET: 65
178+
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
179+
MLD_CONFIG_FILE:
180+
comment: "/* No need to set this -- we _are_ already in a custom config */"
181+
182+
- path: examples/monolithic_build/config_87.h
183+
description: "Monolithic build config for ML-DSA-87 (native backends disabled)"
184+
defines:
185+
MLD_CONFIG_PARAMETER_SET: 87
186+
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
187+
MLD_CONFIG_FILE:
188+
comment: "/* No need to set this -- we _are_ already in a custom config */"

0 commit comments

Comments
 (0)