Skip to content

Commit 1a000ef

Browse files
committed
single_test and BAD_FUNC_ARG fix
1 parent 52b6c36 commit 1a000ef

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27628,14 +27628,12 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t hpke_test(void)
2762827628
/* added this code to hit code coverage on lines 219-225 on hpke.c*/
2762927629
#if defined(HAVE_CURVE448) && \
2763027630
(defined(WOLFSSL_SHA384) || defined(WOLFSSL_SHA512))
27631-
/* have_curve448 */
27631+
/* test with_curve448 */
2763227632
ret = wc_HpkeInit(hpke, DHKEM_X448_HKDF_SHA512, HKDF_SHA512,
2763327633
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);
2763727634

27638-
ret = hpke_test_single(hpke);
27635+
if (ret != BAD_FUNC_ARG) /* Curve448 is not supported yet */
27636+
return WC_TEST_RET_ENC_EC(ret);
2763927637

2764027638
if (ret == 0)
2764127639
return ret;

0 commit comments

Comments
 (0)