api

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TpmVersion_name = map[int32]string{
		0: "TPMVAGNOSTIC",
		1: "TPMV12",
		2: "TPMV20",
	}

	TpmVersion_value = map[string]int32{
		"TPMVAGNOSTIC": 0,
		"TPMV12":       1,
		"TPMV20":       2,
	}
)
View Source
var (
	DigestAlg_name = map[int32]string{
		0: "SHA1",
		1: "SHA256",
	}

	DigestAlg_value = map[string]int32{
		"SHA1":   0,
		"SHA256": 1,
	}
)
View Source
var (
	DeviceIdentity_ChallengeFormat_name = map[int32]string{
		0: "TPM20_CREDENTIAL",
	}

	DeviceIdentity_ChallengeFormat_value = map[string]int32{
		"TPM20_CREDENTIAL": 0,
	}
)
View Source
var (
	LaunchStage_name = map[int32]string{
		0: "LAUNCH_STAGE_UNSPECIFIED",
		1: "EARLY_ACCESS",
		2: "ALPHA",
		3: "BETA",
		4: "GA",
		5: "DEPRECATED",
	}

	LaunchStage_value = map[string]int32{
		"LAUNCH_STAGE_UNSPECIFIED": 0,
		"EARLY_ACCESS":             1,
		"ALPHA":                    2,
		"BETA":                     3,
		"GA":                       4,
		"DEPRECATED":               5,
	}
)

Functions

This section is empty.

Types

type Account

