Class hsalsa20
java.lang.Object
com.neilalexander.jnacl.crypto.hsalsa20
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcrypto_core(byte[] outv, byte[] inv, byte[] k, byte[] c) (package private) static intload_littleendian(byte[] x, int offset) (package private) static introtate(int u, int c) (package private) static voidstore_littleendian(byte[] x, int offset, int u)
-
Field Details
-
ROUNDS
static final int ROUNDS- See Also:
-
-
Constructor Details
-
hsalsa20
public hsalsa20()
-
-
Method Details
-
rotate
static int 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)
-