Merge pull request #376 from notmasteryet/wdw

Fixing encryption key size for the algorithm 1
This commit is contained in:
Chris Jones 2011-08-24 17:56:14 -07:00
commit 45cb4b5c90

View File

@ -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) {