config

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KdfTimeCost                    = 4          // Iterations
	KdfMemoryCost                  = 128 * 1024 // Memory (128 MB)
	KdfParallelism                 = 4          // Threads
	KdfKeyLength                   = 32         // Key size in bytes
	KdfSaltLength                  = 16         // Salt size in bytes
	FileSignature           string = "CHAPOLYX"
	FileSignatureLength            = len(FileSignature)
	ChunkSize                      = 4096
	NonceSize                      = chacha20poly1305.NonceSize
	SaltSize                int64  = 16
	EncryptedDataEncKeySize int64  = 32
	AuthTagSize             int64  = 16
	MinFileSize             int64  = NonceSize + SaltSize + EncryptedDataEncKeySize + AuthTagSize + AuthTagSize
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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