sgx

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

README

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/arvind5/SGXDataCenterAttestationPrimitives

Go Requirement

Use go1.19 or newer. Follow https://go.dev/doc/install for installation of Go.

Usage

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

import "github.com/arvind5/amber-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 library is distributed under the BSD-style license found in the LICENSE file.

Documentation

Overview

* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause

* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEvidenceAdapter

func NewEvidenceAdapter(eid uint64, udata []byte, reportFunction unsafe.Pointer) (client.EvidenceAdapter, error)

NewEvidenceAdapter returns a new SGX Adapter instance

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL