1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

add setUserSymKeyMasterKey so we can set the encrypted user sym key from server

This commit is contained in:
Jacob Fink
2023-05-30 10:45:03 -04:00
parent c7feae6238
commit f0438e5dd2
2 changed files with 11 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ export abstract class CryptoService {
makeUserSymKey: (key: SymmetricCryptoKey) => Promise<[SymmetricCryptoKey, EncString]>;
clearUserKey: (clearSecretStorage?: boolean, userId?: string) => Promise<void>;
clearUserKeyFromStorage: (keySuffix: KeySuffixOptions) => Promise<void>;
setUserSymKeyMasterKey: (UserSymKeyMasterKey: string, userId?: string) => Promise<void>;
setMasterKey: (key: MasterKey, userId?: string) => Promise<void>;
getMasterKey: (userId?: string) => Promise<MasterKey>;
makeMasterKey: (