[PATCH 0/9] Remove per-architecture ChaCha skcipher glue code

Eric Biggers ebiggers at kernel.org
Sun Apr 6 04:26:00 AEST 2025


Currently each architecture exposes ChaCha not only through the library
API, but also through the crypto_skcipher API.  That requires each
architecture to implement essentially the same skcipher glue code.

Following the example of what's been done for crc32 and crc32c,
eliminate this redundancy by making crypto/chacha.c register both the
generic and architecture-optimized skcipher algorithms, implemented on
top of the appropriate library functions.  This removes almost 800 lines
of code and disentangles the library code from the skcipher API.



More information about the Linuxppc-dev mailing list