Skip to content

Latest commit

 

History

History
 
 

go-sgx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
last_updated
30 January 2024

Intel® Trust Authority Go SGX Adapter

The go-sgx adapter enables a confidential computing client running in an Intel® Software Guard Extensions (Intel® SGX) enclave to collect a quote for attestation by Intel Trust Authority. The go-sgx adapter is used with the go-connector to request an attestation token.

Requirements

Usage

Create a new Go SGX adapter, then use the adapter to collect quote from SGX enabled platform. The Intel SGX enclave must expose a method for creating an enclave report and must use a SHA256 hash value as REPORTDATA.

import "github.com/intel/trustauthority-client/go-sgx"

adapter, err := sgx.NewEvidenceAdapter(enclaveId, enclaveHeldData, unsafe.Pointer(C.enclave_create_report))
if err != nil {
    return err
}

evidence, err := adapter.CollectEvidence(nonce)
if err != nil {
    return err
}

License

This source is distributed under the BSD-style license found in the LICENSE file.