Package com.iwebpp.crypto
Class TweetNaclFast.Signature
java.lang.Object
com.iwebpp.crypto.TweetNaclFast.Signature
- Enclosing class:
- TweetNaclFast
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]detached(byte[] message) booleandetached_verify(byte[] message, byte[] signature) keyPair()keyPair_fromSecretKey(byte[] secretKey) 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 Details
-
publicKeyLength
public static final int publicKeyLength- See Also:
-
secretKeyLength
public static final int secretKeyLength- See Also:
-
seedLength
public static final int seedLength- See Also:
-
signatureLength
public static final int signatureLength- See Also:
-
-
Constructor Details
-
Signature
public Signature(byte[] theirPublicKey, byte[] mySecretKey)
-
-
Method Details
-
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
-
keyPair_fromSecretKey
-
keyPair_fromSeed
-