Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrExists happens when a Key already exists in a database ErrExists = errors.New("notary-signer: key already in db") // ErrInvalidKeyID error happens when a key isn't found ErrInvalidKeyID = errors.New("notary-signer: invalid key id") // ErrFailedKeyGeneration happens when there is a failure in generating a key ErrFailedKeyGeneration = errors.New("notary-signer: failed to generate new key") )
Functions ¶
This section is empty.
Types ¶
type HSMRSAKey ¶
type HSMRSAKey struct {
// contains filtered or unexported fields
}
HSMRSAKey represents the information for an HSMRSAKey with ObjectHandle for private portion
func NewHSMRSAKey ¶
func NewHSMRSAKey(public []byte, private pkcs11.ObjectHandle) *HSMRSAKey
NewHSMRSAKey returns a HSMRSAKey
func (*HSMRSAKey) Algorithm ¶
func (rsa *HSMRSAKey) Algorithm() data.KeyAlgorithm
Algorithm implements a method of the data.Key interface
func (*HSMRSAKey) PKCS11ObjectHandle ¶
func (rsa *HSMRSAKey) PKCS11ObjectHandle() pkcs11.ObjectHandle
PKCS11ObjectHandle returns the PKCS11 object handle stored in the HSMRSAKey structure
Click to show internal directories.
Click to hide internal directories.