Class salsa20

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

public class salsa20 extends Object
  • Field Details

    • crypto_core_salsa20_ref_OUTPUTBYTES

      final int crypto_core_salsa20_ref_OUTPUTBYTES
      See Also:
    • crypto_core_salsa20_ref_INPUTBYTES

      final int crypto_core_salsa20_ref_INPUTBYTES
      See Also:
    • crypto_core_salsa20_ref_KEYBYTES

      final int crypto_core_salsa20_ref_KEYBYTES
      See Also:
    • crypto_core_salsa20_ref_CONSTBYTES

      final int crypto_core_salsa20_ref_CONSTBYTES
      See Also:
    • crypto_stream_salsa20_ref_KEYBYTES

      final int crypto_stream_salsa20_ref_KEYBYTES
      See Also:
    • crypto_stream_salsa20_ref_NONCEBYTES

      final int crypto_stream_salsa20_ref_NONCEBYTES
      See Also:
    • ROUNDS

      static final int ROUNDS
      See Also:
  • Constructor Details

    • salsa20

      public salsa20()
  • Method Details

    • rotate

      static long rotate(int u, int c)
    • load_littleendian

      static int load_littleendian(byte[] x, int offset)
    • store_littleendian

      static void store_littleendian(byte[] x, int offset, int u)
    • crypto_core

      public static int crypto_core(byte[] outv, byte[] inv, byte[] k, byte[] c)
    • crypto_stream

      public static int crypto_stream(byte[] c, int clen, byte[] n, int noffset, byte[] k)
    • crypto_stream_xor

      public static int crypto_stream_xor(byte[] c, byte[] m, int mlen, byte[] n, int noffset, byte[] k)