clarify 'size' parameter in New docstring
This commit is contained in:
parent
bb7ece4161
commit
7afca5966e
|
@ -161,8 +161,8 @@ func newHasher(key [8]uint32, flags uint32, size int) *Hasher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// New returns a Hasher for the specified size and key. If key is nil, the hash
|
// New returns a Hasher for the specified digest size and key. If key is nil,
|
||||||
// is unkeyed. Otherwise, len(key) must be 32.
|
// the hash is unkeyed. Otherwise, len(key) must be 32.
|
||||||
func New(size int, key []byte) *Hasher {
|
func New(size int, key []byte) *Hasher {
|
||||||
if key == nil {
|
if key == nil {
|
||||||
return newHasher(iv, 0, size)
|
return newHasher(iv, 0, size)
|
||||||
|
|
Reference in New Issue