protected void engineSetMode(String mode) throws NoSuchAlgorithmException {
  if ((mode != null) && (!mode.equalsIgnoreCase("CBC"))) {
    throw new NoSuchAlgorithmException("Invalid cipher mode: " + mode);
  }
}

protected void engineSetMode ( String mode ) throws NoSuchAlgorithmException { if ( ( mode != null ) && ( ! mode . equalsIgnoreCase ( "CBC" ) ) ) { throw new NoSuchAlgorithmException ( "Invalid cipher mode: " + mode ) ; } }
sets the mode of this cipher . this algorithm can only be run in cbc mode .
