fix from Shain Tancheff

This commit is contained in:
reinerj 2004-08-07 00:51:29 +00:00
parent 61482e0a19
commit b2b8bd3512

View File

@ -100,6 +100,7 @@
/* Hack IV to be the correct size */
$x = strlen($iv);
$this->iv = '';
for($i = 0; $i < $ivsize; $i++)
{
$this->iv .= $iv[$i % $x];
@ -107,7 +108,7 @@
/* Hack Key to be the correct size */
$x = strlen($key);
$this->key = '';
for($i = 0; $i < $keysize; $i++)
{
$this->key .= $key[$i % $x];