forked from wolfSSL/wolfssl
Merge pull request #7582 from aidangarske/hpke_test_fix
Revert change from PR #7570
This commit is contained in:
@@ -27626,22 +27626,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t hpke_test(void)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Test coverage for wc_HpkeInit with Curve448, even though it is not supported */
|
|
||||||
#if defined(HAVE_CURVE448) && \
|
|
||||||
(defined(WOLFSSL_SHA384) || defined(WOLFSSL_SHA512))
|
|
||||||
/* test with_curve448 */
|
|
||||||
ret = wc_HpkeInit(hpke, DHKEM_X448_HKDF_SHA512, HKDF_SHA512,
|
|
||||||
HPKE_AES_256_GCM, NULL);
|
|
||||||
|
|
||||||
if (ret != BAD_FUNC_ARG) /* Curve448 is not supported yet */
|
|
||||||
ret = WC_TEST_RET_ENC_EC(ret);
|
|
||||||
else
|
|
||||||
ret = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_CURVE25519)
|
#if defined(HAVE_CURVE25519)
|
||||||
/* test with curve25519 and aes256 */
|
/* test with curve25519 and aes256 */
|
||||||
if (ret == 0)
|
|
||||||
ret = wc_HpkeInit(hpke, DHKEM_X25519_HKDF_SHA256, HKDF_SHA256,
|
ret = wc_HpkeInit(hpke, DHKEM_X25519_HKDF_SHA256, HKDF_SHA256,
|
||||||
HPKE_AES_256_GCM, NULL);
|
HPKE_AES_256_GCM, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user