[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/ -> PowerOfTwo.php (summary)

PHP Power of Two Modular Exponentiation Engine PHP version 5 and 7

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: 59 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  prepareReduce()
  reduce()

Functions
Functions that are not part of a class:

prepareReduce(array $x, array $n, $class)   X-Ref
Prepare a number for use in Montgomery Modular Reductions

param: array $x
param: array $n
param: string $class
return: array

reduce(array $x, array $n, $class)   X-Ref
Power Of Two Reduction

param: array $x
param: array $n
param: string $class
return: array