Skip to content

Commit 3b55176

Browse files
authored
Merge pull request #7582 from aidangarske/hpke_test_fix
Revert change from PR #7570
2 parents 51f19f4 + 3670bfb commit 3b55176

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27626,24 +27626,10 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t hpke_test(void)
2762627626
#endif
2762727627
#endif
2762827628

27629-
/* Test coverage for wc_HpkeInit with Curve448, even though it is not supported */
27630-
#if defined(HAVE_CURVE448) && \
27631-
(defined(WOLFSSL_SHA384) || defined(WOLFSSL_SHA512))
27632-
/* test with_curve448 */
27633-
ret = wc_HpkeInit(hpke, DHKEM_X448_HKDF_SHA512, HKDF_SHA512,
27634-
HPKE_AES_256_GCM, NULL);
27635-
27636-
if (ret != BAD_FUNC_ARG) /* Curve448 is not supported yet */
27637-
ret = WC_TEST_RET_ENC_EC(ret);
27638-
else
27639-
ret = 0;
27640-
#endif
27641-
2764227629
#if defined(HAVE_CURVE25519)
2764327630
/* test with curve25519 and aes256 */
27644-
if (ret == 0)
27645-
ret = wc_HpkeInit(hpke, DHKEM_X25519_HKDF_SHA256, HKDF_SHA256,
27646-
HPKE_AES_256_GCM, NULL);
27631+
ret = wc_HpkeInit(hpke, DHKEM_X25519_HKDF_SHA256, HKDF_SHA256,
27632+
HPKE_AES_256_GCM, NULL);
2764727633

2764827634
if (ret != 0)
2764927635
return WC_TEST_RET_ENC_EC(ret);

0 commit comments

Comments
 (0)