Jose\Util\RSA::getRSAEP PHP Method

getRSAEP() private static method

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