-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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): initial crypto.createPublicKey()
support
#22509
fix(ext/node): initial crypto.createPublicKey()
support
#22509
Conversation
ext/node/ops/crypto/mod.rs
Outdated
#[string] type_: &str, | ||
) -> Result<AsymmetricKeyDetails, AnyError> { | ||
let doc = parse_public_key(key, format, type_)?; | ||
let pk_info = pkcs8::SubjectPublicKeyInfo::try_from(doc.as_bytes())?; |
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.
Rust is telling me the value I'm passing to try_from()
is incorrect.
}) | ||
} | ||
RSASSA_PSS_OID => { | ||
let params = PssPrivateKeyParameters::try_from( |
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.
IIUC, the PssPrivateKeyParameters
should be renamed to PssKeyParameters
, as it also applies to public keys.
crypto.createPublicKey()
crypto.createPublicKey()
support
Great stuff! LGTM. However, this should be marked as "feat". |
@iuioiua All the Node API changes are merged as fixes so we can include them in patch releases. |
…2509) Closes denoland#21807 Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Closes #21807 Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Closes #21807
CC @littledivy