Class curve25519


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

      Fields 
      Modifier and Type Field Description
      (package private) static byte[] basev  
      (package private) int CRYPTO_BYTES  
      (package private) int CRYPTO_SCALARBYTES  
      (package private) static int[] minusp  
    • Constructor Summary

      Constructors 
      Constructor Description
      curve25519()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void add​(int[] outv, int outvoffset, int[] a, int aoffset, int[] b, int boffset)  
      static int crypto_scalarmult​(byte[] q, byte[] n, byte[] p)  
      static int crypto_scalarmult_base​(byte[] q, byte[] n)  
      (package private) static void freeze​(int[] a, int aoffset)  
      (package private) static void mainloop​(int[] work, byte[] e)  
      (package private) static void mult​(int[] outv, int outvoffset, int[] a, int aoffset, int[] b, int boffset)  
      (package private) static void mult121665​(int[] outv, int[] a)  
      (package private) static void recip​(int[] outv, int outvoffset, int[] z, int zoffset)  
      (package private) static void select​(int[] p, int[] q, int[] r, int[] s, int b)  
      (package private) static void square​(int[] outv, int outvoffset, int[] a, int aoffset)  
      (package private) static void squeeze​(int[] a, int aoffset)  
      (package private) static void sub​(int[] outv, int outvoffset, int[] a, int aoffset, int[] b, int boffset)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • curve25519

        public curve25519()
    • Method Detail

      • crypto_scalarmult_base

        public static int crypto_scalarmult_base​(byte[] q,
                                                 byte[] n)
      • add

        static void add​(int[] outv,
                        int outvoffset,
                        int[] a,
                        int aoffset,
                        int[] b,
                        int boffset)
      • sub

        static void sub​(int[] outv,
                        int outvoffset,
                        int[] a,
                        int aoffset,
                        int[] b,
                        int boffset)
      • squeeze

        static void squeeze​(int[] a,
                            int aoffset)
      • freeze

        static void freeze​(int[] a,
                           int aoffset)
      • mult

        static void mult​(int[] outv,
                         int outvoffset,
                         int[] a,
                         int aoffset,
                         int[] b,
                         int boffset)
      • mult121665

        static void mult121665​(int[] outv,
                               int[] a)
      • square

        static void square​(int[] outv,
                           int outvoffset,
                           int[] a,
                           int aoffset)
      • select

        static void select​(int[] p,
                           int[] q,
                           int[] r,
                           int[] s,
                           int b)
      • mainloop

        static void mainloop​(int[] work,
                             byte[] e)
      • recip

        static void recip​(int[] outv,
                          int outvoffset,
                          int[] z,
                          int zoffset)
      • crypto_scalarmult

        public static int crypto_scalarmult​(byte[] q,
                                            byte[] n,
                                            byte[] p)