terrafrost
2f8d1055ea
Use OpenSSL for Math_BigInteger::modPow speedups
...
Also, make Crypt_RSA's public keys compatible with OpenSSL and make it so __toString will return the key even when it's the public key that's loaded and it hasn't been set as the public key.
2012-08-26 01:36:34 -05:00
terrafrost
4eaf6db3ab
- fix for PEAR bug # 19494
2012-07-07 17:24:45 -05:00
Andreas Fischer
eb64dfef7d
[feature/consistent-file-endings] Make sure files have empty line at the end.
2012-06-11 10:34:07 +02:00
Jim Wigginton
a1f3ee7b69
- fix potential E_NOTICE in modInverse (thanks bantu!)
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@183 21d32557-59b3-4da0-833f-c5933fad653e
2011-11-07 02:27:01 +00:00
Jim Wigginton
392d96445e
- add support for PuTTY and XML formatted RSA keys
...
- remove ?>'s from PHP_Compat files
- update LICENSE block
- make it so NET_SSH2_MSG_USERAUTH_PK_OK records direction and time
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@152 21d32557-59b3-4da0-833f-c5933fad653e
2011-04-18 12:17:40 +00:00
Jim Wigginton
b94a467999
- change license to the less restrictive MIT license (if people want to modify phpseclib and distribute binaries of it [whatever that means for PHP] without including the source code I don't care); two of the three PHP_Compat stuff still uses the LGPL since I didn't author them but they're only needed, anyway, if you're using phpseclib on PHP4.
...
- add svn:eol-style: LF to all files
- fixed pear.php.net bug # 18037 (thanks, nounours!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@130 21d32557-59b3-4da0-833f-c5933fad653e
2010-11-13 19:28:20 +00:00
Jim Wigginton
19cc43cc16
- fixed pear.php.net bug # 18015 (thanks, nounours!)
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@129 21d32557-59b3-4da0-833f-c5933fad653e
2010-10-31 01:05:29 +00:00
Jim Wigginton
1983dd5649
- added parenthesis to two @see phpdoc comments
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@97 21d32557-59b3-4da0-833f-c5933fad653e
2010-03-22 22:32:03 +00:00
Jim Wigginton
71b960d082
- updated some comments
...
- fixed an E_NOTICE (thanks, Brion Vibber!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@96 21d32557-59b3-4da0-833f-c5933fad653e
2010-03-22 22:01:38 +00:00
Jim Wigginton
1539cd4a01
- the triple equals in Math_BigIinteger::equals() made it so float(1) != int(1), so all instances where float(1) might occur have been removed
...
- Crypt_RSA::_blind() should now be faster.
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@95 21d32557-59b3-4da0-833f-c5933fad653e
2010-03-01 17:28:19 +00:00
Jim Wigginton
748983a824
- speed up BigInteger.php
...
- added support for more public / private key formats (thanks, m4rc!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@91 21d32557-59b3-4da0-833f-c5933fad653e
2010-02-26 03:40:26 +00:00
Jim Wigginton
d574a6770e
- rewrote randomPrime()
...
- fixed a bug in Math_BigInteger::equals() that only manifests itself when the bcmath extension is used
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@90 21d32557-59b3-4da0-833f-c5933fad653e
2010-02-21 07:45:31 +00:00
Jim Wigginton
ea4fd863d4
bcscale($x), for $x > 0, made this library produce bad results
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@82 21d32557-59b3-4da0-833f-c5933fad653e
2010-02-07 01:54:51 +00:00
Jim Wigginton
4304494119
- removed more debug code
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@80 21d32557-59b3-4da0-833f-c5933fad653e
2010-01-26 23:57:27 +00:00
Jim Wigginton
1841949aaf
- removed debug code
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@78 21d32557-59b3-4da0-833f-c5933fad653e
2010-01-23 17:36:49 +00:00
Jim Wigginton
3ec7bdfcba
- fixed a PHP5.3 warning in Net/SSH2.php
...
- fixed a bug introduced in the rewritten addition function
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@77 21d32557-59b3-4da0-833f-c5933fad653e
2010-01-21 07:33:05 +00:00
Jim Wigginton
a8f0567527
- sped up Math_BigInteger
...
- fixed a bug whereby partial RSA keys didn't function properly (thanks, CountZero!)
- fixed a bug that prevented setPrecision from working correctly with non multiples of eight
- fixed a few E_NOTICEs
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@76 21d32557-59b3-4da0-833f-c5933fad653e
2010-01-21 00:52:11 +00:00
Jim Wigginton
b1787c1529
- the previous fix i implemented for _barrett() when the modulo has an odd number of digits didn't always work
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@75 21d32557-59b3-4da0-833f-c5933fad653e
2010-01-05 18:38:02 +00:00
Jim Wigginton
7ecd481002
- fixes to Math_BigInteger::_barrett()
...
- speed ups based on <http://blog.libssh2.org/index.php?/archives/21-Compiled-Variables.html >.
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@74 21d32557-59b3-4da0-833f-c5933fad653e
2010-01-04 07:59:01 +00:00
Jim Wigginton
e16ba96789
- fixed a few E_NOTICE errors
...
- sped up Math_BigInteger::_barrett()
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@73 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-31 06:11:07 +00:00
Jim Wigginton
8ea5e6883f
- replace \x96 with \x2d
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@72 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-14 23:47:15 +00:00
Jim Wigginton
99c0e29fdf
- fixed a bug in isPrime (thanks greyhoundx!)
...
- Net_SSH2::exec() should now be faster
- better channel management
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@70 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-14 18:14:54 +00:00
Jim Wigginton
2da66fdd24
- toBits() didn't limit the size of the output when the precision was set
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@64 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-04 19:12:18 +00:00
Jim Wigginton
a882a3a41f
- added Crypt_RSA
...
- added RSA public key authentication to Net_SSH2
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@62 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-03 08:19:00 +00:00
Jim Wigginton
a4e72f7811
- replaced list(...) = unpack('...') calls with extract(unpack('...')) (thanks martinu!)
...
- added pure-php implementations of md2, sha256, and sha512 to Crypt_Hash
- added setPrecision() to Math_BigInteger
- other small fixes
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@56 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-23 19:06:07 +00:00
Jim Wigginton
d7da8972ab
- fixed a few E_NOTICE errors
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@55 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-04 17:23:58 +00:00
Jim Wigginton
839ea8c18b
- speed improvements
...
- added several new functions: isPrime(), randomPrime(), setRandomGenerator(), equals(), and toHex()
- fixed a bug in divide()
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@53 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-03 22:00:10 +00:00
Jim Wigginton
672390d159
- fixed an error where, under rare conditions, addition could yield bad results
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@52 21d32557-59b3-4da0-833f-c5933fad653e
2009-10-28 16:16:00 +00:00
Jim Wigginton
91a9079cf9
- apparently some systems can't handle floating point numbers defined directly (thanks, sjarkie!)
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@48 21d32557-59b3-4da0-833f-c5933fad653e
2009-10-02 21:34:13 +00:00
Jim Wigginton
23c41a60e8
- fixed two E_NOTICE errors in Math_BigInteger (thanks, arr2036!)
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@45 21d32557-59b3-4da0-833f-c5933fad653e
2009-09-02 19:20:48 +00:00
Jim Wigginton
84cffb3c02
- fixed another potential E_NOTICE error (thanks, Wang Xiaoguang!)
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@44 21d32557-59b3-4da0-833f-c5933fad653e
2009-08-30 15:10:05 +00:00
Jim Wigginton
9194759d58
- cosmetic changes to the code
...
- encryption should work even when setKey() isn't called
- padding wasn't always done when it should have been
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@33 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-27 16:15:23 +00:00
Jim Wigginton
0258f565b5
- added support for 'none' encryption
...
- fixed a bug that would cause large ssh packets to error out
- added placeholders for compression support (PHP's zlib functions are insufficient)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@31 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-16 17:09:37 +00:00
Jim Wigginton
8b02a6bf55
- precission -> precision (php.net bug # 16027)
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@28 21d32557-59b3-4da0-833f-c5933fad653e
2009-04-18 14:57:54 +00:00
Jim Wigginton
736bfab276
- fix E_NOTICE notices
...
- renamed hmac() -> hash() in SSH2.php
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@23 21d32557-59b3-4da0-833f-c5933fad653e
2009-02-26 17:25:03 +00:00
Jim Wigginton
a8e70cbaa5
- forgot to add AES
...
- added __toString() to BigInteger.php (thanks, Techie-Michael!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@22 21d32557-59b3-4da0-833f-c5933fad653e
2009-02-16 23:11:01 +00:00
Jim Wigginton
01c841a0a0
- replaced "\t" with " "
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@17 21d32557-59b3-4da0-833f-c5933fad653e
2008-05-25 07:28:57 +00:00
Jim Wigginton
2dcde34387
- fixed php.net bug 13324 - Method BigInteger::bitwise_or produces wrong result
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@10 21d32557-59b3-4da0-833f-c5933fad653e
2008-03-12 22:03:08 +00:00
Jim Wigginton
df0fe2386a
- added SSH2.php and HMAC.php
...
- fixed issue with the IV's in TripleDES.php and DES.php
- fixed decryption in TripleDES.php using CRYPT_DES_MODE_INTERNAL
- renamed CRYPT_DES_MODE_SSH to CRYPT_DES_MODE_3CBC
- added CRYPT_DES_MODE_CBC3 as an alias for CRYPT_DES_MODE_CBC
- fixed issue with RC4.php using CRYPT_RC4_MODE_MCRYPT
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@4 21d32557-59b3-4da0-833f-c5933fad653e
2007-07-23 05:21:39 +00:00
Jim Wigginton
367ddebf80
- initial commit
...
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@3 21d32557-59b3-4da0-833f-c5933fad653e
2007-07-02 04:19:55 +00:00