File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27625,6 +27625,22 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t hpke_test(void)
2762527625 #endif
2762627626#endif
2762727627
27628+ /* added this code to hit code coverage on lines 219-225 on hpke.c*/
27629+ #if defined(HAVE_CURVE448) && \
27630+ (defined(WOLFSSL_SHA384) || defined(WOLFSSL_SHA512))
27631+ /* have_curve448 */
27632+ ret = wc_HpkeInit(hpke, DHKEM_X448_HKDF_SHA512, HKDF_SHA512,
27633+ HPKE_AES_128_GCM, NULL);
27634+ printf("ERROR RIGHT HERE %d\n",ret);
27635+ if (ret == 0)
27636+ return WC_TEST_RET_ENC_EC(ret);
27637+
27638+ ret = hpke_test_single(hpke);
27639+
27640+ if (ret == 0)
27641+ return ret;
27642+ #endif
27643+
2762827644#if defined(HAVE_CURVE25519)
2762927645 /* test with curve25519 and aes256 */
2763027646 ret = wc_HpkeInit(hpke, DHKEM_X25519_HKDF_SHA256, HKDF_SHA256,
You can’t perform that action at this time.
0 commit comments