Add a test for NULL chunks in encrypt/decrypt
authorMatt Caswell <matt@openssl.org>
Fri, 31 May 2019 13:32:55 +0000 (14:32 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Nov 2019 11:06:46 +0000 (11:06 +0000)
commitdbcf53f867146766845f6e64243208d87007f970
treecea8b29073e2b42cf553b49c627a53ad964caa1f
parent420cb707b880e4fb649094241371701013eeb15f
Add a test for NULL chunks in encrypt/decrypt

Issue #8675 describes a problem where calling EVP_DecryptUpdate() with an
empty chunk causes the result to be different compared to if you do not
use an empty chunk. This adds a test for that case.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9057)
test/evp_extra_test.c