芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/mdanter/ecc/src/Math/ModularArithmetic.php
adapter = $adapter; $this->modulus = $modulus; } /** * @param \GMP $augend * @param \GMP $addend * @return \GMP */ public function add(\GMP $augend, \GMP $addend): \GMP { return $this->adapter->mod($this->adapter->add($augend, $addend), $this->modulus); } /** * @param \GMP $minuend * @param \GMP $subtrahend * @return \GMP */ public function sub(\GMP $minuend, \GMP $subtrahend): \GMP { return $this->adapter->mod($this->adapter->sub($minuend, $subtrahend), $this->modulus); } /** * @param \GMP $multiplier * @param \GMP $muliplicand * @return \GMP */ public function mul(\GMP $multiplier, \GMP $muliplicand): \GMP { return $this->adapter->mod($this->adapter->mul($multiplier, $muliplicand), $this->modulus); } /** * @param \GMP $dividend * @param \GMP $divisor * @return \GMP */ public function div(\GMP $dividend, \GMP $divisor): \GMP { return $this->mul($dividend, $this->adapter->inverseMod($divisor, $this->modulus)); } /** * @param \GMP $base * @param \GMP $exponent * @return \GMP */ public function pow(\GMP $base, \GMP $exponent): \GMP { return $this->adapter->powmod($base, $exponent, $this->modulus); } }