Skip to content

Commit 6eed1e3

Browse files
committed
crypto: api - Mark cra_init/cra_exit as deprecated
These functions have been obsoleted by the type-specific init/exit functions. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent bebe54b commit 6eed1e3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

include/linux/crypto.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -300,17 +300,8 @@ struct cipher_alg {
300300
* by @cra_type and @cra_flags above, the associated structure must be
301301
* filled with callbacks. This field might be empty. This is the case
302302
* for ahash, shash.
303-
* @cra_init: Initialize the cryptographic transformation object. This function
304-
* is used to initialize the cryptographic transformation object.
305-
* This function is called only once at the instantiation time, right
306-
* after the transformation context was allocated. In case the
307-
* cryptographic hardware has some special requirements which need to
308-
* be handled by software, this function shall check for the precise
309-
* requirement of the transformation and put any software fallbacks
310-
* in place.
311-
* @cra_exit: Deinitialize the cryptographic transformation object. This is a
312-
* counterpart to @cra_init, used to remove various changes set in
313-
* @cra_init.
303+
* @cra_init: Deprecated, do not use.
304+
* @cra_exit: Deprecated, do not use.
314305
* @cra_u.cipher: Union member which contains a single-block symmetric cipher
315306
* definition. See @struct @cipher_alg.
316307
* @cra_module: Owner of this transformation implementation. Set to THIS_MODULE

0 commit comments

Comments
 (0)