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

getRSAEP() private static méthode

RSA EP.
private static getRSAEP ( RSAKey $key, BigInteger $m ) : BigInteger | false
$key Jose\KeyConverter\RSAKey
$m BigInteger
Résultat 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);
    }