clarify 'size' parameter in New docstring

This commit is contained in:
Luke Champine 2022-03-21 13:09:24 -04:00 committed by GitHub
parent bb7ece4161
commit 7afca5966e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
// is unkeyed. Otherwise, len(key) must be 32.
// New returns a Hasher for the specified digest size and key. If key is nil,
// the hash is unkeyed. Otherwise, len(key) must be 32.
func New(size int, key []byte) *Hasher {
if key == nil {
return newHasher(iv, 0, size)