aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 530dc4bf363c..6847ab0ea30e 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -194,8 +194,8 @@ static inline int crypto_alg_available(const char *name, u32 flags)
194 194
195/* 195/*
196 * Transforms: user-instantiated objects which encapsulate algorithms 196 * Transforms: user-instantiated objects which encapsulate algorithms
197 * and core processing logic. Managed via crypto_alloc_tfm() and 197 * and core processing logic. Managed via crypto_alloc_*() and
198 * crypto_free_tfm(), as well as the various helpers below. 198 * crypto_free_*(), as well as the various helpers below.
199 */ 199 */
200 200
201struct cipher_tfm { 201struct cipher_tfm {
@@ -278,16 +278,8 @@ struct crypto_attr_alg {
278 * Transform user interface. 278 * Transform user interface.
279 */ 279 */
280 280
281/*
282 * crypto_alloc_tfm() will first attempt to locate an already loaded algorithm.
283 * If that fails and the kernel supports dynamically loadable modules, it
284 * will then attempt to load a module of the same name or alias. A refcount
285 * is grabbed on the algorithm which is then associated with the new transform.
286 *
287 * crypto_free_tfm() frees up the transform and any associated resources,
288 * then drops the refcount on the associated algorithm.
289 */
290struct crypto_tfm *crypto_alloc_tfm(const char *alg_name, u32 tfm_flags); 281struct crypto_tfm *crypto_alloc_tfm(const char *alg_name, u32 tfm_flags);
282struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask);
291void crypto_free_tfm(struct crypto_tfm *tfm); 283void crypto_free_tfm(struct crypto_tfm *tfm);
292 284
293/* 285/*