linux/Documentation/crypto
Eric Biggers 5ab301fcc2 lib/crypto: aes: Add ECB support
Add support for AES-ECB to the crypto library.

This will be used to provide a streamlined implementation of the
"ecb(aes)" crypto_skcipher algorithm.  fs/crypto/keysetup_v1.c will also
use aes_ecb_encrypt() directly.

As usual, the architecture-optimized AES-ECB code will be migrated into
the library as well (using the hooks provided in this commit),
eliminating lots of repetitive boilerplate code.

ECB is obsolete of course, but we need this for parity with the
traditional API and to support some odd users of ECB in the kernel.

Initial test coverage is provided by the crypto_skcipher support added
in a later commit.  I'm planning a KUnit test suite as well.

Create a documentation file libcrypto-unauth-encryption.rst to hold the
documentation for this and other unauthenticated encryption modes.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Link: https://patch.msgid.link/20260715221153.246410-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
History 2026-07-19 17:34:16 -07:00
..
device_drivers crypto: octeontx2 - add devlink option to set t106 mode 2023-12-29 11:25:38 +08:00
api-aead.rst crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
api-akcipher.rst crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
api-digest.rst crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
api-intro.rst It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
api-kpp.rst crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
api-rng.rst crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
api-samples.rst crypto: drbg - Remove support for HASH_DRBG 2026-05-07 16:10:00 +08:00
api-sig.rst crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
api-skcipher.rst crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
api.rst crypto: sig - Introduce sig_alg backend 2024-10-05 13:22:04 +08:00
architecture.rst crypto: remove obsolete 'comp' compression API 2025-03-21 17:39:06 +08:00
asymmetric-keys.rst docs: crypto: convert asymmetric-keys.txt to ReST 2020-06-19 14:03:46 -06:00
async-tx-api.rst raid6: improve the public interface 2026-05-28 21:24:54 -07:00
crypto_engine.rst crypto: engine - remove {prepare,unprepare}_crypt_hardware callbacks 2025-07-18 20:52:00 +10:00
descore-readme.rst docs: crypto: descore-readme.txt: convert to ReST format 2020-06-19 14:05:22 -06:00
devel-algos.rst crypto: ahash - remove support for nonzero alignmask 2023-10-27 18:04:29 +08:00
index.rst lib/crypto: docs: Add rst documentation to Documentation/crypto/ 2026-04-18 17:32:02 -07:00
intro.rst crypto: doc - convert crypto API documentation to Sphinx 2016-12-13 16:37:54 -07:00
krb5.rst crypto/krb5, rxrpc: Fix lack of pre-decrypt/pre-verify length checks 2026-05-20 16:36:45 -07:00
libcrypto-blockcipher.rst lib/crypto: docs: Fix some sentence fragments 2026-07-09 11:05:54 -04:00
libcrypto-hash.rst lib/crypto: docs: Fix some sentence fragments 2026-07-09 11:05:54 -04:00
libcrypto-signature.rst lib/crypto: docs: Fix some sentence fragments 2026-07-09 11:05:54 -04:00
libcrypto-unauth-encryption.rst lib/crypto: aes: Add ECB support 2026-07-19 17:34:16 -07:00
libcrypto-utils.rst lib/crypto: docs: Add rst documentation to Documentation/crypto/ 2026-04-18 17:32:02 -07:00
libcrypto.rst lib/crypto: aes: Add ECB support 2026-07-19 17:34:16 -07:00
sha3.rst lib/crypto: docs: Add rst documentation to Documentation/crypto/ 2026-04-18 17:32:02 -07:00
userspace-if.rst crypto: af_alg - Document that it is *always* slower 2026-05-29 14:05:30 +08:00