-
Notifications
You must be signed in to change notification settings - Fork 834
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
Conversation
wolfcrypt/test/test.c
Outdated
@@ -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 */ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Over to @cconlon
Test case for wc_HpkeGenerateKeyPair() NULL argument
Description
Added NULL argument test case for wc_HpkeGenerateKeyPair().