public static final class TweetNaclFast.SecretBox extends Object
Modifier and Type | Field and Description |
---|---|
static int |
boxzerobytesLength |
static int |
keyLength |
static int |
nonceLength |
static int |
overheadLength |
static int |
zerobytesLength |
Constructor and Description |
---|
SecretBox(byte[] key) |
SecretBox(byte[] key,
long nonce) |
Modifier and Type | Method and Description |
---|---|
byte[] |
box(byte[] message) |
byte[] |
box(byte[] message,
byte[] theNonce) |
byte[] |
box(byte[] message,
int moff) |
byte[] |
box(byte[] message,
int moff,
byte[] theNonce) |
byte[] |
box(byte[] message,
int moff,
int mlen) |
byte[] |
box(byte[] message,
int moff,
int mlen,
byte[] theNonce) |
long |
getNonce() |
long |
incrNonce() |
byte[] |
open(byte[] box) |
byte[] |
open(byte[] box,
byte[] theNonce) |
byte[] |
open(byte[] box,
int boxoff) |
byte[] |
open(byte[] box,
int boxoff,
byte[] theNonce) |
byte[] |
open(byte[] box,
int boxoff,
int boxlen) |
byte[] |
open(byte[] box,
int boxoff,
int boxlen,
byte[] theNonce) |
void |
setNonce(long nonce) |
public static final int keyLength
public static final int nonceLength
public static final int overheadLength
public static final int zerobytesLength
public static final int boxzerobytesLength
public SecretBox(byte[] key)
public SecretBox(byte[] key, long nonce)
public void setNonce(long nonce)
public long getNonce()
public long incrNonce()
public byte[] box(byte[] message)
public byte[] box(byte[] message, int moff)
public byte[] box(byte[] message, int moff, int mlen)
public byte[] box(byte[] message, byte[] theNonce)
public byte[] box(byte[] message, int moff, byte[] theNonce)
public byte[] box(byte[] message, int moff, int mlen, byte[] theNonce)
public byte[] open(byte[] box)
public byte[] open(byte[] box, int boxoff)
public byte[] open(byte[] box, int boxoff, int boxlen)
public byte[] open(byte[] box, byte[] theNonce)
public byte[] open(byte[] box, int boxoff, byte[] theNonce)
public byte[] open(byte[] box, int boxoff, int boxlen, byte[] theNonce)