Documentation
¶
Overview ¶
Package senderobject seals and authenticates the suite-0x02 bootstrap descriptor.
Index ¶
Constants ¶
View Source
const (
NonceBytes = 12
)
Variables ¶
View Source
var ( ErrBinding = errors.New("senderobject: invalid descriptor route binding") ErrKey = errors.New("senderobject: invalid key material") ErrMalformed = errors.New("senderobject: malformed descriptor object") ErrTooLarge = errors.New("senderobject: descriptor object exceeds its byte limit") ErrSignature = errors.New("senderobject: sender signature is invalid") ErrAuth = errors.New("senderobject: ciphertext authentication failed") )
Functions ¶
func OpenDescriptorBootstrap ¶
func OpenDescriptorBootstrap(pkHash, shareIDRaw, key, object []byte, senderIdentity func([]byte) (*senderauth.Verifier, error)) ([]byte, error)
OpenDescriptorBootstrap decrypts only to discover the sender key, then checks pkHash and the outer signature before releasing plaintext to the caller.
func SealDescriptor ¶ added in v0.1.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.