public void readLine(String line) {
		if (line.length() < 32) {
			while (line.length() < 32) {
				line += "0";
			}
		}

		int begin = 0;
		int end = 2;

		
		for (int row = 0; row < 4; row++) {
			for (int col = 0; col < 4; col++) {
				// int val = 0;
				String hexVal = line.substring(begin, end);
				hexVal = "0x" + hexVal;
				char val; 
				try {
					val = (char) Integer.decode(hexVal).intValue();
				} catch (Exception e) {
					// System.out.println("Error: Key has non hex characters.");
					this.state = null;
					return;
				}

				this.state[row][col] = val;
				begin += 2;
				end += 2;
			}
		}
	}