Example #1
0
        public void Decrypt(Tests.Vectors.XChaCha20TestVector test)
        {
            var plaintext = new byte[test.CipherText.Length];
            var cipher    = new XChaCha20(test.Key, 0);

            cipher.Decrypt(test.CipherText, test.Nonce, plaintext);
        }
Example #2
0
        public byte[] Decrypt(Tests.Vectors.XChaCha20TestVector test)
        {
            var cipher = new XChaCha20(test.Key, 0);

            return(cipher.Decrypt(CryptoBytes.Combine(test.Nonce, test.CipherText)));
        }