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): make getCiphers return supported ciphers #27466

Merged
merged 4 commits into from
Dec 26, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Dec 25, 2024

Currently we only supports 7 ciphers (aes-(128|192|256)-ecb and aes-(128|256)-(cbc|gcm)) in node:crypto, but crypto.getCiphers returns other supported cipher names. That confuses npm:openpgp package and causes #26875.

This PR makes getCiphers return actually supported cipher names.

With this change, the example given in #26875 can create private and public key files.

closes #26875

@kt3k kt3k requested a review from littledivy December 25, 2024 07:50
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit 9115070 into denoland:main Dec 26, 2024
17 checks passed
@kt3k kt3k deleted the fix-node-crypto-get-ciphers branch December 26, 2024 04:24
dsherret pushed a commit that referenced this pull request Jan 9, 2025
Currently we only supports 7 ciphers (`aes-(128|192|256)-ecb` and
`aes-(128|256)-(cbc|gcm)`) in `node:crypto`, but `crypto.getCiphers`
returns other supported cipher names. That confuses `npm:openpgp`
package and causes #26875.

This PR makes `getCiphers` return actually supported cipher names.

With this change, the example given in #26875 can create private and
public key files.

closes #26875
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.

NPM package openpgp Is broken due to: Unknown cipher aes-256-cfb
2 participants