Documentation ¶
Index ¶
- Variables
- type Key
- func (*Key) Descriptor() ([]byte, []int)
- func (m *Key) GetData() []byte
- func (m *Key) GetType() KeyType
- func (m *Key) Marshal() (dAtA []byte, err error)
- func (m *Key) MarshalTo(dAtA []byte) (int, error)
- func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Key) ProtoMessage()
- func (m *Key) Reset()
- func (m *Key) Size() (n int)
- func (m *Key) String() string
- func (m *Key) Unmarshal(dAtA []byte) error
- func (m *Key) XXX_DiscardUnknown()
- func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Key) XXX_Merge(src proto.Message)
- func (m *Key) XXX_Size() int
- func (m *Key) XXX_Unmarshal(b []byte) error
- type KeyType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCrypto = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCrypto = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCrypto = fmt.Errorf("proto: unexpected end of group") )
View Source
var KeyType_name = map[int32]string{
0: "Ed25519Public",
1: "Ed25519Private",
2: "AES",
}
View Source
var KeyType_value = map[string]int32{
"Ed25519Public": 0,
"Ed25519Private": 1,
"AES": 2,
}
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { Type KeyType `protobuf:"varint,1,opt,name=Type,proto3,enum=crypto.KeyType" json:"Type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` }
func (*Key) Descriptor ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) XXX_DiscardUnknown ¶
func (m *Key) XXX_DiscardUnknown()
func (*Key) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.