mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00

A sig_alg backend has just been introduced and all asymmetric sign/verify algorithms have been migrated to it. The sign/verify operations can thus be dropped from akcipher_alg. It is now purely for asymmetric encrypt/decrypt. Move struct crypto_akcipher_sync_data from internal.h to akcipher.c and unexport crypto_akcipher_sync_{prep,post}(): They're no longer used by sig.c but only locally in akcipher.c. In crypto_akcipher_sync_{prep,post}(), drop various NULL pointer checks for data->dst as they were only necessary for the verify operation. In the crypto_sig_*() API calls, remove the forks that were necessary while algorithms were converted from crypto_akcipher to crypto_sig one by one. In struct akcipher_testvec, remove the "params", "param_len" and "algo" elements as they were only needed for the ecrdsa verify operation. Remove corresponding dead code from test_akcipher_one() as well. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
21 lines
745 B
ReStructuredText
21 lines
745 B
ReStructuredText
Asymmetric Cipher Algorithm Definitions
|
|
---------------------------------------
|
|
|
|
.. kernel-doc:: include/crypto/akcipher.h
|
|
:functions: akcipher_alg akcipher_request
|
|
|
|
Asymmetric Cipher API
|
|
---------------------
|
|
|
|
.. kernel-doc:: include/crypto/akcipher.h
|
|
:doc: Generic Public Key API
|
|
|
|
.. kernel-doc:: include/crypto/akcipher.h
|
|
:functions: crypto_alloc_akcipher crypto_free_akcipher crypto_akcipher_set_pub_key crypto_akcipher_set_priv_key crypto_akcipher_maxsize crypto_akcipher_encrypt crypto_akcipher_decrypt
|
|
|
|
Asymmetric Cipher Request Handle
|
|
--------------------------------
|
|
|
|
.. kernel-doc:: include/crypto/akcipher.h
|
|
:functions: akcipher_request_alloc akcipher_request_free akcipher_request_set_callback akcipher_request_set_crypt
|