Commit Graph

345 Commits

Author SHA1 Message Date
terrafrost
2689c727e7 BigInteger: EvalBarrett / Barrett could sometimes slow to a crawl 2024-05-01 15:12:04 -05:00
terrafrost
a922309855 BigInteger: optimize getLength() 2024-02-24 14:26:29 -06:00
terrafrost
0358eb163c Merge branch '2.0' into 3.0 2024-02-24 08:38:47 -06:00
terrafrost
2124f399b4 BigInteger: rm visibility modifiers from static variables
the non static variables don't have privacy modifiers so idk that
the static ones ought to either. phpseclib 3.0 uses privacy
modifiers but not the 2.0 branch
2024-02-23 21:55:47 -06:00
terrafrost
e46ef4cdf7 Merge branch '1.0' into 2.0 2024-02-23 19:15:25 -06:00
terrafrost
ad5dbdf212 BigInteger: put guardrails on isPrime() and randomPrime() 2024-02-23 08:57:22 -06:00
terrafrost
1513383a8c BigInteger/Engines/PHP: Windows JIT impl issue has been resolved 2023-11-24 06:01:28 -06:00
terrafrost
964d78101a Math/BinaryField: fix for excessively large degrees 2023-11-21 19:10:46 -06:00
terrafrost
5b27f8f26e CS adjustments 2023-11-01 20:30:35 -05:00
terrafrost
ce753669bc PrimeField: fix error with squareRoot method 2023-10-31 08:47:58 -05:00
Daniil Gentili
7b9ab171ce
Refactor 2023-09-22 10:07:03 +02:00
Daniil Gentili
e113bb35e7
Move JIT check to BigInteger 2023-09-20 14:36:32 +02:00
terrafrost
615d6cfc7c BigInteger: fix more PHP32-bit errors 2023-08-31 09:28:16 -05:00
terrafrost
25a06f0071 Math/PrimeField: fix for when garbage collection has wiped data 2023-07-26 21:34:39 -05:00
terrafrost
f01892a9db BigInteger: use GMP if it's available 2023-07-25 20:32:42 -05:00
terrafrost
0740d58136 BigInteger: do PHP64 w/ OpenSSL before BCMath w/ OpenSSL 2023-07-09 08:51:55 -05:00
terrafrost
249d17f921 BigInteger: BCMath w/o OpenSSL should never be reached 2023-07-09 00:37:53 -05:00
terrafrost
37c6f5255c BigInteger: update engine preferences 2023-07-08 13:27:16 -05:00
terrafrost
bc8e0ed636 BigInteger: speed up powMod() method 2023-06-25 10:03:16 -05:00
Simon Podlipsky
530f8ab210 feat: add return types to few jsonSerialize() 2023-03-03 14:54:56 -06:00
Simon Podlipsky
c053b895c8 style: add newline at end of BigInteger.php file 2023-03-03 14:23:02 -06:00
terrafrost
6298d1cd55 PrimeField: prevent infinite loop with composite primefields 2023-03-02 03:25:08 -06:00
terrafrost
1b1e729632 backport enhancements from the 2.0 branch 2023-02-11 22:20:03 -06:00
terrafrost
d3e72bd1fc Merge branch '2.0-github-actions' into 3.0 2023-02-11 20:40:52 -06:00
terrafrost
e42185c672 BigInteger: fix for hex numbers with new lines in them 2023-02-11 19:08:08 -06:00
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
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
13b241e3e9 use libsodium's hex (en|de)coding if available 2022-08-19 22:49:26 -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