We need the blob hash in order to upload the encrypted blob to Blob service.
According to whitepaper, we use SHA256 to calculate the hash of encrypted blob.
Exposed the calculated SHA256 within encryption result payload.
Paths
| Differential D7647 Authored by bartek on Apr 27 2023, 3:53 AM.
Details
Summary We need the blob hash in order to upload the encrypted blob to Blob service. Exposed the calculated SHA256 within encryption result payload. Test Plan Added console.log and sent encrypted video message. Verified that both video and thumbnail have blobHash field.
Diff Detail
Event Timelinebartek held this revision as a draft. Herald added subscribers: tomek, ashoat. · View Herald TranscriptApr 27 2023, 3:53 AM2023-04-27 03:53:47 (UTC-7) Harbormaster completed remote builds in B18841: Diff 25810.Apr 27 2023, 4:11 AM2023-04-27 04:11:00 (UTC-7) atul added inline comments.
This revision is now accepted and ready to land.May 3 2023, 10:45 AM2023-05-03 10:45:15 (UTC-7)
Harbormaster completed remote builds in B19122: Diff 26176.May 8 2023, 4:25 AM2023-05-08 04:25:48 (UTC-7) Closed by commit rCOMMde360ffea5af: [native] Calculate SHA256 of encrypted blob (authored by bartek). · Explain WhyMay 8 2023, 4:47 AM2023-05-08 04:47:14 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 26176 lib/types/media-types.js
native/media/encryption-utils.js
native/media/media-utils.js
web/media/encryption-utils.js
|