Documentation ¶
Index ¶
- type YkKeyPair
- func (kp YkKeyPair) Algorithm() keystores.KeyAlgorithm
- func (kp YkKeyPair) Attestation(nonce []byte) (att keystores.Attestation, err error)
- func (kp YkKeyPair) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error)
- func (kp YkKeyPair) Destroy() error
- func (kp YkKeyPair) ECDH(remote *ecdsa.PublicKey) ([]byte, error)
- func (kp YkKeyPair) ExportPrivate() (privKey crypto.PrivateKey, err error)
- func (kp YkKeyPair) Id() keystores.KeyPairId
- func (kp YkKeyPair) KeyStore() keystores.KeyStore
- func (kp YkKeyPair) KeyUsage() map[keystores.KeyUsage]bool
- func (kp YkKeyPair) Label() string
- func (kp YkKeyPair) Public() crypto.PublicKey
- func (kp YkKeyPair) SetLabel(label string) error
- func (kp YkKeyPair) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)
- func (kp YkKeyPair) Verify(signature []byte, digest []byte, opts crypto.SignerOpts) (err error)
- type YkKeyStore
- func (ks *YkKeyStore) Close() error
- func (ks *YkKeyStore) CreateKeyPair(opts keystores.GenKeyPairOpts) (keystores.KeyPair, error)
- func (ks *YkKeyStore) Id() string
- func (ks *YkKeyStore) ImportKeyPair(privKey crypto.PrivateKey, opts keystores.GenKeyPairOpts) (kp keystores.KeyPair, err error)
- func (ks *YkKeyStore) IsOpen() bool
- func (ks *YkKeyStore) KeyPairById(id keystores.KeyPairId) keystores.KeyPair
- func (ks *YkKeyStore) KeyPairs(reload bool) (keyPairs map[keystores.KeyPairId]keystores.KeyPair, errs error)
- func (ks *YkKeyStore) Name() string
- func (ks *YkKeyStore) Open() error
- func (ks *YkKeyStore) Reload() error
- func (ks *YkKeyStore) SupportedPrivateKeyAlgorithms() []keystores.KeyAlgorithm
- type YkProvider
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) Attestation ¶
func (YkKeyPair) ExportPrivate ¶
func (kp YkKeyPair) ExportPrivate() (privKey crypto.PrivateKey, 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
Click to show internal directories.
Click to hide internal directories.