phpseclib/phpseclib — pull request #62 by petrich (2013-01-21 03:30:12+00:00)
Title: DES: Fixed CFB decrypt() using MODE_MCRYPT and ContinuousBuffer

Related to https://github.com/phpseclib/phpseclib/pull/61 ...

DES: Fixed small bug from commit https://github.com/phpseclib/phpseclib/commit/d94f1b252db66f52c42fcc8d4c6f1a3f10f5ff4e (DES.php in line 739-740)
in CFB decrypt() using CRYPT_DES_MODE_MCRYPT and enableContinuousBuffer()

Example:
```php
define('CRYPT_DES_MODE',CRYPT_DES_MODE_MCRYPT);

$cipher = new Crypt_DES(CRYPT_DES_MODE_CFB);
$cipher->enableContinuousBuffer();
echo bin2hex($cipher->decrypt('123456789'));
echo "\n";

$cipher = new Crypt_DES(CRYPT_DES_MODE_CFB);
echo bin2hex($cipher->decrypt('123456789'));
```

Output:
bd947eddf487149f53efbd7e54782dc1
bd947eddf487149f5b

Expected:
bd947eddf487149f5b
bd947eddf487149f5b

Output after bugfix:
bd947eddf487149f5b
bd947eddf487149f5b