crypto: check EC coordinate conversion results · nodejs/node@359b07a · GitHub
Skip to content

Commit 359b07a

Browse files
panvaaduh95
authored andcommitted
crypto: check EC coordinate conversion results
Propagate coordinate conversion failures instead of importing an oversized JWK coordinate as zero. Keep equivalent short and zero-padded integer encodings accepted by the native decoder. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: #66237 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent e4d746c commit 359b07a

2 files changed

Lines changed: 61 additions & 4 deletions

File tree

‎deps/ncrypto/ncrypto.cc‎

Lines changed: 8 additions & 4 deletions
Lines changed: 53 additions & 0 deletions

0 commit comments

Comments
 (0)