Merge pull request #14 from phpseclib/master

sync
Crypt_Base

Crypt_Base() implementation
BL/TF optimizations. 3DES: +20% speed

- Blowfish/Twofish small optimizations

- 3DES +20% speedup from Patrick's commit:
https://github.com/phpseclib/phpseclib/commit/f596c577cf3a666be3818316562db90aced09330
CS and method namings
CS adjustment
Method namings
CS adjustments
AES: inconsistencey with 160 / 224-bits keys

re: https://github.com/phpseclib/phpseclib/issues/110
Base/AES/Rijndael: Optimizations

- Base/Rijndael/AES: Comments updated.

- Base: removed __desctructor(). Re:
https://github.com/phpseclib/phpseclib/issues/107

- Base: setPassword() will use >= php-5.5's new (faster) hash_pbkdf2()
function if availalbe/possible. 100% compatible to the internal
implementation. Strong testet with all
hashes/iterations/lengths/ciphers.

- Rijndael: Runtime engine-switch: Will now use mcrypt (in case of
128/192/256-bit block/keys), if possible. Otherwise MODE_INTERNAL.

AES: Soucecode reducing. After all, now, AES.php is virtually nothing
other than a wrapper to Rijndael.php::new
Crypt_Rijndael()->setBlockLength(128). No different in speed or
functionality, but fixed block_size.
[feature/elliptic-curve] Use an instance of Crypt_Hash instead of sha1().
[feature/elliptic-curve] Assign a variable to Math_BigInteger(1).
[feature/elliptic-curve] Rename $q to $max because that's what it is.
[feature/elliptic-curve] Do not instantiate unnecessary $x instance.
[feature/elliptic-curve] Rename $p -> $prime
[feature/elliptic-curve] Specify prime data to BigInteger directly in base 16.
[feature/elliptic-curve] Associate the generator (decimal 2) with the prime.
[feature/elliptic-curve] Add comment for generator 2 and sha1 hash function.
SSH2: Update timeout functionality

Make it so Net_SSH2 doesn't close channel upon timeout. only if reset() is closed will channel be closed.
Also add isTimeout() function
Merge pull request #117 from bantu/elliptic-curve-preparation

Preparation for ECDH in SSH
BigInteger: refactor randomPrime somewhat