Closed vikram919 closed 6 years ago
X25519 is not yet available through the provider ("curve25519" is not the same thing), however you can use the org.bouncycastle.math.ec.rfc7748.X25519 class directly. Refer to the org.bouncycastle.math.ec.rfc7748.test.X25519Test class to see how to perform ECDH.
Below is the code, how I have derived montgomery keypair:
How to perform ECDH using X25519 to derive shared secret?