Chris Kleeschulte
016232d4e5
Added a sanity check to avoid an infinite loop situation.
2016-06-10 09:40:56 -04:00
Sam Bohler
a03a77fb22
Fixes #110 : Refactored function calls out of loops
2015-06-24 08:48:31 -04:00
Sam Bohler
df7bf05c94
Check Requirements Utility Method
...
Many plugins and other projects that use this library have to determine
whether the requirements for the library have been met. This method
lists all requirements with boolean true if met, or a message string if not
so that informative error messages can be generated.
2015-04-13 10:11:34 -04:00
Sam Bohler
08485db85c
PSR whitespace
2015-01-13 14:12:37 -05:00
Sam Bohler
b59d2ae931
Fixes #134 , Corrected behavior of Math::mod
2015-01-13 14:02:52 -05:00
Sam Bohler
6568bd255c
Fixed whitespace issue
2014-11-26 15:44:37 -05:00
Sam Bohler
cb01434a67
Removed pointTest. Not in use and we can add it again later with fixes and tests
2014-11-26 15:39:08 -05:00
Sam Bohler
d05146d8f5
Fixes #72 - Restructured arb int math and enabled BCMath as an engine
2014-11-26 13:09:05 -05:00
Alexander Leitner
32c9af90b7
Revert "Merge if you like math!"
2014-11-24 17:53:57 -05:00
Alexander Leitner
a49d5e9e42
Updated tests and Error.php
2014-11-21 13:50:33 -05:00
Alexander Leitner
3f515065e2
removed --verbose from travis.yml, updated testing documentation to talk about testMaths, Error.php causes build to fail
2014-11-21 13:31:55 -05:00
Alexander Leitner
bb198c1c67
removed unnecessary break statements
2014-11-21 10:51:11 -05:00
Alexander Leitner
9c79b54290
Code should match PHP Code standards PSR-2
2014-11-14 12:57:23 -05:00
Alexander Leitner
25923383db
Some variables in while loops had bad naming
2014-11-14 12:28:17 -05:00
Alexander Leitner
b29334502b
GMP and BC Math integrated into client library
2014-11-14 11:39:16 -05:00
Sam Bohler
fcafcf2c3b
Added point math
2014-11-13 12:57:03 -05:00
Joshua Estes
0cf0bb7d70
Fix for issue #67
2014-11-06 12:49:18 -05:00
Rich Morgan
0f03fa118d
Minor edit for code quality
2014-09-30 17:35:33 -04:00
Sam Bohler
c15083d309
Replaced full-text licenses with references
2014-09-29 09:16:06 -04:00
Joshua Estes
0eee73c954
Updated the conditional to catch input that is not a string
2014-09-25 20:17:27 -04:00
Joshua Estes
dad50100da
Merge remote-tracking branch 'upstream/master' into CodeCoverageIncrease
...
* upstream/master:
Corrected test parameter
Corrected base point param assignment
Fixed binary string being reversed
Corrected curve params
Fixed incorrect public key param usage
Removed x,y code assignments for private key
Fixed: variable name typo
2014-09-25 16:14:58 -04:00
Joshua Estes
5afd48ebcd
Updated the secure random class so that it now has 100% code coverage
2014-09-25 16:14:25 -04:00
Rich Morgan
8d0c4eb747
Fixed binary string being reversed
2014-09-25 15:51:44 -04:00
Rich Morgan
9f2d81ba52
Corrected curve params
2014-09-25 15:48:22 -04:00
Joshua Estes
d68511ddeb
Updated the Base58 class and tests to cover a little more
2014-09-25 15:38:29 -04:00
Joshua Estes
0c7bd40311
Updated fingerprint test to cover the class 100%, refactored the fingerprint class and caught a small bug
2014-09-25 15:20:29 -04:00
Joshua Estes
3d18de8f05
Small bug fixes with the decodeHex function
2014-09-24 14:57:43 -04:00
Joshua Estes
fe18af731e
Bug fix
2014-09-24 14:06:58 -04:00
Joshua Estes
8d45243f87
Small updates for clearity and update to make fuction return sooner
2014-09-24 13:54:49 -04:00
Joshua Estes
925c0d2856
Code comments
2014-09-24 13:49:46 -04:00
Joshua Estes
92e1191737
Added a method to test and make sure a point is on the elliptic curve
2014-09-24 13:25:25 -04:00
Joshua Estes
c79938700d
Small clean up
2014-09-24 12:53:19 -04:00
Joshua Estes
1ffcdebcd5
Added and updated comments and added some new tests
2014-09-24 12:48:37 -04:00
Joshua Estes
331fd48491
Added and updated tests, ran php-cs-fixer on src/ and tests/ still having a few issues with signatures, tests should help find the issues
2014-09-24 09:34:23 -04:00
Joshua Estes
956f25bbc5
Small bug fix
2014-09-24 08:29:44 -04:00
Joshua Estes
d4c2563099
Merge pull request #41 from JoshuaEstes/updates/AddedMoreTests
...
Updates/added more tests
2014-09-24 08:13:10 -04:00
Rich Morgan
de08ffc831
Fix for failing unit test
2014-09-23 16:14:05 -04:00
Rich Morgan
c2abab8b4f
Fix for issue using the class in a CLI environment
2014-09-23 15:47:57 -04:00
Joshua Estes
b51180515a
Made sure everything is PSR1 and PSR2 standard
2014-09-23 15:47:39 -04:00
Joshua Estes
efac474377
refactored and added a lot of tests, made use of the point class more in functions and made a curve parameter interface so that mock interfaces can be used later in testing
2014-09-23 15:36:40 -04:00
Rich Morgan
6527437158
Create Fingerprint.php
...
To be used as the passphrase for the transparent read/write encryption.
2014-09-23 15:18:05 -04:00
Rich Morgan
605fc0b4d8
Added return value check
...
The openssl_random_pseudo_bytes function will return false on failure.
2014-09-23 13:23:52 -04:00
Joshua Estes
b4c6928ca3
A few small code updates, updated so that everything conforms to PSR1 and PSR2 standards, moved some of the crytpo classes into a crypto directory, add function to return invoice information
2014-09-22 13:08:13 -04:00
Rich Morgan
0e53fa7b2a
Fixed gmp math bugs
2014-09-19 18:16:42 -04:00
Rich Morgan
7ecda86fc4
Fixed a few GMP math bugs causing the build fails
2014-09-19 15:57:47 -04:00
Joshua Estes
8e8072f051
php-cs-fixer
2014-09-19 15:25:40 -04:00
Rich Morgan
f56d457984
Create Mcrypt.php
2014-09-19 14:52:40 -04:00
Rich Morgan
9792d547f6
Create Hash.php
2014-09-19 14:49:50 -04:00
Rich Morgan
f4062f99d5
Create Error.php
2014-09-19 14:44:22 -04:00
Rich Morgan
de46f25dba
Create OpenSSL.php
2014-09-19 14:40:51 -04:00