Versions in this module Expand all Collapse all v1 v1.4.11 Mar 2, 2021 Changes in this version + const NonceSize + var ErrPubKeyMismatch = errors.New("public keys do not match") + func CertificatesWithSamePublicKey(der1, der2 []byte) error + func ExpiresAt(identityBytes []byte) time.Time + func GetRandomBytes(len int) ([]byte, error) + func GetRandomNonce() ([]byte, error) + func LogNonPubKeyMismatchErr(log func(template string, args ...interface{}), err error, ...) + func TrackExpiration(tls bool, serverCert []byte, clientCertChain [][]byte, sIDBytes []byte, ...) + type IdentitySerializer interface + Serialize func() ([]byte, error) + type LocalSigner interface + type MessageFunc func(format string, args ...interface{}) + type Scheduler func(d time.Duration, f func()) *time.Timer + type SignatureHeaderCreator struct + func NewSignatureHeaderCreator(ss SignerSupport) *SignatureHeaderCreator + func (bs *SignatureHeaderCreator) NewSignatureHeader() (*cb.SignatureHeader, error) + type SignatureHeaderMaker interface + NewSignatureHeader func() (*cb.SignatureHeader, error) + type Signer interface + Sign func(message []byte) ([]byte, error) + type SignerSupport interface