Package com.iwebpp.crypto
Class TweetNaclFast.Signature
- java.lang.Object
-
- com.iwebpp.crypto.TweetNaclFast.Signature
-
- Enclosing class:
- TweetNaclFast
public static final class TweetNaclFast.Signature extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TweetNaclFast.Signature.KeyPair
-
Field Summary
Fields Modifier and Type Field Description static int
publicKeyLength
static int
secretKeyLength
static int
seedLength
static int
signatureLength
-
Constructor Summary
Constructors Constructor Description Signature(byte[] theirPublicKey, byte[] mySecretKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
detached(byte[] message)
boolean
detached_verify(byte[] message, byte[] signature)
static TweetNaclFast.Signature.KeyPair
keyPair()
static TweetNaclFast.Signature.KeyPair
keyPair_fromSecretKey(byte[] secretKey)
static TweetNaclFast.Signature.KeyPair
keyPair_fromSeed(byte[] seed)
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)
-
-
-
Field Detail
-
publicKeyLength
public static final int publicKeyLength
- See Also:
- Constant Field Values
-
secretKeyLength
public static final int secretKeyLength
- See Also:
- Constant Field Values
-
seedLength
public static final int seedLength
- See Also:
- Constant Field Values
-
signatureLength
public static final int signatureLength
- See Also:
- Constant Field Values
-
-
Method Detail
-
sign
public byte[] sign(byte[] message)
-
sign
public byte[] sign(byte[] message, int moff)
-
sign
public byte[] sign(byte[] message, int moff, int mlen)
-
open
public byte[] open(byte[] signedMessage)
-
open
public byte[] open(byte[] signedMessage, int smoff)
-
open
public byte[] open(byte[] signedMessage, int smoff, int smlen)
-
detached
public byte[] detached(byte[] message)
-
detached_verify
public boolean detached_verify(byte[] message, byte[] signature)
-
keyPair
public static TweetNaclFast.Signature.KeyPair keyPair()
-
keyPair_fromSecretKey
public static TweetNaclFast.Signature.KeyPair keyPair_fromSecretKey(byte[] secretKey)
-
keyPair_fromSeed
public static TweetNaclFast.Signature.KeyPair keyPair_fromSeed(byte[] seed)
-
-