| OLD | NEW |
| 1 Tests structured cloning of AES-CTR keys | 1 Tests structured cloning of AES-CTR 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-CTR" | 10 PASS importedKey.algorithm.name is "AES-CTR" |
| 11 PASS importedKey.algorithm.length is 128 | 11 PASS importedKey.algorithm.length is 128 |
| 12 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" | 12 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 13 PASS importedKey is not clonedKey | 13 PASS importedKey is not clonedKey |
| 14 PASS clonedKey.extraProperty is undefined. | 14 PASS clonedKey.extraProperty is undefined. |
| 15 PASS clonedKey.type is "secret" | 15 PASS clonedKey.type is "secret" |
| 16 PASS typeof clonedKey.extractable is 'boolean' | 16 PASS typeof clonedKey.extractable is 'boolean' |
| 17 PASS clonedKey.extractable is true | 17 PASS clonedKey.extractable is true |
| 18 PASS clonedKey.algorithm.name is "AES-CTR" | 18 PASS clonedKey.algorithm.name is "AES-CTR" |
| 19 PASS clonedKey.algorithm.length is 128 | 19 PASS clonedKey.algorithm.length is 128 |
| 20 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" | 20 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 21 Serialized key bytes: 4b010b10c1011030112233445566778899aabbccddeeff00 | 21 Serialized key bytes: 5c4b010b10c1011030112233445566778899aabbccddeeff |
| 22 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and
was | 22 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and
was |
| 23 | 23 |
| 24 PASS importedKey.extraProperty is "hi" | 24 PASS importedKey.extraProperty is "hi" |
| 25 PASS importedKey.type is "secret" | 25 PASS importedKey.type is "secret" |
| 26 PASS typeof importedKey.extractable is 'boolean' | 26 PASS typeof importedKey.extractable is 'boolean' |
| 27 PASS importedKey.extractable is true | 27 PASS importedKey.extractable is true |
| 28 PASS importedKey.algorithm.name is "AES-CTR" | 28 PASS importedKey.algorithm.name is "AES-CTR" |
| 29 PASS importedKey.algorithm.length is 256 | 29 PASS importedKey.algorithm.length is 256 |
| 30 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" | 30 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 31 PASS importedKey is not clonedKey | 31 PASS importedKey is not clonedKey |
| 32 PASS clonedKey.extraProperty is undefined. | 32 PASS clonedKey.extraProperty is undefined. |
| 33 PASS clonedKey.type is "secret" | 33 PASS clonedKey.type is "secret" |
| 34 PASS typeof clonedKey.extractable is 'boolean' | 34 PASS typeof clonedKey.extractable is 'boolean' |
| 35 PASS clonedKey.extractable is true | 35 PASS clonedKey.extractable is true |
| 36 PASS clonedKey.algorithm.name is "AES-CTR" | 36 PASS clonedKey.algorithm.name is "AES-CTR" |
| 37 PASS clonedKey.algorithm.length is 256 | 37 PASS clonedKey.algorithm.length is 256 |
| 38 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" | 38 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 39 Serialized key bytes: 4b010b20c1012000112233445546778899aabbccddeeff000102030405
060708090a0b0c0d0e0f00 | 39 Serialized key bytes: 5c4b010b20c1012000112233445546778899aabbccddeeff0001020304
05060708090a0b0c0d0e0f |
| 40 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was | 40 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102
030405060708090a0b0c0d0e0f] and was |
| 41 | 41 |
| 42 PASS importedKey.extraProperty is "hi" | 42 PASS importedKey.extraProperty is "hi" |
| 43 PASS importedKey.type is "secret" | 43 PASS importedKey.type is "secret" |
| 44 PASS typeof importedKey.extractable is 'boolean' | 44 PASS typeof importedKey.extractable is 'boolean' |
| 45 PASS importedKey.extractable is false | 45 PASS importedKey.extractable is false |
| 46 PASS importedKey.algorithm.name is "AES-CTR" | 46 PASS importedKey.algorithm.name is "AES-CTR" |
| 47 PASS importedKey.algorithm.length is 128 | 47 PASS importedKey.algorithm.length is 128 |
| 48 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" | 48 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 49 PASS importedKey is not clonedKey | 49 PASS importedKey is not clonedKey |
| 50 PASS clonedKey.extraProperty is undefined. | 50 PASS clonedKey.extraProperty is undefined. |
| 51 PASS clonedKey.type is "secret" | 51 PASS clonedKey.type is "secret" |
| 52 PASS typeof clonedKey.extractable is 'boolean' | 52 PASS typeof clonedKey.extractable is 'boolean' |
| 53 PASS clonedKey.extractable is false | 53 PASS clonedKey.extractable is false |
| 54 PASS clonedKey.algorithm.name is "AES-CTR" | 54 PASS clonedKey.algorithm.name is "AES-CTR" |
| 55 PASS clonedKey.algorithm.length is 128 | 55 PASS clonedKey.algorithm.length is 128 |
| 56 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" | 56 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 57 Serialized key bytes: 4b010b10c0011030112233445566778899aabbccddeeff00 | 57 Serialized key bytes: 5c4b010b10c0011030112233445566778899aabbccddeeff |
| 58 | 58 |
| 59 PASS importedKey.extraProperty is "hi" | 59 PASS importedKey.extraProperty is "hi" |
| 60 PASS importedKey.type is "secret" | 60 PASS importedKey.type is "secret" |
| 61 PASS typeof importedKey.extractable is 'boolean' | 61 PASS typeof importedKey.extractable is 'boolean' |
| 62 PASS importedKey.extractable is false | 62 PASS importedKey.extractable is false |
| 63 PASS importedKey.algorithm.name is "AES-CTR" | 63 PASS importedKey.algorithm.name is "AES-CTR" |
| 64 PASS importedKey.algorithm.length is 256 | 64 PASS importedKey.algorithm.length is 256 |
| 65 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" | 65 PASS importedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 66 PASS importedKey is not clonedKey | 66 PASS importedKey is not clonedKey |
| 67 PASS clonedKey.extraProperty is undefined. | 67 PASS clonedKey.extraProperty is undefined. |
| 68 PASS clonedKey.type is "secret" | 68 PASS clonedKey.type is "secret" |
| 69 PASS typeof clonedKey.extractable is 'boolean' | 69 PASS typeof clonedKey.extractable is 'boolean' |
| 70 PASS clonedKey.extractable is false | 70 PASS clonedKey.extractable is false |
| 71 PASS clonedKey.algorithm.name is "AES-CTR" | 71 PASS clonedKey.algorithm.name is "AES-CTR" |
| 72 PASS clonedKey.algorithm.length is 256 | 72 PASS clonedKey.algorithm.length is 256 |
| 73 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" | 73 PASS clonedKey.usages.join(',') is "wrapKey,unwrapKey" |
| 74 Serialized key bytes: 4b010b20c0012000112233445546778899aabbccddeeff000102030405
060708090a0b0c0d0e0f00 | 74 Serialized key bytes: 5c4b010b20c0012000112233445546778899aabbccddeeff0001020304
05060708090a0b0c0d0e0f |
| 75 | 75 |
| 76 PASS successfullyParsed is true | 76 PASS successfullyParsed is true |
| 77 | 77 |
| 78 TEST COMPLETE | 78 TEST COMPLETE |
| 79 | 79 |
| OLD | NEW |