Commit Graph

4858 Commits

Author SHA1 Message Date
terrafrost
f5113e1352 SSH2: rm extra_packets in a few more places 2024-11-22 17:23:31 -06:00
terrafrost
e81fd6899b SSH2: rm changes i made for debugging 2024-11-22 17:13:52 -06:00
terrafrost
614d8ae88c Merge branch '2.0' into 3.0 2024-11-22 17:13:39 -06:00
terrafrost
99572879b2 Merge branch '1.0' into 2.0 2024-11-22 17:12:21 -06:00
terrafrost
6f4af7ee05 SSH2: extra_packets is no longer used 2024-11-22 17:12:10 -06:00
terrafrost
dcd4b2a034 Merge branch '2.0' into 3.0 2024-11-22 16:54:19 -06:00
terrafrost
53645af893 Merge branch '1.0' into 2.0 2024-11-22 16:32:36 -06:00
terrafrost
b38e84972d SSH2: don't count len of packets sent / rcvd during key exchange 2024-11-22 16:31:06 -06:00
terrafrost
b966aa2536 Merge branch '1.0' into 2.0 2024-11-22 14:54:47 -06:00
terrafrost
ccf4b488e8 SSH2: PHP didn't support constant expressions until PHP 5.6 2024-11-22 14:54:16 -06:00
terrafrost
0b9fd56b6f Merge branch '1.0' into 2.0 2024-11-22 14:40:40 -06:00
terrafrost
7f31a1e3e6 SSH2: make it so phpseclib initiates key re-exchange after 1GB 2024-11-22 14:29:20 -06:00
terrafrost
f7714a529e Merge branch '2.0' into 3.0 2024-11-14 20:14:52 -06:00
terrafrost
57450591e3 Merge branch '1.0' into 2.0 2024-11-14 20:14:04 -06:00
terrafrost
2b3d219fb4 SSH2: update setPreferredAlgorithms() to accept csv's 2024-11-14 20:13:31 -06:00
terrafrost
c0f74b21d6 Merge branch '2.0' into 3.0 2024-10-26 08:53:26 -05:00
terrafrost
97a5d4f1e8 Merge branch '1.0' into 2.0 2024-10-26 08:53:12 -05:00
terrafrost
40e13eff99 BACKERS: add ssddanbrown - thanks!! 2024-10-26 08:52:56 -05:00
terrafrost
c228cc002b X509: add getRequestedCertificateExtensions() 2024-10-01 17:56:59 -05:00
terrafrost
1d594b65e6 Tests: new CSR encoding broke another unit test 2024-09-30 05:00:58 -05:00
terrafrost
eebe2a88b4 Merge branch '2.0' into 3.0 2024-09-30 04:56:39 -05:00
terrafrost
7ee9f87846 Tests: add unit test for attributes 2024-09-30 04:40:33 -05:00
terrafrost
418965da38 Merge branch '1.0' into 2.0 2024-09-30 04:29:45 -05:00
terrafrost
c6ff35a494 X509: make the attributes section of new CSRs be blank 2024-09-30 04:29:10 -05:00
terrafrost
41c78a7d36 PKCS8: Ed25519 / Ed448 pub keys couldn't be saved as DER 2024-09-25 23:13:33 -05:00
terrafrost
a3ef82e281 PKCS8: make it so keys can be saved as PEMs or DERs 2024-09-25 21:54:55 -05:00
terrafrost
fb3aa8d8ab Merge branch '2.0' into 3.0 2024-09-25 18:03:15 -05:00
terrafrost
be7ecd3456 Merge branch '1.0' into 2.0 2024-09-25 18:03:06 -05:00
terrafrost
9f1602e64c CHANGELOG: add entries for 0.2.1, 0.2.0, 0.1.5 and 0.1.1
using release notes from https://web.archive.org/web/20101215043248/http://freshmeat.net/projects/phpseclib
2024-09-25 18:01:31 -05:00
terrafrost
826b4cb582 don't run unit tests on PHP 5.6
phpseclib 3.0 still nominally supports PHP 5.6 but i'm tired of seeing
unit tests fail because of issues i can't reproduce on my own local
PHP 5.6 install.

this isn't without precident.phpseclib 1.0 nominally supports PHP 4.4,
as well, but it's not unit tested on PHP 4.4. for that one, if someone
has an issue with PHP 4.4 they're free to report it on github. PHP 5.6
will henceforth work that way for phpseclib 3.0.
2024-09-24 22:21:02 -05:00
terrafrost
c3cd458bcf BigInteger: speed up Barrett reductions
the changes for #1994 (commit 2689c727) slowed things down
unnecessarily.
2024-09-24 06:37:52 -05:00
terrafrost
db92f1b198 CHANGELOG: add 3.0.42 release 2024-09-15 22:06:04 -05:00
terrafrost
1dba4262e9 X509: CRL default version should be v1 - not v2 2024-09-15 21:45:40 -05:00
terrafrost
d84925124d Merge branch '2.0' into 3.0 2024-09-15 21:43:31 -05:00
terrafrost
567a439152 Merge branch '1.0' into 2.0 2024-09-15 21:43:24 -05:00
terrafrost
f23b6d583b X509: CRL fixes 2024-09-15 21:43:11 -05:00
terrafrost
c8da4c50d5 SFTP: refactor posix_rename() somewhat 2024-09-15 14:03:35 -05:00
terrafrost
89f2385a6a CS adjustment 2024-09-15 13:40:16 -05:00
terrafrost
79ab7c1f8e SFTP: make posix_rename work on SFTP v5+ 2024-09-15 13:33:51 -05:00
terrafrost
5ec2d25ed4 SSH2: update error message for ppl not connecting to SSH servers 2024-09-13 08:41:54 -05:00
terrafrost
a5316b71f5 Hash: simplify sha512 code 2024-09-08 07:58:18 -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
8307eb3b01 CS adjustment 2024-09-07 19:17:38 -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
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
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
ce0aeec402 SFTP: backport statvfs() and posix_rename() from master branch 2024-08-25 20:10:38 -05:00
terrafrost
b500726ce8 Hash: rm unnecessary casting to int 2024-08-25 18:15:18 -05:00