Documentation ¶
Overview ¶
Package fingerprint defines types to define a certificate fingerprint for certgraph
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fingerprint ¶
Fingerprint sha256 of certificate bytes
func FromB64Hash ¶
func FromB64Hash(hash string) Fingerprint
FromB64Hash returns a Fingerprint from a base64 encoded hash string
func FromHashBytes ¶
func FromHashBytes(data []byte) Fingerprint
FromHashBytes returns a Fingerprint generated by the first len(Fingerprint) bytes
func FromHexHash ¶
func FromHexHash(hash string) Fingerprint
FromHexHash returns a Fingerprint from a hex encoded hash string
func FromRawCertBytes ¶
func FromRawCertBytes(data []byte) Fingerprint
FromRawCertBytes returns a Fingerprint generated by the provided bytes
func (*Fingerprint) B64Encode ¶
func (fp *Fingerprint) B64Encode() string
B64Encode returns the b64 string of a Fingerprint
func (*Fingerprint) HexString ¶
func (fp *Fingerprint) HexString() string
HexString print Fingerprint as uppercase hex
Click to show internal directories.
Click to hide internal directories.