Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxChunkSize = 1024 * 1024 MaxEncryptedChunkSize = ((MaxChunkSize + (MaxChunkSize / 10) + 16 + 4 + (4 - 1)) / 4) * (4 + 10) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkProcessor ¶
type ChunkProcessor struct {
// contains filtered or unexported fields
}
func NewChunkProcessor ¶
func NewChunkProcessor(key []byte) (*ChunkProcessor, error)
func (*ChunkProcessor) ProcessChunk ¶
func (cp *ChunkProcessor) ProcessChunk(chunk []byte) ([]byte, error)
type EncryptJob ¶
type EncryptJob struct {
// contains filtered or unexported fields
}
type EncryptResult ¶
type EncryptResult struct {
// contains filtered or unexported fields
}
type FileEncryptor ¶
type FileEncryptor struct {
// contains filtered or unexported fields
}
func NewFileEncryptor ¶
func NewFileEncryptor(key []byte) (*FileEncryptor, error)
func (*FileEncryptor) GetNonce ¶
func (f *FileEncryptor) GetNonce() ([]byte, []byte)
Click to show internal directories.
Click to hide internal directories.