Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 815 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 815 Bytes

Intel Project Amber Go SGX Adapter

This is the beta version of Go SGX Adapter for collecting Quote from SGX enabled platform.

This library leverages Intel SGX DCAP for Quote generation: https://github.com/intel/SGXDataCenterAttestationPrimitives

Go Requirement

Use go1.17 or newer.

Usage

Create a new Go SGX adapter, then use the adapter to collect quote from SGX enabled platform.

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

adapter, err := sgx.NewAdapter(enclaveId, enclaveHeldData, unsafe.Pointer(C.enclave_create_report))

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

License

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