Commit Graph

2123 Commits

Author SHA1 Message Date
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
0d69655512 - rm var $timeout
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@71 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-14 18:17:36 +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
8379f46a77 _mgf1() shouldn't be using $this->hLen
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@69 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-08 14:18:59 +00:00
Jim Wigginton
315dec9dc5 - loadKey returns false on failure and true on success (thanks, seriksen!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@68 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-07 23:22:05 +00:00
Jim Wigginton
9bd3c793d3 - an inability to unpad doesn't necessarily mean that padding is enabled when it shouldn't be - it might also mean that the key being used is the wrong one.
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@67 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-06 07:26:52 +00:00
Jim Wigginton
793a355862 typo
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@66 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-04 21:05:32 +00:00
Jim Wigginton
a7a41ff610 $this->publicKey -> $this->publicExponent
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@65 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-04 20:50:21 +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
4fb22b711a - typo
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@63 21d32557-59b3-4da0-833f-c5933fad653e
2009-12-03 19:04:10 +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
ec75e4fc32 - fixed a bug in mkdir() that'd result in some Warnings
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@61 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-26 20:12:17 +00:00
Jim Wigginton
9336c7f20d - $server_cookie can be assigned directly
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@60 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-26 06:41:34 +00:00
Jim Wigginton
5d1f459db7 - when uploading a file that already exists on the server, the file on the server is now truncated to zero (thanks, guir!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@59 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-25 20:05:41 +00:00
Jim Wigginton
239f48cc6c - added a missing break
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@58 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-23 23:37:07 +00:00
Jim Wigginton
4fd4601ed8 - rm bin2hex() call in _md2()
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@57 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-23 22:03:08 +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
f50e880c41 - accommodate new Math_BigInteger updates
- fix a typo in Crypt_Rijndael's comments


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@54 21d32557-59b3-4da0-833f-c5933fad653e
2009-11-03 22:03:43 +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
bf6787dd07 - getLog() returns additional debug info
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@51 21d32557-59b3-4da0-833f-c5933fad653e
2009-10-17 03:49:16 +00:00
Jim Wigginton
1284a0d7d8 - fixed a bug involving server / client channel assignments
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@50 21d32557-59b3-4da0-833f-c5933fad653e
2009-10-16 03:37:24 +00:00
Jim Wigginton
65119f79d7 - small cosmetic issues
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@49 21d32557-59b3-4da0-833f-c5933fad653e
2009-10-07 20:53:19 +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
8b1265d27c - fixed an issue where by the modulos used in diffie-hellman key exchange could be off (thanks, sjarkie!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@47 21d32557-59b3-4da0-833f-c5933fad653e
2009-09-18 20:14:16 +00:00
Jim Wigginton
6516ba29a6 - better packet handling
- (hopefully) faster SFTP uploads


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@46 21d32557-59b3-4da0-833f-c5933fad653e
2009-09-17 03:19:20 +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
df8844d12b - logs now contain timing information
- fixed a potential E_NOTICE error (thanks, Wang Xiaoguang!)


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@43 21d32557-59b3-4da0-833f-c5933fad653e
2009-08-29 19:23:25 +00:00
Jim Wigginton
5025807abf - fixed two E_NOTICE issues (thanks, amer and inventor!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@42 21d32557-59b3-4da0-833f-c5933fad653e
2009-08-23 03:40:50 +00:00
Jim Wigginton
a90471b937 - fixed a few bad constants (thanks, YeongGwon Jeong!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@41 21d32557-59b3-4da0-833f-c5933fad653e
2009-08-09 03:53:28 +00:00
Jim Wigginton
d6339e014f - Net_SFTP now has better support for uploading large files than it did before, per this:
http://www.frostjedi.com/phpbb/viewtopic.php?f=46&t=10415


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@40 21d32557-59b3-4da0-833f-c5933fad653e
2009-06-09 04:00:38 +00:00
Jim Wigginton
039cd313ee - 0x7777 -> 07777
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@39 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-30 16:48:42 +00:00
Jim Wigginton
23bfbd6a29 - Net_SFTP::chmod() called an undefined function
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@38 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-30 16:45:23 +00:00
Jim Wigginton
d1cacdf86f - Net_SSH2::login() didn't always return true when it should have
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@37 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-30 16:40:31 +00:00
Jim Wigginton
41784adbc7 - attempting to connect to an invalid host yielded an inappropriate number of errors
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@36 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-30 15:46:32 +00:00
Jim Wigginton
ed39f723c9 - xor swap doesn't work when you're swapping elements with themselves
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@35 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-27 21:36:53 +00:00
Jim Wigginton
c17f22ead9 - Crypt_Rijndael has issues when setKey() isn't called, as well
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@34 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-27 16:25:35 +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
d365b7a587 - added SFTP support
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@32 21d32557-59b3-4da0-833f-c5933fad653e
2009-05-23 14:42:17 +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
3d88765f1d - removed debug code
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@30 21d32557-59b3-4da0-833f-c5933fad653e
2009-04-28 02:56:34 +00:00
Jim Wigginton
ce238827fd - fixed a bug in getLog()
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@29 21d32557-59b3-4da0-833f-c5933fad653e
2009-04-27 20:13:29 +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
f65f2983b7 added Net_SSH2::getLog()
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@27 21d32557-59b3-4da0-833f-c5933fad653e
2009-03-25 22:29:42 +00:00
Jim Wigginton
c369990f77 - "Some systems may not implement signals, in which case they SHOULD ignore [them]."
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@26 21d32557-59b3-4da0-833f-c5933fad653e
2009-03-23 22:44:51 +00:00
Jim Wigginton
01ddc53c6d - update phpDoc comments for Net_SSH1::interactiveRead()
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@25 21d32557-59b3-4da0-833f-c5933fad653e
2009-03-09 22:00:17 +00:00
Jim Wigginton
1eb6ac05c0 $x & 3 == 1 is the same thing as $x & (3 == 1) per php's order of precidence
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@24 21d32557-59b3-4da0-833f-c5933fad653e
2009-03-09 05:13:24 +00:00