Home
last modified time | relevance | path

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

/optee_os/ta/pkcs11/src/
H A Dpkcs11_attributes.cdf70557843fdca3b71b7c9fd59ab03cf4ad92cc6 Wed Mar 03 17:19:49 UTC 2021 Ruchika Gupta <ruchika.gupta@linaro.org> ta: pkcs11: Correct error returned when processing mechanisms

check_mechanism_against_processing() checks if a mechanism is
supported for the selected function. If mechanism specified
cannot be used in the selected token with the selected function,
the error code is expected to be CKR_MECHANISM_INVALID.
Earlier check_mechanism_against_processing()
was returning error code CKR_KEY_FUNCTION_NOT_PERMITTED when doing
such checking which is not correct.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>