]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add tests for re-using cipher contexts
authorHolger Dengler <dengler@linux.ibm.com>
Thu, 4 Jan 2024 18:25:08 +0000 (19:25 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 Jan 2024 09:34:39 +0000 (10:34 +0100)
commit3cb1b51dddf4deaf5e3886b827f3245d81670bc7
treea8590a3971644e730163216c0d5b14172032e766
parentf9ccd209c3d121668c51a992613c698f2a774cb3
Add tests for re-using cipher contexts

Add test case for re-using a cipher context with the same key, iv and
cipher. It detects, if the hardware-specific cipher context is reset
correctly, like reported in issue #23175.

This test has encrypt and decrypt iterations for cfb128 and
ofb128. All iteations use the same key, iv and plaintext.

Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23201)
test/evp_extra_test.c