Skip to content

Commit

Permalink
Merge branch '3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Jan 24, 2024
2 parents 5833f00 + 6a6c222 commit 27d1ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/Crypt/EC/PrivateKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function sign($message)
// we use specified curves to avoid issues with OpenSSL possibly not supporting a given named curve;
// doing this may mean some curve-specific optimizations can't be used but idk if OpenSSL even
// has curve-specific optimizations
$result = openssl_sign($message, $signature, $this->toString('PKCS8', ['namedCurve' => false]), $this->hash->getHash());
$result = openssl_sign($message, $signature, $this->withPassword()->toString('PKCS8', ['namedCurve' => false]), $this->hash->getHash());

if ($result) {
if ($shortFormat == 'ASN1') {
Expand Down

0 comments on commit 27d1ccc

Please sign in to comment.