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

Move the calculateSHA384 and calculateSHA512 functions into their 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:22 +01:00
parent a1eac86037
commit facf34606f
3 changed files with 430 additions and 369 deletions

View file

@ -17,12 +17,14 @@ import {
AES128Cipher,
AES256Cipher,
ARCFourCipher,
calculateSHA384,
calculateSHA512,
CipherTransformFactory,
PDF17,
PDF20,
} from "../../src/core/crypto.js";
import {
calculateSHA384,
calculateSHA512,
} from "../../src/core/calculate_sha_other.js";
import { Dict, Name } from "../../src/core/primitives.js";
import {
PasswordException,