sgx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SgxLibrary                 = "/usr/local/lib/libp11sgx.so"
	SgxCATokenLabel            = "TrustedCertificateService"
	EnclaveQuoteKeyObjectLabel = "Enclave Quote"
	RSAKeySize                 = 3072
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SgxContext

type SgxContext struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext(cfg config.Config, client client.Client) (*SgxContext, error)

func (*SgxContext) AddSigner

func (ctx *SgxContext) AddSigner(name string, selfSign bool) (*signer.Signer, error)

func (*SgxContext) Destroy

func (ctx *SgxContext) Destroy()

func (*SgxContext) GetPendingSigners

func (ctx *SgxContext) GetPendingSigners() []string

func (*SgxContext) GetQuoteAndPublicKey added in v0.2.0

func (ctx *SgxContext) GetQuoteAndPublicKey(signerName string) ([]byte, interface{}, error)

func (*SgxContext) GetSignerForName

func (ctx *SgxContext) GetSignerForName(name string) (*signer.Signer, error)

func (*SgxContext) ProvisionSigner

func (ctx *SgxContext) ProvisionSigner(signerName string, encryptedKey []byte, cert *x509.Certificate) (*signer.Signer, error)

func (*SgxContext) RemoveSigner

func (ctx *SgxContext) RemoveSigner(name string) error

func (*SgxContext) SignerNames

func (ctx *SgxContext) SignerNames() []string

func (*SgxContext) TokenLabel

func (ctx *SgxContext) TokenLabel() (string, error)

Jump to

Keyboard shortcuts

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