Package com.neilalexander.jnacl.crypto
Class xsalsa20poly1305
java.lang.Object
com.neilalexander.jnacl.crypto.xsalsa20poly1305
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcrypto_secretbox(byte[] c, byte[] m, long mlen, byte[] n, byte[] k) static intcrypto_secretbox_nopad(byte[] c, int coffset, byte[] m, int moffset, long mlen, byte[] n, byte[] k) static intcrypto_secretbox_open(byte[] m, byte[] c, long clen, byte[] n, byte[] k) static intcrypto_secretbox_open_nopad(byte[] m, int moffset, byte[] c, int coffset, long clen, byte[] n, byte[] k)
-
Constructor Details
-
xsalsa20poly1305
public xsalsa20poly1305()
-
-
Method Details
-
crypto_secretbox
public static int crypto_secretbox(byte[] c, byte[] m, long mlen, byte[] n, byte[] k) -
crypto_secretbox_nopad
public static int crypto_secretbox_nopad(byte[] c, int coffset, byte[] m, int moffset, long mlen, byte[] n, byte[] k) -
crypto_secretbox_open
public static int crypto_secretbox_open(byte[] m, byte[] c, long clen, byte[] n, byte[] k) -
crypto_secretbox_open_nopad
public static int crypto_secretbox_open_nopad(byte[] m, int moffset, byte[] c, int coffset, long clen, byte[] n, byte[] k)
-