decryptor

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 11 Imported by: 0

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) Decrypt

func (f *FileDecryptor) Decrypt(r io.Reader, w io.Writer, size int64) error

func (*FileDecryptor) SetNonce

func (f *FileDecryptor) SetNonce(serpentNonce, chacha20Nonce []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL