]> git.ipfire.org Git - thirdparty/openssl.git/commit
Test EVP_CipherInit sequences and resets
authorPatrick Steuer <patrick.steuer@de.ibm.com>
Tue, 8 Jun 2021 08:22:53 +0000 (10:22 +0200)
committerPatrick Steuer <patrick.steuer@de.ibm.com>
Thu, 10 Jun 2021 08:22:51 +0000 (10:22 +0200)
commit668893a9207adbed5186fcc6ac24ac3458cc7883
tree6bf01121a0ff1d3e6e3a50ebf7d4f9d7c0018b2d
parentdc67210d909b5dd7a50f60a96f36f3f5a891b1c8
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: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14900)
test/evp_extra_test.c