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