Documentation ¶
Index ¶
Constants ¶
View Source
const INNER_PAD byte = 0x36
bytes used to perform XOR operations on key material
View Source
const OUTER_PAD byte = 0x5C
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HMAC ¶
type HMAC struct {
// contains filtered or unexported fields
}
hmac object type
func NewHmac ¶
Create new HMAC computer Parameters: key: the hash key material message: the plaintext message of which the function will compute the HMAC digest difest_f: hash cpomputer init function
HMAC is computed as HMAC = HASH_FUNC((key xor outer_pad) + HASH_FUNC((key xor inner_pad) + message))
Click to show internal directories.
Click to hide internal directories.