code: private static boolean isRequiredKeyLengthAllowed() {
  		try {
  			int requiredKeyLengthBits = KEY_LEN_BYTES * Byte.SIZE;
  			int allowedKeyLengthBits = Cipher.getMaxAllowedKeyLength(ENC_ALG);
  			return allowedKeyLengthBits >= requiredKeyLengthBits;
  		} catch (NoSuchAlgorithmException e) {
  			throw new IllegalStateException("Hard-coded algorithm \"" + ENC_ALG + "\" not supported.", e);
  		}
  	}
docs: visible for testing