-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for BLAKE3, add Suites with BLAKE3
- Loading branch information
Showing
15 changed files
with
450 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package hashtools | ||
|
||
import ( | ||
"hash" | ||
|
||
"github.com/zeebo/blake3" | ||
|
||
"github.com/safing/jess/lhash" | ||
) | ||
|
||
func init() { | ||
Register(&HashTool{ | ||
Name: "BLAKE3", | ||
NewHash: newBlake3, | ||
DigestSize: newBlake3().Size(), | ||
BlockSize: newBlake3().BlockSize(), | ||
SecurityLevel: 128, | ||
Comment: "cryptographic hash function based on Bao and BLAKE2", | ||
Author: "Jean-Philippe Aumasson et al., 2020", | ||
labeledAlg: lhash.BLAKE3, | ||
}) | ||
} | ||
|
||
func newBlake3() hash.Hash { | ||
return blake3.New() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.