Package org.sol4k.tweetnacl
Class TweetNaclFast.SecretBox
- java.lang.Object
-
- org.sol4k.tweetnacl.TweetNaclFast.SecretBox
-
- Enclosing class:
- TweetNaclFast
public static final class TweetNaclFast.SecretBox extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intboxzerobytesLengthstatic intkeyLengthstatic intnonceLengthstatic intoverheadLengthstatic intzerobytesLength
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)longgetNonce()longincrNonce()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)voidsetNonce(long nonce)
-
-
-
Field Detail
-
keyLength
public static final int keyLength
- See Also:
- Constant Field Values
-
nonceLength
public static final int nonceLength
- See Also:
- Constant Field Values
-
overheadLength
public static final int overheadLength
- 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
-
-
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, int moff)
-
box
public byte[] box(byte[] message, int moff, int mlen)
-
box
public byte[] box(byte[] message, byte[] theNonce)
-
box
public byte[] box(byte[] message, int moff, byte[] theNonce)
-
box
public byte[] box(byte[] message, int moff, int mlen, byte[] theNonce)
-
open
public byte[] open(byte[] box)
-
open
public byte[] open(byte[] box, int boxoff)
-
open
public byte[] open(byte[] box, int boxoff, int boxlen)
-
open
public byte[] open(byte[] box, byte[] theNonce)
-
open
public byte[] open(byte[] box, int boxoff, byte[] theNonce)
-
open
public byte[] open(byte[] box, int boxoff, int boxlen, byte[] theNonce)
-
-