mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 17:52:59 +01:00
PKCS8: fix E_WARNING
This commit is contained in:
parent
fe62c85e02
commit
99e8d7b822
@ -485,7 +485,7 @@ abstract class PKCS8 extends PKCS
|
||||
}
|
||||
} else {
|
||||
if ($public['publicKeyAlgorithm']['algorithm'] != static::OID_NAME) {
|
||||
throw new UnsupportedAlgorithmException('Only ' . static::OID_NAME . ' keys are supported; this is a ' . $private['publicKeyAlgorithm']['algorithm'] . ' key');
|
||||
throw new UnsupportedAlgorithmException('Only ' . static::OID_NAME . ' keys are supported; this is a ' . $public['publicKeyAlgorithm']['algorithm'] . ' key');
|
||||
}
|
||||
}
|
||||
if (isset($public['publicKeyAlgorithm']['parameters']) && !$public['publicKeyAlgorithm']['parameters'] instanceof ASN1\Element && isset($decoded[0]['content'][0]['content'][1])) {
|
||||
|
Loading…
Reference in New Issue
Block a user