Package org.sol4k.tweetnacl
Class TweetNacl.Box
- java.lang.Object
-
- org.sol4k.tweetnacl.TweetNacl.Box
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetNacl.Box.KeyPair
-
Field Summary
Fields Modifier and Type Field Description static intboxzerobytesLengthstatic intnonceLengthstatic intoverheadLengthstatic intpublicKeyLengthstatic intsecretKeyLengthstatic intsharedKeyLengthstatic intzerobytesLength
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]after(byte[] message)byte[]after(byte[] message, byte[] theNonce)byte[]before()byte[]box(byte[] message)byte[]box(byte[] message, byte[] theNonce)longgetNonce()longincrNonce()static TweetNacl.Box.KeyPairkeyPair()static TweetNacl.Box.KeyPairkeyPair_fromSecretKey(byte[] secretKey)byte[]open(byte[] box)byte[]open(byte[] box, byte[] theNonce)byte[]open_after(byte[] box)byte[]open_after(byte[] box, byte[] theNonce)voidsetNonce(long nonce)
-
-
-
Field Detail
-
publicKeyLength
public static final int publicKeyLength
- See Also:
- Constant Field Values
-
secretKeyLength
public static final int secretKeyLength
- See Also:
- Constant Field Values
-
sharedKeyLength
public static final int sharedKeyLength
- See Also:
- Constant Field Values
-
nonceLength
public static final int nonceLength
- See Also:
- Constant Field Values
-
zerobytesLength
public static final int zerobytesLength
- See Also:
- Constant Field Values
-
boxzerobytesLength
public static final int boxzerobytesLength
- See Also:
- Constant Field Values
-
overheadLength
public static final int overheadLength
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNonce
public void setNonce(long nonce)
-
getNonce
public long getNonce()
-
incrNonce
public long incrNonce()
-
box
public byte[] box(byte[] message)
-
box
public byte[] box(byte[] message, byte[] theNonce)
-
open
public byte[] open(byte[] box)
-
open
public byte[] open(byte[] box, byte[] theNonce)
-
before
public byte[] before()
-
after
public byte[] after(byte[] message)
-
after
public byte[] after(byte[] message, byte[] theNonce)
-
open_after
public byte[] open_after(byte[] box)
-
open_after
public byte[] open_after(byte[] box, byte[] theNonce)
-
keyPair
public static TweetNacl.Box.KeyPair keyPair()
-
keyPair_fromSecretKey
public static TweetNacl.Box.KeyPair keyPair_fromSecretKey(byte[] secretKey)
-
-