constants

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ChunkSizeHeader       = 4
	MaxChunkSize          = 1024 * 1024
	MaxCompressedSize     = MaxChunkSize + (MaxChunkSize / 10)
	MaxEncryptedSize      = MaxCompressedSize + TagSize + ChunkSizeHeader
	MaxEncryptedChunkSize = ((MaxEncryptedSize + (DataShards - 1)) / DataShards) * (DataShards + ParityShards)
)

Chunk and size-related constants

View Source
const (
	KeySize    = 64
	SaltSize   = 32
	NonceSize  = 12
	TagSize    = 16
	NonceSizeX = 24
)

Encryption-related constants

View Source
const (
	DataShards   = 4
	ParityShards = 10
)

Reed-Solomon shard configuration

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