hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/crypto/proc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Scatterlist Cryptographic API.
34 *
....@@ -5,12 +6,6 @@
56 *
67 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
78 * Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au>
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License as published by the Free
11
- * Software Foundation; either version 2 of the License, or (at your option)
12
- * any later version.
13
- *
149 */
1510
1611 #include <linux/atomic.h>
....@@ -41,7 +36,7 @@
4136 static int c_show(struct seq_file *m, void *p)
4237 {
4338 struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list);
44
-
39
+
4540 seq_printf(m, "name : %s\n", alg->cra_name);
4641 seq_printf(m, "driver : %s\n", alg->cra_driver_name);
4742 seq_printf(m, "module : %s\n", module_name(alg->cra_module));
....@@ -64,8 +59,8 @@
6459 alg->cra_type->show(m, alg);
6560 goto out;
6661 }
67
-
68
- switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) {
62
+
63
+ switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) {
6964 case CRYPTO_ALG_TYPE_CIPHER:
7065 seq_printf(m, "type : cipher\n");
7166 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);