Documentation
¶
Overview ¶
Package hmac implements CEL extension functions for Hash-based Message Authentication Code (HMAC) verification and computation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*hmacLib) *hmacLib
Option declares a functional operator for configuring HMAC extension library behavior.
func Algorithm ¶
Algorithm registers a crypto.Hash algorithm with optional aliases (e.g. Algorithm(crypto.SHA256, "HS256")), exposing constant declarations (e.g., hmac.SHA256, hmac.HS256) in CEL and enabling it for HMAC operations.
func CommonAlgorithms ¶
func CommonAlgorithms() Option
CommonAlgorithms registers the most common HMAC hash algorithms (SHA256, SHA384, SHA512, SHA224, SHA512/256, SHA512/224) along with their JOSE/JWT aliases (HS256, HS384, HS512, HS224, HS512/256, HS512/224) using Algorithm options by proxy.
func MaxPrefixLength ¶
MaxPrefixLength sets the maximum signature prefix length to parse during verification. Defaults to 20.