Class TweetNacl.SecretBox

  • Enclosing class:
    TweetNacl

    public static final class TweetNacl.SecretBox
    extends Object
    • Constructor Detail

      • SecretBox

        public SecretBox​(byte[] key)
      • SecretBox

        public SecretBox​(byte[] key,
                         long nonce)
    • 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)