| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PRNG: Pseudo Random Number Generator |
|---|
| 3 | 4 | * Based on NIST Recommended PRNG From ANSI X9.31 Appendix A.2.4 using |
|---|
| 4 | 5 | * AES 128 cipher |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * (C) Neil Horman <nhorman@tuxdriver.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 10 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 11 | | - * any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * |
|---|
| 14 | 8 | */ |
|---|
| 15 | 9 | |
|---|
| 10 | +#include <crypto/internal/cipher.h> |
|---|
| 16 | 11 | #include <crypto/internal/rng.h> |
|---|
| 17 | 12 | #include <linux/err.h> |
|---|
| 18 | 13 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 472 | 467 | MODULE_AUTHOR("Neil Horman <nhorman@tuxdriver.com>"); |
|---|
| 473 | 468 | module_param(dbg, int, 0); |
|---|
| 474 | 469 | MODULE_PARM_DESC(dbg, "Boolean to enable debugging (0/1 == off/on)"); |
|---|
| 475 | | -module_init(prng_mod_init); |
|---|
| 470 | +subsys_initcall(prng_mod_init); |
|---|
| 476 | 471 | module_exit(prng_mod_fini); |
|---|
| 477 | 472 | MODULE_ALIAS_CRYPTO("stdrng"); |
|---|
| 478 | 473 | MODULE_ALIAS_CRYPTO("ansi_cprng"); |
|---|
| 474 | +MODULE_IMPORT_NS(CRYPTO_INTERNAL); |
|---|