1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

crypto function implementations for hash

This commit is contained in:
Kyle Spearrin
2018-04-17 15:59:38 -04:00
parent d6474aee0e
commit 5d085b74f5
3 changed files with 67 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
export abstract class CryptoFunctionService {
pbkdf2: (password: string | ArrayBuffer, salt: string | ArrayBuffer, algorithm: 'sha256' | 'sha512',
iterations: number, length: number) => Promise<ArrayBuffer>;
hash: (value: string | ArrayBuffer, algorithm: 'sha1' | 'sha256' | 'sha512') => Promise<ArrayBuffer>;
}