Documentation ¶
Overview ¶
Package hs provides the HMAC using SHA-2 signature algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New256 ¶
New256 returns HS256 (HMAC using SHA-256) signature algorithm.
New256 doesn't accept weak keys less than 256 bit. If you want to use weak keys, use New256Weak instead.
func New256Weak
deprecated
func New384 ¶
New384 returns HS384 (HMAC using SHA-384) signature algorithm.
New384 doesn't accept weak keys less than 384 bit. If you want to use weak keys, use New384Weak instead.
func New384Weak
deprecated
func New512 ¶
New512 returns HS512 (HMAC using SHA-512) signature algorithm.
New512 doesn't accept weak keys less than 512 bit. If you want to use weak keys, use New512Weak instead.
func New512Weak
deprecated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.