1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 12:44:38 +01:00
Commit Graph

56 Commits

Author SHA1 Message Date
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
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
39de68ab48 - [bug] Crypt_Rijndael calculated IVs incorrectly
- [new] renamed Crypt_HMAC to Crypt_Hash and revised the API
- [new] added Crypt_AES
- [new] added AES support to Net_SSH2


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@21 21d32557-59b3-4da0-833f-c5933fad653e
2009-02-16 22:22:13 +00:00
Jim Wigginton
c30f3b7e9a - pure-PHP implementation of Rijndael
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@20 21d32557-59b3-4da0-833f-c5933fad653e
2009-02-01 15:37:25 +00:00
Jim Wigginton
a78d7df660 - if padding is disabled and the length of the text-to-be-encrypted isn't a multiple of the block size, padding will be automatically enabled
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@19 21d32557-59b3-4da0-833f-c5933fad653e
2008-08-04 17:59:12 +00:00
Jim Wigginton
69c639d845 - fixed a bug whereby a second Net_SSH2() object couldn't be created (the sequence numbers weren't being reset)
- fixed a bug whereby SSH_MSG_DISCONNECT messages wouldn't be handled correctly
- other small changes


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@18 21d32557-59b3-4da0-833f-c5933fad653e
2008-05-26 19:42: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
943f329197 - pack should be unpack
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@16 21d32557-59b3-4da0-833f-c5933fad653e
2008-05-21 05:15:32 +00:00
Jim Wigginton
081ee34e39 - updated comment
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@15 21d32557-59b3-4da0-833f-c5933fad653e
2008-05-21 04:28:09 +00:00
Jim Wigginton
ad5bc5a1ef - fix phpdoc comment for _disconnect function
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@14 21d32557-59b3-4da0-833f-c5933fad653e
2008-05-15 17:46:51 +00:00
Jim Wigginton
148178da63 *** empty log message ***
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@13 21d32557-59b3-4da0-833f-c5933fad653e
2008-05-15 17:40:03 +00:00
Jim Wigginton
81413b9da0 - added $timeout variable
- added destructor to Net_SSH2


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@12 21d32557-59b3-4da0-833f-c5933fad653e
2008-05-15 16:33:08 +00:00
Jim Wigginton
6101b23a32 - fixed a bug discovered by MarkDHamill (see http://www.frostjedi.com/phpbb/viewtopic.php?f=46&t=9796)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@11 21d32557-59b3-4da0-833f-c5933fad653e
2008-03-31 00:49:09 +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
890ae4db4a - added sha1-96 and md5-96
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@9 21d32557-59b3-4da0-833f-c5933fad653e
2007-09-23 04:41:39 +00:00
Jim Wigginton
79944da3ed - split off some of _get_binary_packet to _filter in SSH2.php
- updated URL to SSH-1 specs in SSH1.php


git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@8 21d32557-59b3-4da0-833f-c5933fad653e
2007-07-26 14:53:45 +00:00
Jim Wigginton
29ee82e67b - updated URL
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@7 21d32557-59b3-4da0-833f-c5933fad653e
2007-07-25 21:56:14 +00:00