Class salsa20


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

      • salsa20

        public salsa20()
    • Method Detail

      • rotate

        static long rotate​(int u,
                           int c)
      • load_littleendian

        static int load_littleendian​(byte[] x,
                                     int offset)
      • store_littleendian

        static void store_littleendian​(byte[] x,
                                       int offset,
                                       int u)
      • crypto_core

        public static int crypto_core​(byte[] outv,
                                      byte[] inv,
                                      byte[] k,
                                      byte[] c)
      • crypto_stream

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

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