Class Curve25519

java.lang.Object
com.southernstorm.noise.crypto.x25519.Curve25519

public final class Curve25519 extends Object
Implementation of the Curve25519 elliptic curve algorithm. This implementation is based on that from arduinolibs: https://github.com/rweather/arduinolibs Differences in this version are due to using 26-bit limbs for the representation instead of the 8/16/32-bit limbs in the original. References: http://cr.yp.to/ecdh.html, RFC 7748
Since:
0.9.36 moved from router to core in 0.9.38
  • Method Details

    • eval

      public static void eval(byte[] result, int offset, byte[] privateKey, byte[] publicKey)
      Evaluates the Curve25519 curve.
      Parameters:
      result - Buffer to place the result of the evaluation into.
      offset - Offset into the result buffer.
      privateKey - The private key to use in the evaluation.
      publicKey - The public key to use in the evaluation, or null if the base point of the curve should be used.