Documentation
¶
Overview ¶
Package hmac provides an interface to the OpenSSL hmac api to be compatible with Go's stdlib api. See http://www.openssl.org/docs/crypto/hmac.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new HMAC hash using the given hash.Hash type and key. If the returned hash is `nil` make a call to `sslerr.Error()` to know what went wrong. Currently only `crypto.SHA512`, `crypto.SHA384`, `crypto.SHA256`, `crypto.SHA224`, `cryptoSHA1` and `crypto.MD5` are the only supported hashes. If an unsupported hash is provided the function will just return `nil` and no error from `sslerr` is given.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.