[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/Math/ -> PrimeField.php (summary)

Prime Finite Fields Utilizes the factory design pattern

Author: Jim Wigginton
Copyright: 2017 Jim Wigginton
License: http://www.opensource.org/licenses/mit-license.html MIT License
Link: http://pear.php.net/package/Math_BigInteger
File Size: 118 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PrimeField:: (7 methods):
  __construct()
  setReduction()
  newInteger()
  randomInteger()
  getLengthInBytes()
  getLength()
  __destruct()


Class: PrimeField  - X-Ref

Prime Finite Fields

__construct(BigInteger $modulo)   X-Ref
Default constructor


setReduction(\Closure $func)   X-Ref
Use a custom defined modular reduction function

return: void

newInteger(BigInteger $num)   X-Ref
Returns an instance of a dynamically generated PrimeFieldInteger class

return: Integer

randomInteger()   X-Ref
Returns an integer on the finite field between one and the prime modulo

return: Integer

getLengthInBytes()   X-Ref
Returns the length of the modulo in bytes

return: int

getLength()   X-Ref
Returns the length of the modulo in bits

return: int

__destruct()   X-Ref
Destructor