Skip to content

Commit

Permalink
Use the corresponding hash algorithm, rather than always sha384
Browse files Browse the repository at this point in the history
This has no security impact, but may violate the principle of least astonishment for people using, e.g., secp256k1
  • Loading branch information
paragonie-security committed Sep 3, 2024
1 parent 0205cbc commit 08a926d
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 08a926d

Please sign in to comment.