1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-28 19:02:42 +01:00

update crypto interface

This commit is contained in:
Kyle Spearrin 2018-01-08 16:21:49 -05:00
parent 7c848edf3c
commit 1d9f28e185

View File

@ -15,6 +15,11 @@ export interface CryptoService {
getPrivateKey(): Promise<ArrayBuffer>;
getOrgKeys(): Promise<Map<string, SymmetricCryptoKey>>;
getOrgKey(orgId: string): Promise<SymmetricCryptoKey>;
clearKey(): Promise<any>;
clearKeyHash(): Promise<any>;
clearEncKey(memoryOnly?: boolean): Promise<any>;
clearPrivateKey(memoryOnly?: boolean): Promise<any>;
clearOrgKeys(memoryOnly?: boolean): Promise<any>;
clearKeys(): Promise<any>;
toggleKey(): Promise<any>;
makeKey(password: string, salt: string): SymmetricCryptoKey;