privacy

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: BSD-2-Clause Imports: 33 Imported by: 0

Documentation

Overview

Package privacy implements the internal function library for the privacy protector daemon.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidBlockSize indicates hash blocksize <= 0
	ErrInvalidBlockSize = errors.New("invalid blocksize")

	// ErrInvalidPubKeyFormat indicates an error processing what is
	// supposed to be a hex encoded Ed25519 public key
	ErrInvalidPubKeyFormat = errors.New("Invalid PublicKey length/format")

	// ErrInvalidPKCS7Data indicates bad input to PKCS7 pad or unpad
	ErrInvalidPKCS7Data = errors.New("invalid PKCS7 data (empty or not padded)")

	// ErrInvalidPKCS7Padding indicates PKCS7 unpad fails to bad input.
	ErrInvalidPKCS7Padding = errors.New("invalid padding on input")
)
View Source
var Handlers map[int]erebos.Handler

Handlers must be set before Protector.Start is called for the first time

Functions

func Dispatch

func Dispatch(msg erebos.Transport) error

Dispatch implements erebos.Dispatcher

Types

type Protector

type Protector struct {
	Num      int
	Input    chan *erebos.Transport
	Shutdown chan struct{}
	Death    chan error
	// contains filtered or unexported fields
}

func (*Protector) InitCrypto

func (p *Protector) InitCrypto()

func (*Protector) InputChannel

func (p *Protector) InputChannel() chan *erebos.Transport

func (*Protector) ShutdownChannel

func (p *Protector) ShutdownChannel() chan struct{}

func (*Protector) Start

func (p *Protector) Start()

Jump to

Keyboard shortcuts

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