DH/PKCS8: encryption options couldn't be set for PKCS8 private keys

This commit is contained in:
terrafrost 2022-02-14 21:19:29 -06:00
parent 5bc572e2ce
commit 7d3dbccd72

View File

@ -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);
}
/**