Skip to content

Move a handful of patches out to workerd#6397

Merged
jasnell merged 4 commits intomainfrom
jasnell/land-patches-in-workerd
Mar 25, 2026
Merged

Move a handful of patches out to workerd#6397
jasnell merged 4 commits intomainfrom
jasnell/land-patches-in-workerd

Conversation

@jasnell
Copy link
Copy Markdown
Collaborator

@jasnell jasnell commented Mar 24, 2026

No description provided.

@jasnell jasnell requested review from anonrig and dcarney-cf March 24, 2026 14:04
@jasnell jasnell requested review from a team as code owners March 24, 2026 14:04
ask-bonk[bot]

This comment was marked as outdated.

@ask-bonk

This comment was marked as outdated.

anonrig and others added 4 commits March 25, 2026 08:13
Node.js JWK public key import for OKP curves incorrectly treated the
public "x" parameter as a private key seed, producing a mismatched key
pair. Use the raw public key constructor and add regression coverage for
Ed25519 and X25519 JWK public key imports.
AsymmetricKey::exportKeyExt() accepted cipher and passphrase parameters
but never forwarded them to the PrivateKeyEncodingConfig passed to
writePrivateKey(). The config was constructed with only (false,
formatType, encType), leaving its cipher and passphrase fields at their
defaults (nullptr / nullopt). This caused writePrivateKey() to always
produce an unencrypted PEM regardless of what the caller requested.

Populate config.cipher via ncrypto::getCipherByName() and
config.passphrase via DataPointer::Alloc() before passing the config to
writePrivateKey(), matching the pattern already used by
tryParsingPrivate() in the same file. Add regression tests for RSA and
EC encrypted private key export round-trips.
@jasnell jasnell force-pushed the jasnell/land-patches-in-workerd branch from 9f69e90 to 2cdf76a Compare March 25, 2026 15:14
@jasnell jasnell merged commit f497372 into main Mar 25, 2026
22 checks passed
@jasnell jasnell deleted the jasnell/land-patches-in-workerd branch March 25, 2026 15:41
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.

4 participants