Documentation ¶
Rendered for darwin/amd64
Overview ¶
Package sw provides an ECDH implementation backed by an Apple Secure Enclave.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
func GenerateKey ¶
func GenerateKey(label string) (PrivateKey, error)
GenerateKey creates a key with the given label and tag. Returns public key raw data.
func Keys ¶
func Keys(hash []byte) ([]PrivateKey, error)
func PrivateKeyByLabel ¶
func PrivateKeyByLabel(label KeyLabel) (PrivateKey, error)
func (PrivateKey) Label ¶
func (k PrivateKey) Label() KeyLabel
func (PrivateKey) Public ¶
func (k PrivateKey) Public() dh.PublicKey
Click to show internal directories.
Click to hide internal directories.