Beispiel #1
0
 public Salsa20Encryption(byte[] key, byte[] nonce, int rounds)
 {
     Nonce = nonce;
     var fullnonce = new byte[16];
     Array.Copy(nonce, fullnonce, 8);
     Salsa = new Salsa20Expansion(key, fullnonce, rounds);
 }
Beispiel #2
0
        public Salsa20Encryption(byte[] key, byte[] nonce, int rounds)
        {
            Nonce = nonce;
            var fullnonce = new byte[16];

            Array.Copy(nonce, fullnonce, 8);
            Salsa = new Salsa20Expansion(key, fullnonce, rounds);
        }