Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexplained Decryption failure due to "Unable to decrypt attachment: Mismatched SHA-256 digest" #28312

Open
Tracked by #245
richvdh opened this issue Oct 28, 2024 · 0 comments
Labels
A-E2EE A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-UISI Unable to decrypt errors

Comments

@richvdh
Copy link
Member

richvdh commented Oct 28, 2024

A user reported a decryption failure on a message containing an image.

The logs contain no megolm decryption failure, but they do have:

2024-10-21T09:53:11.961Z E Unable to decrypt attachment:  Mismatched SHA-256 digest
./node_modules/matrix-encrypt-attachment/lib/browser-encrypt-attachment.js/</<[1]</decryptAttachment/</<@https://develop.element.io/bundles/08f5e67c245583e16087/7530.js:41217:31
step@https://develop.element.io/bundles/08f5e67c245583e16087/7530.js:41152:23
./node_modules/matrix-encrypt-attachment/lib/browser-encrypt-attachment.js/</<[1]</__generator</verb/<@https://develop.element.io/bundles/08f5e67c245583e16087/7530.js:41133:53
fulfilled@https://develop.element.io/bundles/08f5e67c245583e16087/7530.js:41124:58

I am at a loss to explain why the digest would be a mismatch.

The logs are unhelpful; they lack key information such as:

@richvdh richvdh added T-Defect S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-E2EE A-Media Z-UISI Unable to decrypt errors O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Oct 28, 2024
@dosubot dosubot bot added the S-Minor Impairs non-critical functionality or suitable workarounds exist label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-UISI Unable to decrypt errors
Projects
None yet
Development

No branches or pull requests

1 participant