Package djb

Class Curve25519


  • public class Curve25519
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int KEY_SIZE  
      static byte[] ORDER  
      static byte[] PRIME  
      static byte[] ZERO  
    • Constructor Summary

      Constructors 
      Constructor Description
      Curve25519()  
    • Method Summary

      Modifier and Type Method Description
      static void clamp​(byte[] k)
      KEY AGREEMENT
      static void curve​(byte[] Z, byte[] k, byte[] P)  
      static void keygen​(byte[] P, byte[] s, byte[] k)  
      static boolean sign​(byte[] v, byte[] h, byte[] x, byte[] s)
      DIGITAL SIGNATURES
      static 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 Detail

      • ZERO

        public static final byte[] ZERO
      • PRIME

        public static final byte[] PRIME
      • ORDER

        public static final byte[] ORDER
    • Constructor Detail

      • Curve25519

        public Curve25519()
    • Method Detail

      • 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)