Page MenuHomePhabricator

Move database encryption utils to generic location
ClosedPublic

Authored by marcin on Oct 27 2023, 6:27 AM.
Tags
None
Referenced Files
F4120055: D9619.diff
Tue, Feb 18, 6:14 AM
Unknown Object (File)
Sun, Feb 16, 8:02 PM
Unknown Object (File)
Sat, Feb 15, 1:26 AM
Unknown Object (File)
Fri, Feb 14, 12:30 PM
Unknown Object (File)
Fri, Feb 14, 12:30 PM
Unknown Object (File)
Fri, Feb 14, 12:30 PM
Unknown Object (File)
Fri, Feb 14, 12:30 PM
Unknown Object (File)
Fri, Feb 14, 12:15 PM
Subscribers

Details

Summary

AES_GCM functions used to encrypt/decrypt database are very generic and can be directly applied to olm notifications session encryption before it is
persisted in IndexedDB. We only need to move them to generic location and rename them.

Test Plan

Run yarn jest all since it wil run worker-crypto-utils.test.js that use all moved functions. This ensures that existing functionality wasn't broken.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Rebase to update commit message

This revision is now accepted and ready to land.Oct 30 2023, 1:09 AM