Commit Graph

5463 Commits

Author SHA1 Message Date
terrafrost
e546719a58 Merge branch '3.0' 2024-09-13 08:43:37 -05:00
terrafrost
5ec2d25ed4 SSH2: update error message for ppl not connecting to SSH servers 2024-09-13 08:41:54 -05:00
terrafrost
c06443411b Merge branch '3.0' 2024-09-08 08:07:59 -05:00
terrafrost
a5316b71f5 Hash: simplify sha512 code 2024-09-08 07:58:18 -05:00
terrafrost
e40321c882 Merge branch '3.0' 2024-09-08 07:40:08 -05:00
terrafrost
28866e826b Hash: fix for masks at upper boundary of what signed ints allow
on 64-bit PHP installs (1 << 63) - 1 == (1 << 63)

-1 ^ (-1 << 63) gives the correct result

on 32-bit PHP installs (1 << 31) - 1 returns a float and using the result as a bitmask yields this error on sufficiently new versions of PHP:

Deprecated: Implicit conversion from float -2147483649 to int loses precision

Explicitly casting (1 << 31) - 1 to an int yields the correct result but, then again, so does -1 ^ (-1 << 31) and that one is consistent with how it works on 64-bit PHP installs
2024-09-08 07:18:47 -05:00
terrafrost
e2174f3bf8 Merge branch '3.0' 2024-09-07 19:18:11 -05:00
terrafrost
8307eb3b01 CS adjustment 2024-09-07 19:17:38 -05:00
terrafrost
439ec74afc Merge branch '3.0' 2024-09-07 18:56:40 -05:00
terrafrost
614bd994b9 Hash: significantly speed up sha512/224 & sha512/256
at least on 64-bit PHP < 7.1 installs

previously hashing 0.5MB of data with sha512/224 would take 48.5s.
now it takes 0.72s.
2024-09-06 17:56:21 -05:00
terrafrost
d03090ae91 Merge branch '3.0' 2024-09-04 21:44:26 -05:00
terrafrost
301ef6bd18 Merge branch '2.0' into 3.0 2024-09-04 21:28:07 -05:00
terrafrost
a5a3aaa3d4 Merge branch '1.0' into 2.0 2024-09-04 21:25:34 -05:00
terrafrost
3e8ce2ba4b SSH2: if string is passed to setPreferredAlgorithms treat as array 2024-09-04 21:25:09 -05:00
terrafrost
9305e38de0 Merge branch '3.0' 2024-09-04 21:15:02 -05:00
terrafrost
e08decd0fe Hash: significantly speedup umac algorithms on 32-bit PHP installs
and cleanup the 64-bit algorithms
2024-08-27 21:31:15 -05:00
terrafrost
609d45284d CS adjustments 2024-08-25 20:27:50 -05:00
terrafrost
7364fc54e5 Merge branch '3.0' 2024-08-25 20:20:47 -05:00
terrafrost
12cd5f82b5 Merge branch 'sftp-extensions' 2024-08-25 20:15:09 -05:00
terrafrost
ce0aeec402 SFTP: backport statvfs() and posix_rename() from master branch 2024-08-25 20:10:38 -05:00
terrafrost
a8ed4be0ce Merge branch '3.0' 2024-08-25 18:15:33 -05:00
terrafrost
b500726ce8 Hash: rm unnecessary casting to int 2024-08-25 18:15:18 -05:00
terrafrost
ed378bb533 Merge branch '3.0' 2024-08-25 14:11:32 -05:00
terrafrost
70416554a4 Merge branch '2.0' into 3.0 2024-08-25 14:11:04 -05:00
terrafrost
778035aa71 SSH2: identification strings > 255 bytes didnt get parsed correctly 2024-08-25 14:08:42 -05:00
terrafrost
d69af52c7a CS adjustmentss 2024-08-25 05:31:50 -05:00
terrafrost
5679fc48db Merge branch '3.0' 2024-08-25 05:31:01 -05:00
terrafrost
7e699fb725 Hash: significantly speedup umac algorithms on 64-bit PHP installs
the same technique should be able to be used to speed up SHA512
on PHP < 7.1.0. PHP >= 7.1.0 doesn't benefit from the change
as there's no need for any pure PHP SHA512 implementation on those
versions
2024-08-25 05:30:29 -05:00
terrafrost
9c73d2d06d Merge branch '3.0' 2024-08-22 08:48:37 -05:00
terrafrost
e13a2628c5 Hash: umac's require a key; give a better error when one is missing 2024-08-22 08:47:36 -05:00
terrafrost
f1c010b799 Merge branch '3.0' 2024-08-20 08:39:49 -05:00
terrafrost
6897b947ea SSH2: priotize the umac algorithms down due to their slow speed
PHP's hash() method doesn't support them so they receive no
acceleration whereas the other algorithms can and do
2024-08-20 08:38:38 -05:00
terrafrost
394d15bf3a Merge branch '3.0' 2024-08-19 07:00:10 -05:00
terrafrost
dd2d8665f9
Merge pull request #2031 from rposky/ssh-disconnect-loop
Prevent loops during disconnect
2024-08-19 06:06:49 -05:00
terrafrost
93f9967d16 Merge branch '3.0' 2024-08-16 08:01:24 -05:00
terrafrost
d5931858b6 CHANGELOG: IEEEE -> IEEE 2024-08-16 08:01:09 -05:00
Sam Mousa
4d0b60db55
chore(docs): add docblocks for the new functions 2024-08-16 10:14:32 +02:00
Sam Mousa
b3931bd212
chore(cs): fix indentation changes not related to the feature 2024-08-16 10:08:11 +02:00
terrafrost
b408cec283 Merge branch '3.0' 2024-08-15 23:46:29 -05:00
terrafrost
94bd3ad078 SSH2: CS adjustments 2024-08-15 23:38:47 -05:00
terrafrost
72fbfb77fc Merge branch '3.0' 2024-08-15 23:32:40 -05:00
terrafrost
e2488749ae SFTP: add getSupportedExtensions() method 2024-08-15 23:32:10 -05:00
terrafrost
b11430c786 Merge branch '3.0' 2024-08-15 08:56:21 -05:00
terrafrost
25761222fe SSH2: enhance logging
log the time it took for fsockopen to connect and the time it took
for the SSH identification strings to be sent
2024-08-15 08:55:05 -05:00
Robert
c82594e222 Add DISCONNECT bitmap mask and use to prevent looping potential while disconnecting. Do not attempt disconnect packet send on closed socket. 2024-08-14 10:32:36 -04:00
Sam Mousa
a49f431bc1
chore: add tests fix cs 2024-08-13 11:20:30 +02:00
Sam Mousa
e071afdb2e
feat: add posix_rename and statvfs extensions 2024-08-13 09:41:43 +02:00
terrafrost
cdd87934cc Merge branch '3.0' 2024-08-11 19:14:09 -05:00
terrafrost
621c73f7dc CHANGELOG: add 3.0.41 release 2024-08-11 19:13:54 -05:00
terrafrost
87a5e5b472 Merge branch '3.0' 2024-08-11 19:12:43 -05:00