EVP_PKEY_assign_EC_KEY(): detect SM2 curve and set EVP_PKEY type accordingly