Skip to content

Commit 401918c

Browse files
willieyzmkannwischer
authored andcommitted
Auto-generate monolithic_build configuration
Signed-off-by: willieyz <[email protected]>
1 parent 19d1e75 commit 401918c

File tree

4 files changed

+92
-9
lines changed

4 files changed

+92
-9
lines changed

examples/monolithic_build/config_44.h

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
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+
* - MLD_CONFIG_INTERNAL_API_QUALIFIER
35+
*/
36+
37+
2038
#ifndef MLD_CONFIG_H
2139
#define MLD_CONFIG_H
2240

@@ -98,7 +116,7 @@
98116
* Name: MLD_CONFIG_FILE
99117
*
100118
* Description: If defined, this is a header that will be included instead
101-
* of the default configuration file mldsa/config.h.
119+
* of the default configuration file mldsa/src/config.h.
102120
*
103121
* When you need to build mldsa-native in multiple configurations,
104122
* using varying MLD_CONFIG_FILE can be more convenient
@@ -110,6 +128,7 @@
110128
* on the command line.
111129
*
112130
*****************************************************************************/
131+
/* No need to set this -- we _are_ already in a custom config */
113132
/* #define MLD_CONFIG_FILE "config.h" */
114133

115134
/******************************************************************************
@@ -158,7 +177,7 @@
158177
* with mldsa-native.
159178
*
160179
* If set, it must be the name of a file serving as the
161-
* replacement for mldsa/fips202/fips202.h, and exposing
180+
* replacement for mldsa/src/fips202/fips202.h, and exposing
162181
* the same API (see FIPS202.md).
163182
*
164183
*****************************************************************************/
@@ -174,7 +193,7 @@
174193
* with mldsa-native.
175194
*
176195
* If set, it must be the name of a file serving as the
177-
* replacement for mldsa/fips202/fips202x4.h, and exposing
196+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
178197
* the same API (see FIPS202.md).
179198
*
180199
*****************************************************************************/

examples/monolithic_build/config_65.h

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
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+
* - MLD_CONFIG_INTERNAL_API_QUALIFIER
35+
*/
36+
37+
2038
#ifndef MLD_CONFIG_H
2139
#define MLD_CONFIG_H
2240

@@ -98,7 +116,7 @@
98116
* Name: MLD_CONFIG_FILE
99117
*
100118
* Description: If defined, this is a header that will be included instead
101-
* of the default configuration file mldsa/config.h.
119+
* of the default configuration file mldsa/src/config.h.
102120
*
103121
* When you need to build mldsa-native in multiple configurations,
104122
* using varying MLD_CONFIG_FILE can be more convenient
@@ -110,6 +128,7 @@
110128
* on the command line.
111129
*
112130
*****************************************************************************/
131+
/* No need to set this -- we _are_ already in a custom config */
113132
/* #define MLD_CONFIG_FILE "config.h" */
114133

115134
/******************************************************************************
@@ -158,7 +177,7 @@
158177
* with mldsa-native.
159178
*
160179
* If set, it must be the name of a file serving as the
161-
* replacement for mldsa/fips202/fips202.h, and exposing
180+
* replacement for mldsa/src/fips202/fips202.h, and exposing
162181
* the same API (see FIPS202.md).
163182
*
164183
*****************************************************************************/
@@ -174,7 +193,7 @@
174193
* with mldsa-native.
175194
*
176195
* If set, it must be the name of a file serving as the
177-
* replacement for mldsa/fips202/fips202x4.h, and exposing
196+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
178197
* the same API (see FIPS202.md).
179198
*
180199
*****************************************************************************/

examples/monolithic_build/config_87.h

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
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+
* - MLD_CONFIG_INTERNAL_API_QUALIFIER
35+
*/
36+
37+
2038
#ifndef MLD_CONFIG_H
2139
#define MLD_CONFIG_H
2240

@@ -98,7 +116,7 @@
98116
* Name: MLD_CONFIG_FILE
99117
*
100118
* Description: If defined, this is a header that will be included instead
101-
* of the default configuration file mldsa/config.h.
119+
* of the default configuration file mldsa/src/config.h.
102120
*
103121
* When you need to build mldsa-native in multiple configurations,
104122
* using varying MLD_CONFIG_FILE can be more convenient
@@ -110,6 +128,7 @@
110128
* on the command line.
111129
*
112130
*****************************************************************************/
131+
/* No need to set this -- we _are_ already in a custom config */
113132
/* #define MLD_CONFIG_FILE "config.h" */
114133

115134
/******************************************************************************
@@ -158,7 +177,7 @@
158177
* with mldsa-native.
159178
*
160179
* If set, it must be the name of a file serving as the
161-
* replacement for mldsa/fips202/fips202.h, and exposing
180+
* replacement for mldsa/src/fips202/fips202.h, and exposing
162181
* the same API (see FIPS202.md).
163182
*
164183
*****************************************************************************/
@@ -174,7 +193,7 @@
174193
* with mldsa-native.
175194
*
176195
* If set, it must be the name of a file serving as the
177-
* replacement for mldsa/fips202/fips202x4.h, and exposing
196+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
178197
* the same API (see FIPS202.md).
179198
*
180199
*****************************************************************************/

test/configs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,29 @@ 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_INTERNAL_API_QUALIFIER: static
172+
MLD_CONFIG_FILE:
173+
comment: "/* No need to set this -- we _are_ already in a custom config */"
174+
175+
- path: examples/monolithic_build/config_65.h
176+
description: "Monolithic build config for ML-DSA-65 (native backends disabled)"
177+
defines:
178+
MLD_CONFIG_PARAMETER_SET: 65
179+
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
180+
MLD_CONFIG_INTERNAL_API_QUALIFIER: static
181+
MLD_CONFIG_FILE:
182+
comment: "/* No need to set this -- we _are_ already in a custom config */"
183+
184+
- path: examples/monolithic_build/config_87.h
185+
description: "Monolithic build config for ML-DSA-87 (native backends disabled)"
186+
defines:
187+
MLD_CONFIG_PARAMETER_SET: 87
188+
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
189+
MLD_CONFIG_INTERNAL_API_QUALIFIER: static
190+
MLD_CONFIG_FILE:
191+
comment: "/* No need to set this -- we _are_ already in a custom config */"

0 commit comments

Comments
 (0)