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
 * Modular Exponentiation Engine
4
 * 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 16... Line 18...
16
use phpseclib3\Math\BigInteger\Engines\BCMath;
18
use phpseclib3\Math\BigInteger\Engines\BCMath;
17
 
19
 
18
/**
20
/**
19
 * Sliding Window Exponentiation Engine
21
 * Sliding Window Exponentiation Engine
20
 *
22
 *
-
 
23
 * @package PHP
21
 * @author  Jim Wigginton <terrafrost@php.net>
24
 * @author  Jim Wigginton <terrafrost@php.net>
-
 
25
 * @access  public
22
 */
26
 */
23
abstract class Base extends BCMath
27
abstract class Base extends BCMath
24
{
28
{
25
    /**
29
    /**
26
     * Cache constants
30
     * Cache constants
27
     *
31
     *
28
     * $cache[self::VARIABLE] tells us whether or not the cached data is still valid.
32
     * $cache[self::VARIABLE] tells us whether or not the cached data is still valid.
29
     *
33
     *
-
 
34
     * @access private
30
     */
35
     */
31
    const VARIABLE = 0;
36
    const VARIABLE = 0;
32
    /**
37
    /**
33
     * $cache[self::DATA] contains the cached data.
38
     * $cache[self::DATA] contains the cached data.
34
     *
39
     *
-
 
40
     * @access private
35
     */
41
     */
36
    const DATA = 1;
42
    const DATA = 1;
37
 
43
 
38
    /**
44
    /**
39
     * Test for engine validity
45
     * Test for engine validity