b2: Fix encrypted uploads #644
This was caused by accidentally letting b2 read the underlying object sha1.
This commit is contained in:
parent
31fe800d6a
commit
140a3d0aef
1 changed files with 6 additions and 0 deletions
|
@ -343,6 +343,12 @@ func (o *ObjectInfo) Size() int64 {
|
||||||
return o.f.cipher.EncryptedSize(o.ObjectInfo.Size())
|
return o.f.cipher.EncryptedSize(o.ObjectInfo.Size())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hash returns the selected checksum of the file
|
||||||
|
// If no checksum is available it returns ""
|
||||||
|
func (o *ObjectInfo) Hash(hash fs.HashType) (string, error) {
|
||||||
|
return "", nil
|
||||||
|
}
|
||||||
|
|
||||||
// ListOpts wraps a listopts decrypting the directory listing and
|
// ListOpts wraps a listopts decrypting the directory listing and
|
||||||
// replacing the Objects
|
// replacing the Objects
|
||||||
type ListOpts struct {
|
type ListOpts struct {
|
||||||
|
|
Loading…
Add table
Reference in a new issue