Exemplo n.º 1
0
        private byte[] GenerateCipherStream(byte[] key, uint fillerSize)
        {
            byte[] zeroData = new byte[fillerSize];
            var    cipher   = ChaCha20Poly1305.ChaCha20Encrypt(zeroData, key, Nonce);

            return(cipher);
        }