Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b57b3afb2c |
@@ -15,7 +15,7 @@ import (
|
||||
func hasherSelect(bitSize int) hash.Hash {
|
||||
switch bitSize {
|
||||
case 224:
|
||||
hasher, _ := blake2b.New256(nil)
|
||||
hasher, _ := blake2b.New(28, nil)
|
||||
return hasher
|
||||
case 256:
|
||||
hasher, _ := blake2b.New256(nil)
|
||||
@@ -114,4 +114,4 @@ func SumFileHex(file string, bitSize ...int) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
return hex.EncodeToString(hash), nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user