Commit 63a138e
crypto: fix passing TypedArray to webcrypto AES methods
Refs: https://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface
Fixes: #36083
PR-URL: #36087
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent 0b70822 commit 63a138eCopy full SHA for 63a138e
File tree
Expand file treeCollapse file tree
2 files changed
+45
-3
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
- test/parallel
Expand file treeCollapse file tree
2 files changed
+45
-3
lines changedOpen diff view settings
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
4 | 5 | |
5 | 6 | |
6 | 7 | |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
| 12 | + |
11 | 13 | |
12 | 14 | |
13 | 15 | |
| ||
183 | 185 | |
184 | 186 | |
185 | 187 | |
186 | | - |
187 | | - |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
188 | 192 | |
189 | 193 | |
190 | 194 | |
|
Collapse file
test/parallel/test-webcrypto-encrypt-decrypt-aes.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-encrypt-decrypt-aes.js+39-1Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
| ||
196 | 196 | |
197 | 197 | |
198 | 198 | |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
0 commit comments