mirror of
https://github.com/google/go-attestation.git
synced 2025-01-02 03:06:46 +00:00
a801f7333b
* Upstream the verifier sub-library. * Rename proto package to go_attestation
350 lines
15 KiB
Go
350 lines
15 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: verification.proto
|
|
|
|
package go_attestation_verifier
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type AikVerificationResults struct {
|
|
Succeeded bool `protobuf:"varint,1,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
|
|
KeyTooSmall bool `protobuf:"varint,2,opt,name=key_too_small,json=keyTooSmall,proto3" json:"key_too_small,omitempty"`
|
|
CreationAttestationMismatch bool `protobuf:"varint,3,opt,name=creation_attestation_mismatch,json=creationAttestationMismatch,proto3" json:"creation_attestation_mismatch,omitempty"`
|
|
KeyNotTpmBound bool `protobuf:"varint,4,opt,name=key_not_tpm_bound,json=keyNotTpmBound,proto3" json:"key_not_tpm_bound,omitempty"`
|
|
KeyUsageOverlyBroad bool `protobuf:"varint,5,opt,name=key_usage_overly_broad,json=keyUsageOverlyBroad,proto3" json:"key_usage_overly_broad,omitempty"`
|
|
NameAttestationMismatch bool `protobuf:"varint,6,opt,name=name_attestation_mismatch,json=nameAttestationMismatch,proto3" json:"name_attestation_mismatch,omitempty"`
|
|
SignatureMismatch bool `protobuf:"varint,7,opt,name=signature_mismatch,json=signatureMismatch,proto3" json:"signature_mismatch,omitempty"`
|
|
RocaVulnerableKey bool `protobuf:"varint,8,opt,name=roca_vulnerable_key,json=rocaVulnerableKey,proto3" json:"roca_vulnerable_key,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AikVerificationResults) Reset() { *m = AikVerificationResults{} }
|
|
func (m *AikVerificationResults) String() string { return proto.CompactTextString(m) }
|
|
func (*AikVerificationResults) ProtoMessage() {}
|
|
func (*AikVerificationResults) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_69b5d5d3b04d10d4, []int{0}
|
|
}
|
|
|
|
func (m *AikVerificationResults) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AikVerificationResults.Unmarshal(m, b)
|
|
}
|
|
func (m *AikVerificationResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AikVerificationResults.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AikVerificationResults) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AikVerificationResults.Merge(m, src)
|
|
}
|
|
func (m *AikVerificationResults) XXX_Size() int {
|
|
return xxx_messageInfo_AikVerificationResults.Size(m)
|
|
}
|
|
func (m *AikVerificationResults) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AikVerificationResults.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AikVerificationResults proto.InternalMessageInfo
|
|
|
|
func (m *AikVerificationResults) GetSucceeded() bool {
|
|
if m != nil {
|
|
return m.Succeeded
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AikVerificationResults) GetKeyTooSmall() bool {
|
|
if m != nil {
|
|
return m.KeyTooSmall
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AikVerificationResults) GetCreationAttestationMismatch() bool {
|
|
if m != nil {
|
|
return m.CreationAttestationMismatch
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AikVerificationResults) GetKeyNotTpmBound() bool {
|
|
if m != nil {
|
|
return m.KeyNotTpmBound
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AikVerificationResults) GetKeyUsageOverlyBroad() bool {
|
|
if m != nil {
|
|
return m.KeyUsageOverlyBroad
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AikVerificationResults) GetNameAttestationMismatch() bool {
|
|
if m != nil {
|
|
return m.NameAttestationMismatch
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AikVerificationResults) GetSignatureMismatch() bool {
|
|
if m != nil {
|
|
return m.SignatureMismatch
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AikVerificationResults) GetRocaVulnerableKey() bool {
|
|
if m != nil {
|
|
return m.RocaVulnerableKey
|
|
}
|
|
return false
|
|
}
|
|
|
|
type QuoteVerificationResults struct {
|
|
Succeeded bool `protobuf:"varint,1,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
|
|
SignatureMismatch bool `protobuf:"varint,2,opt,name=signature_mismatch,json=signatureMismatch,proto3" json:"signature_mismatch,omitempty"`
|
|
PcrDigest []byte `protobuf:"bytes,3,opt,name=pcr_digest,json=pcrDigest,proto3" json:"pcr_digest,omitempty"`
|
|
PcrDigestMismatch bool `protobuf:"varint,4,opt,name=pcr_digest_mismatch,json=pcrDigestMismatch,proto3" json:"pcr_digest_mismatch,omitempty"`
|
|
NonceMismatch bool `protobuf:"varint,5,opt,name=nonce_mismatch,json=nonceMismatch,proto3" json:"nonce_mismatch,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *QuoteVerificationResults) Reset() { *m = QuoteVerificationResults{} }
|
|
func (m *QuoteVerificationResults) String() string { return proto.CompactTextString(m) }
|
|
func (*QuoteVerificationResults) ProtoMessage() {}
|
|
func (*QuoteVerificationResults) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_69b5d5d3b04d10d4, []int{1}
|
|
}
|
|
|
|
func (m *QuoteVerificationResults) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_QuoteVerificationResults.Unmarshal(m, b)
|
|
}
|
|
func (m *QuoteVerificationResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_QuoteVerificationResults.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *QuoteVerificationResults) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QuoteVerificationResults.Merge(m, src)
|
|
}
|
|
func (m *QuoteVerificationResults) XXX_Size() int {
|
|
return xxx_messageInfo_QuoteVerificationResults.Size(m)
|
|
}
|
|
func (m *QuoteVerificationResults) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QuoteVerificationResults.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QuoteVerificationResults proto.InternalMessageInfo
|
|
|
|
func (m *QuoteVerificationResults) GetSucceeded() bool {
|
|
if m != nil {
|
|
return m.Succeeded
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *QuoteVerificationResults) GetSignatureMismatch() bool {
|
|
if m != nil {
|
|
return m.SignatureMismatch
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *QuoteVerificationResults) GetPcrDigest() []byte {
|
|
if m != nil {
|
|
return m.PcrDigest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QuoteVerificationResults) GetPcrDigestMismatch() bool {
|
|
if m != nil {
|
|
return m.PcrDigestMismatch
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *QuoteVerificationResults) GetNonceMismatch() bool {
|
|
if m != nil {
|
|
return m.NonceMismatch
|
|
}
|
|
return false
|
|
}
|
|
|
|
type EkcertVerificationResults struct {
|
|
Succeeded bool `protobuf:"varint,1,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
|
|
ChainVerified bool `protobuf:"varint,2,opt,name=chain_verified,json=chainVerified,proto3" json:"chain_verified,omitempty"`
|
|
Chain []*EkcertVerificationResults_CertSummary `protobuf:"bytes,3,rep,name=chain,proto3" json:"chain,omitempty"`
|
|
VerificationError string `protobuf:"bytes,4,opt,name=verification_error,json=verificationError,proto3" json:"verification_error,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EkcertVerificationResults) Reset() { *m = EkcertVerificationResults{} }
|
|
func (m *EkcertVerificationResults) String() string { return proto.CompactTextString(m) }
|
|
func (*EkcertVerificationResults) ProtoMessage() {}
|
|
func (*EkcertVerificationResults) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_69b5d5d3b04d10d4, []int{2}
|
|
}
|
|
|
|
func (m *EkcertVerificationResults) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EkcertVerificationResults.Unmarshal(m, b)
|
|
}
|
|
func (m *EkcertVerificationResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EkcertVerificationResults.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *EkcertVerificationResults) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EkcertVerificationResults.Merge(m, src)
|
|
}
|
|
func (m *EkcertVerificationResults) XXX_Size() int {
|
|
return xxx_messageInfo_EkcertVerificationResults.Size(m)
|
|
}
|
|
func (m *EkcertVerificationResults) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EkcertVerificationResults.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EkcertVerificationResults proto.InternalMessageInfo
|
|
|
|
func (m *EkcertVerificationResults) GetSucceeded() bool {
|
|
if m != nil {
|
|
return m.Succeeded
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *EkcertVerificationResults) GetChainVerified() bool {
|
|
if m != nil {
|
|
return m.ChainVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *EkcertVerificationResults) GetChain() []*EkcertVerificationResults_CertSummary {
|
|
if m != nil {
|
|
return m.Chain
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *EkcertVerificationResults) GetVerificationError() string {
|
|
if m != nil {
|
|
return m.VerificationError
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EkcertVerificationResults_CertSummary struct {
|
|
IssuerCn string `protobuf:"bytes,1,opt,name=issuer_cn,json=issuerCn,proto3" json:"issuer_cn,omitempty"`
|
|
IssuerOrg string `protobuf:"bytes,2,opt,name=issuer_org,json=issuerOrg,proto3" json:"issuer_org,omitempty"`
|
|
Serial string `protobuf:"bytes,3,opt,name=serial,proto3" json:"serial,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EkcertVerificationResults_CertSummary) Reset() { *m = EkcertVerificationResults_CertSummary{} }
|
|
func (m *EkcertVerificationResults_CertSummary) String() string { return proto.CompactTextString(m) }
|
|
func (*EkcertVerificationResults_CertSummary) ProtoMessage() {}
|
|
func (*EkcertVerificationResults_CertSummary) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_69b5d5d3b04d10d4, []int{2, 0}
|
|
}
|
|
|
|
func (m *EkcertVerificationResults_CertSummary) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EkcertVerificationResults_CertSummary.Unmarshal(m, b)
|
|
}
|
|
func (m *EkcertVerificationResults_CertSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EkcertVerificationResults_CertSummary.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *EkcertVerificationResults_CertSummary) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EkcertVerificationResults_CertSummary.Merge(m, src)
|
|
}
|
|
func (m *EkcertVerificationResults_CertSummary) XXX_Size() int {
|
|
return xxx_messageInfo_EkcertVerificationResults_CertSummary.Size(m)
|
|
}
|
|
func (m *EkcertVerificationResults_CertSummary) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EkcertVerificationResults_CertSummary.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EkcertVerificationResults_CertSummary proto.InternalMessageInfo
|
|
|
|
func (m *EkcertVerificationResults_CertSummary) GetIssuerCn() string {
|
|
if m != nil {
|
|
return m.IssuerCn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EkcertVerificationResults_CertSummary) GetIssuerOrg() string {
|
|
if m != nil {
|
|
return m.IssuerOrg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EkcertVerificationResults_CertSummary) GetSerial() string {
|
|
if m != nil {
|
|
return m.Serial
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*AikVerificationResults)(nil), "go_attestation.verifier.AikVerificationResults")
|
|
proto.RegisterType((*QuoteVerificationResults)(nil), "go_attestation.verifier.QuoteVerificationResults")
|
|
proto.RegisterType((*EkcertVerificationResults)(nil), "go_attestation.verifier.EkcertVerificationResults")
|
|
proto.RegisterType((*EkcertVerificationResults_CertSummary)(nil), "go_attestation.verifier.EkcertVerificationResults.CertSummary")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("verification.proto", fileDescriptor_69b5d5d3b04d10d4) }
|
|
|
|
var fileDescriptor_69b5d5d3b04d10d4 = []byte{
|
|
// 494 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x41, 0x6e, 0xdb, 0x3c,
|
|
0x10, 0x85, 0x61, 0xfb, 0x8f, 0x7f, 0x6b, 0x5c, 0x1b, 0x30, 0x03, 0x38, 0x4a, 0xd3, 0x00, 0x81,
|
|
0x81, 0x00, 0xe9, 0xa2, 0x5e, 0x34, 0xbb, 0x2e, 0x0a, 0xc4, 0x69, 0x56, 0x45, 0x1b, 0x54, 0x71,
|
|
0xbd, 0x25, 0x68, 0x6a, 0xaa, 0x08, 0x92, 0x48, 0x63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