aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authortcharding <me@tobin.cc>2018-01-06 18:01:43 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-12 07:03:44 -0500
commitb40fa82cd6138350f723aa47b37e3e3e80906b40 (patch)
tree6b81e96c62b78d8f18614b8c2a5f528465187b27 /include/crypto
parentc9a3ff8f22a2df5ec6de18ba616a863392269a10 (diff)
crypto: doc - clear htmldocs build warnings for crypto/hash
SPHINX build emits multiple warnings of kind: warning: duplicate section name 'Note' (when building kernel via make target 'htmldocs') This is caused by repeated use of comments of form: * Note: soau soaeusoa uoe We can change the format without loss of clarity and clear the build warnings. Add '**[mandatory]**' or '**[optional]**' as kernel-doc field element description prefix This renders in HTML as (prefixes in bold) final [mandatory] Retrieve result from the driver. This function finalizes the transformation and retrieves the resulting hash from the driver and pushes it back to upper layers. No data processing happens at this point unless hardware requires it to finish the transformation (then the data buffered by the device driver is processed). Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/hash.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h
index 3880793e280e..2d1849dffb80 100644
--- a/include/crypto/hash.h
+++ b/include/crypto/hash.h
@@ -71,12 +71,11 @@ struct ahash_request {
71 71
72/** 72/**
73 * struct ahash_alg - asynchronous message digest definition 73 * struct ahash_alg - asynchronous message digest definition
74 * @init: Initialize the transformation context. Intended only to initialize the 74 * @init: **[mandatory]** Initialize the transformation context. Intended only to initialize the
75 * state of the HASH transformation at the beginning. This shall fill in 75 * state of the HASH transformation at the beginning. This shall fill in
76 * the internal structures used during the entire duration of the whole 76 * the internal structures used during the entire duration of the whole
77 * transformation. No data processing happens at this point. 77 * transformation. No data processing happens at this point.
78 * Note: mandatory. 78 * @update: **[mandatory]** Push a chunk of data into the driver for transformation. This
79 * @update: Push a chunk of data into the driver for transformation. This
80 * function actually pushes blocks of data from upper layers into the 79 * function actually pushes blocks of data from upper layers into the
81 * driver, which then passes those to the hardware as seen fit. This 80 * driver, which then passes those to the hardware as seen fit. This
82 * function must not finalize the HASH transformation by calculating the 81 * function must not finalize the HASH transformation by calculating the
@@ -85,20 +84,17 @@ struct ahash_request {
85 * context, as this function may be called in parallel with the same 84 * context, as this function may be called in parallel with the same
86 * transformation object. Data processing can happen synchronously 85 * transformation object. Data processing can happen synchronously
87 * [SHASH] or asynchronously [AHASH] at this point. 86 * [SHASH] or asynchronously [AHASH] at this point.
88 * Note: mandatory. 87 * @final: **[mandatory]** Retrieve result from the driver. This function finalizes the
89 * @final: Retrieve result from the driver. This function finalizes the
90 * transformation and retrieves the resulting hash from the driver and 88 * transformation and retrieves the resulting hash from the driver and
91 * pushes it back to upper layers. No data processing happens at this 89 * pushes it back to upper layers. No data processing happens at this
92 * point unless hardware requires it to finish the transformation 90 * point unless hardware requires it to finish the transformation
93 * (then the data buffered by the device driver is processed). 91 * (then the data buffered by the device driver is processed).
94 * Note: mandatory. 92 * @finup: **[optional]** Combination of @update and @final. This function is effectively a
95 * @finup: Combination of @update and @final. This function is effectively a
96 * combination of @update and @final calls issued in sequence. As some 93 * combination of @update and @final calls issued in sequence. As some
97 * hardware cannot do @update and @final separately, this callback was 94 * hardware cannot do @update and @final separately, this callback was
98 * added to allow such hardware to be used at least by IPsec. Data 95 * added to allow such hardware to be used at least by IPsec. Data
99 * processing can happen synchronously [SHASH] or asynchronously [AHASH] 96 * processing can happen synchronously [SHASH] or asynchronously [AHASH]
100 * at this point. 97 * at this point.
101 * Note: optional.
102 * @digest: Combination of @init and @update and @final. This function 98 * @digest: Combination of @init and @update and @final. This function
103 * effectively behaves as the entire chain of operations, @init, 99 * effectively behaves as the entire chain of operations, @init,
104 * @update and @final issued in sequence. Just like @finup, this was 100 * @update and @final issued in sequence. Just like @finup, this was