github.com/mre-fog/trillianxx@v1.1.2-0.20180615153820-ae375a99d36a/crypto/sigpb/sigpb.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: crypto/sigpb/sigpb.proto 3 4 package sigpb // import "github.com/google/trillian/crypto/sigpb" 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 // Reference imports to suppress errors if they are not otherwise used. 11 var _ = proto.Marshal 12 var _ = fmt.Errorf 13 var _ = math.Inf 14 15 // This is a compile-time assertion to ensure that this generated file 16 // is compatible with the proto package it is being compiled against. 17 // A compilation error at this line likely means your copy of the 18 // proto package needs to be updated. 19 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 20 21 // HashAlgorithm defines the approved methods for object hashing. 22 // 23 // Supported hash algorithms. The numbering space is the same as for TLS, 24 // given in RFC 5246 s7.4.1.4.1 and at: 25 // http://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-18 26 type DigitallySigned_HashAlgorithm int32 27 28 const ( 29 // No hash algorithm is used. 30 DigitallySigned_NONE DigitallySigned_HashAlgorithm = 0 31 // SHA256 is used. 32 DigitallySigned_SHA256 DigitallySigned_HashAlgorithm = 4 33 ) 34 35 var DigitallySigned_HashAlgorithm_name = map[int32]string{ 36 0: "NONE", 37 4: "SHA256", 38 } 39 var DigitallySigned_HashAlgorithm_value = map[string]int32{ 40 "NONE": 0, 41 "SHA256": 4, 42 } 43 44 func (x DigitallySigned_HashAlgorithm) String() string { 45 return proto.EnumName(DigitallySigned_HashAlgorithm_name, int32(x)) 46 } 47 func (DigitallySigned_HashAlgorithm) EnumDescriptor() ([]byte, []int) { 48 return fileDescriptor_sigpb_bab25d6b084f0db0, []int{0, 0} 49 } 50 51 // SignatureAlgorithm defines the algorithm used to sign the object. 52 // 53 // Supported signature algorithms. The numbering space is the same as for TLS, 54 // given in RFC 5246 s7.4.1.4.1 and at: 55 // http://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-16 56 type DigitallySigned_SignatureAlgorithm int32 57 58 const ( 59 // Anonymous signature scheme. 60 DigitallySigned_ANONYMOUS DigitallySigned_SignatureAlgorithm = 0 61 // RSA signature scheme. 62 DigitallySigned_RSA DigitallySigned_SignatureAlgorithm = 1 63 // ECDSA signature scheme. 64 DigitallySigned_ECDSA DigitallySigned_SignatureAlgorithm = 3 65 ) 66 67 var DigitallySigned_SignatureAlgorithm_name = map[int32]string{ 68 0: "ANONYMOUS", 69 1: "RSA", 70 3: "ECDSA", 71 } 72 var DigitallySigned_SignatureAlgorithm_value = map[string]int32{ 73 "ANONYMOUS": 0, 74 "RSA": 1, 75 "ECDSA": 3, 76 } 77 78 func (x DigitallySigned_SignatureAlgorithm) String() string { 79 return proto.EnumName(DigitallySigned_SignatureAlgorithm_name, int32(x)) 80 } 81 func (DigitallySigned_SignatureAlgorithm) EnumDescriptor() ([]byte, []int) { 82 return fileDescriptor_sigpb_bab25d6b084f0db0, []int{0, 1} 83 } 84 85 // Protocol buffer encoding of the TLS DigitallySigned type, from RFC 5246 ยง4.7. 86 type DigitallySigned struct { 87 // hash_algorithm contains the hash algorithm used. 88 HashAlgorithm DigitallySigned_HashAlgorithm `protobuf:"varint,1,opt,name=hash_algorithm,json=hashAlgorithm,enum=sigpb.DigitallySigned_HashAlgorithm" json:"hash_algorithm,omitempty"` 89 // sig_algorithm contains the signing algorithm used. 90 SignatureAlgorithm DigitallySigned_SignatureAlgorithm `protobuf:"varint,2,opt,name=signature_algorithm,json=signatureAlgorithm,enum=sigpb.DigitallySigned_SignatureAlgorithm" json:"signature_algorithm,omitempty"` 91 // signature contains the object signature. 92 Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` 93 XXX_NoUnkeyedLiteral struct{} `json:"-"` 94 XXX_unrecognized []byte `json:"-"` 95 XXX_sizecache int32 `json:"-"` 96 } 97 98 func (m *DigitallySigned) Reset() { *m = DigitallySigned{} } 99 func (m *DigitallySigned) String() string { return proto.CompactTextString(m) } 100 func (*DigitallySigned) ProtoMessage() {} 101 func (*DigitallySigned) Descriptor() ([]byte, []int) { 102 return fileDescriptor_sigpb_bab25d6b084f0db0, []int{0} 103 } 104 func (m *DigitallySigned) XXX_Unmarshal(b []byte) error { 105 return xxx_messageInfo_DigitallySigned.Unmarshal(m, b) 106 } 107 func (m *DigitallySigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 108 return xxx_messageInfo_DigitallySigned.Marshal(b, m, deterministic) 109 } 110 func (dst *DigitallySigned) XXX_Merge(src proto.Message) { 111 xxx_messageInfo_DigitallySigned.Merge(dst, src) 112 } 113 func (m *DigitallySigned) XXX_Size() int { 114 return xxx_messageInfo_DigitallySigned.Size(m) 115 } 116 func (m *DigitallySigned) XXX_DiscardUnknown() { 117 xxx_messageInfo_DigitallySigned.DiscardUnknown(m) 118 } 119 120 var xxx_messageInfo_DigitallySigned proto.InternalMessageInfo 121 122 func (m *DigitallySigned) GetHashAlgorithm() DigitallySigned_HashAlgorithm { 123 if m != nil { 124 return m.HashAlgorithm 125 } 126 return DigitallySigned_NONE 127 } 128 129 func (m *DigitallySigned) GetSignatureAlgorithm() DigitallySigned_SignatureAlgorithm { 130 if m != nil { 131 return m.SignatureAlgorithm 132 } 133 return DigitallySigned_ANONYMOUS 134 } 135 136 func (m *DigitallySigned) GetSignature() []byte { 137 if m != nil { 138 return m.Signature 139 } 140 return nil 141 } 142 143 func init() { 144 proto.RegisterType((*DigitallySigned)(nil), "sigpb.DigitallySigned") 145 proto.RegisterEnum("sigpb.DigitallySigned_HashAlgorithm", DigitallySigned_HashAlgorithm_name, DigitallySigned_HashAlgorithm_value) 146 proto.RegisterEnum("sigpb.DigitallySigned_SignatureAlgorithm", DigitallySigned_SignatureAlgorithm_name, DigitallySigned_SignatureAlgorithm_value) 147 } 148 149 func init() { proto.RegisterFile("crypto/sigpb/sigpb.proto", fileDescriptor_sigpb_bab25d6b084f0db0) } 150 151 var fileDescriptor_sigpb_bab25d6b084f0db0 = []byte{ 152 // 267 bytes of a gzipped FileDescriptorProto 153 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x41, 0x4b, 0xc3, 0x40, 154 0x10, 0x85, 0x9b, 0xa6, 0xad, 0x66, 0x30, 0x35, 0x8c, 0x97, 0x1c, 0x3c, 0x94, 0xa0, 0xd8, 0x5e, 155 0x12, 0xa8, 0xa8, 0xe7, 0x68, 0x0b, 0x05, 0x31, 0x81, 0x2c, 0x1e, 0xec, 0x45, 0x36, 0x35, 0xec, 156 0x2e, 0x6c, 0xb3, 0x21, 0xbb, 0x3d, 0xf4, 0x9f, 0xf9, 0xf3, 0x84, 0x94, 0xda, 0x68, 0xe9, 0x65, 157 0xe0, 0x3d, 0xde, 0x7c, 0x33, 0x3c, 0xf0, 0x57, 0xf5, 0xb6, 0x32, 0x2a, 0xd2, 0x82, 0x55, 0xf9, 158 0x6e, 0x86, 0x55, 0xad, 0x8c, 0xc2, 0x7e, 0x23, 0x82, 0xef, 0x2e, 0x5c, 0xce, 0x04, 0x13, 0x86, 159 0x4a, 0xb9, 0x25, 0x82, 0x95, 0xc5, 0x17, 0xbe, 0xc2, 0x90, 0x53, 0xcd, 0x3f, 0xa9, 0x64, 0xaa, 160 0x16, 0x86, 0xaf, 0x7d, 0x6b, 0x64, 0x8d, 0x87, 0xd3, 0x9b, 0x70, 0x07, 0xf8, 0x97, 0x0f, 0x17, 161 0x54, 0xf3, 0x78, 0x9f, 0xcd, 0x5c, 0xde, 0x96, 0xb8, 0x84, 0x2b, 0x2d, 0x58, 0x49, 0xcd, 0xa6, 162 0x2e, 0x5a, 0xc4, 0x6e, 0x43, 0x9c, 0x9c, 0x20, 0x92, 0xfd, 0xc6, 0x01, 0x8b, 0xfa, 0xc8, 0xc3, 163 0x6b, 0x70, 0x7e, 0x5d, 0xdf, 0x1e, 0x59, 0xe3, 0x8b, 0xec, 0x60, 0x04, 0xb7, 0xe0, 0xfe, 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