-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ext/node): implement crypto.Sign (RSA/PEM/SHA{224,256,384,512}) #18471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I will let @littledivy take another look before merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. one small nit
Cargo.toml
Outdated
@@ -136,7 +137,7 @@ uuid = { version = "1.3.0", features = ["v4"] } | |||
zstd = "=0.11.2" | |||
|
|||
# crypto | |||
rsa = { version = "0.7.0", default-features = false, features = ["std", "pem"] } | |||
rsa = { version = "0.7.0", default-features = false, features = ["std", "pem", "hazmat"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here why hazmat feature is used? "hazmat needed for PrehashSigner in ext/node"
This PR implements
crypto.Sign
(createSign
) API for node compat layer with support of RSAkey in pem format with digest algorithms
SHA224
,SHA256
,SHA384
, andSHA512
.part of #18455