// Path: jrdp/core/src/main/java/com/jrdp/core/encryption/EncryptionSession.java
// public interface EncryptionSession
// {	
// 	public abstract byte[] encrypt(byte[] data, int offset, int length);
// 	public abstract byte[] decrypt(byte[] data, int offset, int length);
// 	public abstract byte[] createMac(byte[] data);
// }


import com.jrdp.core.encryption.EncryptionSession;
import java.util.Vector;
/*
 * Copyright (C) 2013 JRDP Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.jrdp.core.remote.rdp;



class RdpPacket
{
	private Vector<PacketPeice> peices;
	private int length;
	
	public RdpPacket()
	{
		peices = new Vector<PacketPeice>();
	}

	public void addPacketPeiceAtEnd(byte[] peice)
	{
		addPacketPeiceAtEnd(peice, null);
	}

// Path: jrdp/core/src/main/java/com/jrdp/core/encryption/EncryptionSession.java
// public interface EncryptionSession
// {	
// 	public abstract byte[] encrypt(byte[] data, int offset, int length);
// 	public abstract byte[] decrypt(byte[] data, int offset, int length);
// 	public abstract byte[] createMac(byte[] data);
// }


// Path: jrdp/core/src/main/java/com/jrdp/core/remote/rdp/RdpPacket.java
import com.jrdp.core.encryption.EncryptionSession;
import java.util.Vector;

/*
 * Copyright (C) 2013 JRDP Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.jrdp.core.remote.rdp;



class RdpPacket
{
	private Vector<PacketPeice> peices;
	private int length;
	
	public RdpPacket()
	{
		peices = new Vector<PacketPeice>();
	}

	public void addPacketPeiceAtEnd(byte[] peice)
	{
		addPacketPeiceAtEnd(peice, null);
	}

	public void addPacketPeiceAtEnd(byte[] peice, EncryptionSession crypto)