A synthetic Kotlin implementation of Curve25519. A fast Elliptic Curve - Diffie-Hellman function, including x25519 key pairs, shared secrets, x25519 signatures, and the XVEdDSA VRF signature algorithm backed by Java code. Based on Signal curve25519-java.
This implementation doesn't use a native C curve25519-donna and only relies on pure Java code of Signal. Thus, this is a downgrade version of Signal curve25519-java in terms of dynamic curve provider.
The caller initialize a singleton instance of Curve25519.
Additional implementation and improvements originated from this pull request were added in this codebase.
Implementation | Author | Ported To |
---|---|---|
Edwards-curve Digital Signature Algorithm | Java VRF support by k-s-t-i · Pull Request #37 | from C to Java |
- Add curve25519-donna C implementation [JNI] (Optional)
- Add option to use BouncyCastle's Curve25519 DJB implementation.
- Add native C jni implmentation of signal.
This implementation is derived from the original work of Open Whisper System Signal curve25519-java
- Curve25519: new Diffie-Hellman speed records - Daniel J. Bernstein, 2006
- Ed25519 signatures from Curve25519 keys - Trevor Perrin, 2014
- The XEdDSA and VXEdDSA Signature Schemes - Trevor Perrin, 2016
Copyright (C) 2015 Open Whisper Systems
Copyright (C) 2021 Creative Turbo Giants
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html