// SPDX-License-Identifier: GPL-2.0 OR MIT1/*2* Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.3*4* This is an implementation of the Curve25519 ECDH algorithm, using either5* a 32-bit implementation or a 64-bit implementation with 128-bit integers,6* depending on what is supported by the target compiler.7*8* Information: https://cr.yp.to/ecdh.html9*/1011#include <crypto/curve25519.h>12#include <linux/module.h>13#include <linux/init.h>1415static int __init curve25519_init(void)16{17if (IS_ENABLED(CONFIG_CRYPTO_SELFTESTS) &&18WARN_ON(!curve25519_selftest()))19return -ENODEV;20return 0;21}2223static void __exit curve25519_exit(void)24{25}2627module_init(curve25519_init);28module_exit(curve25519_exit);2930MODULE_LICENSE("GPL v2");31MODULE_DESCRIPTION("Curve25519 scalar multiplication");32MODULE_AUTHOR("Jason A. Donenfeld <[email protected]>");333435