type Account struct {

	// Types that are valid to be assigned to Account:
	//	*Account_User
	//	*Account_ServiceAccount
	Account isAccount_Account `protobuf_oneof:"account"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor

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

Deprecated, Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccount

func (m *Account) GetAccount() isAccount_Account

func (*Account) GetServiceAccount

func (m *Account) GetServiceAccount() *ServiceAccount

func (*Account) GetUser

func (m *Account) GetUser() *User

func (*Account) GotenMessage

func (*Account) GotenMessage()

func (*Account) GotenValidate

func (obj *Account) GotenValidate() error

func (*Account) Marshal

func (m *Account) Marshal() ([]byte, error)

func (*Account) MarshalJSON

func (m *Account) MarshalJSON() ([]byte, error)

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (m *Account) ProtoReflect() preflect.Message

func (*Account) Reset

func (m *Account) Reset()

func (*Account) SetAccount

func (m *Account) SetAccount(ofv isAccount_Account)

func (*Account) SetServiceAccount

func (m *Account) SetServiceAccount(fv *ServiceAccount)

func (*Account) SetUser

func (m *Account) SetUser(fv *User)

func (*Account) String

func (m *Account) String() string

func (*Account) Unmarshal

func (m *Account) Unmarshal(b []byte) error

func (*Account) UnmarshalJSON

func (m *Account) UnmarshalJSON(data []byte) error

type Account_ServiceAccount

type Account_ServiceAccount struct {
	ServiceAccount *ServiceAccount `protobuf:"bytes,3,opt,name=service_account,json=serviceAccount,proto3,oneof" firestore:"serviceAccount"`
}

type Account_User

type Account_User struct {
	User *User `protobuf:"bytes,2,opt,name=user,proto3,oneof" firestore:"user"`
}

type DeviceIdentity added in v1.0.21

type DeviceIdentity struct {
	SerialNumber string `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty" firestore:"serialNumber"`
	Manufacturer string `protobuf:"bytes,2,opt,name=manufacturer,proto3" json:"manufacturer,omitempty" firestore:"manufacturer"`
	ProductName  string `protobuf:"bytes,3,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty" firestore:"productName"`
	// Only TPM2.0 is supported
	TpmVersion TpmVersion `` /* 139-byte string literal not displayed */
	// TPM_PUBLIC format object obtained by tpm2.ReadPublic
	EkTpmPub []byte `protobuf:"bytes,5,opt,name=ek_tpm_pub,json=ekTpmPub,proto3" json:"ek_tpm_pub,omitempty" firestore:"ekTpmPub"`
	// ASN.1 DER encoded EK certificate.
	Ekcert []byte `protobuf:"bytes,6,opt,name=ekcert,proto3" json:"ekcert,omitempty" firestore:"ekcert"`
	// For Intel TPMs, Intel hosts certificates at a public URL derived from the
	// Public key. Clients or servers can perform an HTTP GET to this URL, and
	// use ParseEKCertificate on the response body.
	Ekcerturl string `protobuf:"bytes,7,opt,name=ekcerturl,proto3" json:"ekcerturl,omitempty" firestore:"ekcerturl"`
	// TPM_PUBLIC format object obtained by tpm2.ReadPublic
	IdevidCertTpmPub []byte `` /* 142-byte string literal not displayed */
	// ASN.1 DER encoded IDevID certificate.
	IdevidCert []byte `protobuf:"bytes,9,opt,name=idevid_cert,json=idevidCert,proto3" json:"idevid_cert,omitempty" firestore:"idevidCert"`
	// TPM_PUBLIC format object obtained by tpm2.ReadPublic
	LdevidCertTpmPub []byte `` /* 143-byte string literal not displayed */
	// ASN.1 DER encoded LDevID certificate.
	LdevidCert []byte                            `protobuf:"bytes,11,opt,name=ldevid_cert,json=ldevidCert,proto3" json:"ldevid_cert,omitempty" firestore:"ldevidCert"`
	AkParams   *DeviceIdentity_AttestationParams `protobuf:"bytes,12,opt,name=ak_params,json=akParams,proto3" json:"ak_params,omitempty" firestore:"akParams"`
	// ChallengeFormat defines the method of generating identity activation
	// challenge by the Verifier (server). It should affect the interpretation
	// ChallengeResponse fields cred_encrypted_by_ekpub and
	// secret_encrypted_by_cred. Attestor (client) is responsible for chosing
	// the right format depending on TPM version and the presence of TrouSerS
	// daemon.
	ChallengeFormat DeviceIdentity_ChallengeFormat `` /* 180-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeviceIdentity) Descriptor added in v1.0.21

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

Deprecated, Use DeviceIdentity.ProtoReflect.Descriptor instead.

func (*DeviceIdentity) GetAkParams added in v1.0.21

func (*DeviceIdentity) GetChallengeFormat added in v1.0.21

func (m *DeviceIdentity) GetChallengeFormat() DeviceIdentity_ChallengeFormat

func (*DeviceIdentity) GetEkTpmPub added in v1.0.21

func (m *DeviceIdentity) GetEkTpmPub() []byte

func (*DeviceIdentity) GetEkcert added in v1.0.21

func (m *DeviceIdentity) GetEkcert() []byte

func (*DeviceIdentity) GetEkcerturl added in v1.0.21

func (m *DeviceIdentity) GetEkcerturl() string

func (*DeviceIdentity) GetIdevidCert added in v1.0.21

func (m *DeviceIdentity) GetIdevidCert() []byte

func (*DeviceIdentity) GetIdevidCertTpmPub added in v1.0.21

func (m *DeviceIdentity) GetIdevidCertTpmPub() []byte

func (*DeviceIdentity) GetLdevidCert added in v1.0.21

func (m *DeviceIdentity) GetLdevidCert() []byte

func (*DeviceIdentity) GetLdevidCertTpmPub added in v1.0.21

func (m *DeviceIdentity) GetLdevidCertTpmPub() []byte

func (*DeviceIdentity) GetManufacturer added in v1.0.21

func (m *DeviceIdentity) GetManufacturer() string

func (*DeviceIdentity) GetProductName added in v1.0.21

func (m *DeviceIdentity) GetProductName() string

func (*DeviceIdentity) GetSerialNumber added in v1.0.21

func (m *DeviceIdentity) GetSerialNumber() string

func (*DeviceIdentity) GetTpmVersion added in v1.0.21

func (m *DeviceIdentity) GetTpmVersion() TpmVersion

func (*DeviceIdentity) GotenMessage added in v1.0.21

func (*DeviceIdentity) GotenMessage()

func (*DeviceIdentity) GotenValidate added in v1.0.21

func (obj *DeviceIdentity) GotenValidate() error

func (*DeviceIdentity) Marshal added in v1.0.21

func (m *DeviceIdentity) Marshal() ([]byte, error)

func (*DeviceIdentity) MarshalJSON added in v1.0.21

func (m *DeviceIdentity) MarshalJSON() ([]byte, error)

func (*DeviceIdentity) ProtoMessage added in v1.0.21

func (*DeviceIdentity) ProtoMessage()

func (*DeviceIdentity) ProtoReflect added in v1.0.21

func (m *DeviceIdentity) ProtoReflect() preflect.Message

func (*DeviceIdentity) Reset added in v1.0.21

func (m *DeviceIdentity) Reset()

func (*DeviceIdentity) SetAkParams added in v1.0.21

func (*DeviceIdentity) SetChallengeFormat added in v1.0.21

func (m *DeviceIdentity) SetChallengeFormat(fv DeviceIdentity_ChallengeFormat)

func (*DeviceIdentity) SetEkTpmPub added in v1.0.21

func (m *DeviceIdentity) SetEkTpmPub(fv []byte)

func (*DeviceIdentity) SetEkcert added in v1.0.21

func (m *DeviceIdentity) SetEkcert(fv []byte)

func (*DeviceIdentity) SetEkcerturl added in v1.0.21

func (m *DeviceIdentity) SetEkcerturl(fv string)

func (*DeviceIdentity) SetIdevidCert added in v1.0.21

func (m *DeviceIdentity) SetIdevidCert(fv []byte)

func (*DeviceIdentity) SetIdevidCertTpmPub added in v1.0.21

func (m *DeviceIdentity) SetIdevidCertTpmPub(fv []byte)

func (*DeviceIdentity) SetLdevidCert added in v1.0.21

func (m *DeviceIdentity) SetLdevidCert(fv []byte)

func (*DeviceIdentity) SetLdevidCertTpmPub added in v1.0.21

func (m *DeviceIdentity) SetLdevidCertTpmPub(fv []byte)

func (*DeviceIdentity) SetManufacturer added in v1.0.21

func (m *DeviceIdentity) SetManufacturer(fv string)

func (*DeviceIdentity) SetProductName added in v1.0.21

func (m *DeviceIdentity) SetProductName(fv string)

func (*DeviceIdentity) SetSerialNumber added in v1.0.21

func (m *DeviceIdentity) SetSerialNumber(fv string)

func (*DeviceIdentity) SetTpmVersion added in v1.0.21

func (m *DeviceIdentity) SetTpmVersion(fv TpmVersion)

func (*DeviceIdentity) String added in v1.0.21

func (m *DeviceIdentity) String() string

func (*DeviceIdentity) Unmarshal added in v1.0.21

func (m *DeviceIdentity) Unmarshal(b []byte) error

func (*DeviceIdentity) UnmarshalJSON added in v1.0.21

func (m *DeviceIdentity) UnmarshalJSON(data []byte) error

type DeviceIdentity_AttestationParams added in v1.0.21

type DeviceIdentity_AttestationParams struct {

	// https: //
	// trustedcomputinggroup.org/wp-content/uploads/TPM-Main-Part-2-TPM-Structures_v1.2_rev116_01032011.pdf
	// https: //
	// www.trustedcomputinggroup.org/wp-content/uploads/TPM-Rev-2.0-Part-2-Structures-01.38.pdf
	// TPMT_PUBLIC (TPM 2.0) or TPM_PUBKEY (TPM 1.2)
	Akpub []byte `protobuf:"bytes,1,opt,name=akpub,proto3" json:"akpub,omitempty" firestore:"akpub"`
	// TPMS_CREATION_DATA
	CreationData []byte `protobuf:"bytes,2,opt,name=creation_data,json=creationData,proto3" json:"creation_data,omitempty" firestore:"creationData"`
	// TPMS_ATTEST
	Attest []byte `protobuf:"bytes,3,opt,name=attest,proto3" json:"attest,omitempty" firestore:"attest"`
	// TPMT_SIGNATURE
	Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty" firestore:"signature"`
	// contains filtered or unexported fields
}

func (*DeviceIdentity_AttestationParams) Descriptor added in v1.0.21

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

Deprecated, Use DeviceIdentity_AttestationParams.ProtoReflect.Descriptor instead.

func (*DeviceIdentity_AttestationParams) GetAkpub added in v1.0.21

func (m *DeviceIdentity_AttestationParams) GetAkpub() []byte

func (*DeviceIdentity_AttestationParams) GetAttest added in v1.0.21

func (m *DeviceIdentity_AttestationParams) GetAttest() []byte

func (*DeviceIdentity_AttestationParams) GetCreationData added in v1.0.21

func (m *DeviceIdentity_AttestationParams) GetCreationData() []byte

func (*DeviceIdentity_AttestationParams) GetSignature added in v1.0.21

func (m *DeviceIdentity_AttestationParams) GetSignature() []byte

func (*DeviceIdentity_AttestationParams) GotenMessage added in v1.0.21

func (*DeviceIdentity_AttestationParams) GotenMessage()

func (*DeviceIdentity_AttestationParams) GotenValidate added in v1.0.21

func (obj *DeviceIdentity_AttestationParams) GotenValidate() error

func (*DeviceIdentity_AttestationParams) Marshal added in v1.0.21

func (m *DeviceIdentity_AttestationParams) Marshal() ([]byte, error)

func (*DeviceIdentity_AttestationParams) MarshalJSON added in v1.0.21

func (m *DeviceIdentity_AttestationParams) MarshalJSON() ([]byte, error)

func (*DeviceIdentity_AttestationParams) ProtoMessage added in v1.0.21

func (*DeviceIdentity_AttestationParams) ProtoMessage()

func (*DeviceIdentity_AttestationParams) ProtoReflect added in v1.0.21

func (*DeviceIdentity_AttestationParams) Reset added in v1.0.21

func (*DeviceIdentity_AttestationParams) SetAkpub added in v1.0.21

func (m *DeviceIdentity_AttestationParams) SetAkpub(fv []byte)

func (*DeviceIdentity_AttestationParams) SetAttest added in v1.0.21

func (m *DeviceIdentity_AttestationParams) SetAttest(fv []byte)

func (*DeviceIdentity_AttestationParams) SetCreationData added in v1.0.21

func (m *DeviceIdentity_AttestationParams) SetCreationData(fv []byte)

func (*DeviceIdentity_AttestationParams) SetSignature added in v1.0.21

func (m *DeviceIdentity_AttestationParams) SetSignature(fv []byte)

func (*DeviceIdentity_AttestationParams) String added in v1.0.21

func (*DeviceIdentity_AttestationParams) Unmarshal added in v1.0.21

func (m *DeviceIdentity_AttestationParams) Unmarshal(b []byte) error

func (*DeviceIdentity_AttestationParams) UnmarshalJSON added in v1.0.21

func (m *DeviceIdentity_AttestationParams) UnmarshalJSON(data []byte) error

type DeviceIdentity_ChallengeFormat added in v1.0.21

type DeviceIdentity_ChallengeFormat int32
const (
	// Credential Protection as defined in section 24 of the TPM specification
	// revision 2 part 1 See:
	// https://trustedcomputinggroup.org/resource/tpm-library-specification/
	// Returned primitives are of type TPM2B_ID_OBJECT and
	// TPM2B_ENCRYPTED_SECRET.
	// NOTE: ECC is not supported.
	//
	// Reference implementation:
	//  github.com/google/go-attestation@v0.3.2/attest/activation.go:generateChallengeTPM20,
	//  which uses
	//  github.com/google/go-tmp@v0.3.2/tmp2/credactivation/credential_activation.go:Generate
	DeviceIdentity_TPM20_CREDENTIAL DeviceIdentity_ChallengeFormat = 0
)

func (DeviceIdentity_ChallengeFormat) Descriptor added in v1.0.21

func (DeviceIdentity_ChallengeFormat) Enum added in v1.0.21

func (DeviceIdentity_ChallengeFormat) EnumDescriptor added in v1.0.21

func (DeviceIdentity_ChallengeFormat) EnumDescriptor() ([]byte, []int)

Deprecated, Use DeviceIdentity_ChallengeFormat.ProtoReflect.Descriptor instead.

func (DeviceIdentity_ChallengeFormat) Number added in v1.0.21

func (DeviceIdentity_ChallengeFormat) String added in v1.0.21

func (DeviceIdentity_ChallengeFormat) Type added in v1.0.21

type DigestAlg added in v1.0.21

type DigestAlg int32
const (
	DigestAlg_SHA1   DigestAlg = 0
	DigestAlg_SHA256 DigestAlg = 1
)

func (DigestAlg) Descriptor added in v1.0.21

func (DigestAlg) Descriptor() preflect.EnumDescriptor

func (DigestAlg) Enum added in v1.0.21

func (x DigestAlg) Enum() *DigestAlg

func (DigestAlg) EnumDescriptor added in v1.0.21

func (DigestAlg) EnumDescriptor() ([]byte, []int)

Deprecated, Use DigestAlg.ProtoReflect.Descriptor instead.

func (DigestAlg) Number added in v1.0.21

func (x DigestAlg) Number() preflect.EnumNumber

func (DigestAlg) String added in v1.0.21

func (x DigestAlg) String() string

func (DigestAlg) Type added in v1.0.21

func (DigestAlg) Type() preflect.EnumType

type IdentityChallenge added in v1.0.21

type IdentityChallenge struct {

	// Platform attestation
	PlatformAttestationNonce []byte `` /* 172-byte string literal not displayed */
	// AK TPM Residency check
	CredEncryptedByEkpub    []byte `` /* 158-byte string literal not displayed */
	SecretEncryptedByEkcred []byte `` /* 170-byte string literal not displayed */
	// IDevID TPM Residency check
	CredEncryptedByIdevidPub    []byte `` /* 176-byte string literal not displayed */
	SecretEncryptedByIdevidCred []byte `` /* 188-byte string literal not displayed */
	// LDevID TPM Residency check
	CredEncryptedByLdevidPub    []byte `` /* 176-byte string literal not displayed */
	SecretEncryptedByLdevidCred []byte `` /* 188-byte string literal not displayed */
	// IDevID verification when key is signing
	DigestToSignWithIdevid []byte `` /* 168-byte string literal not displayed */
	// IDevID verification when key is decrypt
	RsaSecretToDecryptWithIdevid []byte `` /* 194-byte string literal not displayed */
	// LDevID verification when key is signing
	DigestToSignWithLdevid []byte `` /* 169-byte string literal not displayed */
	// LDevID verification when key is decrypt
	RsaSecretToDecryptWithLdevid []byte `` /* 195-byte string literal not displayed */
	// contains filtered or unexported fields
}

