mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-02 17:48:00 +01:00
359e38b4d4
$buffer['encrypted'] (which is always empty) should be $buffer['ciphertext'] or buffered stream will get corrupt... Example: define('CRYPT_AES_MODE',CRYPT_AES_MODE_INTERNAL);//in MODE_MCRYPT all is fine $aes = new Crypt_AES(CRYPT_AES_MODE_CTR); $aes->setKey(':-8'); $aes->enableContinuousBuffer(); $plaintext = ':-):-):-):-):-):-)'; for($i=0; $i<strlen($plaintext); $i++) { echo $aes->Decrypt($aes->Encrypt($plaintext[$i])); } Output: :-):-):-):-):-):-( Expected: :-):-):-):-):-):-) After Bugfix, output is: :-):-):-):-):-):-) |
||
---|---|---|
.. | ||
Crypt | ||
File | ||
Math | ||
Net | ||
openssl.cnf |