Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrGenKeyPair = "sks: error while generating key pair with label %q and tag %q: %w" ErrSignWithKey = "sks: error while signing with key with label %q and tag %q: %w" ErrFindPubKey = "sks: error while trying to find key with label %q and tag %q: %w" ErrFindPubKeyNil = "sks: nil key returned for key with label %q and tag %q" ErrRemoveKey = "sks: error while trying to remove key with label %q and tag %q: %w" ErrLabelOrTagUnspecified = "sks: you must specify both a label and a tag" ErrAttributeLookup = "sks: error while looking up attributes for key with label %q and tag %q: %w" ErrUpdateKeyAttr = "sks: error updating attribute for key with label %q and tag %q" ErrGetSecureHardwareVendorData = "sks: error fetching Secure Hardware Vendor Data: %w" ErrNotImplemented = "sks: %q method not implemented" ErrAttestationFailure = "sks: error while trying to attest key with label %q and tag %q: %w" )
Define the error messages' patterns that are common across platforms
Variables ¶
This section is empty.
Functions ¶
func GetSecureHardwareVendorData ¶
func GetSecureHardwareVendorData() (*attest.SecureHardwareVendorData, error)
GetSecureHardwareVendorData gets vendor specific information from the secure hardware implementation available for a given device
Types ¶
type Key ¶
type Key interface { crypto.Signer // Remove removes that key from SKS Remove() error // Hash returns the SHA1 hash of the public portion of the key Hash() []byte // Label returns the label of the key Label() string // Tag returns the tag of the key Tag() string }
Key is an interface that implements the crypto.Signer interface along with extra functions specific to SKS
func FromLabelTag ¶
FromLabelTag constructs a Key identified by label and tag without looking up the key in SKS so the public key of the structure is not populated.
Click to show internal directories.
Click to hide internal directories.