Skip to content

Commit a094831

Browse files
committed
Dilithium: C code optimized
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.
1 parent 2312cb4 commit a094831

3 files changed

Lines changed: 497 additions & 73 deletions

File tree

tests/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27554,12 +27554,12 @@ static int test_wc_dilithium(void)
2755427554
!defined(WOLFSSL_DILITHIUM_NO_SIGN)
2755527555
WC_RNG rng;
2755627556
#endif
27557-
#ifndef WOLFSSL_DILITHIUM_NO_SIGN
2755827557
byte* privKey = NULL;
27558+
#ifndef WOLFSSL_DILITHIUM_NO_SIGN
2755927559
word32 privKeyLen = DILITHIUM_MAX_KEY_SIZE;
2756027560
#endif
27561-
#ifndef WOLFSSL_DILITHIUM_NO_VERIFY
2756227561
byte* pubKey = NULL;
27562+
#ifndef WOLFSSL_DILITHIUM_NO_VERIFY
2756327563
word32 pubKeyLen = DILITHIUM_MAX_PUB_KEY_SIZE;
2756427564
#endif
2756527565

0 commit comments

Comments
 (0)