Versions in this module Expand all Collapse all v0 v0.9.0-rc8 May 5, 2026 v0.8.1 Apr 24, 2026 Changes in this version + var ErrKeyNotFound = errors.New("enclave: key not found in keychain") + var ErrNotSupported = errors.New("enclave: Secure Enclave not supported on this platform") + var ErrSIPDisabled = errors.New("enclave: System Integrity Protection (SIP) is disabled") + func CheckSIP() error + func Decrypt(tag string, ciphertext []byte) ([]byte, error) + func DeleteKey(tag string) error + func Encrypt(recipientPubKey, plaintext []byte) ([]byte, error) + type Key interface + Decrypt func(ciphertext []byte) ([]byte, error) + Delete func() error + ECDH func(peerPubKeyBytes []byte) ([]byte, error) + Persistent func() bool + PublicKeyBytes func() []byte + Sign func(digest []byte) ([]byte, error) + Tag func() string + func LoadKey(tag string) (Key, error) + func NewKey(tag string) (Key, error)