pivkey

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key added in v1.0.0

type Key struct{}

func GetKey

func GetKey() (*Key, error)

func GetKeyWithSlot added in v1.0.0

func GetKeyWithSlot(slot string) (*Key, error)

func (*Key) Attest added in v1.0.0

func (k *Key) Attest() (*x509.Certificate, error)

func (*Key) Authenticate added in v1.0.0

func (k *Key) Authenticate(pin string)

func (*Key) Certificate added in v1.0.0

func (k *Key) Certificate() (*x509.Certificate, error)

func (*Key) Close added in v1.0.0

func (k *Key) Close()

func (*Key) GenerateKey added in v1.0.0

func (k *Key) GenerateKey(mgmtKey [24]byte, slot *empty, opts *empty) (*empty, error)

func (*Key) GetAttestationCertificate added in v1.0.0

func (k *Key) GetAttestationCertificate() (*x509.Certificate, error)

func (*Key) Reset added in v1.0.0

func (k *Key) Reset() error

func (*Key) SetManagementKey added in v1.0.0

func (k *Key) SetManagementKey(old, new [24]byte) error

func (*Key) SetPIN added in v1.0.0

func (k *Key) SetPIN(old, new string) error

func (*Key) SetPUK added in v1.0.0

func (k *Key) SetPUK(old, new string) error

func (*Key) SetSlot added in v1.0.0

func (k *Key) SetSlot(slot string)

func (*Key) SignerVerifier added in v1.0.0

func (k *Key) SignerVerifier() (signature.SignerVerifier, error)

func (*Key) Unblock added in v1.0.0

func (k *Key) Unblock(puk, newPIN string) error

func (*Key) Verifier added in v1.0.0

func (k *Key) Verifier() (signature.Verifier, error)

Jump to

Keyboard shortcuts

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