Fixing encryption key size for the algorithm 1
This commit is contained in:
parent
ce8180c2de
commit
ff40fc4b45
@ -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…
x
Reference in New Issue
Block a user