Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HashNotAvailable = errors.New("Package implementing hash is not imported")
)
Functions ¶
This section is empty.
Types ¶
type KeyId ¶
type KeyId []byte
A calculated hash. The custom type is mostly for the custom Stringer function, which returns an hex encoded string similar to other hash tools.
func CertKeyId ¶
Calculate the keyid from the public key stored in the certificate.
This is not necessarily the same as the subjectKeyId stored in the certificate, which could have been generated using any method.
func (KeyId) ColonString ¶
Returns a hex encoded string of the keyid, with colons inserted between each byte.
Click to show internal directories.
Click to hide internal directories.