-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage.pb.go
154 lines (133 loc) · 4.98 KB
/
message.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: message.proto
package simplcrypto
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.ProtoPackageIsVersion2 // please upgrade the proto package
type Message struct {
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
KeyType string `protobuf:"bytes,2,opt,name=KeyType,proto3" json:"KeyType,omitempty"`
KID string `protobuf:"bytes,3,opt,name=KID,proto3" json:"KID,omitempty"`
IV string `protobuf:"bytes,4,opt,name=IV,proto3" json:"IV,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_33c57e4bae7b9afd, []int{0}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message.Unmarshal(m, b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
}
func (m *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(m, src)
}
func (m *Message) XXX_Size() int {
return xxx_messageInfo_Message.Size(m)
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *Message) GetKeyType() string {
if m != nil {
return m.KeyType
}
return ""
}
func (m *Message) GetKID() string {
if m != nil {
return m.KID
}
return ""
}
func (m *Message) GetIV() string {
if m != nil {
return m.IV
}
return ""
}
type Signature struct {
Signature []byte `protobuf:"bytes,1,opt,name=Signature,proto3" json:"Signature,omitempty"`
KID string `protobuf:"bytes,2,opt,name=KID,proto3" json:"KID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Signature) Reset() { *m = Signature{} }
func (m *Signature) String() string { return proto.CompactTextString(m) }
func (*Signature) ProtoMessage() {}
func (*Signature) Descriptor() ([]byte, []int) {
return fileDescriptor_33c57e4bae7b9afd, []int{1}
}
func (m *Signature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Signature.Unmarshal(m, b)
}
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
}
func (m *Signature) XXX_Merge(src proto.Message) {
xxx_messageInfo_Signature.Merge(m, src)
}
func (m *Signature) XXX_Size() int {
return xxx_messageInfo_Signature.Size(m)
}
func (m *Signature) XXX_DiscardUnknown() {
xxx_messageInfo_Signature.DiscardUnknown(m)
}
var xxx_messageInfo_Signature proto.InternalMessageInfo
func (m *Signature) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *Signature) GetKID() string {
if m != nil {
return m.KID
}
return ""
}
func init() {
proto.RegisterType((*Message)(nil), "simpl.crypto.Message")
proto.RegisterType((*Signature)(nil), "simpl.crypto.Signature")
}
func init() { proto.RegisterFile("message.proto", fileDescriptor_33c57e4bae7b9afd) }
var fileDescriptor_33c57e4bae7b9afd = []byte{
// 179 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcd, 0x4d, 0x2d, 0x2e,
0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x29, 0xce, 0xcc, 0x2d, 0xc8,
0xd1, 0x4b, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0x57, 0x8a, 0xe4, 0x62, 0xf7, 0x85, 0x48, 0x0b, 0x09,
0x71, 0xb1, 0xb8, 0x24, 0x96, 0x24, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x04, 0x81, 0xd9, 0x42,
0x12, 0x5c, 0xec, 0xde, 0xa9, 0x95, 0x21, 0x95, 0x05, 0xa9, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c,
0x41, 0x30, 0xae, 0x90, 0x00, 0x17, 0xb3, 0xb7, 0xa7, 0x8b, 0x04, 0x33, 0x58, 0x14, 0xc4, 0x14,
0xe2, 0xe3, 0x62, 0xf2, 0x0c, 0x93, 0x60, 0x01, 0x0b, 0x30, 0x79, 0x86, 0x29, 0x59, 0x73, 0x71,
0x06, 0x67, 0xa6, 0xe7, 0x25, 0x96, 0x94, 0x16, 0xa5, 0x0a, 0xc9, 0x20, 0x71, 0xa0, 0x36, 0x20,
0xc9, 0x42, 0x0d, 0x63, 0x82, 0x1b, 0xe6, 0x24, 0x17, 0x25, 0x93, 0x9e, 0x59, 0x92, 0x51, 0x9a,
0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, 0x9c, 0x9f, 0x91, 0x59, 0xa1, 0x0f, 0x76, 0x38, 0xc4, 0xdd,
0x49, 0x6c, 0x60, 0xcf, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x30, 0x57, 0xfc, 0xdd,
0x00, 0x00, 0x00,
}