|
1 |
| -/* -*- Mode: Java; tab-width: s; indent-tabs-mode: nil; c-basic-offset: 2 -*- / |
2 |
| -/* vim: set shiftwidth=s tabstop=2 autoindent cindent expandtab: */ |
| 1 | +/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / |
| 2 | +/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ |
3 | 3 |
|
4 | 4 | "use strict";
|
5 | 5 |
|
@@ -45,12 +45,12 @@ var ARCFourCipher = (function() {
|
45 | 45 | })();
|
46 | 46 |
|
47 | 47 | var md5 = (function() {
|
48 |
| - const r = new Uint8Array([ |
| 48 | + var r = new Uint8Array([ |
49 | 49 | 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
|
50 | 50 | 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
|
51 | 51 | 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
|
52 | 52 | 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
|
53 |
| - const k = new Int32Array([ |
| 53 | + var k = new Int32Array([ |
54 | 54 | -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
|
55 | 55 | -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
|
56 | 56 | 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
|
@@ -149,7 +149,7 @@ var CipherTransform = (function() {
|
149 | 149 |
|
150 | 150 | var CipherTransformFactory = (function() {
|
151 | 151 | function prepareKeyData(fileId, password, ownerPassword, userPassword, flags, revision, keyLength) {
|
152 |
| - const defaultPasswordBytes = new Uint8Array([ |
| 152 | + var defaultPasswordBytes = new Uint8Array([ |
153 | 153 | 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41, 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
|
154 | 154 | 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80, 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
|
155 | 155 | var hashData = new Uint8Array(88), i = 0, j, n;
|
|
0 commit comments