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

add decryption with MasterKey method to crypto service

This commit is contained in:
Jacob Fink
2023-05-30 09:46:08 -04:00
parent acd3ef2204
commit 6dc454e5e7
2 changed files with 37 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ export abstract class CryptoService {
masterKey: MasterKey,
userSymKey?: UserSymKey
) => Promise<[UserSymKey, EncString]>;
decryptUserSymKeyWithMasterKey: (masterKey: MasterKey, userId?: string) => Promise<UserSymKey>;
hashPassword: (password: string, key: MasterKey, hashPurpose?: HashPurpose) => Promise<string>;
setKeyHash: (keyHash: string) => Promise<void>;
getKeyHash: () => Promise<string>;