rclone/backend/crypt
Nick Craig-Wood 430bf0d5eb crypt: fix compress wrapping crypt giving upload errors
Before this fix a chain compress -> crypt -> s3 was giving errors

    BadDigest: The Content-MD5 you specified did not match what we received.

This was because the crypt backend was encrypting the underlying local
object to calculate the hash rather than the contents of the metadata
stream.

It did this because the crypt backend incorrectly identified the
object as a local object.

This fixes the problem by making sure the crypt backend does not
unwrap anything but fs.OverrideRemote objects.

See: https://forum.rclone.org/t/not-encrypting-or-compressing-before-upload/32261/10
2022-11-21 08:02:09 +00:00
..
pkcs7 Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
cipher_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
cipher.go crypt: fix typo in comment 2022-08-22 10:43:54 +02:00
crypt_internal_test.go crypt: fix compress wrapping crypt giving upload errors 2022-11-21 08:02:09 +00:00
crypt_test.go backend: allow wrapping backend tests to run in make quicktest 2022-06-29 17:30:37 +01:00
crypt.go crypt: fix compress wrapping crypt giving upload errors 2022-11-21 08:02:09 +00:00