Refactor Update operation to return amount of input consumed.

Per the keymaster "update" API documentation, implementations need not
consume all provided input, and must return information about how much
they did consume, so the caller knows to resend the unprocessed portion.
It's convenient for the AES OCB mode encryption to sometimes process
less than is provided, but the Update operation interfaces didn't
account for not consuming all data.

This change was already reviewed, merged and reverted, so I'm skipping
the review step this time.

Change-Id: Ida401453a6af6c751ea7093e283a101bd8527709
10 files changed