if (!lastPhase) { throw new IllegalStateException("last Phase is false"); } return null;
return new byte[0];
return -1;
if (algorithm.length() == 0) { throw new NoSuchAlgorithmException("Algorithm is empty"); } return null;
throw new IllegalArgumentException("Invalid parameter");