Class curve25519xsalsa20poly1305


  • public class curve25519xsalsa20poly1305
    extends java.lang.Object
    • Field Detail

      • crypto_secretbox_PUBLICKEYBYTES

        public static final int crypto_secretbox_PUBLICKEYBYTES
        See Also:
        Constant Field Values
      • crypto_secretbox_SECRETKEYBYTES

        public static final int crypto_secretbox_SECRETKEYBYTES
        See Also:
        Constant Field Values
      • crypto_secretbox_BEFORENMBYTES

        public static final int crypto_secretbox_BEFORENMBYTES
        See Also:
        Constant Field Values
      • crypto_secretbox_NONCEBYTES

        public static final int crypto_secretbox_NONCEBYTES
        See Also:
        Constant Field Values
      • crypto_secretbox_ZEROBYTES

        public static final int crypto_secretbox_ZEROBYTES
        See Also:
        Constant Field Values
      • crypto_secretbox_BOXZEROBYTES

        public static final int crypto_secretbox_BOXZEROBYTES
        See Also:
        Constant Field Values
    • Constructor Detail

      • curve25519xsalsa20poly1305

        public curve25519xsalsa20poly1305()
    • Method Detail

      • crypto_box_getpublickey

        public static int crypto_box_getpublickey​(byte[] pk,
                                                  byte[] sk)
      • crypto_box_keypair

        public static int crypto_box_keypair​(byte[] pk,
                                             byte[] sk)
      • crypto_box_afternm

        public static int crypto_box_afternm​(byte[] c,
                                             byte[] m,
                                             long mlen,
                                             byte[] n,
                                             byte[] k)
      • crypto_box_beforenm

        public static int crypto_box_beforenm​(byte[] k,
                                              byte[] pk,
                                              byte[] sk)
      • crypto_box

        public static int crypto_box​(byte[] c,
                                     byte[] m,
                                     long mlen,
                                     byte[] n,
                                     byte[] pk,
                                     byte[] sk)
      • crypto_box_open

        public static int crypto_box_open​(byte[] m,
                                          byte[] c,
                                          long clen,
                                          byte[] n,
                                          byte[] pk,
                                          byte[] sk)
      • crypto_box_open_afternm

        public static int crypto_box_open_afternm​(byte[] m,
                                                  byte[] c,
                                                  long clen,
                                                  byte[] n,
                                                  byte[] k)
      • crypto_box_afternm

        public static int crypto_box_afternm​(byte[] c,
                                             byte[] m,
                                             byte[] n,
                                             byte[] k)
      • crypto_box_open_afternm

        public static int crypto_box_open_afternm​(byte[] m,
                                                  byte[] c,
                                                  byte[] n,
                                                  byte[] k)
      • crypto_box

        public static int crypto_box​(byte[] c,
                                     byte[] m,
                                     byte[] n,
                                     byte[] pk,
                                     byte[] sk)
      • crypto_box_open

        public static int crypto_box_open​(byte[] m,
                                          byte[] c,
                                          byte[] n,
                                          byte[] pk,
                                          byte[] sk)