Home
last modified time | relevance | path

Searched hist:"6 c4ea258f2884fa5788203ecdf891c5f068d3496" (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libutee/
H A Dtee_api_operations.c6c4ea258f2884fa5788203ecdf891c5f068d3496 Wed Sep 09 16:27:34 UTC 2020 Jens Wiklander <jens.wiklander@linaro.org> libutee: fix TEE_SetOperationKey() and TEE_SetOperationKey2()

Supplying TEE_HANDLE_NULL instead of a valid key handle is supposed to
clear an eventual already present key from the operation handle and
return TEE_SUCCESS. Prior to this patch the key(s) where halfway cleared
and then functions panicked with TEE_ERROR_BAD_PARAMETERS. So fix this.

Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>