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

update makeKeyPair on crypto service to be generic

This commit is contained in:
Jacob Fink
2023-05-30 09:47:49 -04:00
parent 6dc454e5e7
commit 820c71d1a1
2 changed files with 8 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ export abstract class CryptoService {
setPrivateKey: (encPrivateKey: string) => Promise<void>;
getPrivateKey: () => Promise<ArrayBuffer>;
getFingerprint: (fingerprintMaterial: string, publicKey?: ArrayBuffer) => Promise<string[]>;
makeKeyPair: (key?: UserSymKey) => Promise<[string, EncString]>;
makeKeyPair: (key?: SymmetricCryptoKey) => Promise<[string, EncString]>;
clearKeyPair: (memoryOnly?: boolean, userId?: string) => Promise<void[]>;
makePinKey: (pin: string, salt: string, kdf: KdfType, kdfConfig: KdfConfig) => Promise<PinKey>;
clearPinProtectedKey: () => Promise<void>;