Andreas Fischer
2013a31ecd
Use phpcbf to fix PHP code to ruleset.
2015-07-17 12:57:41 +02:00
Ha Phan
b0129e9125
Compare numeric part of OpenSSL version
2015-01-08 20:55:14 +07:00
Andreas Fischer
0efae5a91e
Change copyright years from roman numeral to decimal numbers.
2014-12-10 00:04:08 +01:00
Andreas Fischer
ad03d84461
Restore compatibility with PHP 5.6.1 by using explicit array indexes.
...
This seems to be caused by the resolution of PHP Ticket 67985.
2014-10-19 20:24:13 +02:00
terrafrost
a43dd38365
BigInteger: accomodate GMP change in PHP 5.6
2014-09-27 12:52:54 -05:00
terrafrost
33182bb2de
BigInteger: fix previous fix
2014-08-10 14:47:08 -05:00
terrafrost
4ce7a0f63a
BigInteger: small optimization to bitwise_not
2014-08-10 02:03:58 -05:00
Andreas Fischer
737c8a9d0f
Use toBits() as there is no bits property.
2014-07-26 13:43:57 +02:00
terrafrost
4b9eb4af27
BigInteger: one more change to the comments
2014-06-16 09:23:34 -05:00
terrafrost
0eb0ae7ff7
BigInteger: update comments
2014-06-16 09:09:26 -05:00
terrafrost
34a971d317
BigInteger: change argument names for random / randomPrime
2014-06-14 23:49:57 -05:00
terrafrost
f8f0bd44b7
BigInteger: fix syntax error
2014-06-14 19:20:05 -05:00
terrafrost
46166c7351
BigInteger: make it so you can do $min->random($max)
...
...and $min->randomPrime($max) as well
2014-06-14 14:07:33 -05:00
Andreas Fischer
e6f87318f5
Adjust documentation to coding guidelines: No () around include.
2014-06-01 23:28:49 +02:00
terrafrost
7c08ab71d3
BigInteger: "be less overly clever loading Crypt/Random"
...
pretty much the same as this commit:
28f18f83ec
2014-05-29 16:31:26 -05:00
terrafrost
309c8fd555
BigInteger: speedup internal mode slightly
...
Changes should yield a slight speedup per the analysis at https://github.com/phpseclib/phpseclib/pull/317#issuecomment-42122335
2014-05-05 11:34:45 -05:00
terrafrost
9eb6e1ed67
BigInteger: update comments and add test case
2014-04-29 16:32:25 +02:00
terrafrost
e4ff01f054
BigInteger: fix some int64 issues
2014-04-29 16:32:25 +02:00
terrafrost
0cbb631852
BigInteger: explain precense of uncallable code
2014-04-18 23:43:03 -05:00
terrafrost
a8c2ff0fb0
add error suppression to phpinfo()
...
bad timezone settings can make phpinfo() throw errors so we'll just
suppress them. if there are legit non-timezone errors with php install
those will probably be hit in other parts of the code
2014-03-30 10:15:08 -05:00
Andreas Fischer
fb1296bbec
Drop meaningless, outdated, inconsistent version tags in doc blocks.
...
find phpseclib -type f -name "*.php" -exec sed -i '/@version/d' {} \;
2014-03-11 15:58:33 +01:00
Veres Lajos
930a3fb4d2
typofixes - https://github.com/vlajos/misspell_fixer
2014-03-05 23:41:20 +00:00
Andreas Fischer
c1597f4533
Remove HTML from BigInteger code example.
2014-03-01 01:40:28 +01:00
Andreas Fischer
8bb80b3df0
CS: Add useful whitespace CodeSniffer rules.
2013-12-26 00:33:08 +01:00
Andreas Fischer
f0f029b2c1
CS: Fix "PEAR.Commenting.ClassComment.WrongTagOrder" sniff.
2013-12-11 18:33:18 +01:00
Andreas Fischer
3db1fbb072
CS: Fix "PEAR.Commenting.FileComment.TagIndent" sniff.
2013-12-10 20:10:37 +01:00
Andreas Fischer
ef2c50f9e0
Ignore coding style for "HAC 4.49" block in Math/BigInteger.php.
2013-12-03 21:04:13 +01:00
Andreas Fischer
e09f1b730e
CodeSniffer: Fix PEAR.Classes.ClassDeclaration.OpenBraceNewLine sniff.
2013-12-03 19:34:41 +01:00
Marc Philip Scholten
3bfd884813
Removed vim comments
...
Reformated files
2013-11-23 19:42:26 +01:00
terrafrost
77447a3fc7
BigInteger, RSA: updates to OpenSSL version detection code
2013-09-20 12:14:01 -05:00
terrafrost
54f0f2131b
RSA, BigInteger: add more openssl checks
2013-09-10 11:07:56 -05:00
terrafrost
442922ff0a
BigInteger: refactor random number generation code somewhat
2013-08-06 23:17:49 -05:00
terrafrost
30408ff8fb
BigInteger: define $p
2013-06-18 09:31:33 -04:00
terrafrost
043ad01eca
BigInteger: refactor randomPrime somewhat
2013-06-08 11:10:52 -05:00
Andreas Fischer
dadaaf791e
Remove unused variable $generator from Math_BigInteger::random().
2013-06-06 17:17:15 +02:00
terrafrost
32a47d2fbc
BigInteger: docblock update
2013-06-06 00:02:26 -05:00
Andreas Fischer
727dba5905
[remove-svn-version-lines] Remove useless @version: $Id$ lines.
...
These lines served some purpose on SVN, but are now useless on Git. They
actually do harm as they might make people think their files are older
than they actually are.
2013-06-02 18:50:46 +02:00
Veres Lajos
dd2a4ddff2
typofixes
2013-05-08 15:34:07 +01:00
terrafrost
cb36b811a0
Random: use constant for windows test
...
BigInteger: Docblock adjustments
2013-05-01 00:30:01 -05:00
terrafrost
08e987cede
BigInteger: Docblock adjustments
2013-04-27 20:55:25 -05:00
terrafrost
42f22a4e44
BigInteger: fix special case for base-10 / bcmath
...
echo new Math_BigInteger('-') when in bcmath mode would output '-' - not '0'
2013-03-05 08:37:59 -06:00
terrafrost
4e06ab52dd
BigInteger: revamp base-10 regex
...
new Math_BigInteger('-09') gave 0 back as a number in GMP mode
2013-03-05 08:29:06 -06:00
terrafrost
d7cdea6282
BigInteger: CS adjustment
2013-02-20 15:11:36 -06:00
Patrick Monnerat
90ff746ad1
Make all sources 7-bit ASCII.
2013-02-20 19:25:47 +01:00
Gemorroj
8d5e7a3945
Fixed broken characters.
2013-02-20 18:11:23 +03:00
Gemorroj
cc2c844d0e
some minor fixes
2013-02-20 16:46:13 +03:00
terrafrost
4334d381b9
BigInteger: E_NOTICE: bitwise_xor and bitwise_or had parameters of array_pad mixed up
2013-02-17 18:53:36 -06:00
terrafrost
4a96cc8024
Use base-2**26 on systems with 32-bit ints and base-2**31 on systems with 64-bit ints
2013-02-17 17:52:59 -06:00
terrafrost
248e3bb085
Undo last commit
2013-01-30 08:37:50 -06:00
terrafrost
bfb04dcf4d
Add __construct() constructor to make namespace'ing easier for those wishing to do it
2013-01-29 22:09:31 -06:00