| OLD | NEW |
| 1 Tests structured cloning of AES keys | 1 Tests structured cloning of AES keys |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS importedKey.extraProperty is "hi" | 6 PASS importedKey.extraProperty is "hi" |
| 7 PASS importedKey.type is "secret" | 7 PASS importedKey.type is "secret" |
| 8 PASS typeof importedKey.extractable is 'boolean' | 8 PASS typeof importedKey.extractable is 'boolean' |
| 9 PASS importedKey.extractable is true | 9 PASS importedKey.extractable is true |
| 10 PASS importedKey.algorithm.name is "AES-CBC" | 10 PASS importedKey.algorithm.name is "AES-CBC" |
| 11 PASS importedKey.algorithm.length is 128 | 11 PASS importedKey.algorithm.length is 128 |
| 12 PASS importedKey.usages.join(',') is "" | |
| 13 PASS importedKey is not clonedKey | |
| 14 PASS clonedKey.extraProperty is undefined. | |
| 15 PASS clonedKey.type is "secret" | |
| 16 PASS typeof clonedKey.extractable is 'boolean' | |
| 17 PASS clonedKey.extractable is true | |
| 18 PASS clonedKey.algorithm.name is "AES-CBC" | |
| 19 PASS clonedKey.algorithm.length is 128 | |
| 20 PASS clonedKey.usages.join(',') is "" | |
| 21 Serialized key bytes: 3f004b010110011030112233445566778899aabbccddeeff | |
| 22 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and
was | |
| 23 | |
| 24 PASS importedKey.extraProperty is "hi" | |
| 25 PASS importedKey.type is "secret" | |
| 26 PASS typeof importedKey.extractable is 'boolean' | |
| 27 PASS importedKey.extractable is true | |
| 28 PASS importedKey.algorithm.name is "AES-CBC" | |
| 29 PASS importedKey.algorithm.length is 256 | |
| 30 PASS importedKey.usages.join(',') is "" | |
| 31 PASS importedKey is not clonedKey | |
| 32 PASS clonedKey.extraProperty is undefined. | |
| 33 PASS clonedKey.type is "secret" | |
| 34 PASS typeof clonedKey.extractable is 'boolean' | |
| 35 PASS clonedKey.extractable is true | |
| 36 PASS clonedKey.algorithm.name is "AES-CBC" | |
| 37 PASS clonedKey.algorithm.length is 256 | |
| 38 PASS clonedKey.usages.join(',') is "" | |
| 39 Serialized key bytes: 3f004b010120012000112233445546778899aabbccddeeff0001020304
05060708090a0b0c0d0e0f | |
| 40 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was | |
| 41 | |
| 42 PASS importedKey.extraProperty is "hi" | |
| 43 PASS importedKey.type is "secret" | |
| 44 PASS typeof importedKey.extractable is 'boolean' | |
| 45 PASS importedKey.extractable is true | |
| 46 PASS importedKey.algorithm.name is "AES-CBC" | |
| 47 PASS importedKey.algorithm.length is 128 | |
| 48 PASS importedKey.usages.join(',') is "encrypt" | 12 PASS importedKey.usages.join(',') is "encrypt" |
| 49 PASS importedKey is not clonedKey | 13 PASS importedKey is not clonedKey |
| 50 PASS clonedKey.extraProperty is undefined. | 14 PASS clonedKey.extraProperty is undefined. |
| 51 PASS clonedKey.type is "secret" | 15 PASS clonedKey.type is "secret" |
| 52 PASS typeof clonedKey.extractable is 'boolean' | 16 PASS typeof clonedKey.extractable is 'boolean' |
| 53 PASS clonedKey.extractable is true | 17 PASS clonedKey.extractable is true |
| 54 PASS clonedKey.algorithm.name is "AES-CBC" | 18 PASS clonedKey.algorithm.name is "AES-CBC" |
| 55 PASS clonedKey.algorithm.length is 128 | 19 PASS clonedKey.algorithm.length is 128 |
| 56 PASS clonedKey.usages.join(',') is "encrypt" | 20 PASS clonedKey.usages.join(',') is "encrypt" |
| 57 Serialized key bytes: 3f004b010110031030112233445566778899aabbccddeeff | 21 Serialized key bytes: 3f004b010110031030112233445566778899aabbccddeeff |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" | 110 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" |
| 147 Serialized key bytes: 3f004b010120c3012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 | 111 Serialized key bytes: 3f004b010120c3012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 |
| 148 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was | 112 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was |
| 149 | 113 |
| 150 PASS importedKey.extraProperty is "hi" | 114 PASS importedKey.extraProperty is "hi" |
| 151 PASS importedKey.type is "secret" | 115 PASS importedKey.type is "secret" |
| 152 PASS typeof importedKey.extractable is 'boolean' | 116 PASS typeof importedKey.extractable is 'boolean' |
| 153 PASS importedKey.extractable is false | 117 PASS importedKey.extractable is false |
| 154 PASS importedKey.algorithm.name is "AES-CBC" | 118 PASS importedKey.algorithm.name is "AES-CBC" |
| 155 PASS importedKey.algorithm.length is 128 | 119 PASS importedKey.algorithm.length is 128 |
| 156 PASS importedKey.usages.join(',') is "" | |
| 157 PASS importedKey is not clonedKey | |
| 158 PASS clonedKey.extraProperty is undefined. | |
| 159 PASS clonedKey.type is "secret" | |
| 160 PASS typeof clonedKey.extractable is 'boolean' | |
| 161 PASS clonedKey.extractable is false | |
| 162 PASS clonedKey.algorithm.name is "AES-CBC" | |
| 163 PASS clonedKey.algorithm.length is 128 | |
| 164 PASS clonedKey.usages.join(',') is "" | |
| 165 Serialized key bytes: 3f004b010110001030112233445566778899aabbccddeeff | |
| 166 | |
| 167 PASS importedKey.extraProperty is "hi" | |
| 168 PASS importedKey.type is "secret" | |
| 169 PASS typeof importedKey.extractable is 'boolean' | |
| 170 PASS importedKey.extractable is false | |
| 171 PASS importedKey.algorithm.name is "AES-CBC" | |
| 172 PASS importedKey.algorithm.length is 256 | |
| 173 PASS importedKey.usages.join(',') is "" | |
| 174 PASS importedKey is not clonedKey | |
| 175 PASS clonedKey.extraProperty is undefined. | |
| 176 PASS clonedKey.type is "secret" | |
| 177 PASS typeof clonedKey.extractable is 'boolean' | |
| 178 PASS clonedKey.extractable is false | |
| 179 PASS clonedKey.algorithm.name is "AES-CBC" | |
| 180 PASS clonedKey.algorithm.length is 256 | |
| 181 PASS clonedKey.usages.join(',') is "" | |
| 182 Serialized key bytes: 3f004b010120002000112233445546778899aabbccddeeff0001020304
05060708090a0b0c0d0e0f | |
| 183 | |
| 184 PASS importedKey.extraProperty is "hi" | |
| 185 PASS importedKey.type is "secret" | |
| 186 PASS typeof importedKey.extractable is 'boolean' | |
| 187 PASS importedKey.extractable is false | |
| 188 PASS importedKey.algorithm.name is "AES-CBC" | |
| 189 PASS importedKey.algorithm.length is 128 | |
| 190 PASS importedKey.usages.join(',') is "encrypt" | 120 PASS importedKey.usages.join(',') is "encrypt" |
| 191 PASS importedKey is not clonedKey | 121 PASS importedKey is not clonedKey |
| 192 PASS clonedKey.extraProperty is undefined. | 122 PASS clonedKey.extraProperty is undefined. |
| 193 PASS clonedKey.type is "secret" | 123 PASS clonedKey.type is "secret" |
| 194 PASS typeof clonedKey.extractable is 'boolean' | 124 PASS typeof clonedKey.extractable is 'boolean' |
| 195 PASS clonedKey.extractable is false | 125 PASS clonedKey.extractable is false |
| 196 PASS clonedKey.algorithm.name is "AES-CBC" | 126 PASS clonedKey.algorithm.name is "AES-CBC" |
| 197 PASS clonedKey.algorithm.length is 128 | 127 PASS clonedKey.algorithm.length is 128 |
| 198 PASS clonedKey.usages.join(',') is "encrypt" | 128 PASS clonedKey.usages.join(',') is "encrypt" |
| 199 Serialized key bytes: 3f004b010110021030112233445566778899aabbccddeeff | 129 Serialized key bytes: 3f004b010110021030112233445566778899aabbccddeeff |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 PASS clonedKey.algorithm.length is 256 | 212 PASS clonedKey.algorithm.length is 256 |
| 283 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" | 213 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" |
| 284 Serialized key bytes: 3f004b010120c2012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 | 214 Serialized key bytes: 3f004b010120c2012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 |
| 285 | 215 |
| 286 PASS importedKey.extraProperty is "hi" | 216 PASS importedKey.extraProperty is "hi" |
| 287 PASS importedKey.type is "secret" | 217 PASS importedKey.type is "secret" |
| 288 PASS typeof importedKey.extractable is 'boolean' | 218 PASS typeof importedKey.extractable is 'boolean' |
| 289 PASS importedKey.extractable is true | 219 PASS importedKey.extractable is true |
| 290 PASS importedKey.algorithm.name is "AES-GCM" | 220 PASS importedKey.algorithm.name is "AES-GCM" |
| 291 PASS importedKey.algorithm.length is 128 | 221 PASS importedKey.algorithm.length is 128 |
| 292 PASS importedKey.usages.join(',') is "" | |
| 293 PASS importedKey is not clonedKey | |
| 294 PASS clonedKey.extraProperty is undefined. | |
| 295 PASS clonedKey.type is "secret" | |
| 296 PASS typeof clonedKey.extractable is 'boolean' | |
| 297 PASS clonedKey.extractable is true | |
| 298 PASS clonedKey.algorithm.name is "AES-GCM" | |
| 299 PASS clonedKey.algorithm.length is 128 | |
| 300 PASS clonedKey.usages.join(',') is "" | |
| 301 Serialized key bytes: 3f004b010910011030112233445566778899aabbccddeeff | |
| 302 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and
was | |
| 303 | |
| 304 PASS importedKey.extraProperty is "hi" | |
| 305 PASS importedKey.type is "secret" | |
| 306 PASS typeof importedKey.extractable is 'boolean' | |
| 307 PASS importedKey.extractable is true | |
| 308 PASS importedKey.algorithm.name is "AES-GCM" | |
| 309 PASS importedKey.algorithm.length is 256 | |
| 310 PASS importedKey.usages.join(',') is "" | |
| 311 PASS importedKey is not clonedKey | |
| 312 PASS clonedKey.extraProperty is undefined. | |
| 313 PASS clonedKey.type is "secret" | |
| 314 PASS typeof clonedKey.extractable is 'boolean' | |
| 315 PASS clonedKey.extractable is true | |
| 316 PASS clonedKey.algorithm.name is "AES-GCM" | |
| 317 PASS clonedKey.algorithm.length is 256 | |
| 318 PASS clonedKey.usages.join(',') is "" | |
| 319 Serialized key bytes: 3f004b010920012000112233445546778899aabbccddeeff0001020304
05060708090a0b0c0d0e0f | |
| 320 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was | |
| 321 | |
| 322 PASS importedKey.extraProperty is "hi" | |
| 323 PASS importedKey.type is "secret" | |
| 324 PASS typeof importedKey.extractable is 'boolean' | |
| 325 PASS importedKey.extractable is true | |
| 326 PASS importedKey.algorithm.name is "AES-GCM" | |
| 327 PASS importedKey.algorithm.length is 128 | |
| 328 PASS importedKey.usages.join(',') is "encrypt" | 222 PASS importedKey.usages.join(',') is "encrypt" |
| 329 PASS importedKey is not clonedKey | 223 PASS importedKey is not clonedKey |
| 330 PASS clonedKey.extraProperty is undefined. | 224 PASS clonedKey.extraProperty is undefined. |
| 331 PASS clonedKey.type is "secret" | 225 PASS clonedKey.type is "secret" |
| 332 PASS typeof clonedKey.extractable is 'boolean' | 226 PASS typeof clonedKey.extractable is 'boolean' |
| 333 PASS clonedKey.extractable is true | 227 PASS clonedKey.extractable is true |
| 334 PASS clonedKey.algorithm.name is "AES-GCM" | 228 PASS clonedKey.algorithm.name is "AES-GCM" |
| 335 PASS clonedKey.algorithm.length is 128 | 229 PASS clonedKey.algorithm.length is 128 |
| 336 PASS clonedKey.usages.join(',') is "encrypt" | 230 PASS clonedKey.usages.join(',') is "encrypt" |
| 337 Serialized key bytes: 3f004b010910031030112233445566778899aabbccddeeff | 231 Serialized key bytes: 3f004b010910031030112233445566778899aabbccddeeff |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" | 320 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" |
| 427 Serialized key bytes: 3f004b010920c3012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 | 321 Serialized key bytes: 3f004b010920c3012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 |
| 428 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was | 322 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was |
| 429 | 323 |
| 430 PASS importedKey.extraProperty is "hi" | 324 PASS importedKey.extraProperty is "hi" |
| 431 PASS importedKey.type is "secret" | 325 PASS importedKey.type is "secret" |
| 432 PASS typeof importedKey.extractable is 'boolean' | 326 PASS typeof importedKey.extractable is 'boolean' |
| 433 PASS importedKey.extractable is false | 327 PASS importedKey.extractable is false |
| 434 PASS importedKey.algorithm.name is "AES-GCM" | 328 PASS importedKey.algorithm.name is "AES-GCM" |
| 435 PASS importedKey.algorithm.length is 128 | 329 PASS importedKey.algorithm.length is 128 |
| 436 PASS importedKey.usages.join(',') is "" | |
| 437 PASS importedKey is not clonedKey | |
| 438 PASS clonedKey.extraProperty is undefined. | |
| 439 PASS clonedKey.type is "secret" | |
| 440 PASS typeof clonedKey.extractable is 'boolean' | |
| 441 PASS clonedKey.extractable is false | |
| 442 PASS clonedKey.algorithm.name is "AES-GCM" | |
| 443 PASS clonedKey.algorithm.length is 128 | |
| 444 PASS clonedKey.usages.join(',') is "" | |
| 445 Serialized key bytes: 3f004b010910001030112233445566778899aabbccddeeff | |
| 446 | |
| 447 PASS importedKey.extraProperty is "hi" | |
| 448 PASS importedKey.type is "secret" | |
| 449 PASS typeof importedKey.extractable is 'boolean' | |
| 450 PASS importedKey.extractable is false | |
| 451 PASS importedKey.algorithm.name is "AES-GCM" | |
| 452 PASS importedKey.algorithm.length is 256 | |
| 453 PASS importedKey.usages.join(',') is "" | |
| 454 PASS importedKey is not clonedKey | |
| 455 PASS clonedKey.extraProperty is undefined. | |
| 456 PASS clonedKey.type is "secret" | |
| 457 PASS typeof clonedKey.extractable is 'boolean' | |
| 458 PASS clonedKey.extractable is false | |
| 459 PASS clonedKey.algorithm.name is "AES-GCM" | |
| 460 PASS clonedKey.algorithm.length is 256 | |
| 461 PASS clonedKey.usages.join(',') is "" | |
| 462 Serialized key bytes: 3f004b010920002000112233445546778899aabbccddeeff0001020304
05060708090a0b0c0d0e0f | |
| 463 | |
| 464 PASS importedKey.extraProperty is "hi" | |
| 465 PASS importedKey.type is "secret" | |
| 466 PASS typeof importedKey.extractable is 'boolean' | |
| 467 PASS importedKey.extractable is false | |
| 468 PASS importedKey.algorithm.name is "AES-GCM" | |
| 469 PASS importedKey.algorithm.length is 128 | |
| 470 PASS importedKey.usages.join(',') is "encrypt" | 330 PASS importedKey.usages.join(',') is "encrypt" |
| 471 PASS importedKey is not clonedKey | 331 PASS importedKey is not clonedKey |
| 472 PASS clonedKey.extraProperty is undefined. | 332 PASS clonedKey.extraProperty is undefined. |
| 473 PASS clonedKey.type is "secret" | 333 PASS clonedKey.type is "secret" |
| 474 PASS typeof clonedKey.extractable is 'boolean' | 334 PASS typeof clonedKey.extractable is 'boolean' |
| 475 PASS clonedKey.extractable is false | 335 PASS clonedKey.extractable is false |
| 476 PASS clonedKey.algorithm.name is "AES-GCM" | 336 PASS clonedKey.algorithm.name is "AES-GCM" |
| 477 PASS clonedKey.algorithm.length is 128 | 337 PASS clonedKey.algorithm.length is 128 |
| 478 PASS clonedKey.usages.join(',') is "encrypt" | 338 PASS clonedKey.usages.join(',') is "encrypt" |
| 479 Serialized key bytes: 3f004b010910021030112233445566778899aabbccddeeff | 339 Serialized key bytes: 3f004b010910021030112233445566778899aabbccddeeff |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 PASS clonedKey.extractable is false | 420 PASS clonedKey.extractable is false |
| 561 PASS clonedKey.algorithm.name is "AES-GCM" | 421 PASS clonedKey.algorithm.name is "AES-GCM" |
| 562 PASS clonedKey.algorithm.length is 256 | 422 PASS clonedKey.algorithm.length is 256 |
| 563 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" | 423 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" |
| 564 Serialized key bytes: 3f004b010920c2012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 | 424 Serialized key bytes: 3f004b010920c2012000112233445546778899aabbccddeeff00010203
0405060708090a0b0c0d0e0f00 |
| 565 | 425 |
| 566 PASS successfullyParsed is true | 426 PASS successfullyParsed is true |
| 567 | 427 |
| 568 TEST COMPLETE | 428 TEST COMPLETE |
| 569 | 429 |
| OLD | NEW |