From 1d9f28e18548593cbc1027db432ed88233d7528f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 8 Jan 2018 16:21:49 -0500 Subject: [PATCH] update crypto interface --- src/abstractions/crypto.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/abstractions/crypto.service.ts b/src/abstractions/crypto.service.ts index 10b4e1ac4e..3a7e406f1a 100644 --- a/src/abstractions/crypto.service.ts +++ b/src/abstractions/crypto.service.ts @@ -15,6 +15,11 @@ export interface CryptoService { getPrivateKey(): Promise; getOrgKeys(): Promise>; getOrgKey(orgId: string): Promise; + clearKey(): Promise; + clearKeyHash(): Promise; + clearEncKey(memoryOnly?: boolean): Promise; + clearPrivateKey(memoryOnly?: boolean): Promise; + clearOrgKeys(memoryOnly?: boolean): Promise; clearKeys(): Promise; toggleKey(): Promise; makeKey(password: string, salt: string): SymmetricCryptoKey;