Jack Worman
985b3c4f7c
Throw \phpseclib3\Exception\ExceptionInterface exceptions
2022-09-26 07:41:32 -05:00
Jack Worman
80f2d7f521
php-cs-fixer - php 7.4 rules
2022-08-18 08:10:08 -05: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
97902d4bd3
Upgrade to PHP 7.0
2022-07-02 16:26:15 -05:00
Jack Worman
8855351cbb
Remove_@access
2022-05-04 01:35:56 -05:00
terrafrost
eb971aaaac
BigInteger: fix deprecation notice
2022-03-18 12:47:40 -05:00
terrafrost
26d8f7a250
make it so BigIntegers can be JSON serialized
2022-03-10 20:26:46 -06:00
Jack Worman
6bad45c016
Psalm coverage for phpseclib3\Math\
2022-03-03 17:37:26 -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
terrafrost
5e290492d1
Serializable is being deprecated in PHP 8.1
2021-07-22 09:19:15 -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
a19b5b4ca8
update how @internal phpdoc attributes are used
2020-12-30 05:05:54 -06: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
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
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
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
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
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
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
114dc17f5b
BigInteger: toBits(true) wasn't working correctly
2019-04-08 08:02:48 -05: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
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
Wes
d4a98457bc
Check phpinfo() is available before using
...
Fixes an issue I raised at https://github.com/phpseclib/phpseclib/issues/1255
Proof of logic at https://3v4l.org/RqrHt
I ended up moving more code than discussed in the issue - initially to avoid `$content` being undefined when it came to `preg_match_all()`, but also as it made sense grouping the code that way. Also, initialising `$versions` outside the check, right at the start ensures it's always defined for the `switch` code further down.
2018-03-24 11:05:16 +00:00
luz.paz
380517ef00
Misc. trivial typos
...
Found via `codespell -q 3`
2018-03-03 07:07:14 -05:00
terrafrost
364e05babf
Merge branch '1.0' into 2.0
2018-01-22 07:22:29 -06:00
terrafrost
92623daba8
BigInteger: fix issues with bitwise_xor
2018-01-22 00:38:42 -06:00
Sokolovskyy Roman
c705e7d9c6
Add PhpDoc @var for extract() functions
2017-12-04 11:11:43 +01:00
terrafrost
cd58e3be1d
Merge branch '1.0-is-prime' into 2.0-is-prime
2017-11-22 19:50:49 -06:00
terrafrost
5ba61146e6
BigInteger: adjustment to isPrime
2017-11-22 19:49:55 -06:00