Versions in this module Expand all Collapse all v1 v1.0.0 Aug 18, 2025 Changes in this version + const AlgorithmECDSAP256SHA256 + const AlgorithmECDSAP384SHA384 + const AlgorithmEd25519 + const AlgorithmHMACSHA256 + const AlgorithmRSAPSSSHA512 + const AlgorithmRSAV15SHA256 + const SignatureHeader + const SignatureInputHeader + func SignRequest(ctx context.Context, headers http.Header, inputValue *input.Value, key any) error + func SignResponse(ctx context.Context, headers http.Header, inputValue *input.Value, key any) error + func VerifyRequest(ctx context.Context, headers http.Header, keyOrResolver any, ...) error + func VerifyResponse(ctx context.Context, headers http.Header, keyOrResolver any, ...) error + type Clock interface + Now func() time.Time + type KeyResolver interface + ResolveKey func(keyID string) (any, error) + type Option = option.Interface + type SystemClock struct + func (SystemClock) Now() time.Time + type VerifyOption interface + func WithClock(clock Clock) VerifyOption + func WithValidateExpires(validate bool) VerifyOption