Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0 OR MIT
0002 /*
0003  * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
0004  *
0005  * This is an implementation of the Curve25519 ECDH algorithm, using either
0006  * a 32-bit implementation or a 64-bit implementation with 128-bit integers,
0007  * depending on what is supported by the target compiler.
0008  *
0009  * Information: https://cr.yp.to/ecdh.html
0010  */
0011 
0012 #include <crypto/curve25519.h>
0013 #include <linux/module.h>
0014 
0015 const u8 curve25519_null_point[CURVE25519_KEY_SIZE] __aligned(32) = { 0 };
0016 const u8 curve25519_base_point[CURVE25519_KEY_SIZE] __aligned(32) = { 9 };
0017 
0018 EXPORT_SYMBOL(curve25519_null_point);
0019 EXPORT_SYMBOL(curve25519_base_point);
0020 EXPORT_SYMBOL(curve25519_generic);
0021 
0022 MODULE_LICENSE("GPL v2");
0023 MODULE_DESCRIPTION("Curve25519 scalar multiplication");
0024 MODULE_AUTHOR("Jason A. Donenfeld <Jason@zx2c4.com>");