Versions in this module Expand all Collapse all v0 v0.0.1 Mar 4, 2024 v0.0.0 Dec 18, 2023 Changes in this version + func Decrypt(content []byte, opts ...Option) ([]byte, error) + func Encrypt(plaintext []byte, opts ...Option) ([]byte, error) + type ContentEncoding int + const AES128GCM + const AESGCM + func (i ContentEncoding) Padding() int + func (i ContentEncoding) String() string + type Option func(*options) + func WithAuthSecret(v []byte) Option + func WithDh(v []byte) Option + func WithEncoding(v ContentEncoding) Option + func WithKeyLabel(v []byte) Option + func WithKeyMap(v func([]byte) []byte) Option + func WithPrivate(v []byte) Option + func WithRecordSize(v uint32) Option + func WithSalt(v []byte) Option