Debian Codegraph @

others/mbedtls/tf-psa-crypto/drivers/pqcp/mldsa-native/test/configs/custom_heap_alloc_config.h

raw symbols SCIP
1 /*
2 * Copyright (c) The mldsa-native project authors
3 * SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
4 */
5
6 /* References
7 * ==========
8 *
9 * - [FIPS140_3_IG]
10 * Implementation Guidance for FIPS 140-3 and the Cryptographic Module
11 * Validation Program
12 * National Institute of Standards and Technology
13 * https://csrc.nist.gov/projects/cryptographic-module-validation-program/fips-140-3-ig-announcements
14 */
15
16 /*
17 * WARNING: This file is auto-generated from scripts/autogen
18 * in the mldsa-native repository.
19 * Do not modify it directly.
20 */
21
22 /*
23 * Test configuration: Test configuration with heap-based allocation
24 *
25 * This configuration differs from the default mldsa/mldsa_native_config.h in
26 * the following places:
27 * - MLD_CONFIG_CUSTOM_ALLOC_FREE
28 */
29
30
31 #ifndef MLD_CONFIG_H
32 #define MLD_CONFIG_H
33
34 /******************************************************************************
35 * Name: MLD_CONFIG_PARAMETER_SET
36 *
37 * Description: Specifies the parameter set for ML-DSA
38 * - MLD_CONFIG_PARAMETER_SET=44 corresponds to ML-DSA-44
39 * - MLD_CONFIG_PARAMETER_SET=65 corresponds to ML-DSA-65
40 * - MLD_CONFIG_PARAMETER_SET=87 corresponds to ML-DSA-87
41 *
42 * If you want to support multiple parameter sets, build the
43 * library multiple times and set MLD_CONFIG_MULTILEVEL_BUILD.
44 * See MLD_CONFIG_MULTILEVEL_BUILD for how to do this while
45 * minimizing code duplication.
46 *
47 * This can also be set using CFLAGS.
48 *
49 *****************************************************************************/
50 #ifndef MLD_CONFIG_PARAMETER_SET
51 #define MLD_CONFIG_PARAMETER_SET \
52 44 /* Change this for different security strengths */
53 #endif
54
55 /******************************************************************************
56 * Name: MLD_CONFIG_FILE
57 *
58 * Description: If defined, this is a header that will be included instead
59 * of the default configuration file mldsa/mldsa_native_config.h.
60 *
61 * When you need to build mldsa-native in multiple configurations,
62 * using varying MLD_CONFIG_FILE can be more convenient
63 * then configuring everything through CFLAGS.
64 *
65 * To use, MLD_CONFIG_FILE _must_ be defined prior
66 * to the inclusion of any mldsa-native headers. For example,
67 * it can be set by passing `-DMLD_CONFIG_FILE="..."`
68 * on the command line.
69 *
70 *****************************************************************************/
71 /* #define MLD_CONFIG_FILE "mldsa_native_config.h" */
72
73 /******************************************************************************
74 * Name: MLD_CONFIG_NAMESPACE_PREFIX
75 *
76 * Description: The prefix to use to namespace global symbols from mldsa/.
77 *
78 * In a multi-level build, level-dependent symbols will
79 * additionally be prefixed with the parameter set (44/65/87).
80 *
81 * This can also be set using CFLAGS.
82 *
83 *****************************************************************************/
84 #if !defined(MLD_CONFIG_NAMESPACE_PREFIX)
85 #define MLD_CONFIG_NAMESPACE_PREFIX MLD_DEFAULT_NAMESPACE_PREFIX
86 #endif
87
88 /******************************************************************************
89 * Name: MLD_CONFIG_MULTILEVEL_BUILD
90 *
91 * Description: Set this if the build is part of a multi-level build supporting
92 * multiple parameter sets.
93 *
94 * If you need only a single parameter set, keep this unset.
95 *
96 * To build mldsa-native with support for all parameter sets,
97 * build it three times -- once per parameter set -- and set the
98 * option MLD_CONFIG_MULTILEVEL_WITH_SHARED for exactly one of
99 * them, and MLD_CONFIG_MULTILEVEL_NO_SHARED for the others.
100 * MLD_CONFIG_MULTILEVEL_BUILD should be set for all of them.
101 *
102 * See examples/multilevel_build for an example.
103 *
104 * This can also be set using CFLAGS.
105 *
106 *****************************************************************************/
107 /* #define MLD_CONFIG_MULTILEVEL_BUILD */
108
109 /******************************************************************************
110 * Name: MLD_CONFIG_EXTERNAL_API_QUALIFIER
111 *
112 * Description: If set, this option provides an additional function
113 * qualifier to be added to declarations of mldsa-native's
114 * public API.
115 *
116 * The primary use case for this option are single-CU builds
117 * where the public API exposed by mldsa-native is wrapped by
118 * another API in the consuming application. In this case,
119 * even mldsa-native's public API can be marked `static`.
120 *
121 *****************************************************************************/
122 /* #define MLD_CONFIG_EXTERNAL_API_QUALIFIER */
123
124 /******************************************************************************
125 * Name: MLD_CONFIG_NO_RANDOMIZED_API
126 *
127 * Description: If this option is set, mldsa-native will be built without the
128 * randomized API functions (crypto_sign_keypair,
129 * crypto_sign, crypto_sign_signature, and
130 * crypto_sign_signature_extmu).
131 * This allows users to build mldsa-native without providing a
132 * randombytes() implementation if they only need the
133 * internal deterministic API
134 * (crypto_sign_keypair_internal, crypto_sign_signature_internal).
135 *
136 * NOTE: This option is incompatible with MLD_CONFIG_KEYGEN_PCT
137 * as the current PCT implementation requires
138 * crypto_sign_signature().
139 *
140 *****************************************************************************/
141 /* #define MLD_CONFIG_NO_RANDOMIZED_API */
142
143 /******************************************************************************
144 * Name: MLD_CONFIG_NO_SUPERCOP
145 *
146 * Description: By default, mldsa_native.h exposes the mldsa-native API in the
147 * SUPERCOP naming convention (crypto_sign_xxx). If you don't need
148 * this, set MLD_CONFIG_NO_SUPERCOP.
149 *
150 * NOTE: You must set this for a multi-level build as the SUPERCOP
151 * naming does not disambiguate between the parameter sets.
152 *
153 *****************************************************************************/
154 /* #define MLD_CONFIG_NO_SUPERCOP */
155
156 /******************************************************************************
157 * Name: MLD_CONFIG_CONSTANTS_ONLY
158 *
159 * Description: If you only need the size constants (MLDSA_PUBLICKEYBYTES, etc.)
160 * but no function declarations, set MLD_CONFIG_CONSTANTS_ONLY.
161 *
162 * This only affects the public header mldsa_native.h, not
163 * the implementation.
164 *
165 *****************************************************************************/
166 /* #define MLD_CONFIG_CONSTANTS_ONLY */
167
168 /******************************************************************************
169 *
170 * Build-only configuration options
171 *
172 * The remaining configurations are build-options only.
173 * They do not affect the API described in mldsa_native.h.
174 *
175 *****************************************************************************/
176
177 #if defined(MLD_BUILD_INTERNAL)
178 /******************************************************************************
179 * Name: MLD_CONFIG_MULTILEVEL_WITH_SHARED
180 *
181 * Description: This is for multi-level builds of mldsa-native only. If you
182 * need only a single parameter set, keep this unset.
183 *
184 * If this is set, all MLD_CONFIG_PARAMETER_SET-independent
185 * code will be included in the build, including code needed only
186 * for other parameter sets.
187 *
188 * Example: TODO: add example
189 *
190 * To build mldsa-native with support for all parameter sets,
191 * build it three times -- once per parameter set -- and set the
192 * option MLD_CONFIG_MULTILEVEL_WITH_SHARED for exactly one of
193 * them, and MLD_CONFIG_MULTILEVEL_NO_SHARED for the others.
194 *
195 * See examples/multilevel_build_mldsa for an example.
196 *
197 * This can also be set using CFLAGS.
198 *
199 *****************************************************************************/
200 /* #define MLD_CONFIG_MULTILEVEL_WITH_SHARED */
201
202 /******************************************************************************
203 * Name: MLD_CONFIG_MULTILEVEL_NO_SHARED
204 *
205 * Description: This is for multi-level builds of mldsa-native only. If you
206 * need only a single parameter set, keep this unset.
207 *
208 * If this is set, no MLD_CONFIG_PARAMETER_SET-independent code
209 * will be included in the build.
210 *
211 * To build mldsa-native with support for all parameter sets,
212 * build it three times -- once per parameter set -- and set the
213 * option MLD_CONFIG_MULTILEVEL_WITH_SHARED for exactly one of
214 * them, and MLD_CONFIG_MULTILEVEL_NO_SHARED for the others.
215 *
216 * See examples/multilevel_build_mldsa for an example.
217 *
218 * This can also be set using CFLAGS.
219 *
220 *****************************************************************************/
221 /* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
222
223 /******************************************************************************
224 * Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
225 *
226 * Description: This is only relevant for single compilation unit (SCU)
227 * builds of mldsa-native. In this case, it determines whether
228 * directives defined in parameter-set-independent headers should
229 * be #undef'ined or not at the of the SCU file. This is needed
230 * in multilevel builds.
231 *
232 * See examples/multilevel_build_native for an example.
233 *
234 * This can also be set using CFLAGS.
235 *
236 *****************************************************************************/
237 /* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
238
239 /******************************************************************************
240 * Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH
241 *
242 * Description: Determines whether an native arithmetic backend should be used.
243 *
244 * The arithmetic backend covers performance critical functions
245 * such as the number-theoretic transform (NTT).
246 *
247 * If this option is unset, the C backend will be used.
248 *
249 * If this option is set, the arithmetic backend to be use is
250 * determined by MLD_CONFIG_ARITH_BACKEND_FILE: If the latter is
251 * unset, the default backend for your the target architecture
252 * will be used. If set, it must be the name of a backend metadata
253 * file.
254 *
255 * This can also be set using CFLAGS.
256 *
257 *****************************************************************************/
258 #if !defined(MLD_CONFIG_USE_NATIVE_BACKEND_ARITH)
259 /* #define MLD_CONFIG_USE_NATIVE_BACKEND_ARITH */
260 #endif
261
262 /******************************************************************************
263 * Name: MLD_CONFIG_ARITH_BACKEND_FILE
264 *
265 * Description: The arithmetic backend to use.
266 *
267 * If MLD_CONFIG_USE_NATIVE_BACKEND_ARITH is unset, this option
268 * is ignored.
269 *
270 * If MLD_CONFIG_USE_NATIVE_BACKEND_ARITH is set, this option must
271 * either be undefined or the filename of an arithmetic backend.
272 * If unset, the default backend will be used.
273 *
274 * This can be set using CFLAGS.
275 *
276 *****************************************************************************/
277 #if defined(MLD_CONFIG_USE_NATIVE_BACKEND_ARITH) && \
278 !defined(MLD_CONFIG_ARITH_BACKEND_FILE)
279 #define MLD_CONFIG_ARITH_BACKEND_FILE "native/meta.h"
280 #endif
281
282 /******************************************************************************
283 * Name: MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202
284 *
285 * Description: Determines whether an native FIPS202 backend should be used.
286 *
287 * The FIPS202 backend covers 1x/2x/4x-fold Keccak-f1600, which is
288 * the performance bottleneck of SHA3 and SHAKE.
289 *
290 * If this option is unset, the C backend will be used.
291 *
292 * If this option is set, the FIPS202 backend to be use is
293 * determined by MLD_CONFIG_FIPS202_BACKEND_FILE: If the latter is
294 * unset, the default backend for your the target architecture
295 * will be used. If set, it must be the name of a backend metadata
296 * file.
297 *
298 * This can also be set using CFLAGS.
299 *
300 *****************************************************************************/
301 #if !defined(MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202)
302 /* #define MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 */
303 #endif
304
305 /******************************************************************************
306 * Name: MLD_CONFIG_FIPS202_BACKEND_FILE
307 *
308 * Description: The FIPS-202 backend to use.
309 *
310 * If MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 is set, this option
311 * must either be undefined or the filename of a FIPS202 backend.
312 * If unset, the default backend will be used.
313 *
314 * This can be set using CFLAGS.
315 *
316 *****************************************************************************/
317 #if defined(MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202) && \
318 !defined(MLD_CONFIG_FIPS202_BACKEND_FILE)
319 #define MLD_CONFIG_FIPS202_BACKEND_FILE "fips202/native/auto.h"
320 #endif
321
322 /******************************************************************************
323 * Name: MLD_CONFIG_FIPS202_CUSTOM_HEADER
324 *
325 * Description: Custom header to use for FIPS-202
326 *
327 * This should only be set if you intend to use a custom
328 * FIPS-202 implementation, different from the one shipped
329 * with mldsa-native.
330 *
331 * If set, it must be the name of a file serving as the
332 * replacement for mldsa/src/fips202/fips202.h, and exposing
333 * the same API (see FIPS202.md).
334 *
335 *****************************************************************************/
336 /* #define MLD_CONFIG_FIPS202_CUSTOM_HEADER "SOME_FILE.h" */
337
338 /******************************************************************************
339 * Name: MLD_CONFIG_FIPS202X4_CUSTOM_HEADER
340 *
341 * Description: Custom header to use for FIPS-202-X4
342 *
343 * This should only be set if you intend to use a custom
344 * FIPS-202 implementation, different from the one shipped
345 * with mldsa-native.
346 *
347 * If set, it must be the name of a file serving as the
348 * replacement for mldsa/src/fips202/fips202x4.h, and exposing
349 * the same API (see FIPS202.md).
350 *
351 *****************************************************************************/
352 /* #define MLD_CONFIG_FIPS202X4_CUSTOM_HEADER "SOME_FILE.h" */
353
354 /******************************************************************************
355 * Name: MLD_CONFIG_CUSTOM_ALLOC_FREE [EXPERIMENTAL]
356 *
357 * Description: Set this option and define `MLD_CUSTOM_ALLOC` and
358 * `MLD_CUSTOM_FREE` if you want to use custom allocation for
359 * large local structures or buffers.
360 *
361 * By default, all buffers/structures are allocated on the stack.
362 * If this option is set, most of them will be allocated via
363 * MLD_CUSTOM_ALLOC.
364 *
365 * Parameters to MLD_CUSTOM_ALLOC:
366 * - T* v: Target pointer to declare.
367 * - T: Type of structure to be allocated
368 * - N: Number of elements to be allocated.
369 *
370 * Parameters to MLD_CUSTOM_FREE:
371 * - T* v: Target pointer to free. May be NULL.
372 * - T: Type of structure to be freed.
373 * - N: Number of elements to be freed.
374 *
375 * WARNING: This option is experimental!
376 * Its scope, configuration and function/macro signatures may
377 * change at any time. We expect a stable API for v2.
378 *
379 * NOTE: Even if this option is set, some allocations further down
380 * the call stack will still be made from the stack. Those will
381 * likely be added to the scope of this option in the future.
382 *
383 * NOTE: MLD_CUSTOM_ALLOC need not guarantee a successful
384 * allocation nor include error handling. Upon failure, the
385 * target pointer should simply be set to NULL. The calling
386 * code will handle this case and invoke MLD_CUSTOM_FREE.
387 *
388 *****************************************************************************/
389 #define MLD_CONFIG_CUSTOM_ALLOC_FREE
390 #if !defined(__ASSEMBLER__)
391 #include <stdlib.h>
392 #define MLD_CUSTOM_ALLOC(v, T, N) \
393 T *v = (T *)aligned_alloc(MLD_DEFAULT_ALIGN, MLD_ALIGN_UP(sizeof(T) * (N)))
394 #define MLD_CUSTOM_FREE(v, T, N) free(v)
395 #endif /* !__ASSEMBLER__ */
396
397
398 /******************************************************************************
399 * Name: MLD_CONFIG_CUSTOM_RANDOMBYTES
400 *
401 * Description: mldsa-native does not provide a secure randombytes
402 * implementation. Such an implementation has to provided by the
403 * consumer.
404 *
405 * If this option is not set, mldsa-native expects a function
406 * int randombytes(uint8_t *out, size_t outlen).
407 *
408 * Set this option and define `mld_randombytes` if you want to
409 * use a custom method to sample randombytes with a different name
410 * or signature.
411 *
412 *****************************************************************************/
413 /* #define MLD_CONFIG_CUSTOM_RANDOMBYTES
414 #if !defined(__ASSEMBLER__)
415 #include <stdint.h>
416 #include "src/src.h"
417 static MLD_INLINE void mld_randombytes(uint8_t *ptr, size_t len)
418 {
419 ... your implementation ...
420 }
421 #endif
422 */
423
424 /******************************************************************************
425 * Name: MLD_CONFIG_CUSTOM_CAPABILITY_FUNC
426 *
427 * Description: mldsa-native backends may rely on specific hardware features.
428 * Those backends will only be included in an mldsa-native build
429 * if support for the respective features is enabled at
430 * compile-time. However, when building for a heteroneous set
431 * of CPUs to run the resulting binary/library on, feature
432 * detection at _runtime_ is needed to decided whether a backend
433 * can be used or not.
434 *
435 * Set this option and define `mld_sys_check_capability` if you
436 * want to use a custom method to dispatch between implementations.
437 *
438 * If this option is not set, mldsa-native uses compile-time
439 * feature detection only to decide which backend to use.
440 *
441 * If you compile mldsa-native on a system with different
442 * capabilities than the system that the resulting binary/library
443 * will be run on, you must use this option.
444 *
445 *****************************************************************************/
446 /* #define MLD_CONFIG_CUSTOM_CAPABILITY_FUNC
447 static MLD_INLINE int mld_sys_check_capability(mld_sys_cap cap)
448 {
449 ... your implementation ...
450 }
451 */
452
453 /******************************************************************************
454 * Name: MLD_CONFIG_CUSTOM_MEMCPY
455 *
456 * Description: Set this option and define `mld_memcpy` if you want to
457 * use a custom method to copy memory instead of the standard
458 * library memcpy function.
459 *
460 * The custom implementation must have the same signature and
461 * behavior as the standard memcpy function:
462 * void *mld_memcpy(void *dest, const void *src, size_t n)
463 *
464 *****************************************************************************/
465 /* #define MLD_CONFIG_CUSTOM_MEMCPY
466 #if !defined(__ASSEMBLER__)
467 #include <stdint.h>
468 #include "src/src.h"
469 static MLD_INLINE void *mld_memcpy(void *dest, const void *src, size_t n)
470 {
471 ... your implementation ...
472 }
473 #endif
474 */
475
476 /******************************************************************************
477 * Name: MLD_CONFIG_CUSTOM_MEMSET
478 *
479 * Description: Set this option and define `mld_memset` if you want to
480 * use a custom method to set memory instead of the standard
481 * library memset function.
482 *
483 * The custom implementation must have the same signature and
484 * behavior as the standard memset function:
485 * void *mld_memset(void *s, int c, size_t n)
486 *
487 *****************************************************************************/
488 /* #define MLD_CONFIG_CUSTOM_MEMSET
489 #if !defined(__ASSEMBLER__)
490 #include <stdint.h>
491 #include "src/src.h"
492 static MLD_INLINE void *mld_memset(void *s, int c, size_t n)
493 {
494 ... your implementation ...
495 }
496 #endif
497 */
498
499 /******************************************************************************
500 * Name: MLD_CONFIG_INTERNAL_API_QUALIFIER
501 *
502 * Description: If set, this option provides an additional function
503 * qualifier to be added to declarations of internal API.
504 *
505 * The primary use case for this option are single-CU builds,
506 * in which case this option can be set to `static`.
507 *
508 *****************************************************************************/
509 /* #define MLD_CONFIG_INTERNAL_API_QUALIFIER */
510
511 /******************************************************************************
512 * Name: MLD_CONFIG_CT_TESTING_ENABLED
513 *
514 * Description: If set, mldsa-native annotates data as secret / public using
515 * valgrind's annotations VALGRIND_MAKE_MEM_UNDEFINED and
516 * VALGRIND_MAKE_MEM_DEFINED, enabling various checks for secret-
517 * dependent control flow of variable time execution (depending
518 * on the exact version of valgrind installed).
519 *
520 *****************************************************************************/
521 /* #define MLD_CONFIG_CT_TESTING_ENABLED */
522
523 /******************************************************************************
524 * Name: MLD_CONFIG_NO_ASM
525 *
526 * Description: If this option is set, mldsa-native will be built without
527 * use of native code or inline assembly.
528 *
529 * By default, inline assembly is used to implement value barriers.
530 * Without inline assembly, mldsa-native will use a global volatile
531 * 'opt blocker' instead; see ct.h.
532 *
533 * Inline assembly is also used to implement a secure zeroization
534 * function on non-Windows platforms. If this option is set and
535 * the target platform is not Windows, you MUST set
536 * MLD_CONFIG_CUSTOM_ZEROIZE and provide a custom zeroization
537 * function.
538 *
539 * If this option is set, MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 and
540 * and MLD_CONFIG_USE_NATIVE_BACKEND_ARITH will be ignored, and no
541 * native backends will be used.
542 *
543 *****************************************************************************/
544 /* #define MLD_CONFIG_NO_ASM */
545
546 /******************************************************************************
547 * Name: MLD_CONFIG_NO_ASM_VALUE_BARRIER
548 *
549 * Description: If this option is set, mldsa-native will be built without
550 * use of native code or inline assembly for value barriers.
551 *
552 * By default, inline assembly (if available) is used to implement
553 * value barriers.
554 * Without inline assembly, mldsa-native will use a global volatile
555 * 'opt blocker' instead; see ct.h.
556 *
557 *****************************************************************************/
558 /* #define MLD_CONFIG_NO_ASM_VALUE_BARRIER */
559
560 /******************************************************************************
561 * Name: MLD_CONFIG_KEYGEN_PCT
562 *
563 * Description: Compliance with @[FIPS140_3_IG, p.87] requires a
564 * Pairwise Consistency Test (PCT) to be carried out on a freshly
565 * generated keypair before it can be exported.
566 *
567 * Set this option if such a check should be implemented.
568 * In this case, crypto_sign_keypair_internal and
569 * crypto_sign_keypair will return a non-zero error code if the
570 * PCT failed.
571 *
572 * NOTE: This feature will drastically lower the performance of
573 * key generation.
574 *
575 *****************************************************************************/
576 /* #define MLD_CONFIG_KEYGEN_PCT */
577
578 /******************************************************************************
579 * Name: MLD_CONFIG_KEYGEN_PCT_BREAKAGE_TEST
580 *
581 * Description: If this option is set, the user must provide a runtime
582 * function `static inline int mld_break_pct() { ... }` to
583 * indicate whether the PCT should be made fail.
584 *
585 * This option only has an effect if MLD_CONFIG_KEYGEN_PCT is set.
586 *
587 *****************************************************************************/
588 /* #define MLD_CONFIG_KEYGEN_PCT_BREAKAGE_TEST
589 #if !defined(__ASSEMBLER__)
590 #include "src/src.h"
591 static MLD_INLINE int mld_break_pct(void)
592 {
593 ... return 0/1 depending on whether PCT should be broken ...
594 }
595 #endif
596 */
597
598 /******************************************************************************
599 * Name: MLD_CONFIG_SERIAL_FIPS202_ONLY
600 *
601 * Description: Set this to use a FIPS202 implementation with global state
602 * that supports only one active Keccak computation at a time
603 * (e.g. some hardware accelerators).
604 *
605 * If this option is set, ML-DSA will use FIPS202 operations
606 * serially, ensuring that only one SHAKE context is active
607 * at any given time.
608 *
609 * This allows offloading Keccak computations to a hardware
610 * accelerator that holds only a single Keccak state locally,
611 * rather than requiring support for multiple concurrent
612 * Keccak states.
613 *
614 * NOTE: Depending on the target CPU, this may reduce
615 * performance when using software FIPS202 implementations.
616 * Only enable this when you have to.
617 *
618 *****************************************************************************/
619 /* #define MLD_CONFIG_SERIAL_FIPS202_ONLY */
620
621 /************************* Config internals ********************************/
622
623 #endif /* MLD_BUILD_INTERNAL */
624
625 /* Default namespace
626 *
627 * Don't change this. If you need a different namespace, re-define
628 * MLD_CONFIG_NAMESPACE_PREFIX above instead, and remove the following.
629 *
630 * The default MLDSA namespace is
631 *
632 * PQCP_MLDSA_NATIVE_MLDSA<LEVEL>_
633 *
634 * e.g., PQCP_MLDSA_NATIVE_MLDSA44_
635 */
636
637 #if MLD_CONFIG_PARAMETER_SET == 44
638 #define MLD_DEFAULT_NAMESPACE_PREFIX PQCP_MLDSA_NATIVE_MLDSA44
639 #elif MLD_CONFIG_PARAMETER_SET == 65
640 #define MLD_DEFAULT_NAMESPACE_PREFIX PQCP_MLDSA_NATIVE_MLDSA65
641 #elif MLD_CONFIG_PARAMETER_SET == 87
642 #define MLD_DEFAULT_NAMESPACE_PREFIX PQCP_MLDSA_NATIVE_MLDSA87
643 #endif
644
645 #endif /* !MLD_CONFIG_H */