18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 OR MIT
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * This is an implementation of the Curve25519 ECDH algorithm, using either
68c2ecf20Sopenharmony_ci * a 32-bit implementation or a 64-bit implementation with 128-bit integers,
78c2ecf20Sopenharmony_ci * depending on what is supported by the target compiler.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * Information: https://cr.yp.to/ecdh.html
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include <crypto/curve25519.h>
138c2ecf20Sopenharmony_ci#include <linux/module.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciconst u8 curve25519_null_point[CURVE25519_KEY_SIZE] __aligned(32) = { 0 };
168c2ecf20Sopenharmony_ciconst u8 curve25519_base_point[CURVE25519_KEY_SIZE] __aligned(32) = { 9 };
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciEXPORT_SYMBOL(curve25519_null_point);
198c2ecf20Sopenharmony_ciEXPORT_SYMBOL(curve25519_base_point);
208c2ecf20Sopenharmony_ciEXPORT_SYMBOL(curve25519_generic);
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2");
238c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Curve25519 scalar multiplication");
248c2ecf20Sopenharmony_ciMODULE_AUTHOR("Jason A. Donenfeld <Jason@zx2c4.com>");
25