Class xsalsa20


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

      • crypto_stream_xsalsa20_ref_KEYBYTES

        final int crypto_stream_xsalsa20_ref_KEYBYTES
        See Also:
        Constant Field Values
      • crypto_stream_xsalsa20_ref_NONCEBYTES

        final int crypto_stream_xsalsa20_ref_NONCEBYTES
        See Also:
        Constant Field Values
      • sigma

        public static final byte[] sigma
    • Constructor Detail

      • xsalsa20

        public xsalsa20()
    • Method Detail

      • crypto_stream

        public static int crypto_stream​(byte[] c,
                                        int clen,
                                        byte[] n,
                                        byte[] k)
      • crypto_stream_xor

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