deno
perf(ext/crypto): port WebCrypto from JS to Rust (cppgc object wrap)
#34966
Merged

perf(ext/crypto): port WebCrypto from JS to Rust (cppgc object wrap) #34966

littledivy merged 96 commits into main from orch/divybot-510
divybot
divybot feat(ext/crypto): cppgc Crypto/SubtleCrypto/CryptoKey shells + algori…
65cfc2c7
divybot fix(ext/crypto): isAlgorithmRegisteredFor argument order at the four …
fc010842
divybot fix(ext/crypto): rustfmt the wrapKey arm of check_support_for_algorithm
357703d5
divybot fix(ext/crypto): port getKeyLength to Rust + drop unused JS import
8c7aa749
divybot divybot changed the title feat(ext/crypto): cppgc Crypto/SubtleCrypto/CryptoKey shells + algorithm registry in Rust feat(ext/crypto): port WebCrypto from JS to Rust (cppgc object wrap) 167 days ago
divybot feat(ext/crypto): port Crypto.getRandomValues/randomUUID + subtle get…
da5ca46a
divybot fix(ext/crypto): defer Crypto singleton mint past snapshot, fix rando…
9a773633
divybot feat(ext/crypto): lift CryptoKey state into Rust struct + ERR_ILLEGAL…
59ffdfe3
divybot refactor(ext/crypto): drop JS class SubtleCrypto, attach to cppgc pro…
dcc2a010
divybot fix(runtime): register DOMExceptionTypeMismatchError builder
bcf5d101
divybot fix(libs/ops): op2 cppgc self-check throws ERR_INVALID_THIS
85a24baf
divybot test(libs/ops): refresh op2 .out snapshots for ERR_INVALID_THIS throw
f9fb12cd
divybot test(libs/ops): refresh op2 .out snapshots for ERR_INVALID_THIS, retry
0da23d18
divybot fix(ext/crypto): Crypto.getRandomValues #[required(1)]
f2e57ae8
divybot feat(ext/crypto): port SubtleCrypto.digest to Rust impl
f799efa4
divybot fix(ext/crypto): digest BufferSource rejects SAB-backed views
eb446417
divybot fix(ext/crypto): digest throws NotSupportedError for non-digest algor…
99b997d8
divybot fix(ext/crypto,tests): update consumers of fixed NotSupportedError bu…
c6f96b7d
divybot feat(ext/crypto): port SubtleCrypto.encrypt + decrypt to Rust impl
87e3ba28
divybot fix(ext/crypto): use this.encrypt in SubtleCrypto.wrapKey fallback
6094001e
divybot style(ext/crypto): apply dprint/rustfmt formatting
c39a147c
divybot fix(ext/crypto): drop redundant deref on CryptoKey ptr
8c26b164
divybot test(wpt): regenerate expectations after encrypt/decrypt Rust port
b8697b50
divybot feat(ext/crypto): port SubtleCrypto.sign + verify to Rust impl
880af827
divybot style(ext/crypto): apply dprint/rustfmt formatting
86d5e6f6
divybot fix(ext/crypto): use slice::contains in sign/verify curve check
0026f8b6
divybot feat(ext/crypto): port SubtleCrypto.deriveBits to Rust impl
bf6e1ff6
divybot test(wpt): regenerate expectations after sign/verify Rust port
53d594da
divybot fix(ext/crypto): drop unused JS imports + allow clippy::too_many_argu…
b0f34e2f
divybot fix(ext/crypto): split deriveBits usage check from internal entry point
23f9821f
divybot fix(ext/crypto): deriveBits length arg + reason for clippy allow
5dfa6fcb
divybot fix(ext/crypto): drop required(2) so deriveBits length reaches Rust
25a6e456
divybot fix(ext/crypto): defer deriveBits hash validation to throw NotSupport…
594739f9
divybot style(ext/crypto): wrap read_required_hash_name calls per dprint
c874c7ae
divybot feat(ext/crypto): port SubtleCrypto.encapsulateBits/decapsulateBits t…
8580dea5
divybot refactor(ext/crypto): inline ml-kem helpers into encapsulate/decapsul…
3764ea5b
divybot fix(ext/crypto): repair WPT regressions in deriveBits + encapsulateBits
b96aafda
divybot fix(ext/crypto): satisfy dlint primordials rules in deriveBits forwarder
8c8f13c4
littledivy littledivy marked this pull request as draft 166 days ago
divybot refactor(ext/crypto): inline getKeyLength helper at its two call sites
3b6b491c
divybot refactor(ext/crypto): unify importKeyHKDF/importKeyPBKDF2 into one he…
3d971d92
divybot refactor(ext/crypto): unify exportKeyX25519/exportKeyX448 into export…
bdbeea10
divybot refactor(ext/crypto): unify importKeyX25519/importKeyX448 into import…
3d9fe285
divybot refactor(ext/crypto): fold importKeyEd25519 into the OKP unification
6725fd22
divybot refactor(ext/crypto): fold exportKeyEd25519 into exportKeyOkp
ffe0ebe5
divybot refactor(ext/crypto): unify symmetric exportKey helpers into exportKe…
51e351dd
divybot refactor(ext/crypto): unify exportKeyMlKem/exportKeyMlDsa into export…
d6936891
divybot refactor(ext/crypto): extract validateJwkOct + use HMAC_JWK_ALG table
0ce293d5
divybot refactor(ext/crypto): extract validateJwkAkp for ML-KEM/ML-DSA imports
c696d757
divybot feat(ext/crypto): port SubtleCrypto.supports (incl. 2-arg overload) t…
ce8acb94
divybot feat(ext/crypto): port SubtleCrypto.exportKey to Rust
1e29de22
divybot feat(ext/crypto): Rust-side CryptoKey constructor scaffolding
b33ccff6
divybot feat(ext/crypto): port importKey symmetric paths + encapsulateKey/dec…
263b6f0c
divybot feat(ext/crypto): port deriveKey to Rust
a548532a
divybot feat(ext/crypto): port wrapKey/unwrapKey + Ed25519/X25519/X448/ECDSA/…
5e4a07e7
divybot feat(ext/crypto): port importKey RSA/ML-KEM/ML-DSA + generateKey + ge…
55eca284
divybot feat(ext/crypto): finish WebCrypto JS->Rust cppgc port + lint fixes
3784a228
littledivy littledivy marked this pull request as ready for review 165 days ago
divybot fix(ext/crypto): brand symbols non-enumerable, async forwarders, alg msg
b9c96155
divybot fix(ext/crypto): satisfy dlint require-await on async forwarders
1c91045b
divybot fix(ext/crypto): JWK base64url tolerate trailing bits + padding
3b08598f
divybot fix(ext/crypto): rustfmt BASE64_JWK_FORGIVING const
6e8c18d4
divybot fix(ext/crypto): WPT generateKey error path + sync-throw wrapping
5f61cb25
divybot fix(ext/crypto): rustfmt Unknown arm of generate_key dispatch
f2e486d4
divybot fix(ext/crypto): NotSupportedError for unsupported hash/curve in gene…
df195522
divybot fix(ext/crypto): generateKey hash/curve checks must precede usage check
0649ee54
divybot fix(ext/crypto): SubtleCrypto IDL length + Empty-usages SyntaxError
09f1f5fb
divybot fix(ext/crypto): empty-usages SyntaxError must yield to bad-property …
0c95a189
nathanwhit
nathanwhit dismissed these changes on 2026-06-08
divybot fix(ext/crypto): address review blockers from nathanwhit
0fbb04e1
divybot merge main: pick up BlobStoreTrait + #33475 dispatch trait annotation
3f5f4944
bartlomieju
divybot fix: align with merged main (bench, op2 fixture, ECDSA WPT)
b965f95e
divybot fix(ext/crypto): address review blockers/should-fixes from bartlomieju
0466f5ff
divybot Merge remote-tracking branch 'origin/main' into orch/divybot-510
3c57b0ca
divybot fix(ext/crypto): thread prefix/context into digest read_optional_u8
24d51b0a
littledivy Merge branch 'main' into orch/divybot-510
38f3d0ba
divybot fix(ext/crypto): revert two bartlomieju nits that broke Node/WPT
5609608c
littledivy
littledivy commented on 2026-06-09
bartlomieju
bartlomieju commented on 2026-06-09
divybot fix(ext/crypto): address review feedback (idlharness + Box::leak + us…
612abf26
divybot fix(ext/crypto): unwrap_key spawn_blocking the decrypt step
fa402038
divybot Revert "fix(ext/crypto): unwrap_key spawn_blocking the decrypt step"
72ffaed7
divybot test(wpt): drop idlharness entries the JS shim fix now passes
47c5510a
littledivy
littledivy commented on 2026-06-10
divybot refactor(ext/crypto): fold singleton-mint ops into cppgc static methods
4523280e
divybot refactor(ext/crypto): strip all legacy op_crypto_* ops
0588dc78
divybot fix(ext/crypto): omit empty ops list from extension! macro
7fff5c59
divybot fix(ext/crypto): re-home SubtleDigestXof into digest.rs
dcbfe51b
divybot fix(ext/crypto): drop unused imports after op_crypto_* removal
c8804125
divybot fix(ext/crypto): drop dead op-payload structs/enums
8d4338dd
divybot fix(ext/crypto): drop now-unused serde/ToJsBuffer imports
5899dc57
divybot fix(ext/crypto): re-import rand::thread_rng for fast_uuid_v4 test
5a3acf0d
littledivy
littledivy approved these changes on 2026-06-10
littledivy littledivy changed the title feat(ext/crypto): port WebCrypto from JS to Rust (cppgc object wrap) perf(ext/crypto): port WebCrypto from JS to Rust (cppgc object wrap) 163 days ago
divybot fix(ext/crypto): error on tampered usages in derive-bits public-key path
b3de6f1b
divybot
bartlomieju
bartlomieju commented on 2026-06-10
bartlomieju
bartlomieju requested changes on 2026-06-10
divybot fix(ext/crypto): reject RSA JWK private key with missing 'p'
7cab0a21
divybot fix(ext/crypto): validate AES-GCM tagLength before iv length
c713a23c
divybot fix(ext/crypto): empty private-key usages SyntaxError for asymmetric …
20cdd83d
littledivy littledivy requested a review from bartlomieju bartlomieju 163 days ago
nathanwhit nathanwhit requested a review from nathanwhit nathanwhit 163 days ago
bartlomieju
bartlomieju approved these changes on 2026-06-11
divybot Merge remote-tracking branch 'origin/main' into orch/divybot-510
26362e1e
divybot fix(ext/crypto): address remaining nathanwhit-review nits
abd43696
littledivy Merge branch 'main' into orch/divybot-510
a995e9d2
divybot fix(ext/crypto): revert three nathanwhit-nit changes that broke CI
a3c52c99
divybot fix(ext/crypto): restore nathanwhit nits 3 and 4 with TS-clean test
253fb693
divybot
divybot test(serve): allow legacy-abort deprecation warning in expected output
bddc3278
divybot Merge remote-tracking branch 'origin/main' into orch/divybot-510
17019313
littledivy littledivy dismissed their stale review 160 days ago
Resolved
littledivy littledivy merged c5fee2e6 into main 160 days ago
littledivy littledivy deleted the orch/divybot-510 branch 160 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone