Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrExists happens when a Key already exists in a database ErrExists = errors.New("rufus: key already in db") // ErrInvalidKeyID error happens when a key isn't found ErrInvalidKeyID = errors.New("rufus: invalid key id") // ErrFailedKeyGeneration happens when there is a failure in generating a key ErrFailedKeyGeneration = errors.New("rufus: failed to generate new key") )
Functions ¶
This section is empty.
Types ¶
type HSMRSAKey ¶
type HSMRSAKey struct { ID string Type string Public []byte Private pkcs11.ObjectHandle }
HSMRSAKey represents the information for an HSMRSAKey with ObjectHandle for private portion
type HexBytes ¶
type HexBytes []byte
HexBytes represents hexadecimal bytes
func (HexBytes) MarshalJSON ¶
MarshalJSON allows the representation in JSON of hexbytes
func (*HexBytes) UnmarshalJSON ¶
UnmarshalJSON allows the representation in JSON of hexbytes
type JSONKey ¶
type JSONKey struct { ID string `json:"id"` Type string `json:"type"` Public HexBytes `json:"public"` }
JSONKey maps a key's public key bits to a json representation
type Key ¶
type Key struct { ID string Type string Public [ed25519.PublicKeySize]byte Private *[ed25519.PrivateKeySize]byte }
Key represents all the information of a key, including the private and public bits
type KeyDB ¶
type KeyDB struct {
// contains filtered or unexported fields
}
KeyDB represents an in-memory key keystore
type SigningRequest ¶
type SigningRequest struct {
Blob HexBytes `json:"blob"`
}
SigningRequest represents the json that comes when a signing request is made
Click to show internal directories.
Click to hide internal directories.