Skip to content

Commit 4869291

Browse files
committed
fix: Use named hash algorithm in PBKDF2
Should help with an issue in node-webcrypto-ossl, see PeculiarVentures/webcrypto-core#27
1 parent 99567d3 commit 4869291

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/primitives/pbkdf2.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export async function pbkdf2DeriveBytes(
5454
name: 'PBKDF2',
5555
salt,
5656
iterations: rounds,
57-
hash
57+
hash: {
58+
name: hash
59+
}
5860
},
5961
key,
6062
length << 3 // bytes -> bits

0 commit comments

Comments
 (0)