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 ¶
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 (*Protector) ShutdownChannel ¶
func (p *Protector) ShutdownChannel() chan struct{}
Click to show internal directories.
Click to hide internal directories.