Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingAlgorithm = errors.New("missing algorithm") ErrUnsupportedAlgorithm = errors.New("unsupported algorithm") ErrMalformedPin = errors.New("malformed pin") )
View Source
var ( ErrNoPins = errors.New("no pins provided") ErrCertValidationFailed = errors.New("peer certificate validation failed") )
Functions ¶
Types ¶
type PublicKeyPin ¶
func DecodePin ¶
func DecodePin(pin string) (*PublicKeyPin, error)
func New ¶
func New(cert *x509.Certificate, alg Alg) (*PublicKeyPin, error)
func NewBlake2b256 ¶
func NewBlake2b256(cert *x509.Certificate) *PublicKeyPin
func NewSha256 ¶
func NewSha256(cert *x509.Certificate) *PublicKeyPin
func (*PublicKeyPin) DeepCopy ¶
func (p *PublicKeyPin) DeepCopy() *PublicKeyPin
func (*PublicKeyPin) Encode ¶
func (p *PublicKeyPin) Encode() string
func (*PublicKeyPin) Equal ¶
func (p *PublicKeyPin) Equal(other *PublicKeyPin) bool
func (*PublicKeyPin) Validate ¶
func (p *PublicKeyPin) Validate() error
Click to show internal directories.
Click to hide internal directories.