Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
internal/pb/hdr.proto
It has these top-level messages:
Header WrappedKey
Index ¶
- Variables
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (this *Header) Equal(that interface{}) bool
- func (m *Header) GetChunkSize() uint32
- func (m *Header) GetKeys() []*WrappedKey
- func (m *Header) GetPk() []byte
- func (m *Header) GetSalt() []byte
- func (m *Header) GetSenderSign() []byte
- func (this *Header) GoString() string
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (this *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- type WrappedKey
- func (*WrappedKey) Descriptor() ([]byte, []int)
- func (this *WrappedKey) Equal(that interface{}) bool
- func (m *WrappedKey) GetDKey() []byte
- func (this *WrappedKey) GoString() string
- func (m *WrappedKey) Marshal() (dAtA []byte, err error)
- func (m *WrappedKey) MarshalTo(dAtA []byte) (int, error)
- func (*WrappedKey) ProtoMessage()
- func (m *WrappedKey) Reset()
- func (m *WrappedKey) Size() (n int)
- func (this *WrappedKey) String() string
- func (m *WrappedKey) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthHdr = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHdr = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { ChunkSize uint32 `protobuf:"varint,1,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"` Salt []byte `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"` Pk []byte `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"` SenderSign []byte `protobuf:"bytes,4,opt,name=sender_sign,json=senderSign,proto3" json:"sender_sign,omitempty"` Keys []*WrappedKey `protobuf:"bytes,5,rep,name=keys" json:"keys,omitempty"` }
Every encrypted file starts with a header describing the Block Size, Salt, Recipient keys etc. Header represents a decoded version of this information. It is encoded in protobuf format before writing to disk.
func (*Header) Descriptor ¶
func (*Header) GetChunkSize ¶
func (*Header) GetKeys ¶
func (m *Header) GetKeys() []*WrappedKey
func (*Header) GetSenderSign ¶ added in v1.1.0
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type WrappedKey ¶
type WrappedKey struct {
DKey []byte `protobuf:"bytes,1,opt,name=d_key,json=dKey,proto3" json:"d_key,omitempty"`
}
A file encryption key is wrapped by a recipient specific public key. WrappedKey describes such a wrapped key.
func (*WrappedKey) Descriptor ¶
func (*WrappedKey) Descriptor() ([]byte, []int)
func (*WrappedKey) Equal ¶
func (this *WrappedKey) Equal(that interface{}) bool
func (*WrappedKey) GetDKey ¶ added in v1.1.0
func (m *WrappedKey) GetDKey() []byte
func (*WrappedKey) GoString ¶
func (this *WrappedKey) GoString() string
func (*WrappedKey) Marshal ¶
func (m *WrappedKey) Marshal() (dAtA []byte, err error)
func (*WrappedKey) ProtoMessage ¶
func (*WrappedKey) ProtoMessage()
func (*WrappedKey) Reset ¶
func (m *WrappedKey) Reset()
func (*WrappedKey) Size ¶
func (m *WrappedKey) Size() (n int)
func (*WrappedKey) String ¶
func (this *WrappedKey) String() string
func (*WrappedKey) Unmarshal ¶
func (m *WrappedKey) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.