Skip to content

[DO NOT LAND] ... Internal Build branch for #7589 - #8007

Draft
jasnell wants to merge 3 commits into
mainfrom
more-modern-algos
Draft

jasnell wants to merge 3 commits into
mainfrom
more-modern-algos

Conversation

@jasnell

@jasnell jasnell commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Just creating a local branch to use for internal build testing of #7589 ... do not land this one

@npaun
npaun force-pushed the more-modern-algos branch from ba6c9b6 to 00dccb7 Compare October 28, 2026 03:57
panva added 3 commits October 29, 2026 02:21
Implement encryption and decryption through BoringSSL's AEAD API, with
raw-secret and JWK key import/export and derived key support. Validate
AEAD parameters with algorithm-specific tag length conversion.

Gate the algorithm behind webcrypto_modern_algorithms to preserve the
existing API surface. Enable its WPT coverage and add regression tests.
Reject disabled derived-key targets before running the KDF.

Support Node.js KeyObject raw exports and report secret key sizes from
native material lengths, including for non-extractable keys. Correct
existing AES/HMAC bit counts and KDF zero sizes without a compatibility
flag, accepting the risk of correcting these metadata values to match
Node.js. Unsupported raw-key equality comparisons return false.

Accept the unflagged AES-GCM tagLength error differences: out-of-range
values have a different TypeError message, and workers without
capture_async_api_throws receive a rejected promise instead of a
synchronous throw. Valid AES-GCM results remain unchanged.
Use BoringSSL's X-Wing API for key generation, seed expansion, and
encapsulation/decapsulation. Support raw-public, raw-seed, and JWK key
formats, validate JWK metadata, and derive public keys from private keys.

Gate the algorithm behind webcrypto_modern_algorithms to preserve the
existing API surface. Enable its WPT coverage and add regression tests.
Expose SHA3-256, SHA3-384, and SHA3-512 through SubtleCrypto.digest()
and SubtleCrypto.supports() using BoringSSL's public EVP APIs. Keep
SHA-3 out of the shared hash lookup so keyed operations reject it.

Gate the algorithms behind webcrypto_modern_algorithms to preserve the
existing API surface. Enable SHA-3 WPT coverage and test both flag states
and rejection by keyed operations.
@npaun
npaun force-pushed the more-modern-algos branch from 00dccb7 to 8601006 Compare October 29, 2026 02:36
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.

2 participants