mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Move the calculateSHA256
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:
parent
3e8d01ad7c
commit
a1eac86037
3 changed files with 165 additions and 142 deletions
|
@ -17,7 +17,6 @@ import {
|
|||
AES128Cipher,
|
||||
AES256Cipher,
|
||||
ARCFourCipher,
|
||||
calculateSHA256,
|
||||
calculateSHA384,
|
||||
calculateSHA512,
|
||||
CipherTransformFactory,
|
||||
|
@ -31,6 +30,7 @@ import {
|
|||
stringToBytes,
|
||||
} from "../../src/shared/util.js";
|
||||
import { calculateMD5 } from "../../src/core/calculate_md5.js";
|
||||
import { calculateSHA256 } from "../../src/core/calculate_sha256.js";
|
||||
|
||||
describe("crypto", function () {
|
||||
function hex2binary(s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue