From 63cfe260a26a40c2d21fa4f1dbccb012f1d7e756 Mon Sep 17 00:00:00 2001 From: Enduriel Date: Mon, 19 Jan 2026 08:27:11 +0100 Subject: [PATCH] filen: swap to blake3 hashes --- backend/filen/filen.go | 4 ++-- docs/content/filen.md | 2 +- docs/content/overview.md | 2 +- go.mod | 4 ++-- go.sum | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/filen/filen.go b/backend/filen/filen.go index 2a3d8cb16..57d992404 100644 --- a/backend/filen/filen.go +++ b/backend/filen/filen.go @@ -226,7 +226,7 @@ func (f *Fs) Precision() time.Duration { // Hashes returns the supported hash sets. func (f *Fs) Hashes() hash.Set { - return hash.Set(hash.SHA512) + return hash.Set(hash.BLAKE3) } // Features returns the optional features of this Fs @@ -659,7 +659,7 @@ func (o *Object) Size() int64 { // Hash returns the selected checksum of the file // If no checksum is available it returns "" func (o *Object) Hash(ctx context.Context, ty hash.Type) (string, error) { - if ty != hash.SHA512 { + if ty != hash.BLAKE3 { return "", hash.ErrUnsupported } if o.file.Hash == "" { diff --git a/docs/content/filen.md b/docs/content/filen.md index 5697ed120..af2fe5dcb 100644 --- a/docs/content/filen.md +++ b/docs/content/filen.md @@ -83,7 +83,7 @@ y/e/d> y ### Modification times and hashes Modification times are fully supported for files, for directories, only the creation time matters. -Filen supports SHA512 hashes. +Filen supports Blake3 hashes. ### Restricted filename characters Invalid UTF-8 bytes will be [replaced](/overview/#invalid-utf8) diff --git a/docs/content/overview.md b/docs/content/overview.md index a2f1f7477..2e4334e4e 100644 --- a/docs/content/overview.md +++ b/docs/content/overview.md @@ -27,7 +27,7 @@ Here is an overview of the major features of each cloud storage system. | Dropbox | DBHASH ¹ | R | Yes | No | - | - | | Enterprise File Fabric | - | R/W | Yes | No | R/W | - | | FileLu Cloud Storage | MD5 | R/W | No | Yes | R | - | -| Filen | SHA512 | R/W | Yes | No | R/W | - | +| Filen | Blake3 | R/W | Yes | No | R/W | - | | Files.com | MD5, CRC32 | DR/W | Yes | No | R | - | | FTP | - | R/W ¹⁰ | No | No | - | - | | Gofile | MD5 | DR/W | No | Yes | R | - | diff --git a/go.mod b/go.mod index e82cb7405..93ade076b 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.3 github.com/Azure/azure-sdk-for-go/sdk/storage/azfile v1.5.3 github.com/Azure/go-ntlmssp v0.0.2-0.20251110135918-10b7b7e7cd26 - github.com/FilenCloudDienste/filen-sdk-go v0.0.34 + github.com/FilenCloudDienste/filen-sdk-go v0.0.35 github.com/Files-com/files-sdk-go/v3 v3.2.264 github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd github.com/a1ex3/zstd-seekable-format-go/pkg v0.10.0 @@ -155,8 +155,8 @@ require ( github.com/creasty/defaults v1.8.0 // indirect github.com/cronokirby/saferith v0.33.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707 // indirect github.com/dromara/dongle v1.0.1 // indirect + github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/ebitengine/purego v0.9.1 // indirect github.com/emersion/go-message v0.18.2 // indirect diff --git a/go.sum b/go.sum index 92ec04240..d422d625c 100644 --- a/go.sum +++ b/go.sum @@ -61,8 +61,8 @@ github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0 h1:XRzhVemXdgv github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0/go.mod h1:HKpQxkWaGLJ+D/5H8QRpyQXA1eKjxkFlOMwck5+33Jk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/FilenCloudDienste/filen-sdk-go v0.0.34 h1:Fd/wagh/Qn35p3PkCUYubmaELATQlYGC9pxpJ9TkHUE= -github.com/FilenCloudDienste/filen-sdk-go v0.0.34/go.mod h1:XkI1Iq30/tU8vk4Zd1cKr2cCTiFqBEf0ZfG4+KKUBrY= +github.com/FilenCloudDienste/filen-sdk-go v0.0.35 h1:geuYpD/1ZXSp1H3kdW7si+KRUIrHHqM1kk8lqoA8Y9M= +github.com/FilenCloudDienste/filen-sdk-go v0.0.35/go.mod h1:0cBhKXQg49XbKZZfk5TCDa3sVLP+xMxZTWL+7KY0XR0= github.com/Files-com/files-sdk-go/v3 v3.2.264 h1:lMHTplAYI9FtmCo/QOcpRxmPA5REVAct1r2riQmDQKw= github.com/Files-com/files-sdk-go/v3 v3.2.264/go.mod h1:wGqkOzRu/ClJibvDgcfuJNAqI2nLhe8g91tPlDKRCdE= github.com/IBM/go-sdk-core/v5 v5.21.0 h1:DUnYhvC4SoC8T84rx5omnhY3+xcQg/Whyoa3mDPIMkk=