One of IDevID or LDevID is mandatory for IdentityChallenge to succeed DevID keys can be either signing or decrypt With GlobalSign + Compulab, we use decrypt keys, but other vendors like Dell may be using signing keys instead, so api should allow both

func (*IdentityChallenge) Descriptor added in v1.0.21

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

Deprecated, Use IdentityChallenge.ProtoReflect.Descriptor instead.

func (*IdentityChallenge) GetCredEncryptedByEkpub added in v1.0.21

func (m *IdentityChallenge) GetCredEncryptedByEkpub() []byte

func (*IdentityChallenge) GetCredEncryptedByIdevidPub added in v1.0.21

func (m *IdentityChallenge) GetCredEncryptedByIdevidPub() []byte

func (*IdentityChallenge) GetCredEncryptedByLdevidPub added in v1.0.21

func (m *IdentityChallenge) GetCredEncryptedByLdevidPub() []byte

func (*IdentityChallenge) GetDigestToSignWithIdevid added in v1.0.21

func (m *IdentityChallenge) GetDigestToSignWithIdevid() []byte

func (*IdentityChallenge) GetDigestToSignWithLdevid added in v1.0.21

func (m *IdentityChallenge) GetDigestToSignWithLdevid() []byte

func (*IdentityChallenge) GetPlatformAttestationNonce added in v1.0.21

