Skip to content

Commit aa7773a

Browse files
committed
Bring this examples into line with C90 and new dir structure.
Signed-off-by: Rod Chapman <[email protected]>
1 parent 968a5ea commit aa7773a

File tree

1 file changed

+12
-3
lines changed
  • examples/bring_your_own_fips202_static

1 file changed

+12
-3
lines changed

examples/bring_your_own_fips202_static/main.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
// Copyright (c) The mldsa-native project authors
2-
// SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
1+
/*
2+
* Copyright (c) The mldsa-native project authors
3+
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
4+
*/
35

46
#include <stddef.h>
57
#include <stdint.h>
68
#include <stdio.h>
79
#include <string.h>
810

9-
#include "../../mldsa/sign.h"
11+
/* Import public mldsa-native API
12+
*
13+
* This requires specifying the parameter set and namespace prefix
14+
* used for the build.
15+
*/
16+
#define MLD_CONFIG_API_PARAMETER_SET MLD_CONFIG_PARAMETER_SET
17+
#define MLD_CONFIG_API_NAMESPACE_PREFIX mldsa
18+
#include <mldsa_native.h>
1019
#include "expected_signatures.h"
1120
#include "test_only_rng/notrandombytes.h"
1221

0 commit comments

Comments
 (0)