Skip to content

Commit d7ecfec

Browse files
committed
Add NULL checks for context/ciphertext/out in wc_HpkeContextOpenBase F-1374
1 parent dcde00a commit d7ecfec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/hpke.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ int wc_HpkeContextOpenBase(Hpke* hpke, HpkeBaseContext* context, byte* aad,
11751175
int ret;
11761176
byte nonce[HPKE_Nn_MAX];
11771177
WC_DECLARE_VAR(aes, Aes, 1, 0);
1178-
if (hpke == NULL) {
1178+
if (hpke == NULL || context == NULL || ciphertext == NULL || out == NULL) {
11791179
return BAD_FUNC_ARG;
11801180
}
11811181

0 commit comments

Comments
 (0)