Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests examples command #621

Merged
merged 13 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 6 additions & 7 deletions examples/bring_your_own_fips202/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
# If you are not concerned about minimizing for a specific backend,
# you can just include _all_ source files into your build.
MLKEM_NATIVE_SOURCE=$(wildcard \
mlkem_native/**/*.c \
mlkem_native/*.c \
mlkem_native/*.c \
mkannwischer marked this conversation as resolved.
Show resolved Hide resolved
mlkem_native/**/*.c \
mlkem_native/**/**/*.c \
mlkem_native/**/**/**/*.c \
mlkem_native/**/**/**/**/*.c)
mlkem_native/**/**/*.c \
mlkem_native/**/**/**/*.c)

INC=
INC+=-Imlkem_native/mlkem
INC+=-Imlkem_native/mlkem
INC+=-Imlkem_native/mlkem/native
INC+=-Imlkem_native/
INC+=-Imlkem_native/native

# Part B:
#
Expand Down
2 changes: 1 addition & 1 deletion examples/bring_your_own_fips202/custom_fips202/fips202.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static INLINE void shake128_squeezeblocks(uint8_t *output, size_t nblocks,

/* Free the state */
#define shake128_release FIPS202_NAMESPACE(shake128_release)
static INLINE void shake128_release(shake128ctx *state) {}
static INLINE void shake128_release(shake128ctx *state) { ((void)state); }

/* One-stop SHAKE256 call. Aliasing between input and
* output is not permitted */
Expand Down
2 changes: 1 addition & 1 deletion examples/bring_your_own_fips202/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int main(void)

printf("Shared secret: ");
{
int i;
size_t i;
for (i = 0; i < sizeof(key_a); i++)
printf("%02x", key_a[i]);
}
Expand Down
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/LICENSE
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/api.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/cbd.c
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/cbd.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/cbmc.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/common.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/config.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/debug
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/indcpa.c
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/indcpa.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/kem.c
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/kem.h
1 change: 0 additions & 1 deletion examples/bring_your_own_fips202/mlkem_native/mlkem

This file was deleted.

1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/native
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/ntt.c
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/ntt.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/params.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/poly.c
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/poly.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/polyvec.c
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/polyvec.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/reduce.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/symmetric.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/sys.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/verify.c
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/verify.h
1 change: 1 addition & 0 deletions examples/bring_your_own_fips202/mlkem_native/zetas.c