crypto: avoid EC reconstruction for signature sizing · nodejs/node@80a6ad5 · GitHub
Skip to content

Commit 80a6ad5

Browse files
panvaaduh95
authored andcommitted
crypto: avoid EC reconstruction for signature sizing
Use EVP_PKEY_bits() to determine the width of ECDSA signature components on OpenSSL 3. This avoids reconstructing the EC group and public point just to read the group order size. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: GitHub Copilot PR-URL: #65908 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 5b592b7 commit 80a6ad5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎deps/ncrypto/ncrypto.cc‎

Lines changed: 1 addition & 5 deletions

0 commit comments

Comments
 (0)