func (m *IdentityChallenge) GetPlatformAttestationNonce() []byte

func (*IdentityChallenge) GetRsaSecretToDecryptWithIdevid added in v1.0.21

func (m *IdentityChallenge) GetRsaSecretToDecryptWithIdevid() []byte

func (*IdentityChallenge) GetRsaSecretToDecryptWithLdevid added in v1.0.21

func (m *IdentityChallenge) GetRsaSecretToDecryptWithLdevid() []byte

func (*IdentityChallenge) GetSecretEncryptedByEkcred added in v1.0.21

func (m *IdentityChallenge) GetSecretEncryptedByEkcred() []byte

func (*IdentityChallenge) GetSecretEncryptedByIdevidCred added in v1.0.21

func (m *IdentityChallenge) GetSecretEncryptedByIdevidCred() []byte

func (*IdentityChallenge) GetSecretEncryptedByLdevidCred added in v1.0.21

func (m *IdentityChallenge) GetSecretEncryptedByLdevidCred() []byte

func (*IdentityChallenge) GotenMessage added in v1.0.21

func (*IdentityChallenge) GotenMessage()

func (*IdentityChallenge) GotenValidate added in v1.0.21

func (obj *IdentityChallenge) GotenValidate() error

func (*IdentityChallenge) Marshal added in v1.0.21

func (m *IdentityChallenge) Marshal() ([]byte, error)

func (*IdentityChallenge) MarshalJSON added in v1.0.21

func (m *IdentityChallenge) MarshalJSON() ([]byte, error)

func (*IdentityChallenge) ProtoMessage added in v1.0.21

func (*IdentityChallenge) ProtoMessage()

func (*IdentityChallenge) ProtoReflect added in v1.0.21

func (m *IdentityChallenge) ProtoReflect() preflect.Message

func (*IdentityChallenge) Reset added in v1.0.21

func (m *IdentityChallenge) Reset()

func (*IdentityChallenge) SetCredEncryptedByEkpub added in v1.0.21

