Class TweetNacl.Box

  • Enclosing class:
    TweetNacl

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

      • Box

        public Box​(byte[] theirPublicKey,
                   byte[] mySecretKey)
      • Box

        public Box​(byte[] theirPublicKey,
                   byte[] mySecretKey,
                   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)
      • 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_fromSecretKey

        public static TweetNacl.Box.KeyPair keyPair_fromSecretKey​(byte[] secretKey)