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

crypto function implementations

This commit is contained in:
Kyle Spearrin
2018-04-16 12:07:51 -04:00
parent 4ad29e25f3
commit d6474aee0e
3 changed files with 59 additions and 11 deletions

View File

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