Documentation
¶
Index ¶
Constants ¶
View Source
const (
SigID = "hmac"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterVerifier ¶
func RegisterVerifier(algs h2signer.VerifierKeyAlgs)
RegisterVerifier registers a verifier alg
Types ¶
type Config ¶
type Config struct {
Key []byte
}
func ParseConfig ¶
ParseConfig loads an HS256 config from params string
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key implements h2signer.SigningKey for HS256
func NewFromParams ¶
NewFromParams creates an HS256 key from params
func (*Key) Verifier ¶
func (k *Key) Verifier() h2signer.VerifierKey
Click to show internal directories.
Click to hide internal directories.