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

ML-KEM/Kyber: build with no malloc #8397

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

SparkiDev
Copy link
Contributor

Description

ML-KEM/Kyber van now be built with WOLFSSL_NO_MALLOC and all data is on the stack.

Testing

./configure '--disable-shared' '--enable-kyber' '--disable-asm' '--enable-memorylog' 'CFLAGS=-DWOLFSSL_NO_MALLOC'
make
./tests/unit.test -test_wc_kyber_make_key_kats
./tests/unit.test -test_wc_kyber_encapsulate_kats
./tests/unit.test -test_wc_kyber_decapsulate_kats

Only allocations in api.c.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

ML-KEM/Kyber van now be built with WOLFSSL_NO_MALLOC and all data is on
the stack.
@JacobBarthelmeh JacobBarthelmeh merged commit f7b7600 into wolfSSL:master Jan 30, 2025
163 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants