oid

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package oid defines OIDs for different CSPs. Currently this is used in attested TLS to distinguish the attestation documents. OIDs beginning with 1.3.9900 are reserved and can be used without registration.

* The 1.3.9900.1 branch is reserved for placeholder values and testing.

* The 1.3.9900.2 branch is reserved for AWS.

* The 1.3.9900.3 branch is reserved for GCP.

* The 1.3.9900.4 branch is reserved for Azure.

* The 1.3.9900.5 branch is reserved for QEMU.

Deprecated OIDs should never be reused for different purposes. Instead, new OIDs should be added in the appropriate branch at the next available index.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSNitroTPM added in v2.6.0

type AWSNitroTPM struct{}

AWSNitroTPM holds the AWS nitro TPM OID.

func (AWSNitroTPM) OID added in v2.6.0

OID returns the struct's object identifier.

func (AWSNitroTPM) String added in v2.6.0

func (AWSNitroTPM) String() string

String returns the string representation of the OID.

type AzureSEVSNP added in v2.6.0

type AzureSEVSNP struct{}

AzureSEVSNP holds the OID for Azure SNP CVMs.

func (AzureSEVSNP) OID added in v2.6.0

OID returns the struct's object identifier.

func (AzureSEVSNP) String added in v2.6.0

func (AzureSEVSNP) String() string

String returns the string representation of the OID.

type AzureTrustedLaunch

type AzureTrustedLaunch struct{}

AzureTrustedLaunch holds the OID for Azure TrustedLaunch VMs.

func (AzureTrustedLaunch) OID

OID returns the struct's object identifier.

func (AzureTrustedLaunch) String added in v2.6.0

func (AzureTrustedLaunch) String() string

String returns the string representation of the OID.

type Dummy

type Dummy struct{}

Dummy OID for testing.

func (Dummy) OID

func (Dummy) OID() asn1.ObjectIdentifier

OID returns the struct's object identifier.

func (Dummy) String added in v2.6.0

func (Dummy) String() string

String returns the string representation of the OID.

type GCPSEVES added in v2.6.0

type GCPSEVES struct{}

GCPSEVES holds the GCP SEV-ES OID.

func (GCPSEVES) OID added in v2.6.0

OID returns the struct's object identifier.

func (GCPSEVES) String added in v2.6.0

func (GCPSEVES) String() string

String returns the string representation of the OID.

type Getter

type Getter interface {
	OID() asn1.ObjectIdentifier
}

Getter returns an ASN.1 Object Identifier.

func FromString added in v2.6.0

func FromString(oid string) (Getter, error)

FromString returns the OID for the given string.

type QEMUVTPM added in v2.6.0

type QEMUVTPM struct{}

QEMUVTPM holds the QEMUVTPM OID.

func (QEMUVTPM) OID added in v2.6.0

OID returns the struct's object identifier.

func (QEMUVTPM) String added in v2.6.0

func (QEMUVTPM) String() string

String returns the string representation of the OID.

Jump to

Keyboard shortcuts

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