Documentation
¶
Index ¶
- Variables
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetChunkSize() uint32
- func (x *Header) GetKeys() []*WrappedKey
- func (x *Header) GetPk() []byte
- func (x *Header) GetSalt() []byte
- func (x *Header) GetSender() []byte
- func (m *Header) MarshalTo(buf []byte) (int, error)
- func (m *Header) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Header) MarshalToVT(dAtA []byte) (int, error)
- func (m *Header) MarshalVT() (dAtA []byte, err error)
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (m *Header) Size() int
- func (m *Header) SizeVT() (n int)
- func (x *Header) String() string
- func (m *Header) Unmarshal(buf []byte) error
- func (m *Header) UnmarshalVT(dAtA []byte) error
- type WrappedKey
- func (*WrappedKey) Descriptor() ([]byte, []int)deprecated
- func (x *WrappedKey) GetDKey() []byte
- func (x *WrappedKey) GetNonce() []byte
- func (m *WrappedKey) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WrappedKey) MarshalToVT(dAtA []byte) (int, error)
- func (m *WrappedKey) MarshalVT() (dAtA []byte, err error)
- func (*WrappedKey) ProtoMessage()
- func (x *WrappedKey) ProtoReflect() protoreflect.Message
- func (x *WrappedKey) Reset()
- func (m *WrappedKey) SizeVT() (n int)
- func (x *WrappedKey) String() string
- func (m *WrappedKey) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_internal_pb_hdr_proto protoreflect.FileDescriptor
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"` // encryption block size Salt []byte `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"` // master salt (nonces are derived from this) Pk []byte `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"` // ephemeral curve PK Sender []byte `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` // sender signed artifacts Keys []*WrappedKey `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"` // list of wrapped receiver blocks // contains filtered or unexported fields }
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
deprecated
func (*Header) GetChunkSize ¶
func (*Header) GetKeys ¶
func (x *Header) GetKeys() []*WrappedKey
func (*Header) MarshalToSizedBufferVT ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
func (*Header) UnmarshalVT ¶
type WrappedKey ¶
type WrappedKey struct { DKey []byte `protobuf:"bytes,1,opt,name=d_key,json=dKey,proto3" json:"d_key,omitempty"` // encrypted data key Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // nonce used for encryption // contains filtered or unexported fields }
A file encryption key is wrapped by a recipient specific public key. WrappedKey describes such a wrapped key.
func (*WrappedKey) Descriptor
deprecated
func (*WrappedKey) Descriptor() ([]byte, []int)
Deprecated: Use WrappedKey.ProtoReflect.Descriptor instead.
func (*WrappedKey) GetDKey ¶
func (x *WrappedKey) GetDKey() []byte
func (*WrappedKey) GetNonce ¶
func (x *WrappedKey) GetNonce() []byte
func (*WrappedKey) MarshalToSizedBufferVT ¶
func (m *WrappedKey) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*WrappedKey) MarshalToVT ¶
func (m *WrappedKey) MarshalToVT(dAtA []byte) (int, error)
func (*WrappedKey) MarshalVT ¶
func (m *WrappedKey) MarshalVT() (dAtA []byte, err error)
func (*WrappedKey) ProtoMessage ¶
func (*WrappedKey) ProtoMessage()
func (*WrappedKey) ProtoReflect ¶
func (x *WrappedKey) ProtoReflect() protoreflect.Message
func (*WrappedKey) Reset ¶
func (x *WrappedKey) Reset()
func (*WrappedKey) SizeVT ¶
func (m *WrappedKey) SizeVT() (n int)
func (*WrappedKey) String ¶
func (x *WrappedKey) String() string
func (*WrappedKey) UnmarshalVT ¶
func (m *WrappedKey) UnmarshalVT(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.