| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Scatterlist Cryptographic API. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> |
|---|
| 7 | 8 | * 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 | | - * |
|---|
| 14 | 9 | */ |
|---|
| 15 | 10 | |
|---|
| 16 | 11 | #include <linux/atomic.h> |
|---|
| .. | .. |
|---|
| 41 | 36 | static int c_show(struct seq_file *m, void *p) |
|---|
| 42 | 37 | { |
|---|
| 43 | 38 | struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list); |
|---|
| 44 | | - |
|---|
| 39 | + |
|---|
| 45 | 40 | seq_printf(m, "name : %s\n", alg->cra_name); |
|---|
| 46 | 41 | seq_printf(m, "driver : %s\n", alg->cra_driver_name); |
|---|
| 47 | 42 | seq_printf(m, "module : %s\n", module_name(alg->cra_module)); |
|---|
| .. | .. |
|---|
| 64 | 59 | alg->cra_type->show(m, alg); |
|---|
| 65 | 60 | goto out; |
|---|
| 66 | 61 | } |
|---|
| 67 | | - |
|---|
| 68 | | - switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) { |
|---|
| 62 | + |
|---|
| 63 | + switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { |
|---|
| 69 | 64 | case CRYPTO_ALG_TYPE_CIPHER: |
|---|
| 70 | 65 | seq_printf(m, "type : cipher\n"); |
|---|
| 71 | 66 | seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); |
|---|