Jose\Util\BigInteger::createFromDecimal PHP Method

createFromDecimal() public static method

public static createFromDecimal ( integer $value ) : BigInteger
$value integer
return BigInteger
    public static function createFromDecimal($value)
    {
        Assertion::integer($value);
        return new self($value, 10);
    }

Usage Example

コード例 #1
0
ファイル: RSA.php プロジェクト: spomky-labs/jose
 /**
  * RSAVP1.
  *
  * @param \Jose\KeyConverter\RSAKey $key
  * @param \Jose\Util\BigInteger     $s
  *
  * @return \Jose\Util\BigInteger|false
  */
 private static function getRSAVP1(RSAKey $key, BigInteger $s)
 {
     if ($s->compare(BigInteger::createFromDecimal(0)) < 0 || $s->compare($key->getModulus()) > 0) {
         return false;
     }
     return self::exponentiate($key, $s);
 }
All Usage Examples Of Jose\Util\BigInteger::createFromDecimal