mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Merge pull request #7721 from SparkiDev/dilithium_fix_3
Dilithium: fixes
This commit is contained in:
@ -34565,6 +34565,7 @@ static int test_wc_dilithium_make_key_from_seed(void)
|
||||
ExpectIntEQ(XMEMCMP(key->k, sk_87, sizeof(sk_87)), 0);
|
||||
#endif
|
||||
|
||||
wc_dilithium_free(key);
|
||||
XFREE(key, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
#endif
|
||||
return EXPECT_RESULT();
|
||||
@ -36710,6 +36711,7 @@ static int test_wc_dilithium_verify_kats(void)
|
||||
ExpectIntEQ(res, 1);
|
||||
#endif
|
||||
|
||||
wc_dilithium_free(key);
|
||||
XFREE(key, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
#endif
|
||||
return EXPECT_RESULT();
|
||||
|
@ -2825,8 +2825,7 @@ static int dilithium_check_low(const sword32* a, sword32 hi)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if (!defined(WOLFSSL_DILITHIUM_NO_VERIFY) && \
|
||||
!defined(WOLFSSL_DILITHIUM_VERIFY_SMALL_MEM)) || \
|
||||
#if !defined(WOLFSSL_DILITHIUM_NO_VERIFY) || \
|
||||
(!defined(WOLFSSL_DILITHIUM_NO_SIGN) && \
|
||||
!defined(WOLFSSL_DILITHIUM_SIGN_SMALL_MEM))
|
||||
/* Check that the values of the vector are in range.
|
||||
|
Reference in New Issue
Block a user