hash: fix hash names for DropboxHash and CRC-32

These were unintentionally renamed as part of 1dc8bcd48c

Fixes #3679
This commit is contained in:
Nick Craig-Wood 2019-10-30 10:31:32 +00:00
parent e6378daadf
commit 1ce1ea34aa
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ var (
// Register with Fs
func init() {
DbHashType = hash.RegisterHash("Dropbox", 64, dbhash.New)
DbHashType = hash.RegisterHash("DropboxHash", 64, dbhash.New)
fs.Register(&fs.RegInfo{
Name: "dropbox",
Description: "Dropbox",

View File

@ -66,7 +66,7 @@ func init() {
MD5 = RegisterHash("MD5", 32, md5.New)
SHA1 = RegisterHash("SHA-1", 40, sha1.New)
Whirlpool = RegisterHash("Whirlpool", 128, whirlpool.New)
CRC32 = RegisterHash("CRC32", 8, func() hash.Hash { return crc32.NewIEEE() })
CRC32 = RegisterHash("CRC-32", 8, func() hash.Hash { return crc32.NewIEEE() })
}
// Supported returns a set of all the supported hashes by