public void throwIfInvalid(byte[] proposedARC4Key) throws CartInvalidARC4KeyException {
		if (proposedARC4Key == null) {
			throw new CartInvalidARC4KeyException("Invalid null CaRT key.");
		}
		else if (proposedARC4Key.length != CartV1Constants.ARC4_KEY_LENGTH) {
			throw new CartInvalidARC4KeyException("Invalid CaRT key length.");
		}
	}
Throws an exception if the specified key is not valid.

@param proposedARC4Key The ARC4 key being proposed to use.
@throws CartInvalidARC4KeyException If the key is bad, null or too short.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/cart/CartV1Decryptor.java