std/crc64: add new package

This commit is contained in:
Nigel Tao committed 2023-10-14 23:56:41 +11:00
1 parent 6a6e8d3f09
commit b2ab3ba008
7 files changed
+1055

No files matched your search

+3
View File
@@ -25,6 +25,7 @@ import (
"hash"
"hash/adler32"
"hash/crc32"
"hash/crc64"
"io"
"os"
"strings"
@@ -78,6 +79,8 @@ func do(r io.Reader) error {
h = adler32.New()
case "crc32/ieee":
h = crc32.NewIEEE()
case "crc64/ecma":
h = crc64.New(crc64.MakeTable(crc64.ECMA))
case "sha256":
h = sha256.New()
case "xxhash32":