1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
5 * This is an implementation of the Curve25519 ECDH algorithm, using either
6 * a 32-bit implementation or a 64-bit implementation with 128-bit integers,
7 * depending on what is supported by the target compiler.
9 * Information: https://cr.yp.to/ecdh.html
12 #include <crypto/curve25519.h>
13 #include <linux/module.h>
14 #include <linux/init.h>
16 bool curve25519_selftest(void);
18 static int __init
mod_init(void)
20 if (!IS_ENABLED(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
) &&
21 WARN_ON(!curve25519_selftest()))
26 static void __exit
mod_exit(void)
30 module_init(mod_init
);
31 module_exit(mod_exit
);
33 MODULE_LICENSE("GPL v2");
34 MODULE_DESCRIPTION("Curve25519 scalar multiplication");
35 MODULE_AUTHOR("Jason A. Donenfeld <Jason@zx2c4.com>");