Versions in this module Expand all Collapse all v1 v1.0.5 Aug 22, 2026 v1.0.4 Aug 22, 2026 Changes in this version + const AEADOverheadBytes + const EnvelopeVersion + const MaximumPlaintextChunkBytes + var ErrAuthentication = errors.New("secure body authentication failed") + var ErrInvalid = errors.New("secure body envelope invalid") + var ErrKeyUnavailable = errors.New("secure body key unavailable") + var ErrPayloadLimit = errors.New("secure body payload limit exceeded") + var ErrVersion = errors.New("secure body envelope version unsupported") + type Envelope struct + Ciphertext string + KeyID string + Nonce string + Version int + type KeyRing struct + ActiveKeyID string + Keys map[string][]byte + Random io.Reader + func (ring KeyRing) Decrypt(scope Scope, envelope Envelope) ([]byte, error) + func (ring KeyRing) Encrypt(scope Scope, plaintext []byte) (Envelope, error) + type Scope struct + AccountID string + RecordID string + RecordType string