Skip to content

Commit

Permalink
Dilithium: C code optimized
Browse files Browse the repository at this point in the history
Changes to get best out of 32-bit ARM chips.
Fixes come compile errors when cutting out functions.
WOLFSSL_DILITHIUM_SIGN_CHECK_Y and WOLFSSL_DILITHIUM_SIGN_CHECK_W0 added
to speed up signing. No longer specification conformat when either used.
  • Loading branch information
SparkiDev committed Jun 24, 2024
1 parent 2312cb4 commit a094831
Show file tree
Hide file tree
Showing 3 changed files with 497 additions and 73 deletions.
4 changes: 2 additions & 2 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -27554,12 +27554,12 @@ static int test_wc_dilithium(void)
!defined(WOLFSSL_DILITHIUM_NO_SIGN)
WC_RNG rng;
#endif
#ifndef WOLFSSL_DILITHIUM_NO_SIGN
byte* privKey = NULL;
#ifndef WOLFSSL_DILITHIUM_NO_SIGN
word32 privKeyLen = DILITHIUM_MAX_KEY_SIZE;
#endif
#ifndef WOLFSSL_DILITHIUM_NO_VERIFY
byte* pubKey = NULL;
#ifndef WOLFSSL_DILITHIUM_NO_VERIFY
word32 pubKeyLen = DILITHIUM_MAX_PUB_KEY_SIZE;
#endif

Expand Down
Loading

0 comments on commit a094831

Please sign in to comment.