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); }
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); }