Thomas Leitner
3ebc85e55f
Crypt filter EFF key should have StmF value as default, not StrF
...
This fixes the problem.
10 years ago
Rob Wu
58cd3349db
AES cipher: make padding optional
...
Fixes #5152
11 years ago
Yury Delendik
dd165f2918
SHA512 optimizations
11 years ago
Daniel West
1fce2856c6
Added support for decrypting PDF 1.7/2.0 Algorithm 5 revision 5 and 6.
...
*Added AES128 Encryption
*Added AES258 Encryption/Decryption
*Added SHA256
*Added SHA512
*Added class to handle 8 byte integers and associated bit operations
*Added SHA384
*Added routines to handle new algorithm and perform PDF2.0 hashing.
11 years ago
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
11 years ago
Nicholas Nethercote
b3024db677
Estimate the size of decoded streams in advance.
...
When decoding a stream, the decode buffer is often grown multiple times, its
byte size increasing like so: 512, 1024, 2048, etc. This patch estimates the
minimum size in advance (using the length of the encoded stream), often
allowing the smaller sizes to be skipped. It also renames numerous |length|
variables as |maybeLength| to make it clear that they can be |null|.
I measured this change on eight documents. This change reduces the cumulative
size of decode buffer allocations by 0--32%, with 10--20% being typical. This
reduces peak RSS by 10 or 20 MiB for several of them.
11 years ago
Tim van der Meij
3330f0417f
Making src/core/crypto.js adhere to the style guide
11 years ago
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
11 years ago
Yury Delendik
4966bf3fc8
Limits U and O entries size
12 years ago
Yury Delendik
2b63cd7e62
Allocates bigger hashData buffer
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Yury Delendik
c099d6ba94
Removes AES padding
12 years ago
Yury Delendik
61a7738a5d
Fixes password for range request loading
12 years ago
Yury Delendik
6ce1cfe734
Reverts 729b82, d5f65f and 724add
12 years ago
vyv03354
729b82359a
Implements the print permission
12 years ago
Yury Delendik
d5f65f5431
Fixes text search for "secured" documents
12 years ago
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
12 years ago
vyv03354
724add2ffd
Make an effort to adhere the spec 7.6.3.2
12 years ago
Jon Buckley
d7b005a79f
Issue #2008 - Fix lint errors for src/crypto.js
12 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Yury Delendik
413e5357b9
Suppress metadata decryption
13 years ago
Jakob Miland
0a30d3961b
Support password and add the relevant l10n strings
13 years ago
Yury Delendik
910ba0b91f
Fixes user and owner passwords logic
13 years ago
Kalervo Kujala
99440ab691
Refactor class method names.
...
Also move functionality to more logical place in canvas.js and jpx.js.
13 years ago
Kalervo Kujala
eb4ec7899a
Remove unreachable logic after error(...) is called.
...
The function error(...) always throws so there is no need to return separately
or have an else branch.
13 years ago
Kalervo Kujala
1ef4c94de2
Name all constructors.
14 years ago
Kalervo Kujala
89a6c4fc88
Fix jslint warnings and refactor small issues.
14 years ago
Artur Adib
249385b4bb
Progress
14 years ago
Kalervo Kujala
7e6a589074
Fix js strict warning in worker.js.
...
Also fix a few minor nits.
14 years ago
Artur Adib
e71b6188c6
'use strict' everywhere
14 years ago
Artur Adib
8fbb05613e
Progress
14 years ago
Artur Adib
a7278b7fbc
Splitting files
14 years ago
Kalervo Kujala
800fc131b8
Use lowercase in function names.
...
This alleviates the confusion which functions can be instantiated with new.
14 years ago
Kalervo Kujala
9b14e80fd5
Use lowercase properly in function names.
14 years ago
notmasteryet
c20b981f06
Changing the calculateMD5 function name (ref #523 )
14 years ago
Kalervo Kujala
5ce5ca03d3
Name anonymous functions for debugging purposes.
...
It also makes profiling more convenient.
14 years ago
Kalervo Kujala
8e5a8fb49f
Fix Mode comment lines.
14 years ago
Vivien Nicolas
76f6398e47
Fix some strict warnings
14 years ago
notmasteryet
ff40fc4b45
Fixing encryption key size for the algorithm 1
14 years ago
notmasteryet
d4157c0c7c
Formatting hex number, making gjslint happy: reducing lines width
14 years ago
notmasteryet
e1e735c4ff
AES algorithm implementation, PDF1.5,1.6 crypto functionality
14 years ago
Rob Sayre
f5a3587dde
Almost passing gjslint.
14 years ago
Chris Jones
b1f717cb7f
get shavian-load test working
14 years ago
Chris Jones
826c6c775d
fix moar |const| and modeline
14 years ago
notmasteryet
2e1d947ec5
security.js -> crypto.js; add ref to the multi-page-viewer
14 years ago
notmasteryet
d68b136ac4
security.js -> crypto.js; add ref to the multi-page-viewer
14 years ago
notmasteryet
63e74b53e9
Fix arcfour initialization and encoding; png prediction fix
14 years ago
notmasteryet
4326a1d5bf
Fix arcfour initialization and encoding; png prediction fix
14 years ago
notmasteryet
c78c209eb5
Basic DecryptStream functionality; md5 and arcfour algorithms
14 years ago
notmasteryet
994b075470
Basic DecryptStream functionality; md5 and arcfour algorithms
14 years ago