1
0
mirror of https://github.com/opencontainers/go-digest.git synced 2025-10-23 14:48:27 +03:00

Add BLAKE3 support

This adds support for the BLAKE3 hash family with a default output
size of 256-bit.

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
This commit is contained in:
Sargun Dhillon
2021-04-21 23:26:14 -07:00
parent 404628eedb
commit a63e545fe7
7 changed files with 288 additions and 152 deletions

View File

@@ -34,6 +34,9 @@ const (
// project. Other digests may be used but this one is the primary storage
// digest.
Canonical = SHA256
// BLAKE3 is the blake3 algorithm with the default 256-bit output size
// github.com/opencontainers/go-digest/blake3 should be imported to make it available
BLAKE3 Algorithm = "blake3"
)
var (