func (m *IdentityChallenge) SetCredEncryptedByEkpub(fv []byte)

func (*IdentityChallenge) SetCredEncryptedByIdevidPub added in v1.0.21

func (m *IdentityChallenge) SetCredEncryptedByIdevidPub(fv []byte)

func (*IdentityChallenge) SetCredEncryptedByLdevidPub added in v1.0.21

func (m *IdentityChallenge) SetCredEncryptedByLdevidPub(fv []byte)

func (*IdentityChallenge) SetDigestToSignWithIdevid added in v1.0.21

func (m *IdentityChallenge) SetDigestToSignWithIdevid(fv []byte)

func (*IdentityChallenge) SetDigestToSignWithLdevid added in v1.0.21

func (m *IdentityChallenge) SetDigestToSignWithLdevid(fv []byte)

func (*IdentityChallenge) SetPlatformAttestationNonce added in v1.0.21

func (m *IdentityChallenge) SetPlatformAttestationNonce(fv []byte)

func (*IdentityChallenge) SetRsaSecretToDecryptWithIdevid added in v1.0.21

func (m *IdentityChallenge) SetRsaSecretToDecryptWithIdevid(fv []byte)

func (*IdentityChallenge) SetRsaSecretToDecryptWithLdevid added in v1.0.21

func (m *IdentityChallenge) SetRsaSecretToDecryptWithLdevid(fv []byte)

func (*IdentityChallenge) SetSecretEncryptedByEkcred added in v1.0.21

func (m *IdentityChallenge) SetSecretEncryptedByEkcred(fv []byte)

func (*IdentityChallenge) SetSecretEncryptedByIdevidCred added in v1.0.21

func (m *IdentityChallenge) SetSecretEncryptedByIdevidCred(fv []byte)

func (*IdentityChallenge) SetSecretEncryptedByLdevidCred added in v1.0.21

func (m *IdentityChallenge) SetSecretEncryptedByLdevidCred(fv []byte)

func (*IdentityChallenge) String added in v1.0.21

func (m *IdentityChallenge) String() string

func (*IdentityChallenge) Unmarshal added in v1.0.21

func (m *IdentityChallenge) Unmarshal(b []byte) error

func (*IdentityChallenge) UnmarshalJSON added in v1.0.21

func (m *IdentityChallenge) UnmarshalJSON(data []byte) error

type IdentityChallengeResponse added in v1.0.21

type IdentityChallengeResponse struct {
	AkActivationDecryptedSecret     []byte                             `` /* 186-byte string literal not displayed */
	IdevidActivationDecryptedSecret []byte                             `` /* 202-byte string literal not displayed */
	LdevidActivationDecryptedSecret []byte                             `` /* 202-byte string literal not displayed */
	DigestSignedByIdevid            []byte                             `` /* 158-byte string literal not displayed */
	DigestSignedByLdevid            []byte                             `` /* 158-byte string literal not displayed */
	RsaDecryptedWithIdevid          []byte                             `` /* 166-byte string literal not displayed */
	RsaDecryptedWithLdevid          []byte                             `` /* 166-byte string literal not displayed */
	Quotes                          []*IdentityChallengeResponse_Quote `protobuf:"bytes,8,rep,name=quotes,proto3" json:"quotes,omitempty" firestore:"quotes"`
	Pcrs                            []*PCR                             `protobuf:"bytes,9,rep,name=pcrs,proto3" json:"pcrs,omitempty" firestore:"pcrs"`
	// Binary contents of /sys/kernel/security/tpm0/binary_bios_measurements
	Eventlog []byte `protobuf:"bytes,10,opt,name=eventlog,proto3" json:"eventlog,omitempty" firestore:"eventlog"`
	// contains filtered or unexported fields
}

func (*IdentityChallengeResponse) Descriptor added in v1.0.21

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

Deprecated, Use IdentityChallengeResponse.ProtoReflect.Descriptor instead.

func (*IdentityChallengeResponse) GetAkActivationDecryptedSecret added in v1.0.21

func (m *IdentityChallengeResponse) GetAkActivationDecryptedSecret() []byte

func (*IdentityChallengeResponse) GetDigestSignedByIdevid added in v1.0.21

func (m *IdentityChallengeResponse) GetDigestSignedByIdevid() []byte

func (*IdentityChallengeResponse) GetDigestSignedByLdevid added in v1.0.21

func (m *IdentityChallengeResponse) GetDigestSignedByLdevid() []byte

func (*IdentityChallengeResponse) GetEventlog added in v1.0.21

func (m *IdentityChallengeResponse) GetEventlog() []byte

func (*IdentityChallengeResponse) GetIdevidActivationDecryptedSecret added in v1.0.21

func (m *IdentityChallengeResponse) GetIdevidActivationDecryptedSecret() []byte

func (*IdentityChallengeResponse) GetLdevidActivationDecryptedSecret added in v1.0.21

func (m *IdentityChallengeResponse) GetLdevidActivationDecryptedSecret() []byte

func (*IdentityChallengeResponse) GetPcrs added in v1.0.21

func (m *IdentityChallengeResponse) GetPcrs() []*PCR

func (*IdentityChallengeResponse) GetQuotes added in v1.0.21

func (*IdentityChallengeResponse) GetRsaDecryptedWithIdevid added in v1.0.21

func (m *IdentityChallengeResponse) GetRsaDecryptedWithIdevid() []byte

func (*IdentityChallengeResponse) GetRsaDecryptedWithLdevid added in v1.0.21

func (m *IdentityChallengeResponse) GetRsaDecryptedWithLdevid() []byte

func (*IdentityChallengeResponse) GotenMessage added in v1.0.21

