Package com.neilalexander.jnacl.crypto
Class curve25519xsalsa20poly1305
- java.lang.Object
-
- com.neilalexander.jnacl.crypto.curve25519xsalsa20poly1305
-
public class curve25519xsalsa20poly1305 extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
crypto_secretbox_BEFORENMBYTES
static int
crypto_secretbox_BOXZEROBYTES
static int
crypto_secretbox_NONCEBYTES
static int
crypto_secretbox_PUBLICKEYBYTES
static int
crypto_secretbox_SECRETKEYBYTES
static int
crypto_secretbox_ZEROBYTES
-
Constructor Summary
Constructors Constructor Description curve25519xsalsa20poly1305()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
crypto_secretbox_PUBLICKEYBYTES
public static final int crypto_secretbox_PUBLICKEYBYTES
- See Also:
- Constant Field Values
-
crypto_secretbox_SECRETKEYBYTES
public static final int crypto_secretbox_SECRETKEYBYTES
- See Also:
- Constant Field Values
-
crypto_secretbox_BEFORENMBYTES
public static final int crypto_secretbox_BEFORENMBYTES
- See Also:
- Constant Field Values
-
crypto_secretbox_NONCEBYTES
public static final int crypto_secretbox_NONCEBYTES
- See Also:
- Constant Field Values
-
crypto_secretbox_ZEROBYTES
public static final int crypto_secretbox_ZEROBYTES
- See Also:
- Constant Field Values
-
crypto_secretbox_BOXZEROBYTES
public static final int crypto_secretbox_BOXZEROBYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-