mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
![Ard Biesheuvel](/assets/img/avatar_default.png)
The cipher routines in the crypto API are mostly intended for templates implementing skcipher modes generically in software, and shouldn't be used outside of the crypto subsystem. So move the prototypes and all related definitions to a new header file under include/crypto/internal. Also, let's use the new module namespace feature to move the symbol exports into a new namespace CRYPTO_INTERNAL. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
35 lines
1.3 KiB
ReStructuredText
35 lines
1.3 KiB
ReStructuredText
Block Cipher Algorithm Definitions
|
|
----------------------------------
|
|
|
|
.. kernel-doc:: include/linux/crypto.h
|
|
:doc: Block Cipher Algorithm Definitions
|
|
|
|
.. kernel-doc:: include/linux/crypto.h
|
|
:functions: crypto_alg cipher_alg compress_alg
|
|
|
|
Symmetric Key Cipher API
|
|
------------------------
|
|
|
|
.. kernel-doc:: include/crypto/skcipher.h
|
|
:doc: Symmetric Key Cipher API
|
|
|
|
.. kernel-doc:: include/crypto/skcipher.h
|
|
:functions: crypto_alloc_skcipher crypto_free_skcipher crypto_has_skcipher crypto_skcipher_ivsize crypto_skcipher_blocksize crypto_skcipher_setkey crypto_skcipher_reqtfm crypto_skcipher_encrypt crypto_skcipher_decrypt
|
|
|
|
Symmetric Key Cipher Request Handle
|
|
-----------------------------------
|
|
|
|
.. kernel-doc:: include/crypto/skcipher.h
|
|
:doc: Symmetric Key Cipher Request Handle
|
|
|
|
.. kernel-doc:: include/crypto/skcipher.h
|
|
:functions: crypto_skcipher_reqsize skcipher_request_set_tfm skcipher_request_alloc skcipher_request_free skcipher_request_set_callback skcipher_request_set_crypt
|
|
|
|
Single Block Cipher API
|
|
-----------------------
|
|
|
|
.. kernel-doc:: include/crypto/internal/cipher.h
|
|
:doc: Single Block Cipher API
|
|
|
|
.. kernel-doc:: include/crypto/internal/cipher.h
|
|
:functions: crypto_alloc_cipher crypto_free_cipher crypto_has_cipher crypto_cipher_blocksize crypto_cipher_setkey crypto_cipher_encrypt_one crypto_cipher_decrypt_one
|