Fixing encryption key size for the algorithm 1

This commit is contained in:
notmasteryet 2011-08-24 18:45:14 -05:00
parent ce8180c2de
commit ff40fc4b45

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