macos

package
v0.0.0-...-3e22ef2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPubKey

func FindPubKey(label, tag string, hash []byte) ([]byte, error)

FindPubKey returns the raw public key described by label and tag hash is the SHA1 of the key. Can be nil.

func GenKeyPair

func GenKeyPair(label, tag string, useBiometrics, accessibleWhenUnlockedOnly bool) ([]byte, error)

GenKeyPair creates a key with the given label and tag. useBiometrics and accessibleWhenUnlockedOnly are ignored, they are present for API compatibility. Returns public key raw data.

func RemoveKey

func RemoveKey(label, tag string, hash []byte) (bool, error)

RemoveKey tries to delete a key identified by label, tag and hash. hash is the SHA1 of the key. Can be nil If hash is nil then all the keys that match the label and tag specified will be deleted. Returns true if the key was found and deleted successfully

func SignWithKey

func SignWithKey(label, tag string, hash, digest []byte) ([]byte, error)

SignWithKey signs arbitrary data pointed to by data with the key described by label and tag. Returns the signed data. hash is the SHA1 of the key. Can be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL