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

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy