Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSignature = errors.New("invalid signature") ErrorUnsupportedSignatureVersion = errors.New("unsupported signature version") )
Functions ¶
This section is empty.
Types ¶
type RSASigner ¶
type RSASigner rsa.PrivateKey
type Signature ¶
type Signature []byte
func ParseSignature ¶
func (Signature) Equal ¶
Equal compares two signatures. Signatures are equal if they have the same version, body and timestamps differ by no more than precision.
func (Signature) IssuedAt ¶
IssuedAt checks if the signature was issued at the specified time. The signature is considered to be issued at the specified time if the difference between the signature time and the target time is less than the leeway. The signature with zero time is always considered to be issued at the specified time.
Click to show internal directories.
Click to hide internal directories.