public class TweetNaCl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TweetNaCl.InvalidCipherTextException |
static class |
TweetNaCl.InvalidSignatureException |
Modifier and Type | Field and Description |
---|---|
static int |
BOX_NONCE_BYTES |
static int |
BOX_OVERHEAD_BYTES |
static int |
BOX_PUBLIC_KEY_BYTES |
static int |
BOX_SECRET_KEY_BYTES |
static int |
BOX_SHARED_KEY_BYTES |
static int |
crypto_auth_hmacsha512256_tweet_BYTES |
static int |
crypto_auth_hmacsha512256_tweet_KEYBYTES |
static int |
HASH_SIZE_BYTES |
static int |
SECRETBOX_KEY_BYTES |
static int |
SECRETBOX_NONCE_BYTES |
static int |
SECRETBOX_OVERHEAD_BYTES |
static int |
SIGN_KEYPAIR_SEED_BYTES |
static int |
SIGN_PUBLIC_KEY_BYTES |
static int |
SIGN_SECRET_KEY_BYTES |
static int |
SIGNATURE_SIZE_BYTES |
Constructor and Description |
---|
TweetNaCl() |
Modifier and Type | Method and Description |
---|---|
static int |
crypto_box_keypair(byte[] y,
byte[] x,
boolean isSeeded) |
static byte[] |
crypto_box_open(byte[] cipher,
byte[] nonce,
byte[] theirPublicBoxingKey,
byte[] secretBoxingKey) |
static byte[] |
crypto_box(byte[] message,
byte[] nonce,
byte[] theirPublicBoxingKey,
byte[] ourSecretBoxingKey) |
static int |
crypto_scalarmult_base(byte[] q,
byte[] n) |
static void |
crypto_sign_keypair(byte[] pk,
byte[] sk,
boolean isSeeded) |
static byte[] |
crypto_sign_open(byte[] signed,
byte[] publicSigningKey) |
static byte[] |
crypto_sign(byte[] message,
byte[] secretSigningKey) |
static int |
ld32(byte[] x,
int off) |
static void |
randombytes(byte[] b,
int len) |
static byte[] |
secretbox_open(byte[] cipher,
byte[] nonce,
byte[] key) |
static byte[] |
secretbox(byte[] mesage,
byte[] nonce,
byte[] key) |
public static final int crypto_auth_hmacsha512256_tweet_BYTES
public static final int crypto_auth_hmacsha512256_tweet_KEYBYTES
public static final int BOX_PUBLIC_KEY_BYTES
public static final int BOX_SECRET_KEY_BYTES
public static final int BOX_SHARED_KEY_BYTES
public static final int BOX_NONCE_BYTES
public static final int BOX_OVERHEAD_BYTES
public static final int SIGNATURE_SIZE_BYTES
public static final int SIGN_PUBLIC_KEY_BYTES
public static final int SIGN_SECRET_KEY_BYTES
public static final int SIGN_KEYPAIR_SEED_BYTES
public static final int SECRETBOX_KEY_BYTES
public static final int SECRETBOX_NONCE_BYTES
public static final int SECRETBOX_OVERHEAD_BYTES
public static final int HASH_SIZE_BYTES
public static void crypto_sign_keypair(byte[] pk, byte[] sk, boolean isSeeded)
public static int crypto_box_keypair(byte[] y, byte[] x, boolean isSeeded)
public static int crypto_scalarmult_base(byte[] q, byte[] n)
public static byte[] crypto_sign(byte[] message, byte[] secretSigningKey)
public static byte[] crypto_sign_open(byte[] signed, byte[] publicSigningKey)
public static byte[] crypto_box(byte[] message, byte[] nonce, byte[] theirPublicBoxingKey, byte[] ourSecretBoxingKey)
public static byte[] crypto_box_open(byte[] cipher, byte[] nonce, byte[] theirPublicBoxingKey, byte[] secretBoxingKey)
public static byte[] secretbox(byte[] mesage, byte[] nonce, byte[] key)
public static byte[] secretbox_open(byte[] cipher, byte[] nonce, byte[] key)
public static int ld32(byte[] x, int off)
public static void randombytes(byte[] b, int len)