Versions in this module Expand all Collapse all v0 v0.2.1 Nov 12, 2024 v0.2.0 Oct 4, 2024 Changes in this version + const HMAC_SHA256 + func NewMultiHMACKeyDirectory(keys map[string]HMAC) verifier.KeyDirectory + func NewSingleHMACKeyDirectory(hmac *HMAC) verifier.KeyDirectory + type HMAC struct + Attrs any + Key []byte + func NewHMAC(key []byte) *HMAC + func NewHMACWithAttributes(key []byte, attrs any) *HMAC + func (h *HMAC) Attributes() any + func (h *HMAC) ContentDigest() contentdigest.Digester + func (h *HMAC) Sign(ctx context.Context, base string) ([]byte, error) + func (h *HMAC) Type() string + func (h *HMAC) Verify(ctx context.Context, base string, sig []byte) error