getModulus() 공개 메소드

public getModulus ( ) : BigInteger
리턴 Jose\Util\BigInteger
예제 #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);
 }