Skip to content

Commit bf1a719

Browse files
committed
blake2b: fix comments in grammar
1 parent ff983b9 commit bf1a719

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

blake2b/blake2b.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ func Sum256(data []byte) [Size256]byte {
7575
}
7676

7777
// New512 returns a new hash.Hash computing the BLAKE2b-512 checksum. A non-nil
78-
// key turns the hash into a MAC. The key must between zero and 64 bytes long.
78+
// key turns the hash into a MAC. The key must be between zero and 64 bytes long.
7979
func New512(key []byte) (hash.Hash, error) { return newDigest(Size, key) }
8080

8181
// New384 returns a new hash.Hash computing the BLAKE2b-384 checksum. A non-nil
82-
// key turns the hash into a MAC. The key must between zero and 64 bytes long.
82+
// key turns the hash into a MAC. The key must be between zero and 64 bytes long.
8383
func New384(key []byte) (hash.Hash, error) { return newDigest(Size384, key) }
8484

8585
// New256 returns a new hash.Hash computing the BLAKE2b-256 checksum. A non-nil
86-
// key turns the hash into a MAC. The key must between zero and 64 bytes long.
86+
// key turns the hash into a MAC. The key must be between zero and 64 bytes long.
8787
func New256(key []byte) (hash.Hash, error) { return newDigest(Size256, key) }
8888

8989
// New returns a new hash.Hash computing the BLAKE2b checksum with a custom length.
90-
// A non-nil key turns the hash into a MAC. The key must between zero and 64 bytes long.
90+
// A non-nil key turns the hash into a MAC. The key must be between zero and 64 bytes long.
9191
// The hash size can be a value between 1 and 64 but it is highly recommended to use
9292
// values equal or greater than:
9393
// - 32 if BLAKE2b is used as a hash function (The key is zero bytes long).

0 commit comments

Comments
 (0)