Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compute ¶
func Compute(hasher HashFactory, key []byte, msg []byte) []byte
Compute calculates a signature for a given hashing function, key and message.
func ComputeSHA256 ¶
ComputeSHA256 calculates a signature for a given key and message.
func Validate ¶
func Validate(hasher HashFactory, key, msg, signature []byte) bool
Validate verifies an existing signature against a given hashing function, key and message.
func ValidateSHA256 ¶
ValidateSHA256 verifies an existing signature against a given key and message.
Types ¶
Click to show internal directories.
Click to hide internal directories.