You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bridge-backed `crypto` hash and cipher wrappers SHALL remain compatible with Node stream semantics and MUST preserve Node-style validation error codes for callback-driven APIs.
125
+
126
+
#### Scenario: Sandbox hashes or encrypts data through stream piping
127
+
-**WHEN** sandboxed code uses `crypto.Hash`, `crypto.Cipheriv`, or `crypto.Decipheriv` as stream destinations or sources
128
+
-**THEN** those objects MUST be `stream.Transform` instances
129
+
-**AND** piping data through them MUST emit the same digest or ciphertext/plaintext bytes that the corresponding direct `update()`/`final()` calls would produce
130
+
131
+
#### Scenario: Sandbox calls pbkdf2 with invalid arguments
132
+
-**WHEN** sandboxed code calls `crypto.pbkdf2()` or `crypto.pbkdf2Sync()` with invalid callback, digest, password, salt, iteration, or key length arguments
133
+
-**THEN** the bridge MUST throw or surface Node-compatible `ERR_INVALID_ARG_TYPE` / `ERR_OUT_OF_RANGE` errors instead of plain untyped exceptions
134
+
123
135
### Requirement: Bridge FS Open Flag Translation Uses Named Constants
124
136
The bridge `fs` implementation MUST express string-flag translation using named open-flag constants (for example `O_WRONLY | O_CREAT | O_TRUNC`) aligned with Node `fs.constants` semantics, and MUST NOT rely on undocumented numeric literals.
@@ -260,7 +260,7 @@ description: Node.js v22 test/parallel/ conformance results for the secure-exec
260
260
-`test-https-*.js` — https depends on tls — most tests fail on missing TLS fixture files or crypto API gaps
261
261
-`test-http2-*.js` — http2 module bridged via kernel — most tests fail on API gaps, missing fixtures, or protocol handling
262
262
263
-
*699 individual tests — see expectations.json for full list.*
263
+
*690 individual tests — see expectations.json for full list.*
264
264
265
265
### unsupported-module (191 entries)
266
266
@@ -745,12 +745,13 @@ description: Node.js v22 test/parallel/ conformance results for the secure-exec
745
745
746
746
</Accordion>
747
747
748
-
### security-constraint (1 entries)
748
+
### security-constraint (2 entries)
749
749
750
-
<Accordiontitle="1 individual test">
750
+
<Accordiontitle="2 individual tests">
751
751
752
752
| Test | Reason |
753
753
| --- | --- |
754
+
|`test-crypto-pbkdf2.js`| SharedArrayBuffer is intentionally removed by sandbox hardening, so the vendored TypedArray coverage loop aborts before the remaining pbkdf2 assertions run |
754
755
|`test-process-binding-internalbinding-allowlist.js`| process.binding is not supported in sandbox (security constraint) |
0 commit comments