Skip to content

s390/crypto: add SIMD implementation for ChaCha20

Vladis Dronov requested to merge NefigTut/centos-stream-9:chacha20-s390 into main
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1917926

Add an implementation of the ChaCha20 stream cipher (see e.g. RFC 7539)
that makes use of z13's vector instruction set extension.

Implement a crypto library interface for the s390-native ChaCha20 cipher
algorithm. This allows CRYPTO_CHACHA20 to remain =m when CRYPTO_CHACHA_S390
is =y. In turn this allows BIG_KEYS=y not to build a whole ChaCha20 crypto
infrastructure as a built-in, but build a smaller CRYPTO_LIB_CHACHA instead.

Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Edited by Vladis Dronov

Merge request reports