Home
last modified time | relevance | path

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

/optee_os/ta/pkcs11/src/
H A Dprocessing_symm.cde94d6f8e9de06887add06b81454db479aa8c232 Fri Nov 27 07:53:17 UTC 2020 Ruchika Gupta <ruchika.gupta@linaro.org> ta: pkcs11: Fix usage of CKK_GENERIC_SECRET for HMAC Functions

The use of CKK_GENERIC_SECRET is allowed with HMAC mechanisms.
In earlier implementation, CKK_GENERIC_SECRET was mapped to
TEE_GENERIC_KEY. TEE_AllocateOperation() would return an error
when TEE key of type TEE_GENERIC_KEY is used with HMAC algorithms.
So, special handling is required for such keys where the PKCS11
mechanism should be used to determine the corresponding TEE
KEY Type for CKK_GENERIC_SECRET when used with HMAC mechanisms.

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