Searched hist:"3176 f4d1ea1586670f379a1d72410a85eb120947" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/tee/ |
| H A D | tee_svc_cryp.c | 3176f4d1ea1586670f379a1d72410a85eb120947 Wed Mar 09 16:30:57 UTC 2022 Jerome Forissier <jerome@forissier.org> core: crypto: fix key generation for SM2 DSA and SM2 PKE
TEE_GenerateKey() returns TEE_ERROR_BAD_FORMAT when the object type is TEE_TYPE_SM2_DSA_KEYPAIR or TEE_TYPE_SM2_KEP_KEYPAIR. Only TEE_TYPE_SM2_PKE_KEYPAIR is accepted, which is clearly wrong as per the GlobalPlatform specification. Fix that by adding the missing entries to syscall_obj_generate_key().
Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
|