Class TweetNaclFast.SecretBox

java.lang.Object
com.iwebpp.crypto.TweetNaclFast.SecretBox
Enclosing class:
TweetNaclFast

public static final class TweetNaclFast.SecretBox extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecretBox(byte[] key)
     
    SecretBox(byte[] key, long nonce)
     
  • Method Summary

    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)
     
    long
     
    long
     
    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)
     
    void
    setNonce(long nonce)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SecretBox

      public SecretBox(byte[] key)
    • SecretBox

      public SecretBox(byte[] key, long nonce)
  • Method Details

    • 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)