Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions BIBLIOGRAPHY.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ source code and documentation.
- [README.md](README.md)
- [examples/bring_your_own_fips202/mldsa_native/common.h](examples/bring_your_own_fips202/mldsa_native/common.h)
- [examples/bring_your_own_fips202/mldsa_native/config.h](examples/bring_your_own_fips202/mldsa_native/config.h)
- [examples/bring_your_own_fips202/mldsa_native/mldsa_native.h](examples/bring_your_own_fips202/mldsa_native/mldsa_native.h)
- [examples/bring_your_own_fips202/mldsa_native/ntt.h](examples/bring_your_own_fips202/mldsa_native/ntt.h)
- [examples/bring_your_own_fips202/mldsa_native/poly.c](examples/bring_your_own_fips202/mldsa_native/poly.c)
- [examples/bring_your_own_fips202/mldsa_native/poly_kl.c](examples/bring_your_own_fips202/mldsa_native/poly_kl.c)
Expand All @@ -60,6 +61,7 @@ source code and documentation.
- [mldsa/config.h](mldsa/config.h)
- [mldsa/fips202/fips202.c](mldsa/fips202/fips202.c)
- [mldsa/fips202/fips202x4.c](mldsa/fips202/fips202x4.c)
- [mldsa/mldsa_native.h](mldsa/mldsa_native.h)
- [mldsa/ntt.h](mldsa/ntt.h)
- [mldsa/poly.c](mldsa/poly.c)
- [mldsa/poly_kl.c](mldsa/poly_kl.c)
Expand Down
4 changes: 3 additions & 1 deletion examples/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ MLD_SOURCE=$(wildcard \
mldsa_native/mldsa/**/**/*.c \
mldsa_native/mldsa/**/**/**/*.c)

INC=-Imldsa_native/mldsa/

# Part B:
#
# Random number generator
Expand Down Expand Up @@ -102,7 +104,7 @@ $(BINARY_NAME_FULL_87): CFLAGS += -DMLD_CONFIG_PARAMETER_SET=87
$(BINARIES_FULL): $(ALL_SOURCE)
echo "$@"
mkdir -p $(BUILD_DIR)
$(CC) $(CFLAGS) $^ -o $@
$(CC) $(CFLAGS) $(INC) $^ -o $@

all: build

Expand Down
5 changes: 3 additions & 2 deletions examples/basic/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
* This requires specifying the parameter set and namespace prefix
* used for the build.
*/

#include "../../mldsa/sign.h"
#define MLD_CONFIG_API_PARAMETER_SET MLD_CONFIG_PARAMETER_SET
#define MLD_CONFIG_API_NAMESPACE_PREFIX mldsa
#include <mldsa_native.h>
#include "expected_signatures.h"
#include "test_only_rng/notrandombytes.h"

Expand Down
5 changes: 3 additions & 2 deletions examples/bring_your_own_fips202/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
* This requires specifying the parameter set and namespace prefix
* used for the build.
*/

#include "../../mldsa/sign.h"
#define MLD_CONFIG_API_PARAMETER_SET MLD_CONFIG_PARAMETER_SET
#define MLD_CONFIG_API_NAMESPACE_PREFIX mldsa
#include <mldsa_native.h>
#include "expected_signatures.h"
#include "test_only_rng/notrandombytes.h"

Expand Down
Loading