[dev] Typo in horde-2.2.2/lib/Cipher/BlockMode/ofb64.php
abu
abu at trabas.com
Mon May 12 19:14:55 PDT 2003
class Horde_Cipher_BlockMode_ofb64 extends Horde_Cipher_BlockMode {
function encrypt(&$cipher, $plaintext)
{
$encrypted = '';
$n = 0;
$jMax = strlen($plaintext);
for ($j = 0; $j < $jMax); $j++) {
^^^^
-- i think, no need ')' here..
if ($n == 0) {
$this->_iv = $cipher->encryptBlock($this->_iv);
}
$c = $plaintext[$j] ^ $this->_iv[$n];
$encrypted .= $c;
$n = (++$n) & 0x07;
}
return $encrypted;
}
-az
More information about the dev
mailing list