We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe98827 commit 159981fCopy full SHA for 159981f
1 file changed
wolfcrypt/test/test.c
@@ -27520,10 +27520,11 @@ static wc_test_ret_t hpke_test_single(Hpke* hpke)
27520
if (ret != 0)
27521
ret = WC_TEST_RET_ENC_EC(ret);
27522
}
27523
-
+
27524
+ /* NULL argument results in failure */
27525
if (ret == 0) {
27526
ret = wc_HpkeGenerateKeyPair(NULL, &receiverKey, rng);
- if (ret != -173)
27527
+ if (ret != BAD_FUNC_ARG)
27528
27529
ret = 0;
27530
0 commit comments