1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 10:33:57 +00:00

Validate key before using it (#366)

* Validate key before using it
This commit is contained in:
Oscar Hinton
2021-04-28 22:02:43 +02:00
committed by GitHub
parent 672d07e1e2
commit 5b7d918f29
2 changed files with 44 additions and 5 deletions

View File

@@ -48,4 +48,5 @@ export abstract class CryptoService {
decryptToUtf8: (encString: EncString, key?: SymmetricCryptoKey) => Promise<string>;
decryptFromBytes: (encBuf: ArrayBuffer, key: SymmetricCryptoKey) => Promise<ArrayBuffer>;
randomNumber: (min: number, max: number) => Promise<number>;
validateKey: (key: SymmetricCryptoKey) => Promise<boolean>;
}