Skip to content
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

Merged
merged 5 commits into from
Mar 13, 2024

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Feb 21, 2024

Closes #21807

CC @littledivy

#[string] type_: &str,
) -> Result<AsymmetricKeyDetails, AnyError> {
let doc = parse_public_key(key, format, type_)?;
let pk_info = pkcs8::SubjectPublicKeyInfo::try_from(doc.as_bytes())?;
Copy link
Contributor Author

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(
Copy link
Contributor Author

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.

@bartlomieju bartlomieju modified the milestone: 1.42 Mar 6, 2024
@littledivy littledivy changed the title feat(ext/node): crypto.createPublicKey() fix(ext/node): initial crypto.createPublicKey() support Mar 13, 2024
@littledivy littledivy marked this pull request as ready for review March 13, 2024 06:52
@iuioiua
Copy link
Contributor Author

iuioiua commented Mar 13, 2024

Great stuff! LGTM. However, this should be marked as "feat".

@littledivy
Copy link
Member

@iuioiua All the Node API changes are merged as fixes so we can include them in patch releases.

@littledivy littledivy enabled auto-merge (squash) March 13, 2024 07:10
@littledivy littledivy merged commit 5cfa03c into denoland:main Mar 13, 2024
20 checks passed
@iuioiua iuioiua deleted the node-crypto-createPublicKey branch March 13, 2024 08:49
magurotuna pushed a commit to magurotuna/deno that referenced this pull request Mar 13, 2024
…2509)

Closes denoland#21807

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
nathanwhit pushed a commit that referenced this pull request Mar 14, 2024
Closes #21807

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement crypto.createPublicKey()
3 participants