Class xsalsa20

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

public class xsalsa20 extends Object
  • Field Details

    • crypto_stream_xsalsa20_ref_KEYBYTES

      final int crypto_stream_xsalsa20_ref_KEYBYTES
      See Also:
    • crypto_stream_xsalsa20_ref_NONCEBYTES

      final int crypto_stream_xsalsa20_ref_NONCEBYTES
      See Also:
    • sigma

      public static final byte[] sigma
  • Constructor Details

    • xsalsa20

      public xsalsa20()
  • Method Details

    • crypto_stream

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

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