func (*IdentityChallengeResponse) GotenMessage()

func (*IdentityChallengeResponse) GotenValidate added in v1.0.21

func (obj *IdentityChallengeResponse) GotenValidate() error

func (*IdentityChallengeResponse) Marshal added in v1.0.21

func (m *IdentityChallengeResponse) Marshal() ([]byte, error)

func (*IdentityChallengeResponse) MarshalJSON added in v1.0.21

func (m *IdentityChallengeResponse) MarshalJSON() ([]byte, error)

func (*IdentityChallengeResponse) ProtoMessage added in v1.0.21

func (*IdentityChallengeResponse) ProtoMessage()

func (*IdentityChallengeResponse) ProtoReflect added in v1.0.21

func (m *IdentityChallengeResponse) ProtoReflect() preflect.Message

func (*IdentityChallengeResponse) Reset added in v1.0.21

func (m *IdentityChallengeResponse) Reset()

func (*IdentityChallengeResponse) SetAkActivationDecryptedSecret added in v1.0.21

func (m *IdentityChallengeResponse) SetAkActivationDecryptedSecret(fv []byte)

func (*IdentityChallengeResponse) SetDigestSignedByIdevid added in v1.0.21

func (m *IdentityChallengeResponse) SetDigestSignedByIdevid(fv []byte)

func (*IdentityChallengeResponse) SetDigestSignedByLdevid added in v1.0.21

func (m *IdentityChallengeResponse) SetDigestSignedByLdevid(fv []byte)

func (*IdentityChallengeResponse) SetEventlog added in v1.0.21

func (m *IdentityChallengeResponse) SetEventlog(fv []byte)

func (*IdentityChallengeResponse) SetIdevidActivationDecryptedSecret added in v1.0.21

func (m *IdentityChallengeResponse) SetIdevidActivationDecryptedSecret(fv []byte)

func (*IdentityChallengeResponse) SetLdevidActivationDecryptedSecret added in v1.0.21

func (m *IdentityChallengeResponse) SetLdevidActivationDecryptedSecret(fv []byte)

func (*IdentityChallengeResponse) SetPcrs added in v1.0.21

func (m *IdentityChallengeResponse) SetPcrs(fv []*PCR)

func (*IdentityChallengeResponse) SetQuotes added in v1.0.21

func (*IdentityChallengeResponse) SetRsaDecryptedWithIdevid added in v1.0.21

func (m *IdentityChallengeResponse) SetRsaDecryptedWithIdevid(fv []byte)

func (*IdentityChallengeResponse) SetRsaDecryptedWithLdevid added in v1.0.21

func (m *IdentityChallengeResponse) SetRsaDecryptedWithLdevid(fv []byte)

func (*IdentityChallengeResponse) String added in v1.0.21

func (m *IdentityChallengeResponse) String() string

func (*IdentityChallengeResponse) Unmarshal added in v1.0.21

func (m *IdentityChallengeResponse) Unmarshal(b []byte) error

func (*IdentityChallengeResponse) UnmarshalJSON added in v1.0.21

func (m *IdentityChallengeResponse) UnmarshalJSON(data []byte) error

type IdentityChallengeResponse_Quote added in v1.0.21

type IdentityChallengeResponse_Quote struct {

	// TPMS_ATTEST (TSS_VALIDATION.Data or TSS_VALIDATION.rgbData)
	// This contains PCR selection information for which the signature was
	// calculated and other required data, like nonce.
	Quote []byte `protobuf:"bytes,1,opt,name=quote,proto3" json:"quote,omitempty" firestore:"quote"`
	// TSS_VALIDATION.ValidationData or TSS_VALIDATION.rgbValidationData
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" firestore:"signature"`
	// contains filtered or unexported fields
}

func (*IdentityChallengeResponse_Quote) Descriptor added in v1.0.21

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

Deprecated, Use IdentityChallengeResponse_Quote.ProtoReflect.Descriptor instead.

func (*IdentityChallengeResponse_Quote) GetQuote added in v1.0.21

func (m *IdentityChallengeResponse_Quote) GetQuote() []byte

func (*IdentityChallengeResponse_Quote) GetSignature added in v1.0.21

func (m *IdentityChallengeResponse_Quote) GetSignature() []byte

func (*IdentityChallengeResponse_Quote) GotenMessage added in v1.0.21

func (*IdentityChallengeResponse_Quote) GotenMessage()

func (*IdentityChallengeResponse_Quote) GotenValidate added in v1.0.21

func (obj *IdentityChallengeResponse_Quote) GotenValidate() error

func (*IdentityChallengeResponse_Quote) Marshal added in v1.0.21

func (m *IdentityChallengeResponse_Quote) Marshal() ([]byte, error)

func (*IdentityChallengeResponse_Quote) MarshalJSON added in v1.0.21

func (m *IdentityChallengeResponse_Quote) MarshalJSON() ([]byte, error)

func (*IdentityChallengeResponse_Quote) ProtoMessage added in v1.0.21

func (*IdentityChallengeResponse_Quote) ProtoMessage()

func (*IdentityChallengeResponse_Quote) ProtoReflect added in v1.0.21

func (*IdentityChallengeResponse_Quote) Reset added in v1.0.21

func (*IdentityChallengeResponse_Quote) SetQuote added in v1.0.21

func (m *IdentityChallengeResponse_Quote) SetQuote(fv []byte)

func (*IdentityChallengeResponse_Quote) SetSignature added in v1.0.21

func (m *IdentityChallengeResponse_Quote) SetSignature(fv []byte)

func (*IdentityChallengeResponse_Quote) String added in v1.0.21

