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
terrafrost
9b4240c104
Use !empty('0') instead of strlen('0')
...
Thanks petrich!
2013-01-03 00:21:09 -06:00
terrafrost
35832fe2a1
Refactor crypt_random (renaming it to crypt_random_string)
...
...and update all the calls to it accordingly
2012-12-16 02:20:16 -06:00
terrafrost
7401d148f8
Remove unused lines
...
The MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP case is already handled earlier
2012-12-11 18:38:45 -06:00
terrafrost
c2c3e9420d
Negative numbers should be prepended with a 0
2012-09-02 11:06:53 -05:00
terrafrost
0f95ddc692
Updated fix for php.pear.net bug # 18015
...
toBits() on an object for which setPrecision(8) has been called should always return 8 bits.
As such we'll just iterate backwards instead of forward.
2012-09-02 01:13:21 -05:00
terrafrost
11872fe747
CRYPT_RSA_ASN1_SEQUENCE shouldn't have been used
2012-08-26 02:01:26 -05:00
terrafrost
770075fe08
Don't redefine MATH_BIGINTEGER_OPENSSL_ENABLED
2012-08-26 01:52:58 -05:00
terrafrost
2f8d1055ea
Use OpenSSL for Math_BigInteger::modPow speedups
...
Also, make Crypt_RSA's public keys compatible with OpenSSL and make it so __toString will return the key even when it's the public key that's loaded and it hasn't been set as the public key.
2012-08-26 01:36:34 -05:00