Subversion Repositories oidplus

Rev

Rev 874 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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