yubiks

package
v0.0.0-...-48ac3e8 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

If you got this error:

user@devpc:~/git/go-keystores$ go build ./...
go build github.com/go-piv/piv-go/piv:
# pkg-config --cflags  -- libpcsclite
Package libpcsclite was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcsclite.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpcsclite' found
pkg-config: exit status 1

Then install libpcsclite-dev

sudo apt install libpcsclite-dev

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YkKeyPair

type YkKeyPair struct {
	// contains filtered or unexported fields
}

func (YkKeyPair) Algorithm

func (kp YkKeyPair) Algorithm() keystores.KeyAlgorithm

func (YkKeyPair) Attestation

func (kp YkKeyPair) Attestation(nonce []byte) (att keystores.Attestation, err error)

func (YkKeyPair) Decrypt

func (kp YkKeyPair) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error)

func (YkKeyPair) Destroy

func (kp YkKeyPair) Destroy() error

func (YkKeyPair) ECDH

func (kp YkKeyPair) ECDH(remote *ecdsa.PublicKey) ([]byte, error)

func (YkKeyPair) ExportPrivate

func (kp YkKeyPair) ExportPrivate() (privKey crypto.PrivateKey, err error)

func (YkKeyPair) Id

func (kp YkKeyPair) Id() keystores.KeyPairId

func (YkKeyPair) KeyStore

func (kp YkKeyPair) KeyStore() keystores.KeyStore

func (YkKeyPair) KeyUsage

func (kp YkKeyPair) KeyUsage() map[keystores.KeyUsage]bool

func (YkKeyPair) Label

func (kp YkKeyPair) Label() string

func (YkKeyPair) Public

func (kp YkKeyPair) Public() crypto.PublicKey

func (YkKeyPair) SetLabel

func (kp YkKeyPair) SetLabel(label string) error

func (YkKeyPair) Sign

func (kp YkKeyPair) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)

func (YkKeyPair) Verify

func (kp YkKeyPair) Verify(signature []byte, digest []byte, opts crypto.SignerOpts) (err error)

type YkKeyStore

type YkKeyStore struct {
	// contains filtered or unexported fields
}

func (*YkKeyStore) Close

func (ks *YkKeyStore) Close() error

func (*YkKeyStore) CreateKeyPair

func (ks *YkKeyStore) CreateKeyPair(opts keystores.GenKeyPairOpts) (keystores.KeyPair, error)

func (*YkKeyStore) Id

func (ks *YkKeyStore) Id() string

func (*YkKeyStore) ImportKeyPair

func (ks *YkKeyStore) ImportKeyPair(privKey crypto.PrivateKey, opts keystores.GenKeyPairOpts) (kp keystores.KeyPair, err error)

func (*YkKeyStore) IsOpen

func (ks *YkKeyStore) IsOpen() bool

func (*YkKeyStore) KeyPairById

func (ks *YkKeyStore) KeyPairById(id keystores.KeyPairId) keystores.KeyPair

func (*YkKeyStore) KeyPairs

func (ks *YkKeyStore) KeyPairs(reload bool) (keyPairs map[keystores.KeyPairId]keystores.KeyPair, errs error)

func (*YkKeyStore) Name

func (ks *YkKeyStore) Name() string

func (*YkKeyStore) Open

func (ks *YkKeyStore) Open() error

func (*YkKeyStore) Reload

func (ks *YkKeyStore) Reload() error

func (*YkKeyStore) SupportedPrivateKeyAlgorithms

func (ks *YkKeyStore) SupportedPrivateKeyAlgorithms() []keystores.KeyAlgorithm

type YkProvider

type YkProvider struct {
}

func NewYkProvider

func NewYkProvider() *YkProvider

func (*YkProvider) Close

func (p *YkProvider) Close() error

func (*YkProvider) FindKeyStore

func (p *YkProvider) FindKeyStore(ykSerial string) (*YkKeyStore, error)

func (*YkProvider) IsOpen

func (p *YkProvider) IsOpen() bool

func (*YkProvider) KeyStores

func (p *YkProvider) KeyStores() ([]keystores.KeyStore, error)

func (*YkProvider) Open

func (p *YkProvider) Open() error

Jump to

Keyboard shortcuts

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