keymaster: don't shrink input size on update

We should not shrink the input size when:
Request size + Input size > OPTEE_KEYMASTER_SEND_BUF_SIZE

Otherwise we may return incorrect/unexpected data when we perform an
UpdateOperation.
Instead we should set the response error to
KM_ERROR_INVALID_INPUT_LENGTH and return.

Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Signed-off-by: Julien Masson <jmasson@baylibre.com>
1 file changed
tree: b761f83a957ec48753e2176fcf633e75c3d66e7d
  1. .github/
  2. gatekeeper/
  3. keymaster/
  4. test/
  5. CMakeLists.txt
  6. CMakeToolchain.txt