]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/evp_extra_test.c
Test EVP_CipherInit sequences and resets
authorJuergen Christ <jchrist@linux.ibm.com>
Wed, 2 Jun 2021 17:33:50 +0000 (19:33 +0200)
committerPauli <pauli@openssl.org>
Tue, 8 Jun 2021 04:32:44 +0000 (14:32 +1000)
commit063e019738b90fcf0a3ab7b1654ce8976805b0b3
tree0fde10fba0eabc09f311b6c0a455b9ae3bbe0593
parentff555f81365d1c09a408019924cace4a0f457ef6
Test EVP_CipherInit sequences and resets

Various EVP_CipherInit sequences including partial inits and initializations
with different "enc" flags caused problems on s390x.  Similarly, cipher
reinitialization and especially GCM reinitialization with different tag length
led to wrong results.  Add some unit tests to cover these rather exotic use
cases.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15521)
test/evp_extra_test.c