]> git.ipfire.org Git - thirdparty/openssl.git/commit
s390x: Fix HMAC to fail update or final call when already finalized
authorIngo Franzki <ifranzki@linux.ibm.com>
Fri, 6 Jun 2025 12:20:38 +0000 (14:20 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 13 Jun 2025 08:06:21 +0000 (10:06 +0200)
commit339ced70da1206bf090c3de981093b99cfa0d39a
tree4f3da8f61eca716fd3ec3e10ab41f6abd9a7e73e
parent443298e0f0e2c8225f8c6d6fdc01c6c4d434028b
s390x: Fix HMAC to fail update or final call when already finalized

After commit a5d1eadde1d566b528cfe495953300cd9f9fe1e9 the test step
'test_hmac_final_update_fail' of 'test_hmac' fails.

Return an error when update or final is used after the context has
already been finalized. Flag 'iimp' (intermediate-input-message-part)
must be 1 to allow an update or final call. If iimp is 0, then the
context has already been finalized.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27781)
crypto/hmac/hmac_s390x.c