| @@ 187-194 (lines=8) @@ | ||
| 184 | $diff = $len - $keylen; |
|
| 185 | $pos = 0; |
|
| 186 | ||
| 187 | for ($i = 0; $i < $diff; ++$i) |
|
| 188 | { |
|
| 189 | if ($pos >= $keylen) { |
|
| 190 | $pos = 0; |
|
| 191 | } |
|
| 192 | ||
| 193 | $this->expanded_key .= $this->expanded_key[$pos]; |
|
| 194 | ++$pos; |
|
| 195 | } |
|
| 196 | } |
|
| 197 | } |
|
| @@ 343-350 (lines=8) @@ | ||
| 340 | $key = $this->key(); |
|
| 341 | $pos = 0; |
|
| 342 | ||
| 343 | for ($i = 0; $i < 128; ++$i) |
|
| 344 | { |
|
| 345 | if ($pos == $key_bytes) { |
|
| 346 | $pos = 0; |
|
| 347 | } |
|
| 348 | ||
| 349 | $this->expanded_key .= $key[$pos]; |
|
| 350 | ++$pos; |
|
| 351 | } |
|
| 352 | } |
|
| 353 | ||