Commit Graph

383 Commits

Author SHA1 Message Date
Simon Podlipsky
97ea650dba fix: drop use of "self" in callable as it's deprecated since php 8.2 2022-12-17 08:49:29 -06:00
Jack Worman
985b3c4f7c Throw \phpseclib3\Exception\ExceptionInterface exceptions 2022-09-26 07:41:32 -05:00
terrafrost
535fa6c777 Merge branch '3.0' 2022-09-14 23:47:17 -05:00
terrafrost
65493ae3be Merge branch '2.0' into 3.0 2022-09-14 12:50:32 -05:00
terrafrost
73b149ea6d Merge branch '1.0' into 2.0 2022-09-13 23:59:59 -05:00
terrafrost
51cafda4a3 make PHP 8.1 32-bit changes compatable with raspberry pi's 2022-09-13 23:56:13 -05:00
terrafrost
0b9b0074c9 backport more dynamic property fixes 2022-08-23 20:01:11 -05:00
terrafrost
71fa541c9a Merge branch 'jworman' 2022-08-20 23:19:34 -05:00
terrafrost
a01c3915ce Merge branch '3.0' 2022-08-20 06:19:24 -05:00
terrafrost
13b241e3e9 use libsodium's hex (en|de)coding if available 2022-08-19 22:49:26 -05:00
Jack Worman
6958ba1627 php-cs-fixer @PHP81Migration rule set 2022-08-18 08:10:12 -05:00
Jack Worman
80f2d7f521 php-cs-fixer - php 7.4 rules 2022-08-18 08:10:08 -05:00
terrafrost
32e85c2145 Merge branch 'master' of https://github.com/phpseclib/phpseclib 2022-08-13 16:52:58 -05:00
Jonny Fonsato
5411695c0b
changed as mentioned by Terrafrost 2022-07-28 16:38:51 +02:00
Jonny Fonsato
a3ce8392fd
I have upgraded to php 8.2 with the tests running successfully 2022-07-28 16:30:54 +02:00
Jack Worman
510a93a50a Php 7.3
- Update php requirement to >=7.3
- Add php-cs-fixer rule: @PHP73Migration
2022-07-22 21:45:53 -05:00
Jack Worman
e210166f43 Php 7.1 Upgrade 2022-07-08 08:37:58 -05:00
Jack Worman
86ef8ef262 2nd round of comments 2022-07-02 16:47:49 -05:00
Jack Worman
97902d4bd3 Upgrade to PHP 7.0 2022-07-02 16:26:15 -05:00
terrafrost
0b3cc98084 BigInteger: fix behavior on 32-bit PHP installs 2022-06-26 17:07:45 -05:00
Jack Worman
8855351cbb Remove_@access 2022-05-04 01:35:56 -05:00
terrafrost
eabe4aa23f Merge branch '1.0' into 2.0 2022-04-26 09:02:46 -05:00
terrafrost
c22bf62ce1 BigInteger: tweak to the phpinfo checks 2022-04-26 08:54:19 -05:00
terrafrost
eb971aaaac BigInteger: fix deprecation notice 2022-03-18 12:47:40 -05:00
terrafrost
887cf97185 fix pslam error 2022-03-11 19:14:07 -06:00
terrafrost
f04a4e6fda fix error in PHP EvalBarrett Engine: 2022-03-11 18:38:01 -06:00
terrafrost
26d8f7a250 make it so BigIntegers can be JSON serialized 2022-03-10 20:26:46 -06:00
terrafrost
815aa23b39 BigInteger/Engines/BCMath: bcmod got a third param in PHP 7.2.0
the third parameter also isn't set in any other bcmod call and
isn't needed for bccomp anyway as
bccomp('0.000', '0') == bccomp('0', '0')
2022-03-10 05:24:30 -06:00
terrafrost
2f57517bad BigInteger/Engines/PHP: trim 0's when a precision is being used 2022-03-08 23:37:29 -06:00
terrafrost
824b232b47 BigInteger: add precision to __debugInfo 2022-03-08 20:53:18 -06:00
terrafrost
04e46cf656 CS adjustment 2022-03-03 17:44:41 -06:00
Jack Worman
9e321981a2 Psalm coverage for phpseclib3\Math\
Revert accidental change
2022-03-03 17:40:20 -06:00
Jack Worman
6bad45c016 Psalm coverage for phpseclib3\Math\ 2022-03-03 17:37:26 -06:00
Jack Worman
b6f93a4a21 Psalm coverage for phpseclib3\Math\
Psalm coverage for phpseclib3\Math\
2022-03-03 17:36:10 -06:00
Jack Worman
6f2db49696 Psalm coverage for phpseclib3\Math\
Psalm coverage for phpseclib3\Math\
2022-03-03 17:20:24 -06:00
Jack Worman
ea9f6540f3 PSR12 fixes
PSR12 fixes
2022-02-19 17:06:13 -06:00
Jack Worman
ef66d9f7dd php-cs-fixer ci
php-cs-fixer ci
2022-02-01 20:29:48 -06:00
Jack Worman
7c000843ab Corrected many @return annotations in phpseclib/Net
Corrected many @return annotations in phpseclib/Net
2022-01-23 11:00:41 -06:00
terrafrost
c60b0c3cc7 Merge branch '1.0' into 2.0 2021-12-26 02:23:57 -06:00
David Anderson
a9ed96833e
Check existence of phpinfo() before using 2021-12-21 14:19:00 +00:00
terrafrost
13881b09d4 Travis: add PHP 8.1 support
See https://bugs.php.net/75474#1509646645 for more info on the static
change
2021-12-11 10:19:39 -06:00
terrafrost
e5e21c114f BigInteger: code cleanup
generateCustomReduction() is called by slidingWindow() and
createRecurringModuloFunction(). i suspect this code was an early
attempt to implement what'd later become createRecurringModuloFunction()
2021-08-14 18:15:14 -05:00
terrafrost
5e290492d1 Serializable is being deprecated in PHP 8.1 2021-07-22 09:19:15 -05:00
terrafrost
05539a72be PrimeField: plug memory leaks 2021-07-10 13:24:33 -05:00
Kyle
0f77cf3a59 Allow string for BigInteger
In real life BigInteger are used to store number too big to be `int` so `string` is actually the natural type to use
2021-04-26 09:07:55 -05:00
terrafrost
aac5b0a74c Merge branch '1.0' into 2.0 2021-02-26 09:17:52 -06:00
terrafrost
b2b867f032 BigInteger: fix issue with toBits on 32-bit PHP 8 installs 2021-02-26 09:17:05 -06:00
terrafrost
b49203d5b9 BigInteger: big speedups for when OpenSSL is used 2021-01-26 23:13:40 -06:00
terrafrost
bdb6c08c35 misc docblock adjustments 2021-01-25 12:36:02 -06:00
terrafrost
7b7d254a6c rm docblock templates 2020-12-30 09:08:05 -06:00
terrafrost
a19b5b4ca8 update how @internal phpdoc attributes are used 2020-12-30 05:05:54 -06:00
William Desportes
5711e7fbe4
Fix phpdoc issues reported by Doctum 2020-09-12 10:14:54 +02:00
William Desportes
480af6b980
Merge branch '2.0' into 3.0 2020-09-09 10:46:22 +02:00
William Desportes
05f6467b1d
Merge branch '1.0' into 2.0 2020-09-09 09:56:23 +02:00
William Desportes
2ae683479a
Fix phpdoc errors 2020-09-09 09:43:26 +02:00
terrafrost
653dbd7f94 rename phpseclib/phpseclib to phpseclib/phpseclib3 for 3.0 branch 2019-11-21 19:38:03 -06:00
terrafrost
677a15c122 Merge branch '2.0' 2019-09-15 17:31:53 -05:00
terrafrost
bd6dbd0695 Merge branch '1.0' into 2.0 2019-09-15 17:20:11 -05:00
terrafrost
11fea7d004 fix bug with toBytes() with fixed precision negative numbers 2019-09-15 17:19:35 -05:00
terrafrost
0c6ae076bb Merge branch '1.0' into 2.0 2019-08-03 09:07:59 -05:00
terrafrost
6ae67ef790 BigInteger: fix PHP 7.4 deprecations 2019-08-03 08:58:51 -05:00
terrafrost
7012e72488 mv Keys/ and Signature/ to Formats/* 2019-06-25 07:52:45 -05:00
terrafrost
640e3788f4 Merge branch '2.0' 2019-06-23 11:33:59 -05:00
terrafrost
d6819a55b0 Merge branch '1.0' into 2.0 2019-06-23 11:33:11 -05:00
terrafrost
9e27b4305e BigInteger: !count -> count 2019-06-23 11:32:46 -05:00
terrafrost
33ed294b76 Merge branch '2.0' 2019-06-23 11:14:17 -05:00
terrafrost
bad47d9b00 Merge branch '1.0' into 2.0 2019-06-23 11:13:09 -05:00
terrafrost
4af1bb4c17 BigInteger: the !== [] check only works on PHP 5.4+ 2019-06-23 11:12:17 -05:00
Remi Collet
25469cb98f fix compat with 5.3 2019-06-21 09:25:24 +02:00
terrafrost
84b852933e Merge branch '2.0' 2019-06-19 22:36:18 -05:00
terrafrost
d2085db7b7 Merge branch '1.0' into 2.0 2019-06-19 22:34:11 -05:00
terrafrost
5e9d05a9f4 BigInteger: fix issues with divide method 2019-06-19 22:29:31 -05:00
terrafrost
337b41f865 Merge branch 'master' into immutable-keys 2019-05-26 22:51:40 -05:00
terrafrost
3ca5b88d58 Merge branch '1.0' into 2.0 2019-05-26 15:38:34 -05:00
terrafrost
677ae387b0 BigInteger: backport GMP fixes from master branch 2019-05-26 15:38:18 -05:00
terrafrost
10f79a86af BigInteger: fix for BigInteger('-0') 2019-05-26 15:35:28 -05:00
terrafrost
fae6542efc Merge branch '1.0' into 2.0 2019-05-26 12:17:27 -05:00
terrafrost
8b76e96b83 BigInteger: GMP engine didn't always return 1 or -1 2019-05-26 12:14:44 -05:00
terrafrost
77ffe153a0 Merge branch '1.0' into 2.0 2019-05-26 11:42:01 -05:00
terrafrost
9c67616f1e BigInteger: new BigInteger('00') caused issues with GMP 2019-05-26 11:41:42 -05:00
terrafrost
64542e699f BigInteger: GMP engine didn't always return 1 or -1 2019-05-24 21:45:59 -05:00
terrafrost
cc32cd2e95 make RSA / DSA / ECDSA immutable and add support to SSH2 / X509 2019-05-19 15:35:29 -05:00
terrafrost
75f51fc8cc BigInteger: make the bitwise methods better handle negative numbers 2019-04-10 06:53:00 -05:00
terrafrost
31c10f39e5 BigInteger/GMP: negative base-256 numbers didn't load correctly 2019-04-09 20:42:18 -05:00
terrafrost
114dc17f5b BigInteger: toBits(true) wasn't working correctly 2019-04-08 08:02:48 -05:00
terrafrost
44a56b8a1f BinaryField: fix issue with negate 2019-01-07 08:06:10 -06:00
terrafrost
c53ca28b25 BinaryField: CS adjustment 2019-01-07 06:42:00 -06:00
terrafrost
de63198197 PrimeField: docblock cleanup 2019-01-07 06:34:00 -06:00
terrafrost
4ae33f9bde BinaryField: speed up multiplication for GCM and smaller curves 2019-01-07 06:33:11 -06:00
terrafrost
01c92a59f8 add support for Galois/Counter Mode (GCM) 2018-12-27 08:31:35 -06:00
terrafrost
479fa4ce3d BigInteger: add getEngine() static method 2018-12-02 10:58:07 -06:00
terrafrost
b4ef9a1cae BigInteger: random() would error out if a BigInteger wasn't defined 2018-12-02 10:41:24 -06:00
terrafrost
0398f7a815 add ECDSA / EdDSA support 2018-11-19 12:39:21 -06:00
terrafrost
016b252bbb Merge branch '2.0' 2018-10-08 07:36:04 -05:00
terrafrost
3e41dc7c07 Merge branch '1.0' into 2.0 2018-10-08 07:35:56 -05:00
terrafrost
f2d92cd4b2 BigInteger: rm pear.php.net link 2018-10-08 07:35:36 -05:00
terrafrost
ab270d1602 Merge branch '2.0' 2018-04-10 00:19:49 -05:00
terrafrost
4548b45b9e Merge branch '1.0' into 2.0 2018-04-09 23:57:25 -05:00
terrafrost
c63c223972 BigInteger: fix for (new BigInteger(48))->toString(true) 2018-04-09 23:47:38 -05:00
terrafrost
a3081aa7f8 Merge branch 'master' of https://github.com/phpseclib/phpseclib 2018-04-03 20:30:27 -05:00