public final byte[] update(byte[] input){
  if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) {
    throw new IllegalStateException();
  }
  if (input == null) {
    throw new IllegalArgumentException("input == null");
  }
  if (input.length == 0) {
    return null;
  }
  return spiImpl.engineUpdate(input,0,input.length);
}

public final byte [ ] update ( byte [ ] input ) { if ( mode != ENCRYPT_MODE && mode != DECRYPT_MODE ) { throw new IllegalStateException ( ) ; } if ( input == null ) { throw new IllegalArgumentException ( "input == null" ) ; } if ( input . length == 0 ) { return null ; } return spiImpl . engineUpdate ( input , 0 , input . length ) ; }
continues a multi - part transformation ( encryption or decryption ) . the transformed bytes are returned .
