mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-14 18:15:39 +01:00
Merge branch '3.0'
This commit is contained in:
commit
5cc95a591d
@ -26,5 +26,5 @@ interface PrivateKey
|
|||||||
//public function decrypt($ciphertext);
|
//public function decrypt($ciphertext);
|
||||||
public function getPublicKey();
|
public function getPublicKey();
|
||||||
public function toString($type, array $options = []);
|
public function toString($type, array $options = []);
|
||||||
public function withPassword($string);
|
public function withPassword($string = false);
|
||||||
}
|
}
|
||||||
|
@ -2615,7 +2615,7 @@ class X509
|
|||||||
if ($signatureAlgorithm != 'id-RSASSA-PSS') {
|
if ($signatureAlgorithm != 'id-RSASSA-PSS') {
|
||||||
$signatureAlgorithm = ['algorithm' => $signatureAlgorithm];
|
$signatureAlgorithm = ['algorithm' => $signatureAlgorithm];
|
||||||
} else {
|
} else {
|
||||||
$r = PSS::load($issuer->privateKey->toString('PSS'));
|
$r = PSS::load($issuer->privateKey->withPassword()->toString('PSS'));
|
||||||
$signatureAlgorithm = [
|
$signatureAlgorithm = [
|
||||||
'algorithm' => 'id-RSASSA-PSS',
|
'algorithm' => 'id-RSASSA-PSS',
|
||||||
'parameters' => PSS::savePSSParams($r)
|
'parameters' => PSS::savePSSParams($r)
|
||||||
|
Loading…
Reference in New Issue
Block a user