1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Move the calculateMD5 function into its own file

This allows us to remove a closure, and we also change the code to initialize various constants lazily.
This commit is contained in:
Jonas Jenwald 2025-03-08 15:56:05 +01:00
parent cef4fcf025
commit 3e8d01ad7c
5 changed files with 134 additions and 105 deletions

View file

@ -17,7 +17,6 @@ import {
AES128Cipher,
AES256Cipher,
ARCFourCipher,
calculateMD5,
calculateSHA256,
calculateSHA384,
calculateSHA512,
@ -31,6 +30,7 @@ import {
PasswordResponses,
stringToBytes,
} from "../../src/shared/util.js";
import { calculateMD5 } from "../../src/core/calculate_md5.js";
describe("crypto", function () {
function hex2binary(s) {