Home
last modified time | relevance | path

Searched hist:d05ab5fe8dc8eedf222aa28adca31e49d0585ab8 (Results 1 – 1 of 1) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dprocessing.cd05ab5fe8dc8eedf222aa28adca31e49d0585ab8 Sat Mar 06 12:27:15 UTC 2021 Ruchika Gupta <ruchika.gupta@linaro.org> ta: pkcs11: Fix error code returned by entry_processing_key()

check_parent_attrs_against_processing() checks if the right attributes
are set in the key to be used for a cryptgraphic purpose. It returns
error - CKR_KEY_FUNCTION_NOT_PERMITTED if this is not the case.
For C_DeriveKey(), C_UnwrapKey(), CKR_KEY_FUNCTION_NOT_PERMITTED is not
specified in the error code list. So, for such errors return
CKR_KEY_TYPE_INCONSISTENT instead.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>