attestationv1

package
v0.0.0-...-fad0d23 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAttestation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAttestation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAttestation = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type AttestationStatement

type AttestationStatement struct {
	// Types that are valid to be assigned to AttestationStatement:
	//
	//	*AttestationStatement_YubikeyAttestationStatement
	AttestationStatement isAttestationStatement_AttestationStatement `protobuf_oneof:"attestation_statement"`
	XXX_NoUnkeyedLiteral struct{}                                    `json:"-"`
	XXX_unrecognized     []byte                                      `json:"-"`
	XXX_sizecache        int32                                       `json:"-"`
}

AttestationStatement is an attestation statement for a hardware private key.

func (*AttestationStatement) Descriptor

func (*AttestationStatement) Descriptor() ([]byte, []int)

func (*AttestationStatement) GetAttestationStatement

func (m *AttestationStatement) GetAttestationStatement() isAttestationStatement_AttestationStatement

func (*AttestationStatement) GetYubikeyAttestationStatement

func (m *AttestationStatement) GetYubikeyAttestationStatement() *YubiKeyAttestationStatement

func (*AttestationStatement) Marshal

func (m *AttestationStatement) Marshal() (dAtA []byte, err error)

func (*AttestationStatement) MarshalTo

func (m *AttestationStatement) MarshalTo(dAtA []byte) (int, error)

func (*AttestationStatement) MarshalToSizedBuffer

func (m *AttestationStatement) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AttestationStatement) ProtoMessage

func (*AttestationStatement) ProtoMessage()

func (*AttestationStatement) Reset

func (m *AttestationStatement) Reset()

func (*AttestationStatement) Size

func (m *AttestationStatement) Size() (n int)

func (*AttestationStatement) String

func (m *AttestationStatement) String() string

func (*AttestationStatement) Unmarshal

func (m *AttestationStatement) Unmarshal(dAtA []byte) error

func (*AttestationStatement) XXX_DiscardUnknown

func (m *AttestationStatement) XXX_DiscardUnknown()

func (*AttestationStatement) XXX_Marshal

func (m *AttestationStatement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AttestationStatement) XXX_Merge

func (m *AttestationStatement) XXX_Merge(src proto.Message)

func (*AttestationStatement) XXX_OneofWrappers

func (*AttestationStatement) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AttestationStatement) XXX_Size

func (m *AttestationStatement) XXX_Size() int

func (*AttestationStatement) XXX_Unmarshal

func (m *AttestationStatement) XXX_Unmarshal(b []byte) error

type AttestationStatement_YubikeyAttestationStatement

type AttestationStatement_YubikeyAttestationStatement struct {
	YubikeyAttestationStatement *YubiKeyAttestationStatement `` /* 150-byte string literal not displayed */
}

func (*AttestationStatement_YubikeyAttestationStatement) MarshalTo

func (*AttestationStatement_YubikeyAttestationStatement) MarshalToSizedBuffer

func (m *AttestationStatement_YubikeyAttestationStatement) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AttestationStatement_YubikeyAttestationStatement) Size

type YubiKeyAttestationStatement

type YubiKeyAttestationStatement struct {
	// slot_cert is an attestation certificate generated from a YubiKey PIV
	// slot's public key and signed by the YubiKey's attestation certificate.
	SlotCert []byte `protobuf:"bytes,1,opt,name=slot_cert,json=slotCert,proto3" json:"slot_cert,omitempty"`
	// attestation_cert is the YubiKey's unique attestation certificate, signed by a Yubico CA.
	AttestationCert      []byte   `protobuf:"bytes,2,opt,name=attestation_cert,json=attestationCert,proto3" json:"attestation_cert,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

YubiKeyAttestationStatement is an attestation statement for a specific YubiKey PIV slot.

func (*YubiKeyAttestationStatement) Descriptor

func (*YubiKeyAttestationStatement) Descriptor() ([]byte, []int)

func (*YubiKeyAttestationStatement) GetAttestationCert

func (m *YubiKeyAttestationStatement) GetAttestationCert() []byte

func (*YubiKeyAttestationStatement) GetSlotCert

func (m *YubiKeyAttestationStatement) GetSlotCert() []byte

func (*YubiKeyAttestationStatement) Marshal

func (m *YubiKeyAttestationStatement) Marshal() (dAtA []byte, err error)

func (*YubiKeyAttestationStatement) MarshalTo

func (m *YubiKeyAttestationStatement) MarshalTo(dAtA []byte) (int, error)

func (*YubiKeyAttestationStatement) MarshalToSizedBuffer

func (m *YubiKeyAttestationStatement) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*YubiKeyAttestationStatement) ProtoMessage

func (*YubiKeyAttestationStatement) ProtoMessage()

func (*YubiKeyAttestationStatement) Reset

func (m *YubiKeyAttestationStatement) Reset()

func (*YubiKeyAttestationStatement) Size

func (m *YubiKeyAttestationStatement) Size() (n int)

func (*YubiKeyAttestationStatement) String

func (m *YubiKeyAttestationStatement) String() string

func (*YubiKeyAttestationStatement) Unmarshal

func (m *YubiKeyAttestationStatement) Unmarshal(dAtA []byte) error

func (*YubiKeyAttestationStatement) XXX_DiscardUnknown

func (m *YubiKeyAttestationStatement) XXX_DiscardUnknown()

func (*YubiKeyAttestationStatement) XXX_Marshal

func (m *YubiKeyAttestationStatement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*YubiKeyAttestationStatement) XXX_Merge

func (m *YubiKeyAttestationStatement) XXX_Merge(src proto.Message)

func (*YubiKeyAttestationStatement) XXX_Size

func (m *YubiKeyAttestationStatement) XXX_Size() int

func (*YubiKeyAttestationStatement) XXX_Unmarshal

func (m *YubiKeyAttestationStatement) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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