Documentation
¶
Overview ¶
Package crypto_pb is a generated protocol buffer package.
It is generated from these files:
crypto.proto
It has these top-level messages:
PublicKey PrivateKey
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyType_name = map[int32]string{
0: "RSA",
}
View Source
var KeyType_value = map[string]int32{
"RSA": 0,
}
Functions ¶
This section is empty.
Types ¶
type KeyType ¶
type KeyType int32
const (
KeyType_RSA KeyType = 0
)
func (*KeyType) UnmarshalJSON ¶
func (x *KeyType) UnmarshalJSON(data []byte) error
type PrivateKey ¶
type PrivateKey struct {
Type *KeyType `protobuf:"varint,1,req,enum=crypto.pb.KeyType" json:"Type,omitempty"`
Data []byte `protobuf:"bytes,2,req" json:"Data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
type PublicKey ¶
type PublicKey struct {
Type *KeyType `protobuf:"varint,1,req,enum=crypto.pb.KeyType" json:"Type,omitempty"`
Data []byte `protobuf:"bytes,2,req" json:"Data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.