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