1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-07 05:22:15 +03:00

Expose deriveKey from passphrase

This commit is contained in:
J. Ryan Stinnett
2019-12-05 14:53:32 +00:00
parent 33f5894547
commit 88bb31d3e6

View File

@@ -49,7 +49,7 @@ export async function keyFromPassphrase(password) {
return { key, salt, iterations: DEFAULT_ITERATIONS };
}
async function deriveKey(password, salt, iterations) {
export async function deriveKey(password, salt, iterations) {
const subtleCrypto = global.crypto.subtle;
const TextEncoder = global.TextEncoder;
if (!subtleCrypto || !TextEncoder) {