sss

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendParts

func AppendParts(ps []Part, block, blocks int, prefix string, truncate bool) error

func CloseAllFilesForWrite

func CloseAllFilesForWrite()

func Combine

func Combine(parts []Part) ([]byte, error)

func CombinePartFiles

func CombinePartFiles(in []string, out string, truncate, verbose bool) error

func OpenFileForWrite

func OpenFileForWrite(path string, truncate bool) (*os.File, error)

func SplitIntoFiles

func SplitIntoFiles(in string, parts, threshold uint8, prefix string, truncate, verbose bool) error

Types

type Part

type Part struct {
	Payload   string    `json:"payload"`
	Block     int       `json:"block"`
	Blocks    int       `json:"blocks"`
	Part      int       `json:"part"`
	Parts     uint8     `json:"parts"`
	Threshold uint8     `json:"threshold"`
	Digest    string    `json:"digest"`
	Timestamp time.Time `json:"timestamp"`
	// contains filtered or unexported fields
}

func CombineKeyFiles

func CombineKeyFiles(args []string) (parts []Part, err error)

func Split

func Split(secret []byte, parts, threshold uint8) ([]Part, error)

Jump to

Keyboard shortcuts

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