Skip to content

Commit

Permalink
Merge pull request #11 from paragonie/use-hash-from-alg
Browse files Browse the repository at this point in the history
Use the corresponding hash algorithm, rather than always sha384
  • Loading branch information
paragonie-security authored Sep 3, 2024
2 parents 0205cbc + 08a926d commit 0af6405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EasyECC.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function sign(
EccFactory::getAdapter(),
$privateKey,
$hash,
'sha384'
$this->hashAlgo
);
$k = $kGen->generate($this->generator->getOrder());

Expand Down

0 comments on commit 0af6405

Please sign in to comment.