Skip to content
Commit 25f5d7b8 authored by Joerg Schmidbauer's avatar Joerg Schmidbauer Committed by Tomas Mraz
Browse files

s390x: support CPACF sha3/shake performance improvements



On newer machines the SHA3/SHAKE performance of CPACF instructions KIMD and KLMD
can be enhanced by using additional modifier bits. This allows the application
to omit initializing the ICV, but also affects the internal processing of the
instructions. Performance is mostly gained when processing short messages.

The new CPACF feature is backwards compatible with older machines, i.e. the new
modifier bits are ignored on older machines. However, to save the ICV
initialization, the application must detect the MSA level and omit the ICV
initialization only if this feature is supported.

Signed-off-by: default avatarJoerg Schmidbauer <jschmidb@de.ibm.com>

Reviewed-by: default avatarPaul Dale <ppzgs1@gmail.com>
Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25235)
parent 6772c2ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment