Documentation ¶
Index ¶
- type Config
- type HSM
- func (h *HSM) GetPublicKey(ctx context.Context, keyID string) (vault.StoredKey, error)
- func (h *HSM) Import(ctx context.Context, pk cryptoutils.PrivateKey, opt utils.Options) (vault.StoredKey, error)
- func (h *HSM) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
- func (h *HSM) Name() string
- func (h *HSM) Ready(ctx context.Context) (bool, error)
- func (h *HSM) Sign(ctx context.Context, digest []byte, k vault.StoredKey) (sig cryptoutils.Signature, err error)
- func (h *HSM) VaultName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `yaml:"address" validate:"omitempty,hostport"` Password string `yaml:"password"` AuthKeyID uint16 `yaml:"auth_key_id"` KeyImportDomains uint16 `yaml:"key_import_domains"` }
Config contains YubiHSM backend configuration
type HSM ¶
type HSM struct {
// contains filtered or unexported fields
}
HSM struct containing information required to interrogate a YubiHSM
func (*HSM) GetPublicKey ¶
GetPublicKey returns a public key by given ID
func (*HSM) Import ¶
func (h *HSM) Import(ctx context.Context, pk cryptoutils.PrivateKey, opt utils.Options) (vault.StoredKey, error)
Import imports a private key
func (*HSM) ListPublicKeys ¶
func (h *HSM) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
ListPublicKeys list all public key from connected Yubi HSM
Click to show internal directories.
Click to hide internal directories.