1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

makeKeyFromPin in background context

This commit is contained in:
Kyle Spearrin
2019-03-05 16:36:11 -05:00
parent 39f3a0788d
commit cc27f98aae
3 changed files with 15 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ 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>;
makeShareKey: () => Promise<[CipherString, SymmetricCryptoKey]>;
makeKeyPair: (key?: SymmetricCryptoKey) => Promise<[string, CipherString]>;
makePinKey: (pin: string, salt: string, kdf: KdfType, kdfIterations: number) => Promise<SymmetricCryptoKey>;