Skip To Main Content
Support Knowledge Base

Unable to Detect the Status of Intel® Software Guard Extensions (Intel® SGX) from an Application

Content Type: Product Information & Documentation   |   Article ID: 000089510   |   Last Reviewed: 07/31/2024

Description

  • Implementing an application that will run on systems with Intel® SGX and without Intel® SGX.
  • The application decides which code path to take depending on the availability of Intel® SGX on the platform.

Resolution

The Intel® SGX SDK provides the following functions that applications can use to determine the status of Intel® SGX on a platform.

  • sgx_is_capable()
  • sgx_cap_enable_device()
  • sgx_cap_get_status()
  • sgx_enable_device()

If Intel® SGX is fully enabled, the application can make enclave calls.

Navigate to Section Intel® Software Guard Extensions SDK Feature-Detection Functions in Properly Detecting Intel® Software Guard Extensions (Intel® SGX) in Your Applications for a full explanation of these functions. Scroll down further for code samples.

Additional information

Intel® Software Guard Extensions SDK for Linux*

Intel® Software Guard Extensions SDK for Windows

Related Products

This article applies to 1 products.