| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Cryptographic API. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 11 | 12 | * compatibility with these implementations. |
|---|
| 12 | 13 | * |
|---|
| 13 | 14 | * Copyright (c) 2004 Aaron Grothe ajgrothe@yahoo.com |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 16 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 17 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 18 | | - * (at your option) any later version. |
|---|
| 19 | | - * |
|---|
| 20 | 15 | */ |
|---|
| 21 | 16 | |
|---|
| 22 | 17 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 221 | 216 | |
|---|
| 222 | 217 | static struct crypto_alg tea_algs[3] = { { |
|---|
| 223 | 218 | .cra_name = "tea", |
|---|
| 219 | + .cra_driver_name = "tea-generic", |
|---|
| 224 | 220 | .cra_flags = CRYPTO_ALG_TYPE_CIPHER, |
|---|
| 225 | 221 | .cra_blocksize = TEA_BLOCK_SIZE, |
|---|
| 226 | 222 | .cra_ctxsize = sizeof (struct tea_ctx), |
|---|
| .. | .. |
|---|
| 234 | 230 | .cia_decrypt = tea_decrypt } } |
|---|
| 235 | 231 | }, { |
|---|
| 236 | 232 | .cra_name = "xtea", |
|---|
| 233 | + .cra_driver_name = "xtea-generic", |
|---|
| 237 | 234 | .cra_flags = CRYPTO_ALG_TYPE_CIPHER, |
|---|
| 238 | 235 | .cra_blocksize = XTEA_BLOCK_SIZE, |
|---|
| 239 | 236 | .cra_ctxsize = sizeof (struct xtea_ctx), |
|---|
| .. | .. |
|---|
| 247 | 244 | .cia_decrypt = xtea_decrypt } } |
|---|
| 248 | 245 | }, { |
|---|
| 249 | 246 | .cra_name = "xeta", |
|---|
| 247 | + .cra_driver_name = "xeta-generic", |
|---|
| 250 | 248 | .cra_flags = CRYPTO_ALG_TYPE_CIPHER, |
|---|
| 251 | 249 | .cra_blocksize = XTEA_BLOCK_SIZE, |
|---|
| 252 | 250 | .cra_ctxsize = sizeof (struct xtea_ctx), |
|---|
| .. | .. |
|---|
| 274 | 272 | MODULE_ALIAS_CRYPTO("xtea"); |
|---|
| 275 | 273 | MODULE_ALIAS_CRYPTO("xeta"); |
|---|
| 276 | 274 | |
|---|
| 277 | | -module_init(tea_mod_init); |
|---|
| 275 | +subsys_initcall(tea_mod_init); |
|---|
| 278 | 276 | module_exit(tea_mod_fini); |
|---|
| 279 | 277 | |
|---|
| 280 | 278 | MODULE_LICENSE("GPL"); |
|---|