Skip to content

Commit ef084d4

Browse files
fix: crash with md4 hash (#198)
1 parent 097f5c3 commit ef084d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/getHashDigest.js

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ function getHashDigest(buffer, algorithm, digestType, maxLength) {
6767
} else if (algorithm === "md4") {
6868
if (createMd4 === undefined) {
6969
createMd4 = require("./hash/md4");
70+
71+
if (BatchedHash === undefined) {
72+
BatchedHash = require("./hash/BatchedHash");
73+
}
7074
}
7175

7276
hash = new BatchedHash(createMd4());

0 commit comments

Comments
 (0)