Class TweetNaCl


  • public class TweetNaCl
    extends java.lang.Object
    • Constructor Detail

      • TweetNaCl

        public TweetNaCl()
    • Method Detail

      • crypto_sign_keypair

        public static void crypto_sign_keypair​(byte[] pk,
                                               byte[] sk,
                                               boolean isSeeded)
      • crypto_box_keypair

        public static int crypto_box_keypair​(byte[] y,
                                             byte[] x,
                                             boolean isSeeded)
      • crypto_scalarmult_base

        public static int crypto_scalarmult_base​(byte[] q,
                                                 byte[] n)
      • crypto_sign

        public static byte[] crypto_sign​(byte[] message,
                                         byte[] secretSigningKey)
      • crypto_sign_open

        public static byte[] crypto_sign_open​(byte[] signed,
                                              byte[] publicSigningKey)
      • crypto_box

        public static byte[] crypto_box​(byte[] message,
                                        byte[] nonce,
                                        byte[] theirPublicBoxingKey,
                                        byte[] ourSecretBoxingKey)
      • crypto_box_open

        public static byte[] crypto_box_open​(byte[] cipher,
                                             byte[] nonce,
                                             byte[] theirPublicBoxingKey,
                                             byte[] secretBoxingKey)
      • secretbox

        public static byte[] secretbox​(byte[] mesage,
                                       byte[] nonce,
                                       byte[] key)
      • secretbox_open

        public static byte[] secretbox_open​(byte[] cipher,
                                            byte[] nonce,
                                            byte[] key)
      • ld32

        public static int ld32​(byte[] x,
                               int off)
      • randombytes

        public static void randombytes​(byte[] b,
                                       int len)