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) DecompressData ¶
func (cp *ChunkProcessor) DecompressData(data []byte) ([]byte, error)
func (*ChunkProcessor) ProcessChunk ¶
func (cp *ChunkProcessor) ProcessChunk(chunk []byte) ([]byte, error)
type ChunkResult ¶
type ChunkResult struct {
// contains filtered or unexported fields
}
type DecryptJob ¶
type DecryptJob struct {
// contains filtered or unexported fields
}
type FileDecryptor ¶
type FileDecryptor struct {
// contains filtered or unexported fields
}
func NewFileDecryptor ¶
func NewFileDecryptor(key []byte) (*FileDecryptor, error)
func (*FileDecryptor) SetNonce ¶
func (f *FileDecryptor) SetNonce(serpentNonce, chacha20Nonce []byte) error
Click to show internal directories.
Click to hide internal directories.