Class curve25519

java.lang.Object
com.neilalexander.jnacl.crypto.curve25519

public class curve25519 extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static byte[]
     
    (package private) final int
     
    (package private) final int
     
    (package private) static int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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
  • Field Details

    • CRYPTO_BYTES

      final int CRYPTO_BYTES
      See Also:
    • CRYPTO_SCALARBYTES

      final int CRYPTO_SCALARBYTES
      See Also:
    • basev

      static byte[] basev
    • minusp

      static int[] minusp
  • Constructor Details

    • curve25519

      public curve25519()
  • Method Details

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