Merge pull request #4 from phpseclib/master

Sync
3DES/Rijndael/AES: Fix memory leak with CTR mode

Related to: https://github.com/phpseclib/phpseclib/issues/77
Merge pull request #78 from petrich/master

3DES/Rijndael/AES: Fix memory leak with CTR mode