mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fixing encryption key size for the algorithm 1
This commit is contained in:
parent
ce8180c2de
commit
ff40fc4b45
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ var CipherTransformFactory = (function() {
|
|||
key[i++] = 0x54;
|
||||
}
|
||||
var hash = md5(key, 0, i);
|
||||
return hash.subarray(0, Math.min(key.length, 16));
|
||||
return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
|
||||
}
|
||||
|
||||
function buildCipherConstructor(cf, name, num, gen, key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue