mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
std/crc64: add new package
This commit is contained in:
1 parent
6a6e8d3f09
commit
b2ab3ba008
7 files changed
+1055
No files matched your search
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user