HomePhabricator
Diffusion Comm 3ffa0ab627e6

Move database encryption utils to generic location

Description

Move database encryption utils to generic location

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.

Reviewers: kamil

Reviewed By: kamil

Subscribers: ashoat, tomek, wyilio

Differential Revision: https://phab.comm.dev/D9619

Details

Provenance
marcinAuthored on Oct 27 2023, 5:28 AM
Reviewer
kamil
Differential Revision
D9619: Move database encryption utils to generic location
Parents
rCOMMcae7f78d9ede: Extract shareable notifications session creation logic to lib
Branches
Unknown
Tags
Unknown