private static List <byte> Stream_decipher(byte[] data, GTS_PRNG keystream)
        {
            List <byte> functionReturnValue = default(List <byte>);

            functionReturnValue = new List <byte>();

            foreach (byte c in data)
            {
                functionReturnValue.Add((byte)((c ^ keystream.NextNum()) & 0xff));
            }
            return(functionReturnValue);
        }
Esempio n. 2
0
        private static List<byte> Stream_decipher(byte[] data, GTS_PRNG keystream)
        {
            List<byte> functionReturnValue = default(List<byte>);
            functionReturnValue = new List<byte>();

            foreach (byte c in data)
            {
                functionReturnValue.Add((byte)((c ^ keystream.NextNum()) & 0xff));
            }
            return functionReturnValue;
        }