diff --git a/lib/getHashDigest.js b/lib/getHashDigest.js index 505d6a3..6259503 100644 --- a/lib/getHashDigest.js +++ b/lib/getHashDigest.js @@ -67,6 +67,10 @@ function getHashDigest(buffer, algorithm, digestType, maxLength) { } else if (algorithm === "md4") { if (createMd4 === undefined) { createMd4 = require("./hash/md4"); + + if (BatchedHash === undefined) { + BatchedHash = require("./hash/BatchedHash"); + } } hash = new BatchedHash(createMd4());