Skip to content

Commit 3b72c81

Browse files
smuellerDDJonathan Corbet
authored andcommitted
crypto: doc - convert crypto API documentation to Sphinx
With the conversion of the kernel crypto API DocBook to Sphinx, the monolithic document is broken up into individual documents. The documentation is unchanged with the exception of a slight reordering to keep the individual document parts self-contained. Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 868c97a commit 3b72c81

13 files changed

Lines changed: 1897 additions & 0 deletions

‎Documentation/crypto/api-aead.rst‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
Authenticated Encryption With Associated Data (AEAD) Algorithm Definitions
2+
--------------------------------------------------------------------------
3+
4+
.. kernel-doc:: include/crypto/aead.h
5+
:doc: Authenticated Encryption With Associated Data (AEAD) Cipher API
6+
7+
.. kernel-doc:: include/crypto/aead.h
8+
:functions: aead_request
9+
10+
.. kernel-doc:: include/crypto/aead.h
11+
:functions: aead_alg
12+
13+
Authenticated Encryption With Associated Data (AEAD) Cipher API
14+
---------------------------------------------------------------
15+
16+
.. kernel-doc:: include/crypto/aead.h
17+
:functions: crypto_alloc_aead
18+
19+
.. kernel-doc:: include/crypto/aead.h
20+
:functions: crypto_free_aead
21+
22+
.. kernel-doc:: include/crypto/aead.h
23+
:functions: crypto_aead_ivsize
24+
25+
.. kernel-doc:: include/crypto/aead.h
26+
:functions: crypto_aead_authsize
27+
28+
.. kernel-doc:: include/crypto/aead.h
29+
:functions: crypto_aead_blocksize
30+
31+
.. kernel-doc:: include/crypto/aead.h
32+
:functions: crypto_aead_setkey
33+
34+
.. kernel-doc:: include/crypto/aead.h
35+
:functions: crypto_aead_setauthsize
36+
37+
.. kernel-doc:: include/crypto/aead.h
38+
:functions: crypto_aead_encrypt
39+
40+
.. kernel-doc:: include/crypto/aead.h
41+
:functions: crypto_aead_decrypt
42+
43+
Asynchronous AEAD Request Handle
44+
--------------------------------
45+
46+
.. kernel-doc:: include/crypto/aead.h
47+
:doc: Asynchronous AEAD Request Handle
48+
49+
.. kernel-doc:: include/crypto/aead.h
50+
:functions: crypto_aead_reqsize
51+
52+
.. kernel-doc:: include/crypto/aead.h
53+
:functions: aead_request_set_tfm
54+
55+
.. kernel-doc:: include/crypto/aead.h
56+
:functions: aead_request_alloc
57+
58+
.. kernel-doc:: include/crypto/aead.h
59+
:functions: aead_request_free
60+
61+
.. kernel-doc:: include/crypto/aead.h
62+
:functions: aead_request_set_callback
63+
64+
.. kernel-doc:: include/crypto/aead.h
65+
:functions: aead_request_set_crypt
66+
67+
.. kernel-doc:: include/crypto/aead.h
68+
:functions: aead_request_set_ad
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Asymmetric Cipher Algorithm Definitions
2+
---------------------------------------
3+
4+
.. kernel-doc:: include/crypto/akcipher.h
5+
:functions: akcipher_alg
6+
7+
.. kernel-doc:: include/crypto/akcipher.h
8+
:functions: akcipher_request
9+
10+
Asymmetric Cipher API
11+
---------------------
12+
13+
.. kernel-doc:: include/crypto/akcipher.h
14+
:doc: Generic Public Key API
15+
16+
.. kernel-doc:: include/crypto/akcipher.h
17+
:functions: crypto_alloc_akcipher
18+
19+
.. kernel-doc:: include/crypto/akcipher.h
20+
:functions: crypto_free_akcipher
21+
22+
.. kernel-doc:: include/crypto/akcipher.h
23+
:functions: crypto_akcipher_set_pub_key
24+
25+
.. kernel-doc:: include/crypto/akcipher.h
26+
:functions: crypto_akcipher_set_priv_key
27+
28+
Asymmetric Cipher Request Handle
29+
--------------------------------
30+
31+
.. kernel-doc:: include/crypto/akcipher.h
32+
:functions: akcipher_request_alloc
33+
34+
.. kernel-doc:: include/crypto/akcipher.h
35+
:functions: akcipher_request_free
36+
37+
.. kernel-doc:: include/crypto/akcipher.h
38+
:functions: akcipher_request_set_callback
39+
40+
.. kernel-doc:: include/crypto/akcipher.h
41+
:functions: akcipher_request_set_crypt
42+
43+
.. kernel-doc:: include/crypto/akcipher.h
44+
:functions: crypto_akcipher_maxsize
45+
46+
.. kernel-doc:: include/crypto/akcipher.h
47+
:functions: crypto_akcipher_encrypt
48+
49+
.. kernel-doc:: include/crypto/akcipher.h
50+
:functions: crypto_akcipher_decrypt
51+
52+
.. kernel-doc:: include/crypto/akcipher.h
53+
:functions: crypto_akcipher_sign
54+
55+
.. kernel-doc:: include/crypto/akcipher.h
56+
:functions: crypto_akcipher_verify
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
Message Digest Algorithm Definitions
2+
------------------------------------
3+
4+
.. kernel-doc:: include/crypto/hash.h
5+
:doc: Message Digest Algorithm Definitions
6+
7+
.. kernel-doc:: include/crypto/hash.h
8+
:functions: hash_alg_common
9+
10+
.. kernel-doc:: include/crypto/hash.h
11+
:functions: ahash_alg
12+
13+
.. kernel-doc:: include/crypto/hash.h
14+
:functions: shash_alg
15+
16+
Asynchronous Message Digest API
17+
-------------------------------
18+
19+
.. kernel-doc:: include/crypto/hash.h
20+
:doc: Asynchronous Message Digest API
21+
22+
.. kernel-doc:: include/crypto/hash.h
23+
:functions: crypto_alloc_ahash
24+
25+
.. kernel-doc:: include/crypto/hash.h
26+
:functions: crypto_free_ahash
27+
28+
.. kernel-doc:: include/crypto/hash.h
29+
:functions: crypto_ahash_init
30+
31+
.. kernel-doc:: include/crypto/hash.h
32+
:functions: crypto_ahash_digestsize
33+
34+
.. kernel-doc:: include/crypto/hash.h
35+
:functions: crypto_ahash_reqtfm
36+
37+
.. kernel-doc:: include/crypto/hash.h
38+
:functions: crypto_ahash_reqsize
39+
40+
.. kernel-doc:: include/crypto/hash.h
41+
:functions: crypto_ahash_setkey
42+
43+
.. kernel-doc:: include/crypto/hash.h
44+
:functions: crypto_ahash_finup
45+
46+
.. kernel-doc:: include/crypto/hash.h
47+
:functions: crypto_ahash_final
48+
49+
.. kernel-doc:: include/crypto/hash.h
50+
:functions: crypto_ahash_digest
51+
52+
.. kernel-doc:: include/crypto/hash.h
53+
:functions: crypto_ahash_export
54+
55+
.. kernel-doc:: include/crypto/hash.h
56+
:functions: crypto_ahash_import
57+
58+
Asynchronous Hash Request Handle
59+
--------------------------------
60+
61+
.. kernel-doc:: include/crypto/hash.h
62+
:doc: Asynchronous Hash Request Handle
63+
64+
.. kernel-doc:: include/crypto/hash.h
65+
:functions: ahash_request_set_tfm
66+
67+
.. kernel-doc:: include/crypto/hash.h
68+
:functions: ahash_request_alloc
69+
70+
.. kernel-doc:: include/crypto/hash.h
71+
:functions: ahash_request_free
72+
73+
.. kernel-doc:: include/crypto/hash.h
74+
:functions: ahash_request_set_callback
75+
76+
.. kernel-doc:: include/crypto/hash.h
77+
:functions: ahash_request_set_crypt
78+
79+
Synchronous Message Digest API
80+
------------------------------
81+
82+
.. kernel-doc:: include/crypto/hash.h
83+
:doc: Synchronous Message Digest API
84+
85+
.. kernel-doc:: include/crypto/hash.h
86+
:functions: crypto_alloc_shash
87+
88+
.. kernel-doc:: include/crypto/hash.h
89+
:functions: crypto_free_shash
90+
91+
.. kernel-doc:: include/crypto/hash.h
92+
:functions: crypto_shash_blocksize
93+
94+
.. kernel-doc:: include/crypto/hash.h
95+
:functions: crypto_shash_digestsize
96+
97+
.. kernel-doc:: include/crypto/hash.h
98+
:functions: crypto_shash_descsize
99+
100+
.. kernel-doc:: include/crypto/hash.h
101+
:functions: crypto_shash_setkey
102+
103+
.. kernel-doc:: include/crypto/hash.h
104+
:functions: crypto_shash_digest
105+
106+
.. kernel-doc:: include/crypto/hash.h
107+
:functions: crypto_shash_export
108+
109+
.. kernel-doc:: include/crypto/hash.h
110+
:functions: crypto_shash_import
111+
112+
.. kernel-doc:: include/crypto/hash.h
113+
:functions: crypto_shash_init
114+
115+
.. kernel-doc:: include/crypto/hash.h
116+
:functions: crypto_shash_update
117+
118+
.. kernel-doc:: include/crypto/hash.h
119+
:functions: crypto_shash_final
120+
121+
.. kernel-doc:: include/crypto/hash.h
122+
:functions: crypto_shash_finup

‎Documentation/crypto/api-rng.rst‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Random Number Algorithm Definitions
2+
-----------------------------------
3+
4+
.. kernel-doc:: include/crypto/rng.h
5+
:functions: rng_alg
6+
7+
Crypto API Random Number API
8+
----------------------------
9+
10+
.. kernel-doc:: include/crypto/rng.h
11+
:doc: Random number generator API
12+
13+
.. kernel-doc:: include/crypto/rng.h
14+
:functions: crypto_alloc_rng
15+
16+
.. kernel-doc:: include/crypto/rng.h
17+
:functions: crypto_rng_alg
18+
19+
.. kernel-doc:: include/crypto/rng.h
20+
:functions: crypto_free_rng
21+
22+
.. kernel-doc:: include/crypto/rng.h
23+
:functions: crypto_rng_generate
24+
25+
.. kernel-doc:: include/crypto/rng.h
26+
:functions: crypto_rng_get_bytes
27+
28+
.. kernel-doc:: include/crypto/rng.h
29+
:functions: crypto_rng_reset
30+
31+
.. kernel-doc:: include/crypto/rng.h
32+
:functions: crypto_rng_seedsize

0 commit comments

Comments
 (0)