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