func (*IdentityChallengeResponse_Quote) Unmarshal added in v1.0.21

func (m *IdentityChallengeResponse_Quote) Unmarshal(b []byte) error

func (*IdentityChallengeResponse_Quote) UnmarshalJSON added in v1.0.21

func (m *IdentityChallengeResponse_Quote) UnmarshalJSON(data []byte) error

type LaunchStage

type LaunchStage int32

The launch stage as defined by [Google Cloud Platform Launch Stages](http://cloud.google.com/terms/launch-stages).

const (
	// Do not use this default value.
	LaunchStage_LAUNCH_STAGE_UNSPECIFIED LaunchStage = 0
	// Early Access features are limited to a closed group of testers. To use
	// these features, you must sign up in advance and sign a Trusted Tester
	// agreement (which includes confidentiality provisions). These features may
	// be unstable, changed in backward-incompatible ways, and are not
	// guaranteed to be released.
	LaunchStage_EARLY_ACCESS LaunchStage = 1
	// Alpha is a limited availability test for releases before they are cleared
	// for widespread use. By Alpha, all significant design issues are resolved
	// and we are in the process of verifying functionality. Alpha customers
	// need to apply for access, agree to applicable terms, and have their
	// projects whitelisted. Alpha releases don’t have to be feature complete,
	// no SLAs are provided, and there are no technical support obligations, but
	// they will be far enough along that customers can actually use them in
	// test environments or for limited-use tests -- just like they would in
	// normal production cases.
	LaunchStage_ALPHA LaunchStage = 2
	// Beta is the point at which we are ready to open a release for any
	// customer to use. There are no SLA or technical support obligations in a
	// Beta release. Products will be complete from a feature perspective, but
	// may have some open outstanding issues. Beta releases are suitable for
	// limited production use cases.
	LaunchStage_BETA LaunchStage = 3
	// GA features are open to all developers and are considered stable and
	// fully qualified for production use.
	LaunchStage_GA LaunchStage = 4
	// Deprecated features are scheduled to be shut down and removed. For more
	// information, see the “Deprecation Policy” section of our [Terms of
	// Service](https://cloud.google.com/terms/)
	// and the [Google Cloud Platform Subject to the Deprecation
	// Policy](https://cloud.google.com/terms/deprecation) documentation.
	LaunchStage_DEPRECATED LaunchStage = 5
)

func (LaunchStage) Descriptor

func (LaunchStage) Descriptor() preflect.EnumDescriptor

func (LaunchStage) Enum

func (x LaunchStage) Enum() *LaunchStage

func (LaunchStage) EnumDescriptor

func (LaunchStage) EnumDescriptor() ([]byte, []int)

Deprecated, Use LaunchStage.ProtoReflect.Descriptor instead.

func (LaunchStage) Number

func (x LaunchStage) Number() preflect.EnumNumber

func (LaunchStage) String

func (x LaunchStage) String() string

func (LaunchStage) Type

func (LaunchStage) Type() preflect.EnumType

type PCR added in v1.0.21

type PCR struct {
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" firestore:"index"`
	// Hex-encoded digest string (without 0x prefix, e.g. "DEADBEEF")
	DigestHex string    `protobuf:"bytes,2,opt,name=digest_hex,json=digestHex,proto3" json:"digest_hex,omitempty" firestore:"digestHex"`
	DigestAlg DigestAlg `` /* 134-byte string literal not displayed */
	// User's comments for this entry
	Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty" firestore:"comment"`
	// contains filtered or unexported fields
}

func (*PCR) Descriptor added in v1.0.21

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

Deprecated, Use PCR.ProtoReflect.Descriptor instead.

func (*PCR) GetComment added in v1.0.21

func (m *PCR) GetComment() string

func (*PCR) GetDigestAlg added in v1.0.21

func (m *PCR) GetDigestAlg() DigestAlg

func (*PCR) GetDigestHex added in v1.0.21

func (m *PCR) GetDigestHex() string

func (*PCR) GetIndex added in v1.0.21

func (m *PCR) GetIndex() uint32

func (*PCR) GotenMessage added in v1.0.21

func (*PCR) GotenMessage()

func (*PCR) GotenValidate added in v1.0.21

func (obj *PCR) GotenValidate() error

func (*PCR) Marshal added in v1.0.21

func (m *PCR) Marshal() ([]byte, error)

func (*PCR) MarshalJSON added in v1.0.21

func (m *PCR) MarshalJSON() ([]byte, error)

func (*PCR) ProtoMessage added in v1.0.21

func (*PCR) ProtoMessage()

func (*PCR) ProtoReflect added in v1.0.21

func (m *PCR) ProtoReflect() preflect.Message

func (*PCR) Reset added in v1.0.21

func (m *PCR) Reset()

func (*PCR) SetComment added in v1.0.21

func (m *PCR) SetComment(fv string)

func (*PCR) SetDigestAlg added in v1.0.21

func (m *PCR) SetDigestAlg(fv DigestAlg)

func (*PCR) SetDigestHex added in v1.0.21

func (m *PCR) SetDigestHex(fv string)

func (*PCR) SetIndex added in v1.0.21

func (m *PCR) SetIndex(fv uint32)

func (*PCR) String added in v1.0.21

func (m *PCR) String() string

func (*PCR) Unmarshal added in v1.0.21

func (m *PCR) Unmarshal(b []byte) error

func (*PCR) UnmarshalJSON added in v1.0.21

func (m *PCR) UnmarshalJSON(data []byte) error

type ServiceAccount

type ServiceAccount struct {
	Type         string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" firestore:"type"`
	ClientEmail  string `protobuf:"bytes,2,opt,name=client_email,proto3" json:"client_email,omitempty" firestore:"client_email"`
	PrivateKeyId string `protobuf:"bytes,3,opt,name=private_key_id,proto3" json:"private_key_id,omitempty" firestore:"private_key_id"`
	PrivateKey   string `protobuf:"bytes,4,opt,name=private_key,proto3" json:"private_key,omitempty" firestore:"private_key"`
	// contains filtered or unexported fields
}

func (*ServiceAccount) Descriptor

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

Deprecated, Use ServiceAccount.ProtoReflect.Descriptor instead.

func (*ServiceAccount) GetClientEmail

func (m *ServiceAccount) GetClientEmail() string

func (*ServiceAccount) GetPrivateKey

func (m *ServiceAccount) GetPrivateKey() string

func (*ServiceAccount) GetPrivateKeyId

func (m *ServiceAccount) GetPrivateKeyId() string

func (*ServiceAccount) GetType

func (m *ServiceAccount) GetType() string

func (*ServiceAccount) GotenMessage

func (*ServiceAccount) GotenMessage()

func (*ServiceAccount) GotenValidate

func (obj *ServiceAccount) GotenValidate() error

func (*ServiceAccount) Marshal

func (m *ServiceAccount) Marshal() ([]byte, error)

func (*ServiceAccount) MarshalJSON

func (m *ServiceAccount) MarshalJSON() ([]byte, error)

func (*ServiceAccount) ProtoMessage

func (*ServiceAccount) ProtoMessage()

func (*ServiceAccount) ProtoReflect

func (m *ServiceAccount) ProtoReflect() preflect.Message

func (*ServiceAccount) Reset

func (m *ServiceAccount) Reset()

func (*ServiceAccount) SetClientEmail

func (m *ServiceAccount) SetClientEmail(fv string)

func (*ServiceAccount) SetPrivateKey

func (m *ServiceAccount) SetPrivateKey(fv string)

func (*ServiceAccount) SetPrivateKeyId

func (m *ServiceAccount) SetPrivateKeyId(fv string)

func (*ServiceAccount) SetType

func (m *ServiceAccount) SetType(fv string)

func (*ServiceAccount) String

func (m *ServiceAccount) String() string

func (*ServiceAccount) Unmarshal

func (m *ServiceAccount) Unmarshal(b []byte) error

func (*ServiceAccount) UnmarshalJSON

func (m *ServiceAccount) UnmarshalJSON(data []byte) error

type TpmVersion added in v1.0.21

type TpmVersion int32
const (
	TpmVersion_TPMVAGNOSTIC TpmVersion = 0
	TpmVersion_TPMV12       TpmVersion = 1
	TpmVersion_TPMV20       TpmVersion = 2
)

func (TpmVersion) Descriptor added in v1.0.21

func (TpmVersion) Descriptor() preflect.EnumDescriptor

func (TpmVersion) Enum added in v1.0.21

func (x TpmVersion) Enum() *TpmVersion

func (TpmVersion) EnumDescriptor added in v1.0.21

func (TpmVersion) EnumDescriptor() ([]byte, []int)

Deprecated, Use TpmVersion.ProtoReflect.Descriptor instead.

func (TpmVersion) Number added in v1.0.21

func (x TpmVersion) Number() preflect.EnumNumber

func (TpmVersion) String added in v1.0.21

func (x TpmVersion) String() string

func (TpmVersion) Type added in v1.0.21

func (TpmVersion) Type() preflect.EnumType

type User

type User struct {
	Email        string                 `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty" firestore:"email"`
	AccessToken  string                 `protobuf:"bytes,2,opt,name=access_token,proto3" json:"access_token,omitempty" firestore:"access_token"`
	TokenType    string                 `protobuf:"bytes,3,opt,name=token_type,proto3" json:"token_type,omitempty" firestore:"token_type"`
	RefreshToken string                 `protobuf:"bytes,4,opt,name=refresh_token,proto3" json:"refresh_token,omitempty" firestore:"refresh_token"`
	Expiry       *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiry,proto3" json:"expiry,omitempty" firestore:"expiry"`
	// contains filtered or unexported fields
}

func (*User) Descriptor

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

Deprecated, Use User.ProtoReflect.Descriptor instead.

func (*User) GetAccessToken

func (m *User) GetAccessToken() string

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetExpiry

func (m *User) GetExpiry() *timestamppb.Timestamp

func (*User) GetRefreshToken

func (m *User) GetRefreshToken() string

func (*User) GetTokenType

func (m *User) GetTokenType() string

func (*User) GotenMessage

func (*User) GotenMessage()

func (*User) GotenValidate

func (obj *User) GotenValidate() error

func (*User) Marshal

func (m *User) Marshal() ([]byte, error)

func (*User) MarshalJSON

func (m *User) MarshalJSON() ([]byte, error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (m *User) ProtoReflect() preflect.Message

func (*User) Reset

func (m *User) Reset()

func (*User) SetAccessToken

func (m *User) SetAccessToken(fv string)

func (*User) SetEmail

func (m *User) SetEmail(fv string)

func (*User) SetExpiry

func (m *User) SetExpiry(fv *timestamppb.Timestamp)

func (*User) SetRefreshToken

func (m *User) SetRefreshToken(fv string)

func (*User) SetTokenType

func (m *User) SetTokenType(fv string)

func (*User) String

func (m *User) String() string

func (*User) Unmarshal

func (m *User) Unmarshal(b []byte) error

func (*User) UnmarshalJSON

func (m *User) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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