File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ int test_wc_ed25519_sign_msg(void)
176176int test_wc_ed25519_sign_msg_pubonly_fails (void )
177177{
178178 EXPECT_DECLS ;
179+ #if !defined(HAVE_FIPS ) || FIPS_VERSION3_GE (7 ,0 ,0 )
179180#if defined(HAVE_ED25519 ) && defined(HAVE_ED25519_SIGN ) && \
180181 defined(HAVE_ED25519_KEY_IMPORT ) && defined(HAVE_ED25519_KEY_EXPORT )
181182 ed25519_key fullKey ;
@@ -209,6 +210,7 @@ int test_wc_ed25519_sign_msg_pubonly_fails(void)
209210 DoExpectIntEQ (wc_FreeRng (& rng ), 0 );
210211 wc_ed25519_free (& pubOnlyKey );
211212 wc_ed25519_free (& fullKey );
213+ #endif
212214#endif
213215 return EXPECT_RESULT ();
214216} /* END test_wc_ed25519_sign_msg_pubonly_fails */
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ int test_wc_ed448_sign_msg(void)
169169int test_wc_ed448_sign_msg_pubonly_fails (void )
170170{
171171 EXPECT_DECLS ;
172+ #if !defined(HAVE_FIPS ) || FIPS_VERSION3_GE (7 ,0 ,0 )
172173#if defined(HAVE_ED448 ) && defined(HAVE_ED448_SIGN ) && \
173174 defined(HAVE_ED448_KEY_IMPORT ) && defined(HAVE_ED448_KEY_EXPORT )
174175 ed448_key fullKey ;
@@ -202,6 +203,7 @@ int test_wc_ed448_sign_msg_pubonly_fails(void)
202203 DoExpectIntEQ (wc_FreeRng (& rng ), 0 );
203204 wc_ed448_free (& pubOnlyKey );
204205 wc_ed448_free (& fullKey );
206+ #endif
205207#endif
206208 return EXPECT_RESULT ();
207209} /* END test_wc_ed448_sign_msg_pubonly_fails */
Original file line number Diff line number Diff line change @@ -692,6 +692,7 @@ int test_wc_dilithium(void)
692692int test_wc_dilithium_sign_pubonly_fails(void)
693693{
694694 EXPECT_DECLS;
695+ #if !defined(HAVE_FIPS) || FIPS_VERSION3_GE(7,0,0)
695696#if defined(HAVE_DILITHIUM) && defined(WOLFSSL_WC_DILITHIUM) && \
696697 !defined(WOLFSSL_DILITHIUM_NO_SIGN) && \
697698 !defined(WOLFSSL_DILITHIUM_NO_MAKE_KEY) && \
@@ -757,6 +758,7 @@ int test_wc_dilithium_sign_pubonly_fails(void)
757758 XFREE(pubBuf, NULL, DYNAMIC_TYPE_TMP_BUFFER);
758759 XFREE(pubOnlyKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
759760 XFREE(key, NULL, DYNAMIC_TYPE_TMP_BUFFER);
761+ #endif
760762#endif
761763 return EXPECT_RESULT();
762764} /* END test_wc_dilithium_sign_pubonly_fails */
Original file line number Diff line number Diff line change @@ -3880,6 +3880,7 @@ int test_wc_mlkem_decapsulate_kats(void)
38803880int test_wc_mlkem_decapsulate_pubonly_fails (void )
38813881{
38823882 EXPECT_DECLS ;
3883+ #if !defined(HAVE_FIPS ) || FIPS_VERSION3_GE (7 ,0 ,0 )
38833884#if defined(WOLFSSL_HAVE_MLKEM ) && defined(WOLFSSL_WC_MLKEM ) && \
38843885 !defined(WOLFSSL_NO_ML_KEM ) && !defined(WOLFSSL_MLKEM_NO_DECAPSULATE ) && \
38853886 !defined(WOLFSSL_MLKEM_NO_ENCAPSULATE ) && \
@@ -3944,6 +3945,7 @@ int test_wc_mlkem_decapsulate_pubonly_fails(void)
39443945 wc_MlKemKey_Free (fullKey );
39453946 XFREE (pubOnlyKey , NULL , DYNAMIC_TYPE_TMP_BUFFER );
39463947 XFREE (fullKey , NULL , DYNAMIC_TYPE_TMP_BUFFER );
3948+ #endif
39473949#endif
39483950 return EXPECT_RESULT ();
39493951} /* END test_wc_mlkem_decapsulate_pubonly_fails */
You can’t perform that action at this time.
0 commit comments