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

RSA: loading XML private keys didn't always work

This commit is contained in:
terrafrost 2013-06-20 17:05:29 -05:00
parent 30408ff8fb
commit 4de71168d8

View File

@ -1311,9 +1311,6 @@ class Crypt_RSA {
break;
case 'D':
$this->current = &$this->components['privateExponent'];
break;
default:
unset($this->current);
}
$this->current = '';
}
@ -1334,6 +1331,7 @@ class Crypt_RSA {
return;
}
$this->current = new Math_BigInteger(base64_decode($this->current), 256);
unset($this->current);
}
/**
@ -2690,4 +2688,4 @@ class Crypt_RSA {
return $this->_rsassa_pss_verify($message, $signature);
}
}
}
}