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

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

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Intel® SGX SDK functions that report the status of SGX on a platform

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