Class Curve25519

java.lang.Object
com.sshtools.common.ssh.components.jce.Curve25519

public class Curve25519 extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final byte[]
     
    static final byte[]
     
    static final byte[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final void
    clamp(byte[] k)
    KEY AGREEMENT
    static final void
    curve(byte[] Z, byte[] k, byte[] P)
     
    static final void
    keygen(byte[] P, byte[] s, byte[] k)
     
    static final boolean
    sign(byte[] v, byte[] h, byte[] x, byte[] s)
    DIGITAL SIGNATURES
    static final void
    verify(byte[] Y, byte[] v, byte[] h, byte[] P)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • KEY_SIZE

      public static final int KEY_SIZE
      See Also:
    • ZERO

      public static final byte[] ZERO
    • PRIME

      public static final byte[] PRIME
    • ORDER

      public static final byte[] ORDER
  • Constructor Details

    • Curve25519

      public Curve25519()
  • Method Details

    • clamp

      public static final void clamp(byte[] k)
      KEY AGREEMENT
    • keygen

      public static final void keygen(byte[] P, byte[] s, byte[] k)
    • curve

      public static final void curve(byte[] Z, byte[] k, byte[] P)
    • sign

      public static final boolean sign(byte[] v, byte[] h, byte[] x, byte[] s)
      DIGITAL SIGNATURES
    • verify

      public static final void verify(byte[] Y, byte[] v, byte[] h, byte[] P)