mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 17:52:59 +01:00
DH/PKCS8: encryption options couldn't be set for PKCS8 private keys
This commit is contained in:
parent
5bc572e2ce
commit
7d3dbccd72
@ -130,7 +130,7 @@ abstract class PKCS8 extends Progenitor
|
||||
$params = ASN1::encodeDER($params, Maps\DHParameter::MAP);
|
||||
$params = new ASN1\Element($params);
|
||||
$key = ASN1::encodeDER($privateKey, ['type' => ASN1::TYPE_INTEGER]);
|
||||
return self::wrapPrivateKey($key, [], $params, $password, $options);
|
||||
return self::wrapPrivateKey($key, [], $params, $password, null, '', $options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user