TEE_Result TEE_GenerateKey(TEE_ObjectHandle object, uint32_t keySize, TEE_Attribute *params, uint32_t paramCount) { TEE_Result res; res = utee_cryp_obj_generate_key((uint32_t)object, keySize, params, paramCount); if (res != TEE_SUCCESS) TEE_Panic(0); return res; }
TEE_Result TEE_GenerateKey(TEE_ObjectHandle object, uint32_t keySize, TEE_Attribute *params, uint32_t paramCount) { TEE_Result res; struct utee_attribute ua[paramCount]; __utee_from_attr(ua, params, paramCount); res = utee_cryp_obj_generate_key((unsigned long)object, keySize, ua, paramCount); if (res != TEE_SUCCESS && res != TEE_ERROR_BAD_PARAMETERS) TEE_Panic(0); return res; }