private PublicKey byteArrayToPublicKey(byte[] tmp) {
		PublicKey pubK = null;
		ByteArrayInputStream bis = new ByteArrayInputStream(tmp);
		ObjectInput in;
		try {
			in = new ObjectInputStream(bis);
			pubK = (PublicKey) in.readObject();
			bis.close();
			in.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return pubK;
	}