Package com.neilalexander.jnacl.crypto
Class xsalsa20
java.lang.Object
com.neilalexander.jnacl.crypto.xsalsa20
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcrypto_stream(byte[] c, int clen, byte[] n, byte[] k) static intcrypto_stream_xor(byte[] c, byte[] m, long mlen, byte[] n, byte[] k) static intcrypto_stream_xor_skip32(byte[] c0, byte[] c, int coffset, byte[] m, int moffset, long mlen, byte[] n, byte[] k)
-
Field Details
-
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) -
crypto_stream_xor_skip32
public static int crypto_stream_xor_skip32(byte[] c0, byte[] c, int coffset, byte[] m, int moffset, long mlen, byte[] n, byte[] k)
-