public static final class TweetNaclFast.Signature extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TweetNaclFast.Signature.KeyPair |
Modifier and Type | Field and Description |
---|---|
static int |
publicKeyLength |
static int |
secretKeyLength |
static int |
seedLength |
static int |
signatureLength |
Constructor and Description |
---|
Signature(byte[] theirPublicKey,
byte[] mySecretKey) |
Modifier and Type | Method and Description |
---|---|
boolean |
detached_verify(byte[] message,
byte[] signature) |
byte[] |
detached(byte[] message) |
static TweetNaclFast.Signature.KeyPair |
keyPair_fromSecretKey(byte[] secretKey) |
static TweetNaclFast.Signature.KeyPair |
keyPair_fromSeed(byte[] seed) |
static TweetNaclFast.Signature.KeyPair |
keyPair() |
byte[] |
open(byte[] signedMessage) |
byte[] |
open(byte[] signedMessage,
int smoff) |
byte[] |
open(byte[] signedMessage,
int smoff,
int smlen) |
byte[] |
sign(byte[] message) |
byte[] |
sign(byte[] message,
int moff) |
byte[] |
sign(byte[] message,
int moff,
int mlen) |
public static final int publicKeyLength
public static final int secretKeyLength
public static final int seedLength
public static final int signatureLength
public byte[] sign(byte[] message)
public byte[] sign(byte[] message, int moff)
public byte[] sign(byte[] message, int moff, int mlen)
public byte[] open(byte[] signedMessage)
public byte[] open(byte[] signedMessage, int smoff)
public byte[] open(byte[] signedMessage, int smoff, int smlen)
public byte[] detached(byte[] message)
public boolean detached_verify(byte[] message, byte[] signature)
public static TweetNaclFast.Signature.KeyPair keyPair()
public static TweetNaclFast.Signature.KeyPair keyPair_fromSecretKey(byte[] secretKey)
public static TweetNaclFast.Signature.KeyPair keyPair_fromSeed(byte[] seed)