예제 #1
0
 /**
  * @param \Math_BigInteger $n
  * @param \Math_BigInteger $d
  * @return RSAPrivateKey
  */
 public function buildMinimalPrivateKey(\Math_BigInteger $n, \Math_BigInteger $d)
 {
     $this->rsa_imp->modulus = $n;
     $this->rsa_imp->exponent = $d;
     $private_key_pem = $this->rsa_imp->_getPrivatePublicKey();
     return new _RSAPrivateKeyPEMFornat($private_key_pem);
 }