Package com.neilalexander.jnacl.crypto
Class curve25519xsalsa20poly1305
java.lang.Object
com.neilalexander.jnacl.crypto.curve25519xsalsa20poly1305
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
crypto_box
(byte[] c, byte[] m, byte[] n, byte[] pk, byte[] sk) static int
crypto_box
(byte[] c, byte[] m, long mlen, byte[] n, byte[] pk, byte[] sk) static int
crypto_box_afternm
(byte[] c, byte[] m, byte[] n, byte[] k) static int
crypto_box_afternm
(byte[] c, byte[] m, long mlen, byte[] n, byte[] k) static int
crypto_box_beforenm
(byte[] k, byte[] pk, byte[] sk) static int
crypto_box_getpublickey
(byte[] pk, byte[] sk) static int
crypto_box_keypair
(byte[] pk, byte[] sk) static int
crypto_box_open
(byte[] m, byte[] c, byte[] n, byte[] pk, byte[] sk) static int
crypto_box_open
(byte[] m, byte[] c, long clen, byte[] n, byte[] pk, byte[] sk) static int
crypto_box_open_afternm
(byte[] m, byte[] c, byte[] n, byte[] k) static int
crypto_box_open_afternm
(byte[] m, byte[] c, long clen, byte[] n, byte[] k)
-
Field Details
-
crypto_secretbox_PUBLICKEYBYTES
public static final int crypto_secretbox_PUBLICKEYBYTES- See Also:
-
crypto_secretbox_SECRETKEYBYTES
public static final int crypto_secretbox_SECRETKEYBYTES- See Also:
-
crypto_secretbox_BEFORENMBYTES
public static final int crypto_secretbox_BEFORENMBYTES- See Also:
-
crypto_secretbox_NONCEBYTES
public static final int crypto_secretbox_NONCEBYTES- See Also:
-
crypto_secretbox_ZEROBYTES
public static final int crypto_secretbox_ZEROBYTES- See Also:
-
crypto_secretbox_BOXZEROBYTES
public static final int crypto_secretbox_BOXZEROBYTES- See Also:
-
-
Constructor Details
-
curve25519xsalsa20poly1305
public curve25519xsalsa20poly1305()
-
-
Method Details
-
crypto_box_getpublickey
public static int crypto_box_getpublickey(byte[] pk, byte[] sk) -
crypto_box_keypair
public static int crypto_box_keypair(byte[] pk, byte[] sk) -
crypto_box_afternm
public static int crypto_box_afternm(byte[] c, byte[] m, long mlen, byte[] n, byte[] k) -
crypto_box_beforenm
public static int crypto_box_beforenm(byte[] k, byte[] pk, byte[] sk) -
crypto_box
public static int crypto_box(byte[] c, byte[] m, long mlen, byte[] n, byte[] pk, byte[] sk) -
crypto_box_open
public static int crypto_box_open(byte[] m, byte[] c, long clen, byte[] n, byte[] pk, byte[] sk) -
crypto_box_open_afternm
public static int crypto_box_open_afternm(byte[] m, byte[] c, long clen, byte[] n, byte[] k) -
crypto_box_afternm
public static int crypto_box_afternm(byte[] c, byte[] m, byte[] n, byte[] k) -
crypto_box_open_afternm
public static int crypto_box_open_afternm(byte[] m, byte[] c, byte[] n, byte[] k) -
crypto_box
public static int crypto_box(byte[] c, byte[] m, byte[] n, byte[] pk, byte[] sk) -
crypto_box_open
public static int crypto_box_open(byte[] m, byte[] c, byte[] n, byte[] pk, byte[] sk)
-