mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
memory stored pinProtectedKey
This commit is contained in:
@@ -13,7 +13,7 @@ export abstract class CryptoService {
|
||||
setOrgKeys: (orgs: ProfileOrganizationResponse[]) => Promise<{}>;
|
||||
getKey: () => Promise<SymmetricCryptoKey>;
|
||||
getKeyHash: () => Promise<string>;
|
||||
getEncKey: () => Promise<SymmetricCryptoKey>;
|
||||
getEncKey: (key?: SymmetricCryptoKey) => Promise<SymmetricCryptoKey>;
|
||||
getPublicKey: () => Promise<ArrayBuffer>;
|
||||
getPrivateKey: () => Promise<ArrayBuffer>;
|
||||
getFingerprint: (userId: string, publicKey?: ArrayBuffer) => Promise<string[]>;
|
||||
@@ -30,7 +30,8 @@ export abstract class CryptoService {
|
||||
clearKeys: () => Promise<any>;
|
||||
toggleKey: () => Promise<any>;
|
||||
makeKey: (password: string, salt: string, kdf: KdfType, kdfIterations: number) => Promise<SymmetricCryptoKey>;
|
||||
makeKeyFromPin: (pin: string, salt: string, kdf: KdfType, kdfIterations: number) => Promise<SymmetricCryptoKey>;
|
||||
makeKeyFromPin: (pin: string, salt: string, kdf: KdfType, kdfIterations: number,
|
||||
protectedKeyCs?: CipherString) => Promise<SymmetricCryptoKey>;
|
||||
makeShareKey: () => Promise<[CipherString, SymmetricCryptoKey]>;
|
||||
makeKeyPair: (key?: SymmetricCryptoKey) => Promise<[string, CipherString]>;
|
||||
makePinKey: (pin: string, salt: string, kdf: KdfType, kdfIterations: number) => Promise<SymmetricCryptoKey>;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { CipherString } from '../models/domain/cipherString';
|
||||
|
||||
export abstract class LockService {
|
||||
pinLocked: boolean;
|
||||
pinProtectedKey: CipherString;
|
||||
isLocked: () => Promise<boolean>;
|
||||
checkLock: () => Promise<void>;
|
||||
lock: (allowSoftLock?: boolean) => Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user