Commit Graph

14 Commits

Author SHA1 Message Date
ionux
701f6679f6 Added new PEM encoding and decoding functions. Also
added two corresponding tests.
2014-10-03 15:46:25 -04:00
Rich Morgan
f3675eac56 Fix for expected private key length
Range will probably be 72 < x < 78
2014-10-03 15:15:08 -04:00
Rich Morgan
052db7847b Fix for expected private key length
We're working with the decimal form of the number here, so it can be slightly variable since any leading zeroes from the hex are not used.  I generated 1,000,000 keys and the range of sizes were:

Array
(
    [0] => 78
    [1] => 77
    [2] => 76
    [3] => 75
    [4] => 74
    [5] => 73
    [6] => 72
)

I think it's safe to say we shouldn't see anything less than 72, although it's still theoretically possible since the number can be in the range of [1, n-1].
2014-10-02 13:31:13 -04:00
Sam Bohler
c15083d309 Replaced full-text licenses with references 2014-09-29 09:16:06 -04:00
Joshua Estes
b65c5f57e8 Found issues with the keys 2014-09-24 10:34:50 -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
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
f4d797f7ab Use Bitauth signature method in test 2014-09-19 18:55:25 -04:00
Rich Morgan
39100ab91a Added extra null tests & completed sign test 2014-09-19 18:03:59 -04:00
Joshua Estes
34eff77873 A little refactoring and ran php-cs-fixer on both files 2014-09-19 14:03:55 -04:00
Joshua Estes
8808864cd7 Ran php-cs-fixer on test files 2014-09-18 14:12:24 -04:00
Joshua Estes
067d17d676 A few updates and bug fixes, all tests now pass 2014-09-15 13:20:32 -04:00
Joshua Estes
c5edfdbee5 Added license to all files 2014-09-12 08:23:29 -04:00
Joshua Estes
0350f05cf0 Initial Commit 2014-09-12 06:44:37 -04:00