1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 17:52:59 +01:00

- loadKey returns false on failure and true on success (thanks, seriksen!)

git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@68 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
Jim Wigginton 2009-12-07 23:22:05 +00:00
parent 9bd3c793d3
commit 315dec9dc5

View File

@ -62,7 +62,7 @@
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright MMIX Jim Wigginton * @copyright MMIX Jim Wigginton
* @license http://www.gnu.org/licenses/lgpl.txt * @license http://www.gnu.org/licenses/lgpl.txt
* @version $Id: RSA.php,v 1.4 2009-12-06 07:26:52 terrafrost Exp $ * @version $Id: RSA.php,v 1.5 2009-12-07 23:22:05 terrafrost Exp $
* @link http://phpseclib.sourceforge.net * @link http://phpseclib.sourceforge.net
*/ */
@ -846,6 +846,8 @@ class Crypt_RSA {
/** /**
* Loads a public or private key * Loads a public or private key
* *
* Returns true on success and false on failure (ie. an incorrect password was provided or the key was malformed)
*
* @access public * @access public
* @param String $key * @param String $key
* @param Integer $type optional * @param Integer $type optional
@ -871,6 +873,8 @@ class Crypt_RSA {
$this->coefficients = array(); $this->coefficients = array();
$this->publicExponent = false; $this->publicExponent = false;
} }
return true;
} }
/** /**