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);
        }
示例#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;
        }