Skip to content

Commit

Permalink
crypto: ablkcipher - remove deprecated and unused ablkcipher support
Browse files Browse the repository at this point in the history
Now that all users of the deprecated ablkcipher interface have been
moved to the skcipher interface, ablkcipher is no longer used and
can be removed.

Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ardbiesheuvel authored and herbertx committed Nov 17, 2019
1 parent 809abae commit d63007e
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 1,150 deletions.
20 changes: 1 addition & 19 deletions Documentation/crypto/api-skcipher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Block Cipher Algorithm Definitions
:doc: Block Cipher Algorithm Definitions

.. kernel-doc:: include/linux/crypto.h
:functions: crypto_alg ablkcipher_alg cipher_alg compress_alg
:functions: crypto_alg cipher_alg compress_alg

Symmetric Key Cipher API
------------------------
Expand Down Expand Up @@ -33,21 +33,3 @@ Single Block Cipher API

.. kernel-doc:: include/linux/crypto.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

Asynchronous Block Cipher API - Deprecated
------------------------------------------

.. kernel-doc:: include/linux/crypto.h
:doc: Asynchronous Block Cipher API

.. kernel-doc:: include/linux/crypto.h
:functions: crypto_free_ablkcipher crypto_ablkcipher_ivsize crypto_ablkcipher_blocksize crypto_ablkcipher_setkey crypto_ablkcipher_reqtfm crypto_ablkcipher_encrypt crypto_ablkcipher_decrypt

Asynchronous Cipher Request Handle - Deprecated
-----------------------------------------------

.. kernel-doc:: include/linux/crypto.h
:doc: Asynchronous Cipher Request Handle

.. kernel-doc:: include/linux/crypto.h
:functions: crypto_ablkcipher_reqsize ablkcipher_request_set_tfm ablkcipher_request_alloc ablkcipher_request_free ablkcipher_request_set_callback ablkcipher_request_set_crypt
2 changes: 0 additions & 2 deletions Documentation/crypto/architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ the aforementioned cipher types:
- CRYPTO_ALG_TYPE_AEAD Authenticated Encryption with Associated Data
(MAC)

- CRYPTO_ALG_TYPE_ABLKCIPHER Asynchronous multi-block cipher

- CRYPTO_ALG_TYPE_KPP Key-agreement Protocol Primitive (KPP) such as
an ECDH or DH implementation

Expand Down
4 changes: 0 additions & 4 deletions Documentation/crypto/crypto_engine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ request by using:
When your driver receives a crypto_request, you must to transfer it to
the crypto engine via one of:

* crypto_transfer_ablkcipher_request_to_engine()

* crypto_transfer_aead_request_to_engine()

* crypto_transfer_akcipher_request_to_engine()
Expand All @@ -75,8 +73,6 @@ the crypto engine via one of:

At the end of the request process, a call to one of the following functions is needed:

* crypto_finalize_ablkcipher_request()

* crypto_finalize_aead_request()

* crypto_finalize_akcipher_request()
Expand Down
4 changes: 1 addition & 3 deletions crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ obj-$(CONFIG_CRYPTO_ALGAPI2) += crypto_algapi.o
obj-$(CONFIG_CRYPTO_AEAD2) += aead.o
obj-$(CONFIG_CRYPTO_AEAD2) += geniv.o

crypto_skcipher-y := ablkcipher.o
crypto_skcipher-y += skcipher.o
obj-$(CONFIG_CRYPTO_SKCIPHER2) += crypto_skcipher.o
obj-$(CONFIG_CRYPTO_SKCIPHER2) += skcipher.o
obj-$(CONFIG_CRYPTO_SEQIV) += seqiv.o
obj-$(CONFIG_CRYPTO_ECHAINIV) += echainiv.o

Expand Down
Loading

0 comments on commit d63007e

Please sign in to comment.