Rev 846 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 846 | Rev 874 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | * |
14 | * |
15 | * https://en.wikipedia.org/wiki/Montgomery_curve |
15 | * https://en.wikipedia.org/wiki/Montgomery_curve |
16 | * |
16 | * |
17 | * PHP version 5 and 7 |
17 | * PHP version 5 and 7 |
18 | * |
18 | * |
- | 19 | * @category Crypt |
|
- | 20 | * @package EC |
|
19 | * @author Jim Wigginton <terrafrost@php.net> |
21 | * @author Jim Wigginton <terrafrost@php.net> |
20 | * @copyright 2019 Jim Wigginton |
22 | * @copyright 2019 Jim Wigginton |
21 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
23 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
22 | * @link http://pear.php.net/package/Math_BigInteger |
24 | * @link http://pear.php.net/package/Math_BigInteger |
23 | */ |
25 | */ |
Line 30... | Line 32... | ||
30 | use phpseclib3\Math\PrimeField\Integer as PrimeInteger; |
32 | use phpseclib3\Math\PrimeField\Integer as PrimeInteger; |
31 | 33 | ||
32 | /** |
34 | /** |
33 | * Curves over y^2 = x^3 + a*x + x |
35 | * Curves over y^2 = x^3 + a*x + x |
34 | * |
36 | * |
- | 37 | * @package EC |
|
35 | * @author Jim Wigginton <terrafrost@php.net> |
38 | * @author Jim Wigginton <terrafrost@php.net> |
- | 39 | * @access public |
|
36 | */ |
40 | */ |
37 | class Montgomery extends Base |
41 | class Montgomery extends Base |
38 | { |
42 | { |
39 | /** |
43 | /** |
40 | * Prime Field Integer factory |
44 | * Prime Field Integer factory |