Versions in this module Expand all Collapse all v0 v0.4.17 Apr 17, 2022 v0.4.16 Apr 14, 2022 Changes in this version + const DefaultKeyLabel + const DefaultRecordSize + const KeySize + const NonceSize + const TagSize + var ErrInvalidDH = fmt.Errorf("dh sequence is invalid") + var ErrInvalidKeySize = fmt.Errorf("invalid static key length") + var ErrInvalidPadding = fmt.Errorf("invalid padding") + var ErrInvalidSaltSize = fmt.Errorf("invaild salt size") + var ErrTruncated = fmt.Errorf("content truncated") + func WithAuthSecret(authSecret []byte) engineOption + func WithKeyLabel(keyLabel string) engineOption + type Engine struct + func (e *Engine) Decrypt(content, target []byte, params operationalParams) ([]byte, error) + func (e *Engine) Encrypt(content, target []byte, params operationalParams) ([]byte, error) + type KeyLookupFunc func(keyID []byte) *ecdsa.PrivateKey + func SingleKey(key *ecdsa.PrivateKey) KeyLookupFunc + type Version string + const AES128GCM + const AESGCM + const AESGCM128 + func (v Version) String() string