openssl icon indicating copy to clipboard operation
openssl copied to clipboard

s390x: support CPACF sha3/shake performance improvements

Open jschmidb opened this issue 1 year ago • 1 comments

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.

jschmidb avatar Aug 20 '24 09:08 jschmidb

@t8m Friendly ping :-)

ifranzki avatar Aug 28 '24 09:08 ifranzki

This pull request is ready to merge

openssl-machine avatar Aug 29 '24 15:08 openssl-machine

Merged to the master branch. Thank you for your contribution.

t8m avatar Aug 29 '24 17:08 t8m