Subversion Repositories oidplus

Rev

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 16... Line 16...
16
 *
16
 *
17
 * https://en.wikipedia.org/wiki/Twisted_Edwards_curve
17
 * https://en.wikipedia.org/wiki/Twisted_Edwards_curve
18
 *
18
 *
19
 * PHP version 5 and 7
19
 * PHP version 5 and 7
20
 *
20
 *
-
 
21
 * @category  Crypt
-
 
22
 * @package   EC
21
 * @author    Jim Wigginton <terrafrost@php.net>
23
 * @author    Jim Wigginton <terrafrost@php.net>
22
 * @copyright 2017 Jim Wigginton
24
 * @copyright 2017 Jim Wigginton
23
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
25
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
24
 * @link      http://pear.php.net/package/Math_BigInteger
26
 * @link      http://pear.php.net/package/Math_BigInteger
25
 */
27
 */
Line 31... Line 33...
31
use phpseclib3\Math\PrimeField\Integer as PrimeInteger;
33
use phpseclib3\Math\PrimeField\Integer as PrimeInteger;
32
 
34
 
33
/**
35
/**
34
 * Curves over a*x^2 + y^2 = 1 + d*x^2*y^2
36
 * Curves over a*x^2 + y^2 = 1 + d*x^2*y^2
35
 *
37
 *
-
 
38
 * @package Prime
36
 * @author  Jim Wigginton <terrafrost@php.net>
39
 * @author  Jim Wigginton <terrafrost@php.net>
-
 
40
 * @access  public
37
 */
41
 */
38
class TwistedEdwards extends Base
42
class TwistedEdwards extends Base
39
{
43
{
40
    /**
44
    /**
41
     * The modulo
45
     * The modulo