Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test case for wc_HpkeGenerateKeyPair() NULL argument #7571

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

rlm2002
Copy link

@rlm2002 rlm2002 commented May 22, 2024

Description

Added NULL argument test case for wc_HpkeGenerateKeyPair().

@rlm2002 rlm2002 self-assigned this May 22, 2024
wolfcrypt/test/test.c Outdated Show resolved Hide resolved
@rlm2002 rlm2002 assigned wolfSSL-Bot and unassigned rlm2002 May 23, 2024
@rlm2002 rlm2002 closed this May 23, 2024
@rlm2002 rlm2002 deleted the internship branch May 23, 2024 16:38
@rlm2002 rlm2002 restored the internship branch May 23, 2024 16:45
@rlm2002 rlm2002 reopened this May 23, 2024
@@ -27521,6 +27521,15 @@ static wc_test_ret_t hpke_test_single(Hpke* hpke)
ret = WC_TEST_RET_ENC_EC(ret);
}

/* NULL argument results in failure */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In comment please indicate this is a negative test case. I'd like to see additional tests for the other 2 arguments also. Negative test cases need to be at the bottom or top of function. The code bellow assumes a properly setup hpke variable.

@dgarske dgarske assigned rlm2002 and unassigned wolfSSL-Bot May 23, 2024
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Over to @cconlon

@cconlon cconlon merged commit 70d317e into wolfSSL:master Jun 5, 2024
105 checks passed
@rlm2002 rlm2002 deleted the internship branch June 5, 2024 18:08
jefferyq2 pushed a commit to jefferyq2/wolfssl that referenced this pull request Jun 9, 2024
Test case for wc_HpkeGenerateKeyPair() NULL argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants