__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Jose\Component\Core\Util\Ecc;
use Brick\Math\BigInteger;
/**
* @internal
*/
final class ModularArithmetic
{
public static function sub(BigInteger $minuend, BigInteger $subtrahend, BigInteger $modulus): BigInteger
{
return $minuend->minus($subtrahend)
->mod($modulus);
}
public static function mul(BigInteger $multiplier, BigInteger $muliplicand, BigInteger $modulus): BigInteger
{
return $multiplier->multipliedBy($muliplicand)
->mod($modulus);
}
public static function div(BigInteger $dividend, BigInteger $divisor, BigInteger $modulus): BigInteger
{
return self::mul($dividend, Math::inverseMod($divisor, $modulus), $modulus);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Curve.php | File | 7.13 KB | 0664 |
|
| EcDH.php | File | 1.6 KB | 0664 |
|
| Math.php | File | 954 B | 0664 |
|
| ModularArithmetic.php | File | 766 B | 0664 |
|
| NistCurve.php | File | 4.74 KB | 0664 |
|
| Point.php | File | 3.19 KB | 0664 |
|
| PrivateKey.php | File | 1.51 KB | 0664 |
|
| PublicKey.php | File | 1.36 KB | 0664 |
|