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 3... Line 3...
3
/**
3
/**
4
 * PHP Montgomery Modular Exponentiation Engine
4
 * PHP Montgomery Modular Exponentiation Engine
5
 *
5
 *
6
 * PHP version 5 and 7
6
 * PHP version 5 and 7
7
 *
7
 *
-
 
8
 * @category  Math
-
 
9
 * @package   BigInteger
8
 * @author    Jim Wigginton <terrafrost@php.net>
10
 * @author    Jim Wigginton <terrafrost@php.net>
9
 * @copyright 2017 Jim Wigginton
11
 * @copyright 2017 Jim Wigginton
10
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
12
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
11
 * @link      http://pear.php.net/package/Math_BigInteger
13
 * @link      http://pear.php.net/package/Math_BigInteger
12
 */
14
 */
Line 18... Line 20...
18
use phpseclib3\Math\BigInteger\Engines\PHP\Reductions\PowerOfTwo;
20
use phpseclib3\Math\BigInteger\Engines\PHP\Reductions\PowerOfTwo;
19
 
21
 
20
/**
22
/**
21
 * PHP Montgomery Modular Exponentiation Engine
23
 * PHP Montgomery Modular Exponentiation Engine
22
 *
24
 *
-
 
25
 * @package PHP
23
 * @author  Jim Wigginton <terrafrost@php.net>
26
 * @author  Jim Wigginton <terrafrost@php.net>
-
 
27
 * @access  public
24
 */
28
 */
25
abstract class Montgomery extends Base
29
abstract class Montgomery extends Base
26
{
30
{
27
    /**
31
    /**
28
     * Test for engine validity
32
     * Test for engine validity