Subversion Repositories oidplus

Rev

Rev 846 | Rev 1042 | 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
 * Prime Finite Fields
4
 * Prime Finite Fields
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
 */
13
 */
12
 
14
 
Line 17... Line 19...
17
use phpseclib3\Math\Common\FiniteField\Integer as Base;
19
use phpseclib3\Math\Common\FiniteField\Integer as Base;
18
 
20
 
19
/**
21
/**
20
 * Prime Finite Fields
22
 * Prime Finite Fields
21
 *
23
 *
-
 
24
 * @package Math
22
 * @author  Jim Wigginton <terrafrost@php.net>
25
 * @author  Jim Wigginton <terrafrost@php.net>
-
 
26
 * @access  public
23
 */
27
 */
24
class Integer extends Base
28
class Integer extends Base
25
{
29
{
26
    /**
30
    /**
27
     * Holds the PrimeField's value
31
     * Holds the PrimeField's value
Line 395... Line 399...
395
    }
399
    }
396
 
400
 
397
    /**
401
    /**
398
     *  __toString() magic method
402
     *  __toString() magic method
399
     *
403
     *
-
 
404
     * @access public
400
     * @return string
405
     * @return string
401
     */
406
     */
402
    public function __toString()
407
    public function __toString()
403
    {
408
    {
404
        return (string) $this->value;
409
        return (string) $this->value;
405
    }
410
    }
406
 
411
 
407
    /**
412
    /**
408
     *  __debugInfo() magic method
413
     *  __debugInfo() magic method
409
     *
414
     *
-
 
415
     * @access public
410
     * @return array
416
     * @return array
411
     */
417
     */
412
    public function __debugInfo()
418
    public function __debugInfo()
413
    {
419
    {
414
        return ['value' => $this->toHex()];
420
        return ['value' => $this->toHex()];