Jose\Util\RSA::getRSASP1 PHP Méthode

getRSASP1() private static méthode

RSA SP1.
private static getRSASP1 ( RSAKey $key, BigInteger $m ) : BigInteger | false
$key Jose\KeyConverter\RSAKey
$m BigInteger
Résultat BigInteger | false
    private static function getRSASP1(RSAKey $key, BigInteger $m)
    {
        if ($m->compare(BigInteger::createFromDecimal(0)) < 0 || $m->compare($key->getModulus()) > 0) {
            return false;
        }
        return self::exponentiate($key, $m);
    }